-
Notifications
You must be signed in to change notification settings - Fork 605
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
Support CANdapter extended length arbitration ID #1528
Support CANdapter extended length arbitration ID #1528
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BroderickJack example comment
elif string[0] == "T" or string[0] == "x": # x is an alternative extended message identifier from the CANDapter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also in test_slcan.py you can insert this test after line 40 for a test
# Ewert Energy Systems CANDapter specific
self.serial.write(b"x12ABCDEF2AA55\r")
msg = self.bus.recv(TIMEOUT)
self.assertIsNotNone(msg)
self.assertEqual(msg.arbitration_id, 0x12ABCDEF)
self.assertEqual(msg.is_extended_id, True)
self.assertEqual(msg.is_remote_frame, False)
self.assertEqual(msg.dlc, 2)
self.assertSequenceEqual(msg.data, [0xAA, 0x55])
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thank you!
@BroderickJack can you fix the failing test? |
More efficient check of arbitration ID Co-authored-by: zariiii9003 <[email protected]>
Type fix in slcan test Co-authored-by: zariiii9003 <[email protected]>
8f424ce
to
90ab7fc
Compare
Add support for Ewert Energy CANdapter extended arbitration ID ASCII identifier of
x
for the slcan interface implementation.Fixes #1506