Missing CAN BUS syntax
Posted: Sat Jul 24, 2021 5:49 pm
I already have an ELM327 interface, but I was considering doing an Annex OBD2 Scanner to regain enthusiasm for publishing another project.
Basically a scanner just needs to capture and output all CAN frames without needing to decipher them.
Rather than send captured CAN frames to display on computer like arduino's do, I would prefer sending to browser if Annex can do it fast enough.
So I was looking in the Online Help for a function which might expose all the CAN frame contents for pass-through as a single entry rather than having to individually extract ID, Flags, DLC, Bytes 0 to 7, then convert them all to string, plus add a received time field, then re-combine all fields back into a delimited single string suitable to use with WORD.SETPARAM
But I notice that all CAN Help syntax is missing, even though the CAN commands and functions are recognised by the Syntax Highlighting.
And just to point out that the 1.43 Doc side comments are showing at the bottom of the Online Help.
While mentioning CAN, I've noticed a CAN.SETUP quirk which always returns 0 (OK) even without the transceiver module connected...
CANtx=26: CANrx=5: CANspeed=500: CANmode=1
ret=CAN.SETUP(CANspeed, CANtx, CANrx, CANmode)
wlog str$(ret) 'always returned 0 (OK) even without the transceiver installed
if ret>0 then wlog "Error " + str$(ret): end
Basically a scanner just needs to capture and output all CAN frames without needing to decipher them.
Rather than send captured CAN frames to display on computer like arduino's do, I would prefer sending to browser if Annex can do it fast enough.
So I was looking in the Online Help for a function which might expose all the CAN frame contents for pass-through as a single entry rather than having to individually extract ID, Flags, DLC, Bytes 0 to 7, then convert them all to string, plus add a received time field, then re-combine all fields back into a delimited single string suitable to use with WORD.SETPARAM
But I notice that all CAN Help syntax is missing, even though the CAN commands and functions are recognised by the Syntax Highlighting.
And just to point out that the 1.43 Doc side comments are showing at the bottom of the Online Help.
While mentioning CAN, I've noticed a CAN.SETUP quirk which always returns 0 (OK) even without the transceiver module connected...
CANtx=26: CANrx=5: CANspeed=500: CANmode=1
ret=CAN.SETUP(CANspeed, CANtx, CANrx, CANmode)
wlog str$(ret) 'always returned 0 (OK) even without the transceiver installed
if ret>0 then wlog "Error " + str$(ret): end