Netgate SG-1000 microFirewall

Author Topic: Huawei ME909S-120 setup help needed  (Read 528 times)

0 Members and 1 Guest are viewing this topic.

Offline pr4499

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Huawei ME909S-120 setup help needed
« on: November 06, 2017, 10:04:32 pm »
Hi all,

I have a Huawei ME909S-120 which is connected to the Mini PCI-X on the motherboard. 

PFSense detects it and I have options under Interfaces -> PPPs -> new

/dev/cuaU0.0
/dev/cuaU0.1
/dev/cuaU0.2
/dev/cuaU0.3
/dev/cuaU0.4
/dev/cuaU0
/dev/cuaU1

I'm not an expert, but I am learning. I am told that cuaU0 and cuaU1 are the onboard ports on the actual motherboard and the 0.0 through 0.4 are the ports of the ME909S-120, is this correct?

I know how to SSH into pfSense, but I don't know much about what to do.  Is there a command that will help me find out which one (0.0 - 0.4) I should select in the PPPs configuration?

I'm using Telstra in Australia and I believe that the APN setting should be telstra.iph and the phone number should be *99# but I think we need to get the first bit right before testing this bit.

Any help greatly appreciated!

Offline pr4499

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #1 on: November 07, 2017, 04:54:51 pm »
anyone?

Offline johnkeates

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +59/-1
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #2 on: November 08, 2017, 07:31:28 am »
According to the Huawei page it has:

CDC-ECM
FOTA
Firmware Update via USB
Embedded UDP/TCP/FTP(s)/HTTP(s) stack
High-speed UART
CMUX
Sleep mode

To me, that seems to mean you can put it in some CDC mode (non-UART / non-Serial) for better performance, and at the same time, the configuration will be much easier. This will make the modem appear as an ethernet port and you can then get an IP address from it via DHCP. Next, you log in to the modem's web interface and configure the rest in there. What you need is a USB mode switch command.

Offline AndrewZ

  • Full Member
  • ***
  • Posts: 270
  • Karma: +20/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #3 on: November 08, 2017, 02:27:24 pm »
please check my earlier post here

Offline conor

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +4/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #4 on: November 21, 2017, 03:21:20 pm »
Didn't think that module worked in pfSense what version are you using?

The /dev/cuaU0.0 is probably your data port for it.

You need to edit your /etc/remote file so you can test with the tip program. The file is going to need an entry like this:
ucom1:dv=/dev/cuaU0.0:br#115200:pa=none:

Then connect with tip to the module using

tip ucom1

Then enter the commands:

ATE
AT^ICCID?

If you get a value back with the second command then you are seeing your sim card serial number and your good to keep going and set up a PPP connection in pfSense.

Warning - using the u3g driver creating the cuaU interfaces means that even though you will select say /dev/cuaU0.0 in the PPP for the interface setup you will have problems where the module *may* come up on say /dev/cuaU1.x etc. So be warned then can be really annoying to understand and get used to.

Goto this site and setup a login they have all the up to date documents for Huawei modules, you're probably going to need them for that module.
https://techship.com/


Offline pr4499

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #5 on: December 04, 2017, 04:38:10 pm »
@AndrewZ

Thanks for your helpful post.  I had a go but I got lost half way. If I tried cu -l /dev/cuaU0.1 or 0.2 it would just hang the terminal window. Am I on the right track? Please help. Here were my results:

Code: [Select]
/root: dmesg
ugen1.4: <Huawei Technologies Co., Ltd. HUAWEI Mobile V7R11> at usbus1
u3g0 on uhub2
u3g0: <Huawei Mobile Connect - Modem> on usbus1
u3g0: Found 5 ports.

/root: usbconfig -d ugen1.4 dump_device_desc
ugen1.4: <Huawei Technologies Co., Ltd. HUAWEI Mobile V7R11> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0210
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x00ff
  bMaxPacketSize0 = 0x0040
  idVendor = 0x12d1
  idProduct = 0x15c1
  bcdDevice = 0x0102
  iManufacturer = 0x0001  <Huawei Technologies Co., Ltd.>
  iProduct = 0x0002  <HUAWEI Mobile V7R11>
  iSerialNumber = 0x0003  <0123456789ABCDEF>
  bNumConfigurations = 0x0003

/root: cu -l /dev/cuaU0.0
Connected

^RSSI: 6

^HCSQ: "LTE",20,18,106,12

^RSSI: 6

^HCSQ: "LTE",21,24,101,22

+CUSATP: "D00D8103010500820281829902090A"

+CUSATEND

^RSSI: 6

^HCSQ: "LTE",20,19,96,14

^RSSI: 6

^HCSQ: "LTE",21,24,106,22

^RSSI: 6

^HCSQ: "LTE",21,19,96,12

^RSSI: 7

^HCSQ: "LTE",23,24,106,20

^RSSI: 6

^HCSQ: "LTE",20,19,101,14

^RSSI: 7

^HCSQ: "LTE",23,24,106,20

^RSSI: 5

^HCSQ: "LTE",18,18,126,16

^RSSI: 6

^HCSQ: "LTE",21,23,131,20

^RSSI: 5

^HCSQ: "LTE",19,18,116,14

^RSSI: 7

^HCSQ: "LTE",23,23,121,18

^RSSI: 7

^HCSQ: "LTE",22,18,121,10

^RSSI: 7

^HCSQ: "LTE",22,26,126,24

^RSSI: 6

^HCSQ: "LTE",20,21,126,18

^RSSI: 7

^HCSQ: "LTE",22,26,116,26

^RSSI: 7

^HCSQ: "LTE",22,19,121,10

^RSSI: 7

^HCSQ: "LTE",22,24,121,20

^RSSI: 7

^HCSQ: "LTE",23,19,116,8

^RSSI: 7

^HCSQ: "LTE",22,24,121,22

^RSSI: 5

^HCSQ: "LTE",19,19,121,16

^RSSI: 6

^HCSQ: "LTE",21,24,121,22

^RSSI: 6

^HCSQ: "LTE",20,18,116,14

^RSSI: 7

^HCSQ: "LTE",23,24,121,18

^RSSI: 7

^HCSQ: "LTE",22,18,116,8

^RSSI: 8

^HCSQ: "LTE",24,24,116,16

^RSSI: 7

^HCSQ: "LTE",22,18,116,8

^RSSI: 7

^HCSQ: "LTE",22,24,116,20

^RSSI: 7

^HCSQ: "LTE",23,18,116,6

^RSSI: 6

^HCSQ: "LTE",21,23,116,20

^RSSI: 7

^HCSQ: "LTE",22,17,116,8

^RSSI: 8

^HCSQ: "LTE",24,23,116,14

^RSSI: 6

^HCSQ: "LTE",21,17,116,10

^RSSI: 8

^HCSQ: "LTE",24,23,116,14

^RSSI: 6

^HCSQ: "LTE",20,18,116,12

^RSSI: 6

^HCSQ: "LTE",21,23,116,20

^RSSI: 6

^HCSQ: "LTE",21,17,116,8

^RSSI: 7

^HCSQ: "LTE",22,22,116,16

^RSSI: 6

^HCSQ: "LTE",20,16,111,10

^RSSI: 6

^HCSQ: "LTE",21,22,111,18

^RSSI: 5

^HCSQ: "LTE",19,15,116,8

^RSSI: 6

^HCSQ: "LTE",20,21,116,18

^RSSI: 8

^HCSQ: "LTE",25,26,111,18

^RSSI: 7

^HCSQ: "LTE",22,21,116,16

^ECCLIST: 112,911,000,0000

^RSSI: 15

^HCSQ: "LTE",39,29,116,26

^RSSI: 7

^HCSQ: "LTE",23,19,126,8

^RSSI: 7

^HCSQ: "LTE",22,24,116,20

^RSSI: 6

^HCSQ: "LTE",20,19,106,14

^RSSI: 6

^HCSQ: "LTE",21,25,116,24

^RSSI: 6

^HCSQ: "LTE",20,19,116,16

^RSSI: 9

^HCSQ: "LTE",26,25,106,14

^RSSI: 7

^HCSQ: "LTE",22,19,116,10

^RSSI: 8

^HCSQ: "LTE",25,24,121,14


Offline conor

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +4/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #6 on: December 05, 2017, 06:55:08 am »
In other variants of Huawei the serial ports you are interested in are cuaU0.0 and cuaU0.2
cua0.0 is the data connection port you use that one in the PPP configuration page in pfSense GUI.

The cuaU0.2 is a serial port for management only you can't create a PPP connection across it, but its handy for using for checking the status while a PPP tunnel is up on cuaU0.0

Offline pr4499

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #7 on: December 11, 2017, 12:18:35 am »
Thanks Conor.  What command do I type to check for certain that it is definitely cuaU0.0? I do believe you, but nobody here seems to be able to have a definitive answer on this. There must be a way to check for sure.  Either way, I can't through the above tutorial from AndrewZ because I don't get the same results, so I'm still lost.

My results of typing cu -l /dev/cuaU0.0 are different to the results shown by AndrewZ, so are my results still okay? Or have I gone wrong somewhere?

He mentions the "composition" and something about...
 AT^SETPORT?
^SETPORT:FF;10,12,16
...but I can't find this anywhere from the results of those commands, why?

What is "cu" exactly?

What does "Z" as the init string actually do?

How do I know for sure what the APN and phone number settings should be? I have 5 different websites saying 5 different things. How can I be certain of which one is correct?  I've been working on this for hours trying different combinations, but any idiot can do trial-and-error, how can we know if we have at least 1 setting correct?

Can anyone please help?

Offline AndrewZ

  • Full Member
  • ***
  • Posts: 270
  • Karma: +20/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #8 on: December 11, 2017, 09:51:33 am »
Code: [Select]
/root: cu -l /dev/cuaU0.0
Connected

^RSSI: 6

^HCSQ: "LTE",20,18,106,12

- looks like you're on the right port. Unfortunately I do not have the same modem and cannot check myself.
You can try to blindly enter ATE followed by Enter, then type AT (with Enter again) - you should be able to see both AT and OK as a response.

^SETPORT may not be available in your modem.
"cu" is a terminal emulation program, usually called just a terminal
Z (ATZ) is a reset command, please search for Hayes AT command set.

Quote
How do I know for sure what the APN and phone number settings should be?
Ask your provider, then test on your computer, without pfSense.


Offline conor

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +4/-0
    • View Profile
Re: Huawei ME909S-120 setup help needed
« Reply #9 on: January 04, 2018, 03:45:50 am »
This may be too late for you but any way:

The cuaU0.0 and cuaU0.2 are serial interfaces to your modem, you can connect to serial interfaces using the programs tip or cu, depending on your software version they may or make not exist in your build. I prefer tip so I installed that via pkg from freebsd, then i modified /etc/remote and added the line:

myradio:dv=/dev/cuaU0.2:br#115200:pa=none:

this allows me to connect to the serial management ports on the device with the command:
tip myradio

I then get "Connected" printed to the screen.

check if the sim card is communicating with the radio module:
AT^CARDMODE?

First thing to do is check if the sim is PIN locked enter the command:
AT^CPIN?

Then you need to check if your sim is registered to a network:
AT+COPS?

You're going to need to understand the AT commands, the best source for docs is https://techship.com/ you'll probably need to create an account but my understanding is that that part is free.

Once you know that your sim is talking with your radio and that its not pin locked and that it is registered to your network, only then do you try to create a PPP connection. This is where you use the PPP settings in the pfsense web gui, start with the default dial string settings, don't worry about the APN.

SSH to the device and run the command: clog-f /var/log/ppp.log
This will allow you to watch what the ppp (MPD5 process) is doing.

When ppp attempts a connection it first dial or creates a link and then does authentication the second part autentication is where the APN is used, so first check that you are able to create a link even if the auth fails. Then you know the dial string is probably ok.

The PPP process is roughly as follows:
Link (Dial String) ==> Auth (APN) ==> DHCP (you get an IP)


Personally I have modified heavily the PPP configuration file so that I can check the connection step by step, e.g. is card present, is it pin locked etc. However pfsense creates the PPP conf file so i also have to modify that, hence pushing me out of the standard upgrade process. So I can't just provide you with the file as i would lock you to a version which is a bad security idea.