You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example Last Reject Code has response: 7F 80 02 F0 00 12 20
At this time Setup Request has response 7F 80 17 F0 00 30 31 30 30 45 55 52 00 00 01 03 05 0A 14 02 02 02 00 00 64 04 2A 25
As we can see that data starts with 7F 80 XX F0 00, where XX is just its length
But in case of Last Reject Code00 represents rejection code
In case of Setup Request00 represents device type
Here https://github.com/soulman-is-good/node-ssp/blob/master/index.js#L154-L343 we catch all the data with length > 1 and if we catch 00 we read it as reject code, but we need to pay attention to data length and differ it or add callbacks for commands to separate events and commands responses.
The text was updated successfully, but these errors were encountered:
kybarg
changed the title
[bug] Parser collisions
[bug] Parser data collisions
Feb 21, 2018
For example
Last Reject Code has response:
7F 80 02 F0 00 12 20
At this time Setup Request has response
7F 80 17 F0 00 30 31 30 30 45 55 52 00 00 01 03 05 0A 14 02 02 02 00 00 64 04 2A 25
As we can see that data starts with
7F 80 XX F0 00
, whereXX
is just its lengthBut in case of Last Reject Code
00
represents rejection codeIn case of Setup Request
00
represents device typeHere https://github.com/soulman-is-good/node-ssp/blob/master/index.js#L154-L343 we catch all the data with length > 1 and if we catch
00
we read it as reject code, but we need to pay attention to data length and differ it or add callbacks for commands to separate events and commands responses.The text was updated successfully, but these errors were encountered: