I want to read the RSSI of my Huawei E3531. So I found some documentations that show an easy way to get those informations using the AT command. The problem is that I can't even connect to my Huawei E3531. I mean, it works really well as a modem. I have a good connection. But when I am looking for the device in dev, I just find 2 devices ("sdb" and "sgm") which seem to be 2 disc, but nothing to do with serial port.
So I tried somethin I found: -After I plugged the Huawei, I find the Idvendor and Idproduct doing an lsusb. -They I do a sudo modprobe usbserial vendor=0X"Idvendor" product=0X"Idproduct" -And then when I do dmesg I can read:
[ 1038.498282] usbcore: registered new interface driver usbserial
[ 1038.498299] usbcore: registered new interface driver usbserial_generic
[ 1038.498312] usbserial: USB Serial support registered for generic
Normally I should have something like:
usb 1-1: generic converter now attached to ttyUSB0
I think I have to say that it was not even possible to see the sdb and sgm from my mac, so I am doing this from my Ubuntu. And if I enable my wifi, the modem cannot connect ( so I do not see the sdb and sgm)
If someone need it here is the first part of the dmesg:
[ 742.756888] usb 3-1: USB disconnect, device number 6
[ 743.123706] usb 3-1: new high-speed USB device number 7 using xhci_hcd
[ 743.252854] usb 3-1: New USB device found, idVendor=12d1, idProduct=14dc
[ 743.252861] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 743.252865] usb 3-1: Product: HUAWEI Mobile
[ 743.252868] usb 3-1: Manufacturer: HUAWEI
[ 743.482312] cdc_ether 3-1:1.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, 9a:c2:9b:ee:4c:d9
[ 743.482859] usb-storage 3-1:1.2: USB Mass Storage device detected
[ 743.483249] scsi11 : usb-storage 3-1:1.2
[ 743.520839] audit: type=1400 audit(1427889713.269:79): apparmor="DENIED" operation="file_inherit" profile="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3414 comm="nm-dhcp-client." lport=29180 family="inet" sock_type="dgram" protocol=17
[ 743.520857] audit: type=1400 audit(1427889713.269:80): apparmor="DENIED" operation="file_inherit" profile="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3414 comm="nm-dhcp-client." lport=47709 family="inet6" sock_type="dgram" protocol=17
[ 744.481267] scsi 11:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 744.481722] sd 11:0:0:0: Attached scsi generic sg2 type 0
[ 744.482933] sd 11:0:0:0: [sdb] Attached SCSI removable disk
[ 753.752310] audit: type=1400 audit(1427889723.496:81): apparmor="DENIED" operation="file_inherit" profile="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3423 comm="nm-dhcp-client." lport=29180 family="inet" sock_type="dgram" protocol=17
[ 753.752328] audit: type=1400 audit(1427889723.496:82): apparmor="DENIED" operation="file_inherit" profile="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=3423 comm="nm-dhcp-client." lport=47709 family="inet6" sock_type="dgram" protocol=17
[ 1038.498282] usbcore: registered new interface driver usbserial
[ 1038.498299] usbcore: registered new interface driver usbserial_generic
[ 1038.498312] usbserial: USB Serial support registered for generic
Thank you again, if you can give me even a small idea, I will take it! see you soon
EDIT 9/04/2015 So I found something. Do an lsusb you will see your device as:
Bus 003 Device 020: ID 12d1:1f01 Huawei Technologies Co., Ltd.
1f01 is the Idproduct, but it can change sometime, because the modem goes to different mode on its own. If it is 1F01, do:
sudo usb_modeswitch -v 12d1 -p 1F01 -M '55534243123456780000000000000011062000000100000000000000000000'
This will force your device your device to change mode. Now your device will have an Idproduct iqual to 1001. Do an lsusb to see it:
Bus 003 Device 023: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
And you have 4 new usb dev: USB0, USB1, USB2 and USB3. Now I am going to try minicom to send the AT command.