Need help extracting speed data with an esp32 #559
Replies: 2 comments
-
Hi there, i'm not completely sure so this may be wrong. I'll have to do the same probably soon anyway so we might as well try it. As i was building on the AgIsoStack (with IDF) and following the tutorials, I took note of the following:
As i understand it, this is a way to link a callback to the PGN message you want to receive. When received, it will trigger the callback and you will then only have to process its data inside the callback ... If this message is not broadcasted you might have to request for it. |
Beta Was this translation helpful? Give feedback.
-
Hi there, Bytes1, 2: theorical speed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to write an app that does nothing more than extract actual ground speed from the isobus. I'm developing a one-off controller for an air seeder that will be used in conjunction with another implement.
If my understanding of this is correct I need to First initialize a can driver, I want to use the ESP32s built in twai driver.
Then I need to register on the network by providing a name, and then I need to send a PGN request for the PGN I want to extract speed data from and possibly a response frequency.
What I'm confused about is where exactly do I send that request? Do I simply broadcast it and wait for a reply? I don't want to be constantly flooding the bus with requests for Speed, but I would like it updated fairly often.
My plan is to use the Arduino framework, but I can use ESP IDF if necessary. I will admit that I'm finding this Library a touch overwhelming, and I've possibly bitten off more than I can chew.
I did manage to get one of the virtual terminal examples to compile. It seemed to be receiving data on the bus but I'm not sure how to pick out what I need in that example.
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions