Skip to content

Conversation

@BroderickJack
Copy link
Contributor

Add support for Ewert Energy CANdapter extended arbitration ID ASCII identifier of x for the slcan interface implementation.

Fixes#1506

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

Copy link

@NoahMaceriNoahMaceriApr 2, 2023

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]) 

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thank you!

@zariiii9003
Copy link
Collaborator

@BroderickJack can you fix the failing test?

BroderickJackand others added 6 commits October 17, 2023 15:27
 More efficient check of arbitration ID Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com>
 Type fix in slcan test Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com>
@zariiii9003zariiii9003force-pushed the feature/candapter_extended_id branch from 8f424ce to 90ab7fcCompareOctober 17, 2023 13:34
@zariiii9003zariiii9003 merged commit 0de8ca8 into hardbyte:mainJun 22, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CANdapter Support for Extended Arbitration ID's (slcan ASCII Protocol)

3 participants

@BroderickJack@zariiii9003@NoahMaceri