RAK RAK7204 Quick Start Manual Download Page 9

Documentation Center

Figure 13: Built-in Server Log in screen

Once you have logged in make sure you are in Network Server mode. By default the gateway is working in this
mode, so if this is the first time you are configuring it it should already be set. If this is nit the case go to the
Network Server menu, the Network Settings sub menu and select the Network Server option in the Mode drop-
down menu:

Summary of Contents for RAK7204

Page 1: ...ader burned please refer to the sections below 1 Burning the Bootloader 2 Burning the Firmware What s Included in the Package 1pc RAK7204 WisNode Sense Home 1pc LoRa Antenna 1pc 3500mAh Lithium Batter...

Page 2: ...mage the device and may cause overheating and combustion of the battery Therefore when replacing the battery it is necessary to strictly confirm whether the positive and negative poles of the connecto...

Page 3: ...e note of the COM Port Number NOTE If you didn t find any Port with the name Silicon Labs CP210x USB to UART Bridge make sure you have downloaded the CP210x USB Drivers in your Machine Choose the Corr...

Page 4: ...th more than 27 000 devices deployed globally All our node products are compatible with it and the process of adding a device to the network is intuitive and straightforward This section will focus on...

Page 5: ...you can see your function tree on the left and your DC balance at the tops as well as a number of useful links Figure 7 Helium console home screen Go to the Devices section in the function tree If thi...

Page 6: ...efault Press the eye icon to reveal the values You can manually replace them with values of your own For this tutorial use the default values Press the Submit button and you are done Figure 10 Helium...

Page 7: ...e Enter the App EUI Same as with the Device EUI replace the XXXX with your value Enter App Key Finally fill in the App key with the command Join Network Finish executing the join command in order for...

Page 8: ...Figure 12 Helium console live device data Configuring the Built in Server The procedure for connecting the RAK7204 to the Built in Server is straightforward and includes going through the following s...

Page 9: ...are in Network Server mode By default the gateway is working in this mode so if this is the first time you are configuring it it should already be set If this is nit the case go to the Network Server...

Page 10: ...mode 2 Start the Device registration process by going to the Application sub menu in the LoRa Network section and creating an application Enter a name in the field leave the default type and press Sa...

Page 11: ...ation Figure 16 Application configuration Move to the Payload Formats sub window and set the payload format to CayenneLPP via the drop down menu This is the format that the RAK7204 uses thus enabling...

Page 12: ...ng its Device EUI which you can find on a sticker on the back of the RAK7204 Press the Add button to proceed Figure 19 Adding a device In the configuration screen enter a name for your device and leav...

Page 13: ...the Devices section Figure 21 Devices section Next you need to import the same configuration in the RAK7204 Configuring the RAK7204 Start by connecting to your RAK7204 as described in the Product Con...

Page 14: ...t to the Built in Server 1 Import the Device EUI from the label on the back Application EUI and Application Key you should have noted them down as instructed in the previous section by executing the f...

Page 15: ...band class A OTAA activation mode LoRa Region Device Class Activation Mode After executing the last command the node will automatically start the join procedure If for some reason this is not the case...

Page 16: ...ol Figure 25 Successful Device Join If you check the Devices Section and the Live Device Data in the Devices section you should see the device being online for some time and also some packets in this...

Page 17: ...cting to The Things Network V3 TTNv3 At The Things Conference 2021 it was announced that The Things Network is upgrading to The Things Stack v3 In this section it will be shown how to connect RAK7204...

Page 18: ...after successful login NOTE To connect RAK7204 WisNode Sense Home to TTNv3 you should already have connected a gateway in range to TTNv2 or TTNv3 or you have to be sure that you are in the range of a...

Page 19: ...r Automatically filled by The Things Stack based on your account or created organization Application ID This will be the unique ID of your application in the Network ID must contain only lowercase let...

Page 20: ...gister end device heading you can find two options for registering a device Choose Manually For Activation mode choose Over the air activation OTAA For the LoRaWAN version choose MAC V1 0 2 RAK7204 is...

Page 21: ...lowercase letters numbers and dashes AppEUI The AppEUI uniquely identifies the owner of the end device It is provided by the device manufacturer To get the AppEUI connect your device via USB cable to...

Page 22: ...e end device Note that for this tutorial the frequency plan used is Europe 863 870 MHz SF9 for RX2 recommended Regional Parameters version The Regional Parameters specify frequency dwell time and othe...

Page 23: ...s for OTAA mode 9 Fill in the Application key AppKey to secure communication between the end device and the application The AppKey can be generated automatically by clicking the Generate button next t...

Page 24: ...e node you will need the following three parameters Device EUI Application EUI and Application Key You can see them all on the Device Overview page But since the two EUI s come with the device you onl...

Page 25: ...04 WisNode Sense Home operation mode NOTE The following tutorial is based on using the EU868 frequency band 3 Now that those parameters are set enter the App Key using the command below Remember to re...

Page 26: ...tting up the RAK7204 WisNode Sense Home OTAA parameters 4 Finally execute the join command Figure 44 Join command If you get a response in the Live data feed in The Things Stack it means your RAK7204...

Page 27: ...s NOTE In this section it is assumed that you are using RAK Gateway and its built in ChirpStack or RAK cloud testing ChirpStack It is also assumed that a Gateway with the ChirpStack has been configure...

Page 28: ...entation Center Figure 46 ChirpStack Applications 3 Fill up the necessary information then Click CREATE APPLICATION Figure 47 Creating the Application 4 Click the new item name RAKwireless_Test_Applic...

Page 29: ...Documentation Center Figure 48 Applications page in ChirpStack Figure 49 RAKwireless Test Application 5 Add a Node device into ChirpStack by clicking the CREATE button...

Page 30: ...Parameters NOTE If you want to join in OTAA mode select DeviceProfile_OTAA in the Device profile item If you want to join in ABP mode and CN470 frequency then select DeviceProfile_ABP_CN470 in the De...

Page 31: ...urself or generate it automatically by clicking the icon highlighted in the image Figure 53 Application Key Generation 3 Click SET DEVICE KEYS button Now you ve completed the configuration on ChirpSta...

Page 32: ...Documentation Center Figure 54 Device EUI Code Same with the Application Key which was set in the previous section as app_key is the same with the image highlighted Figure 55 Application Key LoRaWAN...

Page 33: ...7204 WisNode Sense Home to a PC power it on and open RAK Serial Port Tool on your computer Figure 56 RAK Serial Port Tool Now let us join our RAK7204 WisNode Sense Home using the OTAA activation mode...

Page 34: ...t the Frequency Region Device EUI Application EUI and Application Key Remember to replace the XXXX with the corresponding parameter value for your particular case at set_config lora region XXXX at set...

Page 35: ...Documentation Center Figure 58 Setting of Frequency and Device EUI Figure 59 Setting of Application EUI and Key 7 Then join in OTAA mode at join sh...

Page 36: ...u can view the JoinRequest and JoinAccept on ChirpStack page Figure 61 Join Request of the Device in the ChirpStack 9 Let s try sending data from our RAK7204 WisNode Sense Home to the ChirpStack by ty...

Page 37: ...n see the message on ChirpStack page Figure 63 Message Received in ChirpStack ABP Mode 1 If you select Device Profile ABP or DeviceProfile_ABP_CN470 it means you want to join ChirpStack in ABP mode WA...

Page 38: ...VATION item Figure 65 ABP Parameters 3 Next let s use these parameters to set WisNode LoRa by using AT command Let s join in ABP mode and set EU868 frequency as an example 4 If the join mode is not in...

Page 39: ...Figure 66 Setting of LoRaWAN Mode and Class 5 Type the following AT command to set your respective Frequency Region Device Address Network Session Key and App Session Key Figure 67 Setting of Frequenc...

Page 40: ...Documentation Center Figure 68 Setting of Device EUI and Network Session Key 6 Then join in ABP mode Figure 69 Joining of ABP Now try sending data from our WisNode LoRa to the Chirpstack...

Page 41: ...nsor Data on ChirpStack and TTN Analyzing Sensor Data from RAK7204 WisNode Sense Home In the previous section we have successfully sent some raw data from our RAK7204 WisNode Sense Home to The Things...

Page 42: ...a mentioned above as an example We will convert the Hexadecimal Data into Decimal Data using this converter in order to be able to understand it Figure 74 Hexadecimal to Decimal converter 1 Battery Vo...

Page 43: ...tion in TTN 1 To start with download the decoding function through this link Parameter Hex Data Decimal Equivalent Multiplier True Value Data flag 06 73 Pressure 25 9E 9630 0 1 hPa Unsigned MSB 963 0...

Page 44: ...s tab as shown in the image below Figure 76 Payload Format at TTN Application Page 3 Next select Payload Format as Custom Then from the decoder tab copy and paste the decoder function from step 1 Figu...

Page 45: ...ata 2 Then click Test and it will generate a code with the decoded data as shown in the image above Testing in Real System in TTN After gateway and node go online click the uplink data record from the...

Page 46: ...ding function through this link 2 From to your ChirpStack go to application page and click the APPLICATION CONFIGURATION tab as shown in the image below Figure 80 Application Configuration Tab 3 Next...

Page 47: ...decoding function Testing in Real System in ChirpStack After gateway and node go online click the uplink data record from the application data at LIVE DEVICE DATA tab to check the decode status From...

Page 48: ...ense Home which can work on EU868 frequency and make sure their firmware version isn t less than V3 0 0 1 2 Next connect these two RAK7204 WisNode Sense Home with PC through USB cable and open two ser...

Page 49: ...oRaP2P Configuration OK Try to send a message from RAK7204 WisNode Sense Home 2 the right one to RAK7204 WisNode Sense Home 1 the left one Figure 85 Test Message Sent Success You can send more message...

Page 50: ...204 WisNode Sense Home by using the following AT command or you can close the ADR feature of RAK7204 WisNode Sense Home by using this AT command There is also an AT command which is used to set the Da...

Page 51: ...ome by following the steps below 1 Download and Install the STM32CubeProgrammer Software from STMicroelectronics on your Windows PC Figure 87 STM32CubeProg Download Page 2 Insert the provided jumper o...

Page 52: ...ubeProgrammer 4 Choose the appropriate port number in the COM Port field 5 Set the Baud Rate to 115200 and the Parity to Even as seen in the figure above then Press Connect If you didn t properly set...

Page 53: ...ense Home to work in Boot Mode again If all works well You will then see the following log Figure 92 Successful Connection Log to your Device Now that you have successfully connected your RAK7204 WisN...

Page 54: ...on to erase all the data on RAK7204 WisNode Sense Home Figure 93 Erasing the Data in the Chip 8 Click Open File and select the correct Bootloader file that you have just downloaded Figure 94 Opening t...

Page 55: ...you have successfully burned the Bootloader to your RAK7204 WisNode Sense Home Figure 96 Successfully Burned the Bootloader to the device 11 Disconnect and close the STM32CubeProgrammer tool WARNING...

Page 56: ...bootloader according to the previous section it works in boot mode now Open and download the RAK Serial Port Tool Here and Connect your board via the USB interface and enter the following AT command...

Page 57: ...x x x H supported regions are IN865 EU868 US915 AU915 KR920 AS923 RUI_RAK7204_V3 x x x L supported regions are EU433 CN470 Visit this article for more information on your local TTN frequency plan Sel...

Page 58: ...ceed to the next section Testing the Installed Firmware In order for you to check if you have successfully installed the firmware on your RAK7204 WisNode Sense Home open the Serial Port tool again Pre...

Page 59: ...Documentation Center Figure 102 Restarting Your Device This information means that you have uploaded the Firmware successfully Last Updated 7 29 2022 10 17 19 PM...

Reviews: