OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: NKnusperer on October 15, 2022, 02:01:49 pm

Title: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on October 15, 2022, 02:01:49 pm
Hello, has someone successfully used a EM7565 LTE card?
There are two devices visible when creating a new Point-to-Point device: /dev/cuau0 and /dev/cuau1
Both of them are failing: The modem is not responding to "AT" at ModemCmd: label
Using "&F0E1Q0 +CMEE=2" as init string also has no observable effect.
usbconfig output:
Code: [Select]
ugen0.2: <Sierra Wireless, Incorporated EM7565-9> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x00ef  <Miscellaneous device>
  bDeviceSubClass = 0x0002
  bDeviceProtocol = 0x0001
  bMaxPacketSize0 = 0x0040
  idVendor = 0x1199
  idProduct = 0x9091
  bcdDevice = 0x0006
  iManufacturer = 0x0001  <Sierra Wireless, Incorporated>
  iProduct = 0x0002  <EM7565-9>
  iSerialNumber = 0x0000  <no string>
  bNumConfigurations = 0x0001

Update:
It looks like that this device was just recently added to FreeBSD:
https://cgit.freebsd.org/src/commit/?id=89d98b9b003e63dfdf182fa3144a3e809019fcd4
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263700#c13

I created a issue for this: https://github.com/opnsense/src/issues/169

Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on October 15, 2022, 03:41:14 pm
Try AT!greset as AT command (from GUI only !greset).
With sierra Mc7304 I had most success with this command.
Device should be cuaUx.0
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on October 15, 2022, 05:22:24 pm
I get a "Connected" from cu but the session seems to be dead, nothing is ever retuned to any given command.
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on October 15, 2022, 05:24:21 pm
What are the commands you tried?
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on October 15, 2022, 05:28:05 pm
"ATI" and "AT!IMAGE?".
Code: [Select]
# ls -a /dev/cu*
/dev/cuau0      /dev/cuau0.init /dev/cuau0.lock /dev/cuau1      /dev/cuau1.init /dev/cuau1.lock
There are only two devices which exist.
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on October 15, 2022, 05:33:23 pm
What says "AT" and "AT+CPIN?"?
Have you tried to reboot the sense?
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on October 15, 2022, 05:39:44 pm
What says "AT" and "AT+CPIN?"?

Nothing, the session is just hanging.
I already rebooted multiple times.
Before installing it into the sense I upgraded to the latest firmware using Linux so I know the device itself is fine.
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on October 15, 2022, 06:01:30 pm
Hm, ok. I am not sure whether the device is recognized correctly or not.
It should be /dev/cuaU0.1 or /dev/cuaU0.2 out of 4 or 6, where one of them is the device that responds to AT (eg cu -l cuaU0.2).

Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on October 16, 2022, 01:25:00 pm
Which USBCOMP mode are you using?
Right now I'm using "1,3,10D" for QMI, might this be a problem?
As far as I understand neither QMI nor MBIM are supported by FreeBSD?
I also noticed that under Linux there are 3 serial interfaces exposed (ttyUSB0, 1 and 2) where 2 is the one which is responding to commands.
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on October 16, 2022, 05:06:54 pm
I don't know, sorry... I am using a external modem because I always had similar issues with the Mc7304  :o
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: NKnusperer on November 11, 2022, 09:13:37 am
Now works with OPNsense 22.7.7.
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: tiermutter on November 11, 2022, 09:36:03 am
Did you do soemthing special or just updated to the new version?
Title: Re: Sierra Wireless EM7565 LTE card supported?
Post by: franco on November 11, 2022, 11:38:19 am
that was https://github.com/opnsense/src/issues/169


Cheers,
Franco