Logging with telnet on Smartpower3
The TCP logging(telnet) on SmartPower3 was deprecated, please use UDP logging instead. In the case of TCP, the speed of SP3 slows down a lot while waiting for an ACK.
The firmware build date of Smartpower3 has to be “2021/Nov/26”. Please refer setting menu on your SmartPower3 to check the build date.
Hardware Requirements
- SmartPower3
- Type-C USB cable
- Host-PC
- WiFi router(2.4GHz)
Configuring an WiFi via serial port
First of all, you have to connect SmartPower3 with Host-PC via Type-C USB cable. And then, run your preferred terminal program.
The baud rate has to be the same as the value shown on your smart power3 setting menu.
For example, in Linux.
odroid@odroid:~$ sudo apt install minicom odroid@odroid:~$ ls /dev/ttyUSB* /dev/ttyUSB0 odroid@odroid:~$ sudo minicom -D /dev/ttyUSB0 -b921600
Enter a command mode in your SmartPower3
After that, type CTRL-C to enter into the command line mode in your SmartPower3. You can see the following menu in your terminal.
>>> WIFI Command mode entered <<< [ WIFI Command mode menu ] 1. Connection AP Info 2. Scan & Connection AP 3. WiFi Command mode exit Command :
Scan and connect
Select number 2 menu and connect with your WiFi router. You can show the “WiFi Icon” in setting menu including IP address.
Get power data with telnet
Run telnet
When WiFi configuration is okay, run telnet in your Host-PC.
odroid@odroid:~$ telnet 192.168.30.2 Trying 192.168.30.2... Connected to 192.168.30.2. Escape character is '^]'. 0001168723,15291,0051,00779,0,05033,0000,00000,1,00,05219,0000,00000,1,00 0001168733,15291,0054,00825,0,05033,0000,00000,1,00,05218,0000,00000,1,00 0001168743,15282,0061,00932,0,05031,0000,00000,1,00,05218,0000,00000,1,00 0001168753,15279,0068,01039,0,05031,0000,00000,1,00,05220,0000,00000,1,00 0001168764,15279,0074,01130,0,05031,0000,00000,1,00,05222,0001,00005,1,00 0001168773,15283,0079,01207,0,05031,0000,00000,1,00,05218,0001,00005,1,00 0001168783,15281,0087,01329,0,05028,0000,00000,1,00,05221,0001,00005,1,00 0001168793,15287,0087,01329,0,05031,0000,00000,1,00,05219,0000,00000,1,00 0001168804,15287,0080,01223,0,05031,0000,00000,1,00,05218,0000,00000,1,00 0001168814,15287,0080,01223,0,05031,0000,00000,1,00,05218,0000,00000,1,00 0001168823,15288,0072,01100,0,05031,0000,00000,1,00,05219,0000,00000,1,00 0001168833,15289,0067,01024,0,05031,0000,00000,1,00,05219,0000,00000,1,00