Revision: 1.18
CrossFire IX – Freely Programmable - Data Logger Edition -
Programming Manual
2018-12-21
14
The CAN bus is run in 250 kbit/s. Messages are sent in bursts over UDP to increase performance.
This might introduce a slight delay. In good conditions the module will handle full busload at 250
kbit/s over Wi-Fi but there is no guarantee to be able to handle that in all situations.
If you would like to send data to the CrossFire IX Wi-Fi Tool, start the tool and click “Start
Monitoring”. If no data is received, make sure that you have supplied your PCs IP address when
building the ESP8266 firmware and that there is no firewall or missing administrative rights is
stopping the UDP traffic.
Data can also be sent in the other direction by entering CAN id and data and clicking the “Send”
button. Make sure that IP address and port is correct.
To perform a firmware upgrade over CAN, digital in 1 must be connected to VBAT at start up. This
will active 1000 kbit/s CAN bit rate and the unit will accept firmware upgrade instructions instead
of sending CAN data over Wi-Fi.
There are also some defines in the ESP8266 code that can be used to test TCP and TCPSERVER
mode.
UDP will send and receive data over UDP.
TCP will send and receive data over TCP. However, TCP needs another unit in TCPSERVER
mode to connect to. It can also connect to another TCP server, for instance "Packet Sender" or a
similar tool running on a PC.
TCPSERVER means that this unit will set up a TCPSERVER which a TCP client can connect to
(for instance another CrossFire IX). In this mode the unit will only calculate the number of
received messages.
The actual CAN gateway functionality is implemented in a single file: CANGateway.c. For
performance reasons, the USE_OUTPUTS and USE_PWMI defines are not set which means that
output I/O is not available.