You're right, didn't get through, but there is no moderation. Checked your junk folder for an error message? Possibly Mark can see something in the logs.(I'm reposting because I had the impression that my message didn't get through. If it appears as a duplicate, please forgive me - and delete the double post if necessary. Still learning how to handle this delay between post and list visibility (moderation ?))
Metrics are properly generated (from DBC), and properly displayed on the dashboard. However, the combination of the "intense" bus traffic, + number of generated metrics seems to be, in some way, overflowing the capacity of the WebSocketHandler, which results in a reboot from time to time:
W (5111095) websocket: WebSocketHandler[0x3f8d1654]: job queue overflow resolved, 14 drops
W (5111095) websocket: WebSocketHandler[0x3f8d1654]: job queue overflow detected
I (5111105) metrics: Modified metric v.g.current: 0A
I (5111105) metrics: Modified metric v.m.rpm: 763
I (5111115) metrics: Modified metric v.i.temp: 34.1°C
W (5111115) websocket: WebSocketHandler[0x3f8d1654]: job queue overflow detected
W (5111125) websocket: WebSocketHandler[0x3f8d1654]: job queue overflow detected
E (5111845) task_wdt: Tasks currently running:
E (5111845) task_wdt: CPU 0: wifi
E (5111845) task_wdt: CPU 1: OVMS Console
Please note that the Lab setup has:
- OVMS connected to the Lab network
- The computer (displaying the dashboard) also connected to the Lab network
(While, in the car, the computer / tablet would be directly connected to OVMS' wifi)
No.That's it for the context, now a few questions:
- As I don't know about the capabilities of the OVMS for CAN bus traffic analysis, does it looks like the number / frequency of messages I'm injecting is unreasonable ?
Metrics updates are initiated by the web client update ticket every 250 ms. You can experiment with changing the interval or make that a configuration if you like, but I had bad results with higher frequencies by producing too much load on the smartphones tested, and lower frequencies are bad for a smooth UI experience.
- It seems like there is a buffering / consolidation of the metrics before sending them to the web socket ; is this tweakable in some way ?
Don't know, haven't used the DBC processor for real data.
- Does the DBC processor add a significant processing time (compared to a dedicated vehicle module) when processing CAN data ?
Use the task monitoring (module tasks) to check the CPU load of your processes.
- What would be the best way to diagnose / confirm the health of the processes involved here ?
- any similar use case / feedback from you ?
Thanks for any feedback.
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26