FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14164 questions

16817 answers

27653 comments

54087 members

0 votes
72 views 2 comments
by

Hi, I'd like to report the following bug / problem we have with our RUTX09 routers.

Description of the problem :

When the modem has only internet using the WAN port (SIM card not inserted or no service ), and we send the "enable mobile data" command by modbus, the OpenVPN client connection will restart each 30 seconds, making it unusable.

Configuration of the modem :

  1. remove SIM card (or make sure the sim operator has no reception)
  2. connect WAN port to internet
  3. factory reset RUTX09 configuration
  4. enable failover on WAN, mob1s1a1 and mob1s2a1
  5. enable modbus TCP slave
  6. add an OpenVPN client profile

Steps to reproduce :

  1. Enable mobile data connection via modbus :
    using for example the QModbus utility, set register "204" to "1"

The OpenVPN connection will now restart each 30 seconds.

Expected behaviour :

The OpenVPN connection should remain stable.

Firmware tested :

  • 07.04.3
  • 07.04.2
  • 07.03.4

Workaround used :

Instead of using modbus, we use the JSON-RPC call to disable / enable mobile data.

Sending via JSON-RPC the command "network.interface.mob1s1a1 up/down" does not give this bug.

Logs :

Each 30s these kind of logs appear :

Wed May 24 16:45:26 2023 daemon.notice netifd: mob1s1a1 (4518): Network registration failed
Wed May 24 16:45:26 2023 daemon.notice netifd: mob1s1a1 (5950): Stopping network mob1s1a1
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Not found
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Not found
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5950): Command failed: Permission denied
Wed May 24 16:45:27 2023 daemon.notice netifd: Interface 'mob1s1a1' is now down
Wed May 24 16:45:27 2023 daemon.notice netifd: Interface 'mob1s1a1' is setting up now
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): wwan[5973] Using wwan usb device on bus 3-1
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): wwan[5973] Using proto:qmi_wwan device:/dev/cdc-wdm0 iface:wwan0 desc:Quectel EG06
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): Quering active sim position
Wed May 24 16:45:27 2023 daemon.notice netifd: mob1s1a1 (5973): Using net device: wwan0
Wed May 24 16:45:28 2023 daemon.notice netifd: mob1s1a1 (5973): Informing driver of raw-ip for wwan0 ..
Wed May 24 16:45:28 2023 user.notice root: uqmi -d /dev/cdc-wdm0 --timeout 3000 --wda-set-data-format --link-layer-protocol raw-ip --ul-protocol disabled --dl-protocol disabled
Wed May 24 16:45:28 2023 daemon.info dnsmasq[28292]: read /etc/hosts - 4 addresses
Wed May 24 16:45:28 2023 daemon.info dnsmasq[28292]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Wed May 24 16:45:28 2023 daemon.err openvpn(test)[5257]: event_wait : Interrupted system call (code=4)
Wed May 24 16:45:28 2023 daemon.notice openvpn(test)[5257]: SIGTERM received, sending exit notification to peer
Wed May 24 16:45:28 2023 daemon.notice netifd: mob1s1a1 (5973): Starting network mob1s1a1 using APN: orange


 

1 Answer

0 votes
by
Hello,

Thank you for the detailed analysis.

I have replicated the same behavior using router's internal MODBUS TCP master application.

I have also found that the behavior stops, if instead of '1', the value of '0' is written to the same register.

I will inform the developers about it.

I would also like additional details about your use case, under what circumstances do you need to disable mobile data, while the SIM is not inserted, or is it simply a discovery of tinkering around with router's features?   

Best regards,
by
Hi,

Some more details about our use case : we use the RUTX09 router on an autonomous vessel; WAN is connected to satellite internet.
Close to the shore the cellular connection is the cheapest and has the best performance, but when we are further away cellular becomes unreliable : the operator can disable cellular data, so failover will switch over to the satellite modem.

Our vessel HMI has a button that will enable/disable mobile data on the router.

Removing the SIM card was the easiest way to reproduce the problem, but we had the same problem with the SIM card inserted but when we have no cellular service.

Regards,
ago by
Hello,

The issue has been registered to the developers.

Once there is an update, I will inform you.

Best regards,