Skip to content

is the --metershell blocking? #1421

Answered by weetmuts
naseef asked this question in Q&A
Nov 19, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Yes, it definitely blocks the receiver thread. However, the serial port should have buffer (https://forums.raspberrypi.com/viewtopic.php?t=222088) that should be enough for an occasional 10-20 seconds. However if you receive telegrams more often than that, then you have to have the shell push to some other queue systemet, otherwise the serial buffer will fill up.

There are only three threads. Read main.cc

  1. Main thread just waiting for everything to shut down.
  2. Serial select /dev/ttyUSB0,1,2,3 etc, detect activitity trigger handler that reads from serial port, then invokes decoding, then invokes shells or other output.
  3. Detector thread: detects changes in connected wmbus modules and check al…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@naseef
Comment options

@weetmuts
Comment options

Answer selected by naseef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants