Here2 CAN Mode Instruction
Here2 Default factory setting is CAN mode with UAVCAN Protocol. Default Here2 CAN mode has three devices on CAN bus: GPS, magnetic compass, and barometer. The safety switch is not workable under CAN mode and the barometer is disabled in CAN mode by default. The barometer can be enabled by UAVCAN parameters setting.
How to use CAN mode:
Using Ardupilot Firmware:
Current oﬃcial Ardupilot ﬁrmware (Copter3.6.7, Plane3.9.6 as well as previous versions) does not support Dynamic Node Allocator, hence user needs to allocate node ID to Here2 manually. The later released Copter3.7 ﬁrmware will support Dynamic Node Allocator, user only needs to set the parameters of their ﬂight controller to use CAN mode.
Allocating node ID method：
For allocating node ID to Here2, user needs to use Cube as SLCAN (Serial port to CAN) device, and use the latest version of Mission Planner. At ﬁrst, upgrade the MissionPlanner to 1.3.63 version, please go to the link: http://ﬁrmware.ardupilot.org/Tools/MissionPlanner/ for downloading. Meanwhile the Cube which would be the SLCAN connector needs to be uploaded with copter3.7
Connect the 4p CAN cable in Here2 with the CAN2 port in the Cube controller. Connect the cube to MissionPlanner 1.3.63version and select firmware upload,
click on ‘upload Beta firmware’ to upload arducopter firmware.
If version 3.7 or later is not available, you will need to load “master” Please search the ardupilot wiki on how to do this.
After uploading successfully, click on ‘Connect’. Press Ctrl+L keys to enter into UAVCAN interface.
Click on ‘SLCan Mode CAN1’, then the information of Here2 device will show up. Click on ‘Parameters’ on the right side.
Pop up the parameters setting interface shown as the screenshot below, set the value of uavcan.node_id between 0 and 125. Click on ‘Writing parameters’, then click on ‘Commit Params’ to save the setting. With the above mentioned steps, manual Node allocation is completed. If the user would like to enable the barometer, it can be done by setting the value of BARO_ENABLE as 1.
After modifying the Node ID, the ﬁrmware can be changed into stable version.
Boot Cube controller and connect with MissionPlanner, enter into the MissionPlanner to change the parameters with corresponding values as follows:
Writing the modified parameters, reboot the cube therefore the CAN mode can work properly.
CANBUS external compass will show up as the third compass with current Ardupilot ﬁrmware. Future ﬁrmware update will allow CANBUS external compass to be primary. Safety switch on the Here2 will not work under CAN mode. Modify the parameter BRD_SAFETYENABLE to 0 to disable the safety switch, or connect an external safety switch to GPS1 port.
Note: The later released Copter3.7 ﬁrmware will support Dynamic Node Allocator. To use the CAN mode user only needs to modify the parameters.
Using PX4 ﬁrmware:
Connect with CAN1 or CAN2 port. Connect with the controller to set the UAVCAN_ENABLE parameter as Sensors Automatic Conﬁg. The sensors should work properly.
How to use I2C mode:
Here2 also supports the traditional serial port + I2C communication. To use this mode, please disassemble the Here2 housing, Put the lever switch for CAN and Serial+I2C to Serial+I2C position shown as below.
Note… of all carrier boards made before July 2019, CAN 1 and 2 are mixed
You can tell the difference, because “NEW” carrier boards have the word “CubePilot,org” on the side, we apologise for this long standing issue. It is now Fixed and CAN1 = CAN1 on all boards with the new marking.