FX30 AT commands over Ethernet

Hi,

I were unable to find information if it is possible to send AT commands over ethernet to FX30. Basically I would like to connect to FX30 over TCP/IP and send AT commands to it.

Is this possible or not?

If it is possible I would like to know also how can I set up static IP address of FX30.

Thanks in advance for you answer.

Hi denis,
The ethernet port has a static ip already: 192.168.13.32

I think the easiest way to issue AT commands via the ethernet port would be to ssh and then run the command:
microcom /dev/ttyAT

If you’re using the 3G add the -E option.

BR,
Chris

Hi Chris,

thanks for you reply. So for instance I connect with SSH to 192.168.13.32 and execute the following commands:
microcom /dev/ttyAT
AT+CMGS="+85291234567" It is easy to send text messages. <Ctrl+z>

Can I change IP of module?

Hi @denis,

You can change your IP by following steps below:

  1. SSH to usbnet 192.168.2.2 with user “root”
  2. Use these command to config new IP:
    ifconfig eth0 <your_IP>
    ifconfig eth0 up
    iptables -L -n
    iptables -F
    iptables -A INPUT -j ACCEPT
    iptables -A OUTPUT -j ACCEPT
    iptables -A FORWARD -j ACCEPT

Thanks,

1 Like

Please be aware, if you execute the iptables rules listed above, your firewall will be completely open, which is a security risk.
BR,
Chris