Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
packet radio communication
#1
I have two Raspberry Pi 3's, each with a packet radio attached. Each radio can send and receive data packets, but the data limit is 60 bytes. I have about 10 different messages (commands) that the 'sending' radio will send the 'receiving' radio. Sometimes, I need to send more than 60 bytes of data at once, meaning that I may need to split up the message into individual packets, then put those packets back together in the correct order at the receiving radio. The receiving radio needs to be able to verify that all of the packets in a message are received, then put them back together in the correct order. If one of the packets in the message is missing, the receiving radio can discard all of the other packets in that message. Please forgive me, but I'm a relatively new programmer who is self taught. I'm fairly new to python and embedded linux systems, but I think the best solution is to use the first 3 bytes of the 60 bytes available as 'logic' bytes so that the receiving radio knows what to do. My first byte could contain the 'command'. the second byte could contain the total number of packets in the message, and the third could contain the packet number. I hope this makes sense and hope that I can get some help in programming this the most efficient way. I don't know what that looks like in python. Please help! Thanks.
Reply
#2
I'm not very experienced with networking or embedded systems, but that sounds fine to me.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Looping over radio buttons garynewport 8 2,174 Jan-10-2023, 10:56 AM
Last Post: garynewport
  Packet Sniffer - TypeError: a bytes-like object is required, not 'str' cheffa2020 4 5,225 Jun-12-2020, 02:10 PM
Last Post: cheffa2020
  WiFi communication Milad 2 2,418 Sep-07-2019, 11:53 AM
Last Post: ndc85430
  Serial communication with raspberry pi 3B and Xbee kj7 0 2,147 Mar-25-2019, 03:39 AM
Last Post: kj7
  Serial Communication Error AlphyOuseph 1 3,494 Feb-07-2019, 07:16 AM
Last Post: DeaD_EyE
  pi3 serial communication tony1812 0 2,129 Sep-23-2018, 10:29 PM
Last Post: tony1812
  python-osc communication fauveboy 10 10,094 Jul-23-2018, 07:49 PM
Last Post: buran
  Internet radio script ahim 3 3,348 Jul-14-2018, 06:13 PM
Last Post: ahim
  Serial communication with a board Bokka 2 5,309 Dec-07-2017, 07:34 AM
Last Post: Bokka
  code pattern for process communication Skaperen 12 8,376 Oct-08-2017, 03:14 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020