You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 13, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: docs/Tutorials/Interact_with_IoT-Device.md
+154
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,157 @@ Find a temporary email service provider to get the email address for receiving t
65
65
66
66
Check the device profile (from MEP803) that we will be using. It needs to match the firmware of the X2E board. We will be using an existing ISM2400 profile, with the index set to 3.
Wait for few minutes after the transaction done, you will receive a email and attached with the PID csv file.
103
+
104
+

105
+
106
+
Please read the PID `K2ILSDXUOO3O4EEIWZDDW6SL` from the attached file and use it to set up the X2E board. You will also need the pidZkevmHash (5th column) when interacting with Moonchain.
107
+
108
+

109
+
110
+
111
+
112
+
113
+
114
+
## Setup the X2E board.
115
+
116
+
Connect the X2E board to your computer using a USB Type-C cable. Next, launch a serial terminal program like `minicom` on Linux or `PuTTY` on Windows, and establish a connection with the X2E board. Use the serial settings `115200 8N1`.
117
+
118
+
```
119
+
minicom -b 115200 -8 -D /dev/ttyACM0 -o
120
+
```
121
+
122
+
Then send a "AT" command to test the connection. If the connection is correct, the X2E will reply a "OK".
123
+
124
+

125
+
126
+
Send the following command at the serial terminal program to change the PID of the X2E board. *Replace the PID to the one got from previous steps.* You will get a OK if success.
Wait for a while, the X2E board will finish the provisioning process with the new PID. Then it will start to join the network and sending data. After Joined, the status LED will lit steady and the Control pin (IO14) will goes high. If you are using the suggest connection, the target LED will lit.
141
+
142
+
If this doesn't happen after 6 minutes, please check the status of your NEO miner and make sure it is running.
143
+
144
+

145
+
146
+
After that, your X2E board is connected and able to accept data from the Moonchain.
The controlled pin output has three modes: the first mode sets the output to always low, the second mode sets it to always high, and the third mode toggles the pin, causing the LED to blink.
191
+
192
+
Please replace `0xf6d4bd...` with the pidZkevmHash you received earlier in the example commands below.
193
+
194
+
The controlled pin should be changed within 2 minutes after the transaction is completed.
0 commit comments