-
Notifications
You must be signed in to change notification settings - Fork 50
Unreadable data #18
Comments
That indeed doesn't look right. Is the encoding of your script file and terminal UTF-8? |
I created a separate branch to work this out. Please install with:
And add these debug lines to your code: tk102.on ('fail', console.log);
tk102.on ('error', console.log); |
Results after trying new branch: UH� t"ngq�ata: xx UH� t"ngq�ata: xx Incoming data: xx %��HX_[<�R�w �� { [Error: Cannot parse GPS data from device] |
I also tried to use python to determine encoding, def handle(self):
Results when binary is used to decode data: Incoming data: <Buffer 78 78 0d 01 03 55 48 80 20 14 74 22 00 0b 52 9f 0d 0a> decoded data: UH� t" Incoming data: <Buffer 78 78 0d 01 03 55 48 80 20 14 74 22 00 0b 52 9f 0d 0a> decoded data: UH� t" { [Error: Cannot parse GPS data from device] |
What brand and model is your tracker? |
This is the device being used: http://www.ebay.com/itm/331580016533?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT |
I updated the code to use binary input, please retry with |
Incoming data: 7© t" decoded data: 7© t" Incoming data: 7© t" decoded data: 7© t" Trace: { [Error: uncaught exception] Incoming data: UH� t"» decoded data: UH� t"» Incoming data: UH� t"» decoded data: UH� t"» Trace: { [Error: uncaught exception] Incoming data: UH� t"üÍ decoded data: UH� t"üÍ |
Hm I can't help you at this moment. To further investigate the data I need my laptop, but I only have my phone with me. Is this a high priority issue for you or can it wait a couple of weeks? |
Okay, thank you for the assistance. Kinda high, but will try some more troubleshooting and get another model if necessary. |
OK. I added input conversion. Set with: tk102.settings.encoding = 'ENC'; Where In your earlier data I see |
Hi @jamrockmedz, could you please retry with |
I believe the issue was with the firmware, i don't currently have those devices nearby. I however got two other tk102 device from a different manufacturer which do send readable characters to the server. The only issue with these new devices is that the data format is different from the common ones I have seen. For example: I can see the date, imei, and coordinates but i am not quite sure which sections are the velocity and bearing. |
I now have a similar device with the same data format and it's pushing more weird data, I'm working on it. |
Hi fvdm, |
Hi @tedbear, I managed to get 4 different strings from the device, one including the actual GPS position. Another is some sort of keepalive message. I think it may be possible to send commands from the server to the device to program it and switch features on and off remotely without SMS contact. |
Sorry to thread hijack as I have not personally seen the binary/encoding problem but I do have a clone/fake TK102 device with the same (027043348515BR00150928A1801.5454N07650.7534W000.32321030.000000000000L00000000) format. After finding that this new? protocol was not support with any of the TK102 websites/code (that I could find) I have been working on decoding the basics of it. The closet protocol docs was in a pdf I found titled "TK103 ALTERNATE protocol vs 2.1.pdf" on this random protocol cache https://docs.google.com/a/docs.gogle.com/folderview?id=0B9QofkYKWsMuZnIwZ1BqeXhzQlE#list The translation is terrible but I have seen two similar commands from my device and broken out the basic gps coords:
Notes:
Has anyone documented the full protocol / capabilities of these clones? |
Hi everyone, I have not other information to share, just adding myself to the conversation, asking if you had time to work on it. I am trying to contact the seller, too, but I have doubts that he knows something about it...anyway, I will update the issue asap if I am able to obtain any news. Thanks, |
Hey everyone, Thanks for joining! I'm fieldtesting the TK102B while at the same time collecting gps and network data from my phone. By comparing the results I can figure out (kind of) the format of the data messages. I'll share my findings here too, soon. |
I have the same problem with the encoding, how can I fix it? This is my output { [Error: Cannot parse GPS data from device]
reason: 'Cannot parse GPS data from device',
input: 'xx\r\u0001\u0003UH� \u0011�h\u0000=�5',
connection:
{ address: '0.0.0.0',
family: 'IPv4',
port: 8000,
remoteAddress: '5.86.224.14',
remotePort: 65068 } } |
@fvdm any update about it? |
Hi @mirkods, sorry no update yet. |
This project is no longer maintained. If anyone wishes to over please tell me in issue #36. |
I tried using this source to parse data from a tk102 device. The received data is always unreadable, for Example 1:
connected
UH� t"3�T
UH� t"3�T
xx 04���[��<�R�w�3vQ
Example 2:
63.143.78.70 wrote:
UH� t"'�
63.143.78.67 wrote:
UH� t"'�
63.143.78.69 wrote:
UH� t"(A
63.143.78.65 wrote:
UH� t"(A
63.143.78.67 wrote:
UH� t"(A
63.143.78.67 wrote:
UH� t")P�
63.143.78.70 wrote:
UH� t")P�
63.143.78.68 wrote:
UH� t"*b
63.143.78.68 wrote:
UH� t"*b
63.143.78.68 wrote:
UH� t"*b
63.143.78.66 wrote:
UH� t"+s�
63.143.78.69 wrote:
UH� t"+s�
63.143.78.65 wrote:
UH� t"+s�
63.143.78.70 wrote:
UH� t"-�
63.143.78.65 wrote:
UH� t"-�
63.143.78.67 wrote:
UH� t".$0
63.143.78.67 wrote:
UH� t".$0
63.143.78.69 wrote:
UH� t".$0
63.143.78.70 wrote:
UH� t"/5�
63.143.78.65 wrote:
UH� t"/5�
63.143.78.65 wrote:
UH� t"/5�
63.143.78.66 wrote:
UH� t"0
63.143.78.67 wrote:
UH� t"0
63.143.78.69 wrote:
UH� t"0
63.143.78.70 wrote:
UH� t"1
63.143.78.65 wrote:
UH� t"1
63.143.78.70 wrote:
UH� t"1
63.143.78.69 wrote:
UH� t"3
63.143.78.66 wrote:
UH� t"3
63.143.78.69 wrote:
UH� t"3
The text was updated successfully, but these errors were encountered: