Build and manage networks
Gateways and communication modules are required to build a Link WAN network. This topic describes how to add a network, share a network, and join a network using a credential in Alibaba Cloud Link WAN.
Background information
You can obtain gateways and communication modules in two ways:
Port the software development kit (SDK) to your gateway and communication module. Then, purchase a Link WAN key, install it, and use the devices. For more information, see Gateway SDK and Node SDK.
Browse the Alibaba Cloud Artificial Intelligence of Things (AIoT) Device Center for recommended gateway and communication module hardware.
NoteYour supplier can install the key. You can also purchase and install the key from the Alibaba Cloud Link WAN console.
If you purchase a device with a pre-installed key, check the label for the following information when you receive the product:
Gateway device information: GwEUI, PIN Code
Node device information: DevEUI, PIN Code
This information is usually printed on the device label.
Add a gateway
Log on to the Alibaba Cloud Link WAN console and follow the prompts to activate the service.
In the navigation pane, choose .
On the Gateway List tab, click Add Gateway.
On the Add Gateway page, configure the parameters and click Confirm to activate the gateway.
Parameter
Description
Basic Information
Name
Enter a name for the gateway. The name must be 4 to 30 characters in length and can contain Chinese characters, letters, digits, and underscores (_). A Chinese character counts as two characters.
GwEUI
Find this parameter on the gateway label.
PIN Code
The PIN Code is a 6-digit number. It is usually on the gateway label.
Frequency Band
Select one of the following frequency bands:
CN470 Single Frequency
CN470 Heterogeneous
AS923: Same-Frequency Operation
This example uses CN470 Heterogeneous.
Communication Mode
The communication mode can be Full-duplex or Half-duplex.
This example uses Half-duplex.
Gateway Description
Optional. Enter a description for the gateway. The description cannot exceed 100 characters.
Location Information
Region
Select the region where the gateway is located.
Location Details
Enter the specific location of the gateway. You can also click a location on the map to the right.
After you add the gateway, power it on. Make sure the device is connected to the Internet through 4G or Ethernet.
On the Gateway Management page, view the status of the gateway. A status of Online indicates that the gateway is in service and you can start to manage the network.
Share a network
After you set up a network, you can assign it to yourself or other users. Users who are assigned the network must have the Link WAN service activated. Network access is granted using join credentials. This section describes how to assign a network to yourself. You must first create a credential and then assign it to yourself.
Log on to the Alibaba Cloud Link WAN console.
In the navigation pane, choose .
On the Onboarding page, click Add Dedicated Credential.
In the Add Dedicated Credential dialog box, configure the parameters. Then, click Confirm to create the credential.
Parameter
Description
Credential Name
Enter a name for the credential. The name must be 4 to 30 characters in length and can contain Chinese characters, letters, digits, and underscores (_). A Chinese character counts as two characters.
Frequency Band
Select one of the following frequency bands:
CN470 Same-Frequency Mode
Different CN470 Frequencies
AS923: Same Frequency
In this example, CN470 Heterodyne is selected.
Class
The following options are available:
A
B
C
D2D
This example uses A for on-demand sending.
RxDelay
This parameter is available when you set Class to A.
It specifies the delay for the receive window after an uplink transmission. Default value: 1s. Valid values: 1s to 15s.
Data Rate (DR)
This parameter is available when you set Class to B.
It specifies the data rate. Default value: 4. Valid values: 0 to 5.
NoteThe JoinEUI is fixed to d896e0efff000000 and can be used globally.
In the Operation column of the credential, click Grant Credential.
In the Grant Credential dialog box, select Grant to Myself and click Confirm to grant the credential to yourself.
After the authorization is complete, the new credential appears in the list on the page. If another user grants a credential to you, it also appears in this list after you accept it.
Join a network with a credential
After you configure the gateway and grant a join credential to yourself, you can use the credential to join the network. You can also configure a message queue as the data destination.
Log on to the Alibaba Cloud Link WAN console.
In the navigation pane, choose .
On the Node Groups page, click Create Group.
In the Create Group dialog box, enter the group information and click Save.
Parameter
Description
Node Group Name
Enter a name for the node group. The name must be 4 to 30 characters in length and can contain Chinese characters, letters, digits, and underscores (_). A Chinese character counts as two characters.
Credential Type
Select Dedicated Credential.
Select Credential
When you click this box, the Select Credential panel appears on the right. Select the credential that you want to attach to the node group. This is the credential you just created. In the Operation column for the credential, click Assign.
After you create the node group, click Node in the Operation column of the group to go to the Group Details page.
Click Add Node to Join Network. In the Add Node to Join Network dialog box, configure the parameters and click Save.
Parameter
Description
Add Method
Select Single Node.
Node DevEUI
Enter the DevEUI. You can find it on the gateway device label.
PIN Code
Enter the PIN Code. You can find it on the gateway device label.
If your communication module supports the AT commands recommended by the ICA consortium, you can run the following commands on the local module to send a join request.
Example of AT commands for a LoRaWAN Over-the-Air Activation (OTAA) join:
1. Set the join mode to OTAA.
AT+CJOINMODE=0
2. Start an automatic join.
AT+CJOIN=1,1
After the node joins the network, you can view the uplink data on the Uplink Data tab.
Configure the data destination for the node group
After you complete the configuration, data from the node group is sent to the specified message queue.
Log on to the Alibaba Cloud Link WAN console.
In the navigation pane, choose .
In the Operation column of the node group that you want to configure, click Data Forwarding.
In the Data Forwarding Settings dialog box, configure the parameters.
Parameter
Description
Data egress
Select Message Queue (MQ).
NoteIf you have not activated the cloud product, click Message Queue for Apache RocketMQ to activate it. Then, grant Alibaba Cloud Link WAN permissions to access RocketMQ.
Region
Select the region where your Alibaba Cloud Link WAN gateway device is located.
Uplink Topic
Optional. If no options are available for Uplink Topic, go to the Message Queue console to configure a topic.
Click Confirm to complete the data forwarding configuration. The data is then sent to the specified topic.