Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

Can LoRa packets be received one at a time?

$
0
0

I am using below commands:

  1. receiver side, sudo /usr/sbin/lora_receive -a 904.3 -b 905.0 &
  2. sender side, sudo /usr/sbin/lora_send -f 903.9 -d {"do1":1}
  3. receiver side, get_lora_data

So, on receiver side it is receiving a packet & waiting for next packet. Is there any way to stop that? I want the receiver to receive a packet & end connection.

I have tried different ways. I have also tried using python script. I have used`def start_command():# Command as specifiedcmd = ["sudo", "/usr/sbin/lora_receive", "-a", "904.3", "-b", "905.0"]

# Start the subprocess without waiting for it to completeprocess = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)# Return the process handlereturn process`

It does not work.


Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>