@takka Hi,Which arduino board you used? We have written a test program: 0_1499065917806_testUart.ino .The workflow of this program is as follows:When Power on, our Wisnode-Lora will return the string of "Welcome to RAK811" to your arduino board,then arduino board recive this string and show it on PC Uart Assitant by Uart 2 .You can download in your arduino board.
I have the same problem over here.
I've mounted the Wisnode Lora on top of an Arduino UNO.
Because my Wisnode was not delivered with the 'Shift board', I've made a voltage divider for the UNO-TX to bring it's output down to 3.3V (TX->10Kohm->RX wisnode, 20Kohm to Earth)
When I run the testprograms, I let my logic-analyzer look along at the signals, while also looking at the UART-tool directly on the COM of the Wisnode, and I look at the Arduino Serial Monitor.
When I reset the wisnode, I see the 'Welcome to RAK811' in the arduino serial monitor and the UART monitor. The arduino receives the serial information just fine.
When I send a command through the UART tool, I see the 'OK' confirmation in the serial monitor, so that's also fine.
But whatever I try to send, from the arduino, is completely ignored by the Wisnode.
I see on the logic analyzer that the data is sent to the RX pin on the Wisnode, I've confirmed that it is in the correct baudrate etc.
If necessary I can provide pictures /sourcecode of how I set things up as well..
I've been playing for hours now, but I am completely stuck on this, please help!
Forgot to mention, but as you can see, i've also bent the reset pin to rule that problem out.
I have exactly the same issue. The test program 0_1499065917806_testUart.ino responds properly. When I try to use the LoRaP2PPingPongTest I see the commands sent but never get back a response. I have the shift boards installed, they sent them to me after I ordered. I have bent the reset pin out of the way.
I have run the 1499065986265-testuart program. After I sent a string in the arduino serial monitor ('at+join=otaa', of which i know the answer should be: 'at+recv=6,0,0') I got 'at+version' back.
Looking at the source this makes sense: the string you put in the serial monitor is sent to the SoftwareSerial (10/11), but then the program tells to print 'at+version' to the hardware serial port. Any answer from the Wisnode is not displayed on the Serial Monitor in this way, but the commands you give should arrive at the Wisnode.
I don't know what the purpose of the program was? Send at+version to the SoftwareSerial?
The original is found here:
If you run this code (change the pins and baud rate to your own setup), Serial Monitor strings are sent, and replies are received from the Wisnode (again, if it would answer).
It took some hours, mainly because I am kind of new with a lot of this
I connected the arduino (with voltage divider!) direct to TXD and RXD on the wisnode. After some probing, i found that commands are passed from the wisnode USB to these ports, so communication should work.
Still no answer.
The main problem was this: Arduino Serial.write does not write a carriage return.
When the wisnode does not receive a carriage return, it does not execute the command.
add this line on top of the SoftwareSerialExample i linked in my previous post:
change the bottom few lines so it is as follows:
If i bodged this together correctly (i haven't tested it extensively ) it should check for the end of the text, and replace it with \r\n, also it adds a local echo of your command.
It will start with Error -1 because 'carriageCheck' is still empty, but after that no problems.
@laef Hi lafe，Why do you connect the wires like this? you're using our latest version of the development board，You only need to move the top of the jump cap below to achieve the Serial level 3.3V to 5V；Please remove components C14 and C13；
Thanx for that info, I already suspected I had another revision, but could not find out what the exact differences are.
Are these changes documented somewhere?
Now that i have achieved communication between the arduino and wisnode, i run into a different problem:
when i send at+join=otaa through USB, i see the TX and RX leds (LED2/LED3) show activity.
when i send at+join=otaa through arduino, i see no activity of TX/RX leds, although the answer of the module is exactly the same (OK and after a few seconds at+recv=6,0,0. I have no coverage so that's expected)
First i will try the above changes and use the module with 5V, that rules out that the voltage divider is in some way interfering..
Join command from arduino.
* No LED2, LED3 activity.
* not able to join networks, even when i should be in range. Join command from onboard USB/CH340G
* LED2, LED3 both show activity
* not tested yet if i am able to join networks this way, did not have it on the road yet with usb->serial console. In both cases, response is the same:
Why is the behaviour of LEDs different? Why can I send commands, receive 'OK' but not able to communicate with LoraWAN when i'm using arduino serial port?
Never mind. I see in the schematic that LED2 and LED3 are the CH340G TX/RX leds.