pySX127x icon indicating copy to clipboard operation
pySX127x copied to clipboard

Tried to send data from RPi to Arduino but Arduino did not receive data

Open paulcastor30 opened this issue 3 years ago • 19 comments

Hello, i am trying to perform the client and the server side of which arduino is the client and RPi is the server based on the rpsreal/LoRa_Ra-02_Arduino given examples. However, when RPi send data to Arduino, Arduino does not receive data from the RPi. I have changed nothing from the code. I use sx1278 Ra-02 module.

paulcastor30 avatar Apr 05 '21 17:04 paulcastor30

Are you using the rpsreal fork of this library? If yes, then you probably should ask rpsreal, because I don’t really know what this is, exactly. If no, you should probably try the rpsreal fork first.

mayeranalytics avatar Apr 06 '21 08:04 mayeranalytics

Thank you very much for your response. I used the pySX127x library and the rx_cont.py example for my RPi with sx1278 Ra-02 module and successfully received data from my arduino with sx1278 Ra-02 module. However, when i try the other way around and use the tx_beacon.py to send data to my arduino, i cannot see any received data in my arduino.

I already tried rps fork of this library but i cannot get it to work.

paulcastor30 avatar Apr 06 '21 11:04 paulcastor30

I am also having the same issue as @paulcastor30 Someone, please help with this.

atonughosh avatar Apr 14 '21 14:04 atonughosh

I am also having the same issue as @paulcastor30

I use SX1276 module.

I need help. Because i've been searching for many days I want to cry.

thanapol199717 avatar Apr 18 '21 14:04 thanapol199717

@thanapol199717 @atonughosh did you succeeded in making the library work for the RPi to send data and for arduino to receive the data?

paulcastor30 avatar Apr 24 '21 05:04 paulcastor30

Now I can send data to the arduino using Raspi, I use this one. https://github.com/raspberrypi-tw/lora-sx1276/blob/master/02-p2p/p2p_send.py >> For Raspi https://github.com/sandeepmistry/arduino-LoRa/blob/master/examples/LoRaReceiver/LoRaReceiver.ino >> For Arduino

Right now, I still can't get it back and forth.

thanapol199717 avatar Apr 24 '21 06:04 thanapol199717

@thanapol199717 thank you very much for your reply.

I can now send data from RPi to Arduino and vice versa. This are the libraries I used to make it work. http://www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.116.zip >> for Arduino https://github.com/adafruit/Adafruit_CircuitPython_RFM9x >> for RPi

You can give it a try and experiment with the examples given there to suit your needs. It works with the RFM95/6/7/8 LoRa 433/915mhz radio modules.

paulcastor30 avatar Apr 24 '21 13:04 paulcastor30

@paulcastor30 thank you very much Can you tell me which code you use, because RFM95 is not used? I want it to communicate with each other to control some devices.

thanapol199717 avatar Apr 24 '21 14:04 thanapol199717

@thanapol199717 may i know what specific module did you use on your arduino and RPi?

I already got my sx1278 module working for both my Arduino and RPi to send data vice versa continously.

paulcastor30 avatar Apr 24 '21 15:04 paulcastor30

@thanapol199717 I used the following:

https://github.com/adafruit/Adafruit_CircuitPython_RFM9x/blob/master/examples/rfm9x_rpi_simpletest.py >> RPi server. Send data to arduino with sx1278 module and wait for a response from arduino at a certain time interval. RadioHead\examples\rf95\rf95_server.pde >> Arduino with sx1278. Receive a data from RPi and send a datain return as a response.

paulcastor30 avatar Apr 24 '21 15:04 paulcastor30

@paulcastor30 I am using the SX1276 module, I want Raspi and Arduino to send data vice versa.

I still can't find a way, can you tell me? I don't know if the example you provided is with my SX1276 module, because I am using the Lora.h library at Arduino.

thanapol199717 avatar Apr 24 '21 15:04 thanapol199717

@thanapol199717 do you have any means online so i can contact you? i am willing to help you.

paulcastor30 avatar Apr 24 '21 15:04 paulcastor30

@paulcastor30 I have an email [email protected]. And this is my facebook Thanapol pornanake. Or do you have other channels? So I can apply to contact you. Thank you very much Paulcastor30

thanapol199717 avatar Apr 24 '21 15:04 thanapol199717

Okay sure, i am gonna send an email to help you. thanks.

paulcastor30 avatar Apr 24 '21 15:04 paulcastor30

Thank you very much

thanapol199717 avatar Apr 24 '21 15:04 thanapol199717

@paulcastor30 are you open to drop me a mail as well? I can send data from:

  • PI to to PI
  • Arduino to PI.

But not from Pi to Arduino with callbacks.

[email protected] Thank you very much.

Syrex-o avatar Jun 29 '21 06:06 Syrex-o

Hi,

I was wonder where can I find the solution to send data from Arduino to RaspberryPi? I need help with my project.

Thank you in advance!

chuanisawesome avatar May 07 '22 00:05 chuanisawesome

Arduino to Pi should work, according to the comments here. If you tell us what hardware & library you are using then maybe someone can help.

mayeranalytics avatar May 09 '22 12:05 mayeranalytics

@paulcastor30 can you drop me a mail about your setup? I've tried to send data from RPi to ESP32 without receive any data

Thank you for your support

[email protected]

Beerocket7 avatar Aug 29 '23 09:08 Beerocket7

Quick update, resolve by using the library Adafruit_CircuitPython_RFM9x Rock you guys

Beerocket7 avatar Aug 29 '23 19:08 Beerocket7