Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected error #23

Open
AgentVicman007 opened this issue Dec 27, 2023 · 4 comments
Open

Unexpected error #23

AgentVicman007 opened this issue Dec 27, 2023 · 4 comments

Comments

@AgentVicman007
Copy link

AgentVicman007 commented Dec 27, 2023

Hello,
I'm hoping you can help me out. I have a GT06 and it's sending requests to my server using your code. and I'm seeing
client connected

started server on port: 64459
client connected
{
expectsResponse: true,
imei: 352672107482515,
serialNumber: 1,
responseMsg: <Buffer 78 78 05 01 00 01 d9 dc 0d 0a>,
event: { number: 1, string: 'login' },
parseTime: 1703714944097
}
err {
error: 'unknown message type',
event: { number: 138, string: 'unknown' }
}
err {
error: 'unknown message header',
msg: <Buffer 79 79 00 08 94 00 04 8f 00 d2 48 15 0d 0a 79 79 00 20 94 0a 03 52 67 21 07 48 25 15 03 10 24 02 01 37 35 57 89 01 24 02 04 11 37 35 57 4f 00 9a 43 00 ... 2 more bytes>
}
{
expectsResponse: true,
terminalInfo: {
status: false,
ignition: false,
charging: true,
alarmType: 'normal',
gpsTracking: false,
relayState: false
},
voltageLevel: 'high',
gsmSigStrength: 'good signal',
imei: 352672107482515,
responseMsg: <Buffer 78 78 05 13 00 01 e9 f1 0d 0a>,
event: { number: 19, string: 'status' },
parseTime: 1703714946096
}
{
expectsResponse: true,
terminalInfo: {
status: false,
ignition: false,
charging: true,
alarmType: 'normal',
gpsTracking: false,
relayState: false
},
voltageLevel: 'high',
gsmSigStrength: 'good signal',
imei: 352672107482515,
responseMsg: <Buffer 78 78 05 13 00 01 e9 f1 0d 0a>,
event: { number: 19, string: 'status' },
parseTime: 1703715246401
}
err {
error: 'unknown message type',
event: { number: 160, string: 'unknown' }
}
err {
error: 'unknown message type',
event: { number: 160, string: 'unknown' }
}
err {
error: 'unknown message type',
event: { number: 160, string: 'unknown' }
}
err {
error: 'unknown message type',
event: { number: 160, string: 'unknown' }
}

Would you be able to help me out with what the error above means?

@randydom
Copy link

Hello, have you known why those " unknown message type " errors occurred?

@AgentVicman007
Copy link
Author

AgentVicman007 commented Jan 15, 2024 via email

@vondraussen
Copy link
Owner

@AgentVicman007 sorry for late reply
according to the traccar GT06 protocol decoder, type 138 (0x8A) is a time request. I have no idea what that mean. It was not sent by my tracker.
Maybe it is possible to set the tracker time by the server?

The other unknown message type 160 (0xA0) was also not sent by my tracker.

Is the lib otherwise working for you? Are you getting location updates?
There is also a message with a header of 0x79, 0x79 in your log. Not sure where this is coming from. This seems to be a special reply message type (extended) from the server to the tracker. This is not implemented.

@eusonlito
Copy link

eusonlito commented Feb 27, 2024

@vondraussen 0x7979 is the format for some GT06 devices like Concox GT08. It's used as start indicator for Location messages.

Here more info about this protocolo https://www.traccar.org/protocol/5023-gt06/S20WanWayProtocol2021.03.22V21.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants