AT Commands For HSIC_LAN
No | Command | Description |
L2501 | AT+CENABLELAN | Enable LAN function |
L2502 | AT+CLANMODE | Set LAN mode |
L2503 | AT+CLANCTRL | Set LAN configure |
L2504 | AT+CHSICSLEEP | Allow Hsic Device Go to AutoSleep |
L2501 AT+CENABLELAN Enable LAN Function
W) AT+CENABLELAN=<onoff> |
OK or ERROR |
<onoff> |
0 Close the LAN9730 1 Open the LAN9730 |
Example |
AT+CENABLELAN=1 OK |
NOTE
LAN9730 is not opened in default, if want to open the LAN9730, you can run AT+CENABLELAN=1.
After run this command, the module will restart automatically, then the LAN9730 will be opened.
If want to close the LAN9730, you can run AT+CENABLELAN=0.
After run this command, the module will restart automatically, then the LAN9730 will be closed.
WIFI firmware doesn’t care this AT command.
L2502 AT+CLANMODE Set LAN Mode
T) AT+CLANMODE=? |
+CLANMODE: (list of supported <mode>s) OK |
R) AT+CLANMODE? |
+CLANMODE: <mode> OK |
W) AT+CLANMODE=<mode> |
OK or OK |
<mode> |
0 lan mode 1 wan mode 2 static ip mode |
Example |
AT+CLANMODE? +CLANMODE: (0,1) OK AT+CLANMODE=1 OK |
NOTE
Module works in lan mode in default. If want to use another mode, need to run at+clanmode=<mode>,
after run this command, module will restart automatically, then the module will work in target mode.
L2503 AT+CLANCTRL Set LAN Configure
T) AT+CLANCTRL=? |
+CLANCTRL: (list of supported <option>s)
OK |
W) AT+CLANCTRL=<option>,[[type/ip],[netmask]] |
OK or ERROR |
<option> |
0 uninstall driver 1 install driver 2 set mac address 3 set ip address 4 bring up eth0 5 bring down eth0 |
<type> |
1 bcm898xx 2 at803x |
<ip> | LAN ip address (Range: 192.168.*.*). |
<netmask > |
Range 255.255.*.* if the parameter is not set, will use the default value:255.255.255.0 |
Example |
AT+CLANCTRL=3,”192.168.1.1” Set ip. The netmask is use default value 255.255.255.0 OK AT+CLCANCTRL=3,”192.168.1.1”,”255.255.2 55.0” Set ip and netmask. The netmask is 255.255.255.0 OK |
NOTE
Uninstall driver (option=0). Not support for HSIC LAN, Only Support SGMII LAN. Please don’t run this command on HSIC LAN module
Install driver (option=1). Not support for HSIC LAN, Only Support SGMII LAN.
Set mac address (option=2). Support for HSIC LAN, But the module will auto set the Mac address. So there is no need to run the command.
Set ip address (option=3). When module work in static ip mode. Use this command set ip and netmask.
Bring up eth0 bring up eth0 (option=4). equal to “ifconfig eth0 up”
Bring down eth0 (option=5). equal to “ifconfig eth0 down”
L2504 AT+CHSICSLEEP Allow HSIC Device Go To AutoSleep
T) AT+CHSICSLEEP=? |
+CHSICSLEEP: (list of supported <state>s) OK |
R) AT+CHSICSLEEP? |
+CHSICSLEEP: <state> OK |
W) AT+CHSICSLEEP=<state> |
OK or ERROR |
<state> |
0 Don’t allow the hsic device go to autosleep 1 Allow the hsic device go to autosleep |
Example |
AT+CHSICSLEEP =1 OK AT+CHSICSLEEP? +CHSICSLEEP: 1 OK |
NOTE
If the module needs to go to sleep, user needs to execute following steps:
1. AT+CHSICSLEEP=1
2. AT+CLANCTRL=5