I'm working on a CANopen Lite project for the F28379D and part of it is a simulation/emulation of the Lawicel CANUSB dongle. So far I have both the CANUSB functionality and I'm working on the Object Dictionary support routines. With the CANUSB monitor it's possible to send messages. Received messages come in and are identified by either a 'T' or 't' for Extended or Standard respectively. Unlike the Microchip CAN devices (and others) that allow masking to enable either or both sizes of IDs it appears the message objects in the F28379D can only receive on or the other. The problem I'm having is an extended message with a 29 bit ID is showing up in the standard ID message object. Not sure why.
CANUSB emulation enabled
>t123145 --> proper standard ID with ID=0x123 with 1 byte 0x45.
t23429988 --> improper extended ID which should be 0x12345678 with 2 data bytes 0x99 0x88
It's likely my code or how I've set things up or maybe bit masking. However before I dig in further is there a way to get one message object to be filled with either size ID?
Thanks
John
?
TMS320F28379D Lawicel CANUSB Emulator
C)lose CAN Port
c)anUSB emulation toggle
e)cho user input toggle
F)lags status
N) Serial Number
O)pen CAN Port
S)et CAN Bitrate 0..8
t)ransmit 11 bit message tiiilnnnn...
T)ransmit 29 bit message teeeeeeeelnnnn...
V)ersion
? -- This help screen
>c
CANUSB emulation disabled
>?
TMS320F28379D Interface Program 1.00a
C)lose CAN Port
c)anUSB emulation toggle
e)cho user input toggle
F)lags CANopenLite status
h)eartbeat CANopenLite enable toggle
O)pen CAN Port
S)et CAN Bitrate 0..8
V)ersion
? -- This help screen
>