I really need help…
I have Raspberry Pi 4, 4GB, Home Assistant Core, version 0.115.3.
Device is:
- Huawei E3531
(inserted SIM card, mobile data disabled as I need only SMS sending feature) - 16GB USB stick for configuration
I’m strugling for 2 days to detect device with no success…
I tried with file content (udev\10-gsm-modem.rules):
ACTION=="add" \
, ATTRS{idVendor}=="12d1" \
, ATTRS{idProduct}=="1f01" \
, RUN+="/sbin/usb_modeswitch -v 12d1 -p 1f01 -I -M '55534243123456780000000000000011062000000100000000000000000000' "
and also with
ACTION=="add" \
, ATTRS{idVendor}=="12d1" \
, ATTRS{idProduct}=="1f01" \
, RUN+="/sbin/usb_modeswitch -X -v 12d1 -p 1f01"
and also withouth -x prefix…
I did make USB import in “http://MYIP:8123/hassio/system” under “Import from USB”.
But I see error under udev:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[14:08:15] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[14:08:16] INFO: Start local supervisor watchdog...
Probably this is meaning that something is not OK. Error is the same in both script which I tried under file “10-gsm-modem.rules”.
So, did I make some mistake?
Also, when I log via PuTTY [terminal window] (where I got vendor ID, product ID) it do not find any USB device, no matter how much time I make restart of Home Assistant Core or Host system…
~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 12d1:1f01
Bus 001 Device 002: ID 2109:3431
Bus 002 Device 002: ID 0781:5583
Bus 002 Device 001: ID 1d6b:0003
~ $ ls -l /dev/*USB*
ls: /dev/*USB*: No such file or directory
~ $
So, is this problem regarding that I did not make step:
Try disable virtual cd-rom and change work mode “only modem”. After this modem correct work on Raspberry Pi without ‘udev’ rule.
If yes, how exactly to do that?
Also, I did not convert USB Huawei E3531 to modem-mode function as I do not know how to do that.
I know that there is instruction for Huawei E3372h-153 on http://blog.asiantuntijakaveri.fi/2015/07/convert-huawei-e3372h-153-from.html, but is this also good for my device, because it’s not the exact same device?
Can somebody help me step by step what I need to do so that I will resolve and make possible to send SMS via HA.
THANK YOU for your help…