# QCLI sub-group: Net Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The networking demo demonstrates how the networking QAPIs are used to perform the following operations: - Create a TCP/SSL server or client - Send and receive data - Start, configure, or stop a network service ## Ping Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sends an ICMP ECHO\_REQUEST to network hosts in IPv4/IPv6 network. | Parameter name | Type/Range | Description | | --- | --- | --- | | host | String | IPv4/IPv6 address or host name of the remote host | | -c | 1 – 2^31 | Amount of ping requests | | -s | 1 – 1536 | Ping payload size in bytes | | -d | – | Delay between packets | **Example:** ping [ -s (packet lengh)] [-c (count)] [-d (delay(ms))]Copy to clipboard ## dhcpv4c Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command acquires a valid IPv4 address from a DHCPv4 server. | Parameter name | Type/Range | Description | | --- | --- | --- | | interface name | String | Interface name


For example: `wlan1` | | new | – | New DHCP request (get an IPv4 address) | | release | – | Release an IPv4 address | **Example:** dhcpv4c wlan1 [new|release]Copy to clipboard ## ifconfig Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command displays or configures network interface. | Parameter name | Type/Range | Description | | --- | --- | --- | | interface name | String | Interface name (optional – shows all if not specified)


For example: `wlan1` | | ipaddr | String | IPv4 or IPv6 address | | subnetmask | String | Subnet mask | | default gateway | String | Default gateway (optional) | **Example:** ifconfig wlan1Copy to clipboard Note: This command allows to configure IPv4 addresses only. IPv6 addresses are generated automatically. ## iperf Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to run traffic on TCP/UDP streams to analyze throughput performance. | Parameter name | Type/Range | Description | | --- | --- | --- | | -p | String | The server port for the server to listen on and the client to connect to. This should be the same in both client and server. Default is 5001. | | -i | String | Sets the interval time in seconds between periodic bandwidth, jitter, and loss reports | | -u | – | Use UDP rather than TCP | | -l | String | The length of buffers to read or write | | -t | String | The time in seconds to transmit for | | -n | String | The number of buffers to transmit | | -b | String | Set target bandwidth to n bits/sec | | -S | String | Set value for type of service (TOS) | | -V | – | Specifies the IP version to IPv6 | ## iperf\_quit Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to quit IOERF traffic on TCP/UDP streams to analyze throughput performance. ## ssl\_client Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to run an SSL client on QCC730. The command can be used for basic SSL function and throughput test on IPv4. | Parameter name | Type/Range | Description | | --- | --- | --- | | server\_name | String | Host name of the SSL server. | | server\_addr | String | Address of the SSL server. | | server\_port | Int | Port on which the SSL service runs. | | request\_size | 0 – 16384 | Pad request with header to requested size. | | debug\_level | Int | Level of debugging. The higher the debug level is, the more logs will be printed. | | auth\_mode | String | Specify if verification of peer certificate is required, optional, or not needed, with the corresponding values:
| | ca\_file | String | The file with the CA certificate. Not supported yet. | | crt\_file | String | The file with the client certificate. Not supported yet. | | key\_file | String | The file with the client key. Not supported yet. | | renegotiation | 0/1 | Disable/enable renegotiation. | | renegotiate | 0/1 | Disable/enable the attempt to negotiate. | | exchanges | Int | The number of data exchanges. | | alpn | String | ALPN supported protocols. | | force\_version | String | Specify the accepted SSL protocol version. | | display\_interval | String | Statistics display interval. | | tx\_only | 0/1 | Disable/enable wait for response from the server. Set to 1 for throughput test. | | force\_ciphersuite | String | Specify the accepted cipher suite. | **Example:** ssl_client server_addr 192.168.11.2 exchanges 10 &Copy to clipboard ## ssl\_server Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to run an SSL server on QCC730. This command can be used for basic SSL function and throughput test on IPv4. | Parameter name | Type/Range | Description | | --- | --- | --- | | server\_addr | String | Address of the SSL server. | | server\_port | Int | Port on which the SSL service runs. | | response\_size | 0 – 16384 | Pad request with header to requested size. | | debug\_level | Int | Level of debugging. The higher the debug level is, the more logs will be printed. | | auth\_mode | String | Specify if verification of peer certificate is required, optional, or not needed, with the corresponding values:
| | cert\_req\_ca\_list | 0/1 | Disable/enable sending the CA list. | | ca\_file | String | The file with the CA certificate. Not supported yet. | | crt\_file | String | The file with the server certificate. Not supported yet. | | key\_file | String | The file with the server key. Not supported yet. | | crt\_file2 | String | The file with the server certificate. Not supported yet. | | key\_file2 | String | The file with the server key. Not supported yet. | | renegotiation | 0/1 | Disable/enable renegotiation. | | renegotiate | 0/1 | Disable/enable the attempt to negotiate. | | renego\_delay | Int | Delay before enforcing renegotiation. | | renego\_period | Int | Period for automatic renegotiation. | | exchanges | Int | The number of data exchanges. | | alpn | String | ALPN supported protocols. | | force\_version | String | Specify the accepted SSL protocol version. | | display\_interval | String | Statistics display interval. | | rx\_only | 0/1 | Disable/enable the response to the client. Set to 1 for throughput test. | | force\_ciphersuite | String | Specify the accepted cipher suite. | **Example:** ssl_server server_addr 192.168.11.2 exchanges 10 &Copy to clipboard ## ssl\_quit Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to quit the SSL client or SSL server. If a transmission has already begun, throughput so far will be printed. ## rvr Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to start traffic on UDP streams to analyze latency performance on IPv4. | Parameter name | Type/Range | Description | | --- | --- | --- | | num of args | Number | The number of the remained arguments. | | Enable RVR | Number | Always set as 1. | | ip in bytes | Number | Server IP address, for example: 192 168 43 1 | | Tx port | Number | The target port to send packets | | Rx port | Number | The port to listen for packets | | num of Tx bytes | Number | The number of bytes to send | | Tx periodicity in us | Number | The Tx periodicity in us | | tid | Number | The type of service in IP header | | flow\_id | Number | Flow ID of the stream | | offset | Number | The offset for Tx generation | **Example:** rvr 12 1 192 168 43 1 9001 8001 200 8330 6 0 0Copy to clipboard Note: This command starts an RVR client. To test latency performance, you also need an RVR server. RVR server is a Qualcomm internal tool that isn't publicly released. If you need it, please contact Qualcomm. ## rvr\_stop Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used to stop the traffic on UDP streams on IPv4. | Parameter name | Type/Range | Description | | --- | --- | --- | | num of args | Number | The number of the remained arguments. | | Enable RVR | Number | Always set as 0. | | netif\_id | Number | The network interface ID to stop | **Example:** rvr_stop 2 0 2Copy to clipboard ## pmtud Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command detects the minimum path MTU to the destination server on IPv4. | Parameter name | Type/Range | Description | | --- | --- | --- | | --dst | String | The address of the server | **Example:** pmtud --dst 192.168.1.101Copy to clipboard ## httpc commands Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The following commands are available for HTTP client on IPv4. ### httpc start Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command starts the HTTP client. **Example:** httpc startCopy to clipboard ### httpc stop Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command stops the HTTP client. **Example:** httpc stopCopy to clipboard ### httpc new Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command creates an HTTP client session. | Parameter name | Type/Range | Description | | --- | --- | --- | | -s | NA | Create a new HTTPS session | | -a | String | Load CA Root file | | -c | String | Load client certificate file | | -k | String | Load private key file | | -t | Number | Set timeout (ms) | | -b | Number | Set HTTP body size (bytes) | | -h | Number | Set HTTP header size (bytes) | | -r | Number | Set HTTP client Rx buffer size (bytes) | **Example:** httpc new httpc new -s -a root.pem -c cert.pem -k pk.pem -r 8000 -t 10000Copy to clipboard ### httpc destroy Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command deletes an HTTP client session. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | **Example:** httpc destroy 1Copy to clipboard ### httpc conn Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command connects the HTTP client to an HTTP server. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number created by the `httpc new` command | | origin\_server or proxy | String | IP address of the server or proxy | | port | Number | Port number | **Example:** httpc conn 1 192.168.1.1 80Copy to clipboard ### httpc disconn Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command disconnects the HTTP client from the HTTP server. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | **Example:** httpc disconn 1Copy to clipboard ### httpc get Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used for HTTP get request. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | url | String | Operation resource | **Example:** httpc get 1 index.htmlCopy to clipboard ### httpc head Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used for HTTP head request. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | url | String | Operation resource | **Example:** httpc head 1 index.htmlCopy to clipboard ### httpc post Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used for HTTP post request. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | url | String | Operation resource | **Example:** httpc post 1 index.htmlCopy to clipboard ### httpc put Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used for HTTP put request. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | url | String | Operation resource | **Example:** httpc put 1 index.htmlCopy to clipboard ### httpc delete Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command is used for HTTP delete method. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | url | String | Operation resource | **Example:** httpc delete 1 index.htmlCopy to clipboard ### httpc setbody Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sets the HTTP body. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | len | String | Body length | **Example:** httpc setbody 1 10Copy to clipboard ### httpc addheaderfield Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command adds configured contents of the HTTP header. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | hdr\_name | String | Header name | | hdr\_value | String | Header value | **Example:** httpc addheaderfield 1 authorization Basic;YWRtaW5pc3RyYXRvcjp0LXNwYW4=Credentials:administrator:t-spanCopy to clipboard ### httpc clearheader Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command clears the HTTP header. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | ### httpc setparam Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sets parameters (key and value) in the HTTP packet. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | key | String | Key | | value | String | Value | **Example:** httpc setparam 1 ssid httpctestCopy to clipboard ### httpc cbaddhead Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sets the callback function of adding header. | Parameter name | Type/Range | Description | | --- | --- | --- | | client\_num | Number | Session number | | enable|disable | String | Enable/disable callback of add header | **Example:** httpc setparam 1 ssid httpctestCopy to clipboard ## httpd commands Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The following commands are available for HTTP server on IPv4. ### httpd enable Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command creates an HTTP server session. | Parameter name | Type/Range | Description | | --- | --- | --- | | <enable> | 1 | Create a new HTTPD session | | <port> | 0-65535 | Select the port according to different businesses | **Example:** httpd 1 80Copy to clipboard ### httpd disable Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command ends an HTTP server session. | Parameter name | Type/Range | Description | | --- | --- | --- | | <disable> | 0 | End an HTTPD session | **Example:** httpd 0Copy to clipboard ## mqttc commands Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The following commands are available for MQTT client on IPv4. ### mqttc init Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command initializes an MQTT client session. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | | -s | String | Transport layer to use, TCP or SSL. | | --ca | String | CA certificate path, defaults to null. | | --cert | String | MQTT client certificate path, defaults to null. | | --key | String | MQTT client private key path, defaults to null. | | --sni | NA | Server name indication enable,defaults to false, SNI is the same as hostname. | | --alpn | String | Application layer protocol negotiation. | **Example:** mqttc init 0 -s ssl --ca /lfs/ca.crt --cert /lfs/client.crt --key /lfs/client.key --sni --alpn h2Copy to clipboard ### mqttc connect Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command connects the MQTT client to an MQTT broker. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | | -h | String | MQTT host to connect to. | | -p | Number | MQTT host port number. | | -u | String | MQTT username, defaults to null. | | -P | String | MQTT password, defaults to null. | | -i | String | MQTT client identifier, defaults to testclient. | | -k | Number | Keep alive value in seconds for this client, defaults to 60. | | -c | NA | Clean session flag, defaults to false. | **Example:** mqttc connect 0 -h 192.168.1.100 -p 8883 -u user1 -P 123456 -i clientId -k 60 -c Copy to clipboard ### mqttc publish Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command publishes a topic message. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | | -t | String | Topic of publishing messages. | | -q | Number | Quality of service of publishing messages. 0, 1, or 2, defaults to 0. | | -m | String | Message payload to send. | | -r | NA | Retain flag. | **Example:** mqttc publish 0 -t topic -m message -q 1 -rCopy to clipboard ### mqttc subscribe Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command subscribes to a topic. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | | -t | String | Topic of subscribing messages. | | -q | Number | Quality of service of subscribing messages. 0, 1, or 2, defaults to 0. | **Example:** mqttc subscribe 0 -t topic -q 1Copy to clipboard ### mqttc unsubscribe Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command unsubscribes from a topic. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | | -t | String | Topic of subscribing messages. | **Example:** mqttc unsubscribe 0 -t topicCopy to clipboard ### mqttc disconnect Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command disconnects the MQTT client from the MQTT broker. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | **Example:** mqttc disconnect 0Copy to clipboard ### mqttc destroy Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command destroys a session. | Parameter name | Type/Range | Description | | --- | --- | --- | | session\_id | Number | Demo session index, 0 or 1. | **Example:** mqttc destroy 0Copy to clipboard Note: If the MQTT client SSL runs in power-save mode, the value of `TRANSPORT_SEND_RECV_TIMEOUT_MS` can be larger (such as 550) and the code `qurt_thread_sleep(150)` in function `mqttc_task` can be deleted. ## sntpc commands Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The following commands are available for the Simple Network Time Protocol (SNTP) client on IPv4. ### sntpc Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command shows the status of the SNTP client and the configuration for all SNTP servers. ### sntpc start Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command starts the SNTP client. ### sntpc stop Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command stops the SNTP client. ### sntpc setOpMode Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sets the operating mode of the SNTP client. | Parameter name | Type/Range | Description | | --- | --- | --- | | Op\_mode | Number | The operating mode of the SNTP client.



`0`: unicast



`1`: broadcast | **Example:** sntpc setOpmode 0Copy to clipboard ### sntpc setServer Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sets the configuration for an SNTP server. | Parameter name | Type/Range | Description | | --- | --- | --- | | IP\_Address\_Domain\_Name | String | The IP address or domain name of the SNTP server | | Id | Number | The index of the SNTP server | **Example:** sntpc setServer 192.168.1.249 0Copy to clipboard ## eth commands Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) The eth commands demonstrate the raw Ethernet packet sending/receiving interface. The LWIP socket supports sending and receiving Ethernet packets when you set `CONFIG_SUPPORT_LWIP_RAW_SOCKET=y` in prj.conf for your demo image. Currently, it only supports sending Ethernet types `IPv4` and `EAPOL` frames. ### eth Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command shows the usage of the eth commands. ### eth tx Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command sends the raw Ethernet packet using the specified parameters. | Parameter name | Type/Range | Description | | --- | --- | --- | | dest mac addr | String | The destination MAC address to which the packet is forwarded. | | -d | String | Data bytes for the packet content | | -p | Number | Ethernet protocol to send. Currently, it only supports `IPv4` and `EAPOL`. Default value is `0x888e`. | **Example**: eth tx 00:11:22:33:44:55 -p 0x888e -d "01 06 12 05 01 ab 00 05 01"Copy to clipboard ### eth rx Source: [https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html](https://docs.qualcomm.com/doc/80-Y8730-2/topic/qcli-sub-group-net.html) This command starts a session to receive the packets of a certain Ethernet type. | Parameter name | Type/Range | Description | | --- | --- | --- | | -p | Number | Target Ethernet type to receive the raw packets. Default is `0x888e`. | | -q | N/A | Quit the Rx session | **Example**: eth rx -p 0x888e eth rx -qCopy to clipboard Last Published: Jun 03, 2026 [Previous Topic QCLI sub-group: GPIO](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_gpio.md) [Next Topic QCLI sub-group: FLASH](https://docs.qualcomm.com/bundle/publicresource/80-Y8730-2/topics/qcli_sub_group_flash.md)