Ok, this will be a new series of blogs taking you and me from sending a CAN message between two Arduinos. First without interrupts on the receiver and then with. Then with the same hardware, I will send a proper formatted CANaerospace message. CAN and CANaerospace are almost the same.

They are both democratic networks which means that any node can transmit to other nodes, hence there is no master-slave relationship. While most of the demos show a master and a slave. The circuit below is a typical hook up for either CANbus or CANaerospace. But in its present configuration, it is a SLAVE-MASTER. Also since CANaerospace uses the ISO 7 layer module, you can create a socket.CAN ie you can put CANaerospace over TCP.

BYTE

CANbus

CANaerospace

0

canMsg.can_id = 0x36;

Node_ID = 324

1

canMsg.can_dlc = 8;

UCAR = SHORT

2

canMsg.Data[0] = h;

SVC_ID = 1 (OK)

3

canMsg.Data[1] = t;

MESS_ID starts at 1 and

increments thereafter

4

canMsg.Data[2] = 0x00;

DATA

5

canMsg.Data[3] = 0x00;

6

canMsg.Data[4] = 0x00;

7

canMsg.Data[5] = 0x00;

8

canMsg.Data[6] = 0x00;

Not Applical

canMsg.Data[7] = 0x00;

Since CANaerospace IDs are predefined where 324 is Static Air Temperature, I will only worry about temperature. I will only be using standard hardware.