Hello everyone! I have a scooter connected to the TST100 and we are having issues sending the propper commands to lock / unlock.
In order to lock the scooter we send two commands: turn the engine off and lock the wheel. The problem comes when we send the commands too fast, the second one doesnt get executed.
The beheaviour is observed with every command, not only the ones I mentioned before. It seems that if we send the commands too fast the module is unable to process the second command.
We connected the module to extract the log and send the commands. We noticied that the first command is proccessed succesfully (we have the confirmation on the server) and the response from the server is proccessed as well. Sending the second command causes the error:
WARNING @ 156:Invalid cmd len: 12 < 20
If we wait 5 seconds before sending the second command its proccessed correctly.
Rings any bell to anyone?
This is the log:
[2020.05.08 13:48:56]-[NETWORK] [IND] received data from socket!
[2020.05.08 13:48:56]-[NETWORK] notification, socket id: 5 has data which must be read!
[2020.05.08 13:48:56]-[NETWORK] VR socket 0, real socket id: 5, attempt automatic data reading for application
[2020.05.08 13:48:56]-[NETWORK] attempting to read data from socked id (real): 5
[2020.05.08 13:48:56]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 34
DUMP DATA START:
00 00 00 00 00 00 00 16 0C 01 05 00 00 00 0E 73 63 6C 6F 63 6B 63 74 72 6C 20 30 0D 0A 01 00 00 3F 7A
DUMP DATA END
[2020.05.08 13:48:56]-[NETWORK.PARSER] GPRS CMD Detected!
[2020.05.08 13:48:56]-[GPRS.CMD] CID: 12, NOD: 1, CMD: 5, data len: 14, CRC: 3F7A
[2020.05.08 13:48:56]-[GPRS.CMD] cmd response: Scooter command processed successfully
[2020.05.08 13:48:56]-[NETWORK] attempting to send data by VR socked id: 5, data len: 58
[2020.05.08 13:48:56]-[NETWORK] [SEND.DATA.0151] Waiting for socket send result, waiting: 10 sec
[2020.05.08 13:48:56]-[NETWORK] data send to socket: 5, successfull! evt sending: enabled, VR socket: 0
[2020.05.08 13:48:57]-[NETWORK] [IND] received data from socket!
[2020.05.08 13:48:57]-[NETWORK] notification, socket id: 5 has data which must be read!
[2020.05.08 13:48:57]-[NETWORK] VR socket 0, real socket id: 5, attempt automatic data reading for application
[2020.05.08 13:48:57]-[NETWORK] attempting to read data from socked id (real): 5
[2020.05.08 13:48:57]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 4
DUMP DATA START:
00 00 00 01
DUMP DATA END
[2020.05.08 13:48:59]-[OVERSPD] Scenario disabled!
[2020.05.08 13:48:59]-[SLEEP] Sleep:0, not allowed! Reason:Disabled by CFG
[2020.05.08 13:48:59]-[NETWORK] [IND] received data from socket!
[2020.05.08 13:48:59]-[NETWORK] notification, socket id: 5 has data which must be read!
[2020.05.08 13:48:59]-[NETWORK] VR socket 0, real socket id: 5, attempt automatic data reading for application
[2020.05.08 13:48:59]-[NETWORK] attempting to read data from socked id (real): 5
[2020.05.08 13:48:59]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 34
DUMP DATA START:
00 00 00 00 00 00 00 16 0C 01 05 00 00 00 0E 73 63 6C 6F 63 6B 63 74 72 6C 20 30 0D 0A 01 00 00 3F 7A
DUMP DATA END
[2020.05.08 13:48:59]-[GPRS.CMD] WARNING @ 156:Invalid cmd len: 12 < 20
[2020.05.08 13:49:01]-[SCH] Task eM2M_Tid_ScooterUpdate[58] dropped
[2020.05.08 13:49:01]-[SCOOTER] Sending HeartBeat