-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the BAT compliant with the FW update #445
Make the BAT compliant with the FW update #445
Comments
Here the working branches of this feature: Basically we have done the following updates to EMS and BAT code:
In this manner we can start the BAT board as silent and we enable the transmission iff the YRI is up and running, so that we do not flood the CAN bus with messages while the ETH boards are in CAN GATEWAY MODE, while doing the Discovery in the FIrmwareUpdater With only the BAT attached we can see that the updates work, as a matter of fact, here the result of a discovery operation: |
Hi @MSECode ,
Is this correct? In this setup, that is equal to the situation on the robot, the firmware updater and yarprobotinterface work as expected, do they? |
So the setup, or to be precise the portion of the setup I've used, which is the only one connected via ethernet, is composed by the following boards:
As you can see from the image below, the boards are the ones described Then, as highlighted by the FirmwareUpdater window, all boards are correctly found The tests I've done to check that our code is working as expected are the following:
All works as expected and the CAN boards are always found. |
Create pr for robots config with bat address 2. |
In addition, while we were developing this feature, we noticed that the embObjBattery sends an empty CAN-monitor configuration. This creates an unexpected behavior: the CAN-monitor checks the presence of the battery boards with a period lower than the battery board transmission period.
We decided to address this sub-task in a new issue with the check of the empty CAN monitor configuration. Just a more note about the need to set the address 2 to the bat board. Anyway, the Dod is satisfied. |
Recently we noticed that when the BAT is connected to the EMS, it is not possible to discover the 2foc boards connected to the same EMS board.
We already investigated on this issue and decided to fix it making the BAT silent when the FW updater is run. In other words, the BAT starts silently on the CAN channel, while continuing to update the screen.
The EMS will send the message
SET_TXMODE
ofanalog polling class
with payload 0 when the BAT service starts by YRI.On reception on this message, the BAT starts to send its info on CAN as its usual rate(100 ms)
When the YRI is shutting down, and all devices are closing, the EMS will send the same message but with payload 1.
On its reception, the BAT stops to send data.
NOTE: please check
TSD-ICUBUNIT-canprotocol-sensorboards.docx
for more details about the CAN messageDod
The text was updated successfully, but these errors were encountered: