Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

rahuldhole/LoRa-P2P-Radio-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tip: Use Python version 3.7+ to have the support of nanosecond time readings. Following things to remember while the configuration of LoRa.

• Always use "mac pause" before every radio trans-receiving radio command

• Select regional frequency (Example Europe 869100000 Hz)

• Watchdog time should be zero for continuous receiving mode

• A unique HWEUI of LoRa with a unique packet number is transmitted to all the reference nodes

• Regional duty cycle restrictions must be followed.

Sending:

  1. msg = "{{pn"+temp_packet_number+"hweui@"+str(hweui)+"@ts@"+str(time.time_ns())+"}}"
  2. sp.write("mac pause\x0d\x0a".encode())
  3. msg = msg.encode().hex()
  4. sp.write(("radio tx "+str(msg)+"\x0d\x0a").encode())

Receiving:

  1. sp.write("mac pause\x0d\x0a".encode())
  2. sp.write("radio rx 0\x0d\x0a".encode())
  3. m = sp.read_all().decode("utf-8")
  4. rda = rda+m
  5. if "7D7D" in rda:
  6.  msg2 = bytes.fromhex(rda]).decode('utf-8')+time.time_ns()  
    
  7. data = {'api_key':API_KEY, 'technique':ToA, 'api_payload':msg2}
  8. r = requests.post(url = API_ENDPOINT, data = data)
  9. pastebin_url = r.text

About

with LoRa RN2483 device

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages