FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

4167 questions

4739 answers

3460 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
393 views
in Vehicle tracking by anonymous
We are successfully receiving the AVL data from our FMB640 unit over UDP back to our server on the configured UDP port.

I presume we need to send a response back over UDP but what port should this be sent to .. is it the same as our server is receiving on?

We are currently sending a response back to the same port but dont seem to get confirmation in the "Last Server response Time" field in the status page and we are clearly not receiving

Is there anywhere in the web console that i can see logs of network traffic to see the response coming in, pretty sure im sending back from our application the correct packet in this case ( 0005 cafe 01 1a 19 ) and the network sniffing confirms this...

Has anyone got any pointers of where to look?

Thanks

Peter

1 Answer

0 votes
by anonymous

Hi Peter,

You can use Hercules as a tool for your server and device integration, just make sure that you have followed the right protocol, take note that the device is using codec 8 or codec 8 extended for sending the data to the server and Codec12 for device-server communication over GPRS messages.

Here's the link for your reference:

1.  Codec - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

2. Hercules SETUP utility | HW-group.com

Note: If you need other tools like UDP, TCP listener, and Teltonika Data Parser please coordinate with your sales manager to get those tools.

Same port should work, the port of your server should be configured to your device.

Reference: FMB640 GPRS settings - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

Best Regards,
Maynard C.

by anonymous

Hi Maynard..

Thanks very much for the reply... good to know i should use same port

So my main problem is the udp response does not seem to be accepted / received by the tracking device. And Im trying to work out if the problem is if our response is invalid or if it just not is getting through the radio network

Do you know if the GPRS Status status box (click the link) should show total bytes received even if the response is not valid .. if we are sending data back to port 15002 ( which is what we use ) should we see Received Data have a number of bytes against.. does this imply that data is not getting back to the device at all regardless of whether the response is valid data or not in which case it could be a mobile network issue?


 

I have the codec document and think i am following this correctly

For info an example response-

0005cafe010b19

Many Thanks

by anonymous

Hi Peter,

You should use the codec 12 format protocol for sending commands to the device. Codec - Wiki Knowledge Base | Teltonika GPS (teltonika-gps.com)

As I mentioned before we are using codec 12 for sending the GPRS command 

Here is the example

getver

00000000000000100C0105000000086765747665720D0A0100004D36

For testing, you can try to use https://flespi.io/# or hercules so that you were aware about the data that you were able to receive from the device. In flespi, it also includes the size of any particular data received from the device and sent from the device. 

do not use codec 8 or codec 8 extended for sending the command. 

Best Regards,

Maynard C.

by anonymous
Hi Maynard

Im really sorry but i mentioned the wrong device in this post .. I actually have an FMM640 not an FMB640.. does this change things?? I think cut and pasted incorrectly!

Also our device is connected over GPRS on an APN (not a public IP address) , so to use those tools (Hermes,flespi) would I need to use a public sim? Im going to try this a bit later .. i presume in flespi i add a device and a channel, point my device at it and let it run?

Peter
by anonymous
Hello Peter,

Yes, nothing will change, FMB640, FMM640, and FMC640 all teltonika devices have the same communication protocol.
Yes, you need to use a public sim or open any simcard that can be connected to any server.

Add channel make sure to select teltonika as protocol.

Copy and paste the channel info to your device.

Add your device make sure you selected the right device type and put the IMEI of your device.

Check the data under messages, you can also send GPRS commands using this platform.

go to traffic to check the raw data.

I hope this helps.

Best Regards,

Maynard
by anonymous

Thanks Maynard

Im still working on this .. 

Out of interest is there anywhere i can check that my codec12 crc16 checksum calculation is correct .. 

For example, Im sending a response with CRC16 calculated as 0x20d4 .. here's the response

000000000000000f0c0106000000070005cafe01011901000020d4

and the codec 8 extended packet im getting from the device is

03cecafe0101000f3836323331353036303538373435378e1900000183d71c317800ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c2d8c00ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c29a400ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c25bc00ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c21d400ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c1dec00ffd7c5d71e4bc82900000000000000000000000000000000000000000000000183d71c1a0400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c161c00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c123400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c0e4c00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c0a6400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c067c00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71c029400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bfeac00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bfac400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bf6dc00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bf2f400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bef0c00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71beb2400ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71be73c00ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71be35800ffd7c5d71e4bc82900000004000000000000000000000000000000000000000183d71bc4d300ffd7c5d71e4bc829001000000e0000000000000000000000000000000000000183d71bc0eb00ffd7c5d71e4bc829001000000e0000000000000000000000000000000000000183d71bbd0300ffd7c5d71e4bc829001000000e0000000000000000000000000000000000000183d71bb91b00ffd7c5d71e4bc829001000000e0000000000000000000000000000000019

does that look right?