Skip to content
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

error when running DataDisplay2-esp32 #20

Open
MeY0u opened this issue Apr 5, 2024 · 4 comments
Open

error when running DataDisplay2-esp32 #20

MeY0u opened this issue Apr 5, 2024 · 4 comments

Comments

@MeY0u
Copy link

MeY0u commented Apr 5, 2024

hello,
i am testing the libraries with my environment(ESP32-S3-MINI, ArduinoIDE),
i installed 2 libraries: NMEA2000_esp32 and NMEA2000.
after towards i ran code verify with simple gpio adjusments and i receive the following error:

c:\Users\WoWpr\OneDrive\Documents\Arduino\libraries\NMEA2000_esp32\NMEA2000_esp32.cpp:123:23: error: 'PERIPH_CAN_MODULE' was not declared in this scope
   periph_module_reset(PERIPH_CAN_MODULE);

i didnt find any mention of "PERIPH_CAN_MODULE" in the libraries, could you pleases navigate me towards its source?
later on i found that most of the functions in init function probable point to "driver/periph_ctrl" which i couldnt find.

@ttlappalainen
Copy link
Owner

NMEA2000_esp32 driver does not wotk with -S models. You can try https://github.com/jiauka/NMEA2000_esp32xx/tree/main, but I have not yet fully tested it.

@MeY0u
Copy link
Author

MeY0u commented Apr 6, 2024 via email

@MeY0u
Copy link
Author

MeY0u commented Apr 6, 2024

NMEA2000_esp32 driver does not wotk with -S models. You can try https://github.com/jiauka/NMEA2000_esp32xx/tree/main, but I have not yet fully tested it.

okay, so i have tested the your suggestion it seems to work. using the link and Display2 example code.
i read successfully compass_directio, SOG, depth but the Temperature shows 16504 which is weird and cant be.
also the console also prints allot of "In Main Handler: " .
what does it mean?
also some examples doesnt work , only this seems to decode the incoming data.

@ttlappalainen
Copy link
Owner

Display2 is just one example for showing how you could read data. It is not meant for anything finally usable. Other examples are showing different use of library and they does not decode data at all.

Temperature printing 16504 is caused by invalid handling of extented temperature range "not available" value. It should show "not available". I'll fix that some day.

Just read the code - "In Main Handler: " is printed on the HandleNMEA2000Msg, when it gets any message. So it prints that first for every message and then if message is known by sample, it prints also parsed data. Bus contains a lot of messages this example does not handle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants