Category Archives: IoT

Internet of Things

Fail to Get MOBITEK S80 to Work in USB port in VirtualBox

This method mentioned in https://www.wintips.org/how-to-setup-usb-on-virtualbox-guest-oracle/  was used to test the USB driver of MOBITEK S80 3G Modem in the virtual machine (Windows Server 2012 64-bit)

After installing Extension Pack in VirtualBox, USB 2.0 and USB 3.0 shown in the USB list

When virtual machine was started, the “Sierra Wireless” device was shown in the list:-

The COM PORT (COM6) appeared in “Device Manager”:-

However, in Hyper Terminal the “AT-OK” test could not be performed because it seems like the Hyper Terminal only catch the physical COM PORT of the MOBITEK S80, but the connection is not actually established with the modem. Nothing can be typed in Hyper Terminal to test the connection.


 

The same problem happens in Linux Mint running in VirtualBox

  • VirtualBox version: 6.1
  • OS in virtual machine: Linux Mint 17 ‘Qiana’ Cinnamon 64-bit

Mobitek S80 that attached to Linux Mint running in VirtualBox can be detected when running the “dmesg | grep tty” command in Linux Mint’s Terminal

But each interface from “ttyUSB0” until “ttyUSB4” which MobitekS80 is attached to cannot be tested with AT command in CuteCom. CuteCom will be frozen when the AT command was entered.

How to Set-Up MOBITEK S80 SMS Modem with WinPower UPS software

Applies to:

MOBITEK® S80 for SMS Over 3G Network

STEPS

  1. Connect your laptop/desktop to UPS and MOBITEK S80 Modem to laptop/desktop. Open Winpower UPS software. Go to System menu -> Act as Administrator and enter the password. The default password is “Administrator“. This step is important in order to configure Winpower software setting.

    To change the administrator password (optional), go to System menu -> Modify Administrator Password and enter the new password for administrator.
  2. Go to System menu -> Auto Search Device to search for UPS device automatically.

    Wait for the UPS to be searched.

    When found, the UPS device will be shown in the list. Double-click on it to see the UPS device status.
  3. Go to Tools menu -> SMS Setting to configure the SMS notification for UPS events.
  4. In SMS Setting, set the Com Port for MOBITEK S80 Modem, the Baud Rate to “115200“, and the Format of phone number to “Without National Code“. Enter the phone number for the notification to be sent, click Add button and select the phone number in the list. After that select the abnormal event in the event list that you want to be notified for. Click Test button to test the SMS sent successfully or not. If successful, click OK button.

How to Search for the IP Address of MOBITEK S80 3G Modem

There are 2 methods:-

  1. USR-TCP
  2. USR-VCOM

 

  1. USING USR-TCP
    Click on ” Search in LAN” and you will find your modem in the “Device list in the Net”.Once you click on the modem which is visible on that list, you can view the parameters (including the IP address) of MOBITEK S80 3G MODEM.
  2. Using USR-VCOM
    Once done with the USR-VCOM setup, click on “Search” and select T24. 

    The modem that been detected by the USR-VCOM will be shown as below with the IP address:

Set-up Guide for MOBITEK S80 on LAN

Objective: to set-up MOBITEK® S80  and MOBITEK® Q25 to operate on local area network (LAN) via LAN port.

Applies to:-

  • MOBITEK® S80  Type S-L
  • MOBITEK® S80 Type E-L
  • MOBITEK® Q25 Type D
  • MOBITEK® Q25  Type M

MOBITEK® S80 for SMS Over 3G Network

MOBITEK® Q25 4G Modem for SMS, E-Mail, MQTT & GNSS

 

How to Configure LAN Port of MOBITEK® S80

There are 2 tasks:-

  1. How to Assign/Change IP Address of MOBITEK® S80
    1. IP address has to be assigned to the modem
  2. How to Add A COM Port for MOBITEK® S80
    1. on PC/server, a new COM port has to be added and mapped to the IP address of the modem

 

How to Assign/Change IP Address of MOBITEK® S80

  1. Connect the LAN  (ethernet) cable to the modem and the other end to your router or switch.
  2. Connect power adapter to the modem, turn on the power.
  3. Run the Windows application “USR-TCP232-T24-V5.1.1.20.exe“.
  4. Click “Search in LAN”.
  5. It will look for the IP address of MOBITEK® S80, if found it will display the address. In this example it is 192.168.31.7
  6. Click the “Device list in the net” , make the following changes in the “Parameters” section:-
    1. set to “TCP Server”;
    2. change the IP address in “Module IP” that matches your LAN, the IP address is for MOBITEK® S80 (e.g. 192.168.10.210);
    3. change the “Default Gateway” that matches the IP address of your router (e.g. 192.168.10.1);
    4. optional — change “Module port”;
  7. Finally, click “Set selected item via Net” or “Set selected item via LAN” to save changes.
  8. Exit the Windows application “USR-TCP232-Setup”.
  9. Check if the new IP address assigned to MOBITEK® S80 is discoverable by entering the IP address into the browser. The username and password are as below:
    • Username = admin
    • Password = admin
  10. Go to “Local IP Config” and see the “Static IP” and “Gateway”.

 

How to Add A COM Port for MOBITEK® S80

  1. In Windows PC/Server, install “USR-VCOM” then run it.
  2. Click “Smart VCOM” (you must first exit “USR-TCP232-Setup”, otherwise an error message “Search port 1901 is occupied” will appear):
    USR-VCOM_V3.7.1.520_Setup-01
  3. If MOBITEK® S80 is found, it will be displayed. Check it then click “Next” to create COM port.
  4. A new COM port number will be created under “COM Name”, in this example it is 2.
  5. Also the COM port number can also be seen either in “Device Manager -> Ports”

    or in  “Device Manager -> Virtual Serial Ports (Eltima Software)”. COM port number will be displayed.
    USR-VCOM_V3.7.1.520_Setup-04
  6. “Net State” will show “Connected”.
  7. Your application will communicate with MOBITEK® S80 via the above COM port number.
  8. When your application is connected to MOBITEK® S80  then “COM State” will show “Open”.
  9. When your application is communicating with MOBITEK® S80 to send and read SMS, the values in “COM Received” and “Net Received” will be increasing.
  10. Ensure “USR-VCOM” is set to “AutoRun” (red box) and ensure it is running, otherwise SMS application is unable to connect to MOBITEK® S80 Modem:

 

Appendix: Using “Search” to Find the IP address of MOBITEK S80

  1. If “Smart VCOM” fail to work, then use “Search” function. Select “USR-TCP232-T24”:
  2. If modem is found, it will list the IP address of modem:
  3. Click “Connect Virtual COM” to create a COM port:
  4. Select a COM port for the modem (e.g. COM2), and select “TCP Client”:
  5. MOBITEK® S80 Modem is connected to COM port number 2.