The compiler will tell you that. Unless you are referring to the actual message...
My mistake, I guess I should have re-read my post. By syntax I meant the structure
of the extended message. When using standard CAN messaging, which I have confirmed works, my message looks like this:
message.adrsValue = 0x7DF;
message.isExtendedAdrs = false;
message.rtr = false;
message.dataLength = 8;
message.data = 0x02;
message.data = 0x01;
message.data = pid;
for(int i = 3; i <= 7; i++)
message.data[i] = 0x00;
After sending this message I successfully get a reply.
So, what happens?
The sequence of my program is as follows when the joystick is pressed:
1. Prepare CAN message
2. Transmit CAN message
3. Read the data on the CAN bus
When I press the joystick, the only thing that is read is the current data on the bus. I do not see a response for the message I have sent. In retrospect, with the same application, if I send a non-extended message, I immediately see a response from the pid I requested.
Help you with what? If you just want out, that can be arranged.
If you define what problem you are having, and what help you need, we'll quit snickering, and maybe even help.
The main goal here is I am trying to understand exactly how to send and receive extended CAN messages. I wasn't exactly sure if A. the structure shown above was correct, and B. if the supporting library was actually setting up the extended message properly. I spoke to the developer of the library and unfortunately he hasn't had any experience with extended CAN which has me wondering if the library itself is properly coded.
Even telling us about something obvious to you, such as what kind of car you have would be some help.
The car is a 2010 Mazda RX8. The project I am working on is being able to read data from the HSCAN and displaying the data on the LCD screen found in the car via the MSCAN. All of this is done through the OBD2 port. I have successfully obtained data, and printed data, and now I am trying to take it one step further and display data that is unique to the vehicle via extended messages.
Thanks for the reply and I hope this helps.