Support Forums
GPS/ GSM modem

Hi all,

I am new at using DT80 and I have a question already. In one of our projects we are using a GPS/GSM modem connected to the RS232 port. What I would to do is get the GPS location and combine it with the information I am getting from the other ports and then send the whole thing via the GSM.

There is an AT command that I can send to the modem in order to get the GPS location of the device. Is something like this possible and if it is is there an example somewhere?

Thank you

Hi all, I am new at using DT80 and I have a question already. In one of our projects we are using a GPS/GSM modem connected to the RS232 port. What I would to do is get the GPS location and combine it with the information I am getting from the other ports and then send the whole thing via the GSM. There is an AT command that I can send to the modem in order to get the GPS location of the device. Is something like this possible and if it is is there an example somewhere? Thank you

Good morning VTryfonas,

So you modem has a GPS built in and you want to read the location into the dataTaker. There are no standard commands for this so you will have to read the modems manual and see what it has to say.

The more usual way to do this would be to connect a GPS unit to the serial sensor port and read that in as required. There are examples of code in the FAQ on how to read GPS.

Cheers,
Roger

Good morning VTryfonas, So you modem has a GPS built in and you want to read the location into the dataTaker. There are no standard commands for this so you will have to read the modems manual and see what it has to say. The more usual way to do this would be to connect a GPS unit to the serial sensor port and read that in as required. There are examples of code in the FAQ on how to read GPS. Cheers, Roger

In order to be able to send the AT command from the logger to the modem don't I have to set the Host Port to Serial? If I do that I won't be able to send commands to the logger to unload information.

In order to be able to send the AT command from the logger to the modem don't I have to set the Host Port to Serial? If I do that I won't be able to send commands to the logger to unload information.

Good morning VTryfonas,

You don't need to be in serial mode to send commands to the modem. The modems should drop back to command mode when you hang up a call. To send your AT commands use an alarm command with the AT command in the message section.

Cheers,
Roger

Good morning VTryfonas, You don't need to be in serial mode to send commands to the modem. The modems should drop back to command mode when you hang up a call. To send your AT commands use an alarm command with the AT command in the message section. Cheers, Roger

As Roger suggested, the easy way to send an AT command to a serial modem, when the datataker's RS232 port is in "Command" mode, is using alarm / do statements.

With this approach you can only send commands, not receiving the answers.
I can suggest to try to program a switch (using e.g. solid state relay controlled by digital output) the Tx, Rx, GND lines between the two DT80's serial ports.

When you need to get GPS location you switch the serial line to the serial channel port (screw terminal's one), reversing back to the command port when you got the data back.

Be careful in the timing of the operations, the program should take in consideration for all cases (e.g. if a call is in progress 25SV=2 don't switch to serial channel port, and so on...)

Very good datataker's programming exercise!!!

Good luck
Regards

As Roger suggested, the easy way to send an AT command to a serial modem, when the datataker's RS232 port is in "Command" mode, is using alarm / do statements. With this approach you can only send commands, not receiving the answers. I can suggest to try to program a switch (using e.g. solid state relay controlled by digital output) the Tx, Rx, GND lines between the two DT80's serial ports. When you need to get GPS location you switch the serial line to the serial channel port (screw terminal's one), reversing back to the command port when you got the data back. Be careful in the timing of the operations, the program should take in consideration for all cases (e.g. if a call is in progress 25SV=2 don't switch to serial channel port, and so on...) Very good datataker's programming exercise!!! Good luck Regards
27
4
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft