background image

Documentation Center

Description: Set the work mode for BLE.

X - 0: BLE peripheral mode, 1: BLE central mode. 2: Beacon scan mode.
Y - 0: normal range, 1: BLE long range.

BLE Peripheral Mode

For the Peripheral Mode, you can scan RAK4600’s BLE and connect with it using your mobile device.

BLE Central Mode

For the Central Mode, RAK4600’s BLE will not broadcast so that your mobile devices will not be able to scan it.
This is very useful if you want to make the RAK4600 act as a BLE Gateway wherein BLE Sensor Nodes (up to 20
Devices) can send sensor data.

Beacon Scan Mode

For the Beacon Scan mode, RAK4600 can scan around the Beacon signal, it is useful for Beacon use case like
iBeacon.

RAK4600 BLE Default Settings

By default, the RAK4600 Evaluation Board will work on Peripheral Mode. In this mode users can configure it
through BLE including DFU easily. It should be noted that after resetting the RAK4600, the user has only 60
seconds to establish a connection with your Mobile Device through BLE based on its power consumption settings.
If no connection has been established within 60 seconds, the RAK4600's BLE signal will not be broadcasted and it
will enter power saving mode. On the other hand, there is no limitation once you are already connected with the
RAK4600's BLE.

If you set the RAK4600 to work in Central Mode, the RAK4600 will work first on Peripheral Mode for 30 seconds
and if no connection is established after 30 seconds, it will automatically work in Central Mode. In this mode,the
BLE signal of the RAK4600 will stop broadcasting and will not be visible on your mobile devices up until you
change the work mode to peripheral mode or reset the RAK4600 again.

Burning the Firmware

If you want to get a pre-compiled firmware instead of compiling the source code by yourself, you can find the latest
firmware on RAK website after it is released 

here

.

Flash the firmware using DAPLink and RAKDAP

Please refer to 

RAKDAP1 Flash and Debug Tool

Upgrading Firmware through DFU using BLE

1. Download the DFU package of the RAK4600 Evaluation Board 

here

 and save it on your mobile phone.

2. Make sure the Bluetooth on your mobile is turned on. Open the nRF Connect Mobile application and you will

see all BLE devices in range in the scan list:

at+set_config

=

ble:work_mode:X:Y 

 

sh

Содержание RAK4600

Страница 1: ...your device s firmware burned or upgraded please refer to the links below 1 Device Firmware Setup 2 Device Firmware Upgrading 3 Open Source Framework Development What s Included in the Package 1pc RAK...

Страница 2: ...USB cable Figure 2 RAK4600 Evaluation Board to Windows PC Connection Open the RAK Serial Port Tool Figure 3 RAK Serial Port Tool In order to choose the correct COM Port number for your device you nee...

Страница 3: ...the name USB SERIAL CH340 Take note of the COM Port Number NOTE If you didn t find any Port with the name USB Serial CH340 make sure you have installed the the CH340 Drivers on your Windows PC Choose...

Страница 4: ...pen the RAK Serial Port Tool 2 Press the reset button on the RAK4600 Evaluation Board then you will see the following contents in the Serial Port Tool Figure 6 Log Checking through UART NOTE You still...

Страница 5: ...rough Micro USB 1 As mentioned in Checking Device Logs if you want to use RAK4600 Evaluation Board through UART you should connect the RAK4600 to Windows PC as shown in the image below Figure 7 RAK460...

Страница 6: ...ommand for Firmware Version Through BLE 1 In order to configure the RAK4600 through BLE download and install nRF Connect for Mobile This tool is developed by Nordic Semiconductor and is available on t...

Страница 7: ...ion Center Figure 9 nRF Connect App in Android and IOS 2 Make sure the Bluetooth on your mobile is turned on Open the application and scan for BLE devices You will see all BLE devices in range in the...

Страница 8: ...Bluetooth Devices in the Nordic App 3 Press the reset button on the RAK4600 Evaluation Board and wait for a couple of seconds Look for a BLE Device named RUI in the scan list of the app Connect to th...

Страница 9: ...t the BLE signal of the RAK4600 is turned off automatically if no connection is established after 60 seconds Connect to RAK4600 over BLE immediately after pressing the reset button 4 Click on the arro...

Страница 10: ...ntation Center Figure 12 RX Characteristic in the Nordic UART Service 5 You can now send AT commands to the RAK4600 For example if you want to check the current firmware s version send the following c...

Страница 11: ...Documentation Center Figure 13 Sending AT Command via Nordic App 6 Check the AT command response on Nordic UART Service Tx Characteristic...

Страница 12: ...AK4600 on Arduino IDE you need to flash a new bootloader using RAKDAP1 Tool and pyOCD 1 Install pyOCD Please refer to RAKDAP1 Flash and Debug Tool 2 Check pyOCD installation 3 Clone RAK repository 4 F...

Страница 13: ...Connecting to The Things Network TTN Connecting with Chirpstack Please refer to Connecting with ChirpStack Miscellaneous RAK5005 Core Module Slot Connection to RAK4601 The RAK5005 is the base board t...

Страница 14: ...1 Pin Definition NC VBAT 1 2 VBAT NC GND GND 3 4 GND GND 3V3 3V3 5 6 3V3 3V3 NC USB 7 8 USB NC NC VBUS 9 10 SW1 NC UART1_TX P0 23 TXD0 11 12 RXD0 UART1_RX P0 22 MCU_RST RESET 13 14 LED1 NC NC LED2 15...

Страница 15: ...ction has been established within 60 seconds the RAK4600 s BLE signal will not be broadcasted and it will enter power saving mode On the other hand there is no limitation once you are already connecte...

Страница 16: ...t button on the RAK4600 and wait for a couple of seconds Look for a BLE Device named RUI in the scan list of the app Connect to this device and click on Secure DFU Service NOTE This will be only visib...

Страница 17: ...Documentation Center Figure 16 Secure DFU Service in the Nordic App 4 On Secure DFU Service click on the button highlighted in red...

Страница 18: ...Documentation Center Figure 17 Buttonless DFU 5 Now click on the red box button as shown below and press Send in the Write Value pop up window...

Страница 19: ...Documentation Center Figure 18 Resetting the Bootloader via Bluetooth 6 Great Now the RAK4600 is now working in DFU Mode In the application you will see the following...

Страница 20: ...Documentation Center Figure 19 RAK4600 Default Status Overview after Resetting 7 In the device list find a BLE device named DfuTarg and then click on Connect...

Страница 21: ...n packet ZIP and press OK This will then prompt you to select the zip file of the firmware that you have downloaded 9 The DFU application automatically start to upgrade the firmware of your RAK4600 th...

Страница 22: ...e Type under DFU 9 The DFU application automatically start to upgrade the firmware of your RAK4600 through DFU over BLE After upgrading the application restart the RAK4600 and the DFU mode is disabled...

Страница 23: ...Documentation Center Figure 22 DFU Upgrading of RAK4600 Firmware via BLE Last Updated 2 15 2021 4 50 53 AM...

Отзывы: