-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Add esp32 support with CRC handling #82
Conversation
the overloaded methods
… the "preferences" library.
Well fascinating. Good 2 see. Possibly also USE_INSTRUCTION_RAM I hope to look at the code in more detail later, as the SDI12 is core to an interface to the LT500 I use, and I'm under a time crunch to look at it now. |
@peterj43 , thanks for the posting it. |
Happy to make the suggested changes. |
the overloaded methods
… the "preferences" library.
@peterj43 thanks for the update. I've cloned your repo so have a copy and hope to test the CRC with the LT500 that I use at some point. I'm mostly a follower of the EnviroDIY::xx , and really appreciate they have open sourced this project. |
@neilh10 SDI-12 isn't the connection technology of choice for our sensors but it had been suggested the we off the option. Most of our installations use SigFox. We looked to use the ESP32 as it seemed to tick a lot of boxes for us, as we have prior experience of the part and we could have a variety of connection options. Though we currently have no application where the CRC is being used I felt it was possible that a customer may request it being supported. Obviously I have done some testing, using examples from the SDI-12 Spec, but I have not tested it against a commercially available logger. I suppose I should look to a the capability to the logger example but that's not really a priority for me at present. |
https://github.com/peterj43/Arduino-SDI-12 into Add-ESP32-Support # Conflicts: # src/SDI12.cpp # src/SDI12.h # src/SDI12_boards.cpp # src/SDI12_boards.h
@peterj43 ahh interesting, if I understand you then your are looking at the ESP32 as the test "host" to verify your sensor has implemented the SDI-12 responses. |
ESP8266 this is now the same as the ESP32
The changes here resolve a problem encountered when using the "preferences" library. When updating the setting stored in the Preferences I was encountering a Core panic as follows:-
"esp32 Guru Meditation Error: Core 1 panic'ed (Cache disabled but cached memory region accessed)"
This occurred when acknowledging the SDI-12 command.
Note: CRC handling is also included.