USB modem on RPi 4

Hello all.

I have now been trying for some time to set a Huawei E3531 up to my Home assistant that i run on my Raspberry Pi 4 2GB.

The reason for this project is that i have an NEXUSCCTV smart alarm that HA don’t works with so as a try to fix this in my setup i got my hans on some burner numbers and a E3531 USB stick (had a few of the just laying around unused for a long time now) so i thort i would give it a try to set the HA up to text the commands to my alarm to arm and desarm.

But here comes the first problem.
When i connect the stick and run the command

ls -l /dev/*USB*

it just say

ls: /dev/*USB*: No such file or directory

And sudo commands don’t look to work in the SSH

but wen i run

lsusb

the output is the following information

Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 12d1:15ca
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 001: ID 1d6b:0003

so out from this i would pressume that the stick “works” or atleast the pi register that its there…

The thing is now… where do i go from here??
and will it even work??

Look in /var/log/messages to see what happens when you plug the stick.

I will try that when I get home tomorrow and report my findings back.

I have now tryed the command

/var/log/messages

The response was

bash: /var/log/messages: No such file or directory

But…
If i unplug my 3G modem and run

lsusb

The the response is

Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 001: ID 1d6b:0003

and if i plug it in again and run

lsusb

the response is

Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 004: ID 12d1:15ca
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 001: ID 1d6b:0003

So i think it’s sure to asume that the device with id 12d1:15ca is the 3G USB modem
for each time i unplug it an plug it in again it increses in device id (003, 004, 005, 006)

or syslog or kern.log or dmesg or whatever way logging is configured on your system.

Do lsusb -v for the details

Yeah… that’s the thing…

I have used the standard Raspberry Pi OS image.
I have no clue about how the setup is made.
all i know is if i use the terminal & SSH from the apps library it looks like it use busybox more than full blown linux shell

also the lsusb -v did not show more info at all.

Raspbian? Then it should work the way I said.
HassOS? Hardly the “standard Raspberry Pi OS image” and I have no clue what’s in there. Anyway, dmesg should work, and I guess they kept /var/log as the main logging location.

HassOS is the one i use.
Also non of the sugested commands worked.

Okay.

I have been searching some more on the internet and i finaly got it all solved.

Further down on the documentation about the configuration for sim i found a guide for raspberry pi and on some other page a guide to make a switch command and now it seems to work.

I do have to find me an active sim card to test if it truly works (the sim i have now is a non active one).

But it’s on the right track now.

Hi
Could you please let me know the way you solved the problem ? My usb modem reacts as follow:

[core-ssh ~]$ lsusb -v
Bus 001 Device 004: ID 111d:0000
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0424:ec00
Bus 001 Device 002: ID 0424:9514
Bus 001 Device 005: ID 2077:f000

the last line seems to be my usb 3g modem

Did you get it working in HassOS?

Sorry.
Was away for some time.
But yeah I got it working.
I made a rule file that I copied to a USB key that got loaded in after a reboot.
I can try and find it if you like?

Sorry. Went off for some time.
I did get it to work.
I can find the files needed if you like?

I found out it works out the box now

Nice.
That makes my method obsolete.

But nice to know that if I want to connect mine again it should work right away this time.

Well saying that, I was trying on x64, so it might be different for RPI

Maybe.
I don’t use it at the time do to i didn’t get it to communicate correctly with my security alarm.
So I scratched it all and build my own based on alarmo.

And I’m trying to integrate VoIP so there’s currently no need for it in my setup.