I want to use fx30 to get data by cURL, but it is failed.
My step is
I try to use cURL in ubuntu, and it worked.
The same command in FX30 then I got error.
* Trying 211.xx.136.xxx..
* TCP_NODELAY set
* connect to 211.xxx.136.xx port 8081 failed: Connection timed out
* Failed to connect to xxx port 8081: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to xxx port 8081: Connection timed out
Why I can’t use it?
BTW I can ping this address success.
Please help me, thanks!!
Power: ON
Current Network Operator: Chunghwa Telecom
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Very strong signal strength (5)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)
root@swi-mdm9x28-wp:~# cm info
Device: WP7609
IMEI: 359782080100123
IMEISV: E
FSN: WA803370311123
Firmware Version: SWI9X07Y_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14
Bootloader Version: SWI9X07Y_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14
MCU Version: 002.015
PRI Part Number (PN): 9908102
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.095_000
SKU: 1103843
Last Reset Cause: Power Down
Resets Count: Expected: 74 Unexpected: 0
root@swi-mdm9x28-wp:~# pwd
/home/root
root@swi-mdm9x28-wp:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: smartone
PDP Type: IPV4
Connected: no
Auth type: PAP
User name:
Password:
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator: SmarTone HK
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Very strong signal strength (5)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)
root@swi-mdm9x28-wp:~# cm data connect &
root@swi-mdm9x28-wp:~# Setting up profile 1
Connecting ... ok
Checking if device 'rmnet_data0' is up ... ok
Routing inet ... ok
Updating /etc/resolv.conf ... ok
Updating /etc/resolv.conf ... ok
Testing connection ...
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: internet
PDP Type: IPV4
Connected: yes
Interface: rmnet_data0
Family[IPv4]: inet
IP[IPv4]: 182.153.89.41
Gateway[IPv4]: 182.153.89.42
Dns1[IPv4]: 10.30.23.130
Dns2[IPv4]: 10.30.25.130
root@swi-mdm9x28-wp:~# ping www.google.com
PING www.google.com (172.217.24.228): 56 data bytes
64 bytes from 172.217.24.228: seq=0 ttl=117 time=33.745 ms
64 bytes from 172.217.24.228: seq=1 ttl=117 time=49.221 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 33.745/41.483/49.221 ms
root@swi-mdm9x28-wp:~# wget http://122.123.123.123/index.php
Connecting to 122.123.123.123 (122.123.123.123:80)
index.php 100% |*******************************| 4026 0:00:00 ETA
root@swi-mdm9x28-wp:~#
FDT version: 2.0.2012.0
Awaiting adapter ...
Firmware download failed.
Primary error code: 14 - No MBN adapter available.
Secondary error code: 0 - Not applicable.
Device error code: 0x0 - Unknown device error code.
Preexisting images information:
Current:
Firmware:
ImageId:
BuildId:
Configuration:
ImageId:
BuildId:
Final images information:
Current:
Firmware:
ImageId:
BuildId:
Configuration:
ImageId:
BuildId:
OEM PRI:
IMEI:
Total time elapsed: 140 ms.
Images downloaded:
Press Enter to continue ...
swiflash command:
swiflash -m wp76xx -i ./FX30_WP76xx_full_R16.0.1.006-generic-SWI9X07Y_02.37.03.00.cwe
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
..............DONE
Downloading the firmware
.............................................................................................................................................................................................................................................................
Power: ON
Current Network Operator: Chunghwa Telecom
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Very strong signal strength (5)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)
122.123.123.123 is fake IP address, you need to set up your own http server to test this.
You can capture the wireshark log in server side to see what happens.