Hi guys!
Im new with arduino, but i want to build a p2p connection with 2 Arduino MKR WAN 1300.
Im using LoRa sender and LoRa receiver examples from sandeepmistry's LoRa library, with I2C sensor data, and LCD display. (But these problems are the same with the untouched example codes.)
The Received data is full of errors.
The connection is very unstable, and hard to buildup. It need a couple of reset to get data from the sender, but when im able to receive, after 2-3 packet it dies and spam my serial monitor with random characters and freezes my arduino.
As you can see tha Baud rate in each program is 9600. I tried with 115200 too, but there is no difference at the view of the error.
And yes the GND is shared. But when im not connect anything to the Arduino, the problem is the same. I can't even send a hello world text without error.
Oh yes, i forget to write there in my post, but they are there now.
I think we should ignore my code.
Here is a completely basic code that should work but not work. Could the Arduino be faulty? Because I can't think of anything else.
I am probably calling "code box" the wrong thing, but copy/pasting using the "</>" button to display formatted code... it (monotype) is easier for me to read than sans.
You have your baud rates set the same, but the "؟" is still present, replacing non-printable ASCII characters being "received/displayed" which tells me data bits are not being received and/or transmitted correctly. Can you use your project in IIC/I2C wired mode as a test (to verify the tx/rx is the problem, and not the antennae )? Because... if all grounds and Vcc are good, and antannae (per the video) and their connections are also in good condition, then my next guess would be your room has a lot of microwaves bouncing around (is your transmit antenna too powerful? too close?), like in a reflective Faraday cell (copper mesh). Are you near a communications room? Computer server room? A microwave oven in-use? I could always tell when someone was using a microwave oven, because the back of my computer monitor faced the break room, my network connection was jammed and my monitor speaker clicked and beeped (same with blackberry tx/rx).
The presence of the ' ؟' is key. Bits are being misread.
Okay. The code probably is not the issue. My last guess is the antenna: either just the assembly or the connection on one of the boards. You might find using the board in other non-tx/rx projects is without error.
Okay, thank you. I will try using the Arduinos with I2C. If it works, i will order new Antennas.
I’m going to write on this topic after the tests, but I need a few days / weeks of rest for this so after the exams.
so i got the new arduinos. After updating the firmware, I put the trial programs on it and it also doesn't work, something else may be the problem. I hope that with the help of my consultant we will find out the cause of the problem and contact the official Italian distributor about it.