-
Notifications
You must be signed in to change notification settings - Fork 16.6k
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
Copter: CANFD data stream hangs up after couple of minutes. #26704
Comments
How are you determining that it hangs? Just that the received count stops increasing? Does it always stop after the same count? It would be useful if you could also upload the script. |
I ran luacheck on your script, it finds a few issues:
It would be useful to double check the script is still running. Can you enable disarmed logging and set |
Update: If I use CANFD at 1Mbps. I am getting continuous stream. The issue comes at 5Mbps. |
Hi @ketanatzebu, I'm not too familiar with this area of the code but I guess you tried modifying the CAN_P1_FDBITRATE parameters and it didn't help? |
.. anyway, I guess this is resolved so I'm going to go ahead and close this issue if that's OK. I've ping'd other developers to get their input on whether we should support 5Mbps or not. |
Yes, I configured my sensor for 1Mbps and changed the param CAN_P1_FDBITRATE to 1M. |
Hi @ketanatzebu , How did you configure the mmwave sensor and what lua scirpt you have added could you please inform? Thanks |
Bug report
Issue details
I have a proximity sensor giving out measurements via CANFD. I tried using lua script to read and process the frame but the sensor hangs up after few minutes. I have confirmed that it’s not an issue with the sensor using the CANFD analyzer on which I get uninterrupted continuous readings.
Nom Bit Rate: 1 000 000
Data Bit Rate: 5 000 000
Sensor: Ti mmwave AWR6843AOP
Version
Copter 4.5
Platform
[ ] All
[ ] AntennaTracker
[X] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Hardware type
Cube Orange Plus
Logs
------- Clock Config -------
CAN_CLK_FREQ: 80MHz
Std Timings: bitrate=1000000 presc=8
sjw=1 bs1=8 bs2=1 sample_point=90.00000%
FD Timings: bitrate=5000000 presc=1
sjw=4 bs1=11 bs2=4 sample_point=75.00000%
------- CAN Interface Stats -------
tx_requests: 0
tx_rejected: 0
tx_overflow: 0
tx_success: 0
tx_timedout: 0
tx_abort: 0
rx_received: 388
rx_overflow: 0
rx_errors: 0
num_busoff_err: 0
num_events: 388
ECR: FF00
fdf_rx: 388
fdf_tx_req: 0
fdf_tx: 0
The text was updated successfully, but these errors were encountered: