Skip to content

Lib hangs for SDI-12-Slave on ATmega328p #153

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

Open
joembedded opened this issue Apr 17, 2025 · 0 comments
Open

Lib hangs for SDI-12-Slave on ATmega328p #153

joembedded opened this issue Apr 17, 2025 · 0 comments

Comments

@joembedded
Copy link

Hi there,

I’m working with SDI-12 both professionally and for personal projects. For business use, I’ve developed a bare-metal solution, but at home, I’m exploring more minimalistic sensor setups.

While testing with a PC-based SDI-12 terminal ( SDI12Term ), I’ve noticed that the software occasionally hangs. The loop() function still runs (I added a Serial.print('*') every second to verify), but it stops responding to any commands. I’m not deeply experienced with Arduino internals, but it feels like the interrupts might be getting stuck?

For reference, I put the boilerplate here: SDI_12_slave project ( SDI-Slave-Boiler ),
slightly modified to your Example 'h':

  • store the slave address in non-volatile memory.
  • added CRC handling for MC-commands.
    These modifications work well, and feel free to incorporate them if helpful.

Hardware info:
Microcontroller: ATmega328p / Pin 7
No other peripherals in use.
Signal integrity looks fine on my scope.

Any ideas what might cause the terminal to become unresponsive? I’d really appreciate your insights.

Best regards,
Jo

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

1 participant