I am nero, responsible for cellular part of RUI. Recently, we have received many issues about RAK5010 after version 3.0. So there is a need to help our friends to simply config the boards, and then focus to their own application. OK, here we go!
1.When you get your board, how to config it?
RAK8212 just support BLE.
RAK5010 support three ways: BLE,USB,UART.
BLE: For saving power, ble will advertise in 60s after power on. So if want to config via ble, connect it in 60s.
UART: This way is better than ble. Below shows how to connect it.
USB: The best way. But remember, your com serial tool must support flow control: DTR.
2.What command to send?
We supply with rak AT command, look at :
3.How to join your net quickly?
BG96 on 5010 or 8212 support 2G GSM/ 4G NB/ 4G CAT M1. So it highly depends on your operator. The order of at is like below:
search net. It will tell you what operator info about your sim card. For exampe, if return like below, it means you can use net service of Ooredoo or vodafone, decided your sim card. These infomation is very important. You must use long name, short name of operator later:
Then try to register to net, here use the long name Ooredoo.
active apn, it is important
query register successfully or not
query quality of net, if return A(between 0 and 31), 99, join ok!
It’s just a 2G example. If want to use 4G NB, you should change to 4G search as below. Then try to register to your net like 2G:
4.How to send data to server?
After step 3, it has join net successful. If you have a server, you can creat a TCP or UDP server and fill in your IP address and port in at command as follow:
[12:42:35.911]IN←◆AT+QISEND=0,8 （here return length longer than send command because of \r\n ,ignore it）
If you are here, congratulations! You have finish your first link on RAK5010/8212. In order to help user easily test their board. We supply some test server, please contact @Fomi if need. We will update V18.104.22.168 later which fix some bug about TCP command with BG96, Please note.
1.USB could be used for power on 5010, but the voltage of USB should be stable. Otherwise, it will lead to restart again and again. If use USB, do not connect non-rechargeable battery. It is dangerous.
2.If want to learn more details, connect to jlink and watch RTT.
3.We supply a task which can send sensors data to server periodly, config as below:
enable task and period is 150s
set IP address, port, operator long name, short name,APN name, net service type, 0 means GSM
restart and effect
Please notice, this task is based on 2G GSM, and the information must be set correctly. Otherwise no effect. Besides, if device is in sleep, you can use USB(just usb is on) to turn off it via: