Probleme avec Dongle Qualcomm INC Siemens SG75

Bonjour,
Pour envoyer des SMS depuis mon Pi

Raspberry Pi 3B+
raspbian strech
Install de gammu, gammu-smsd, wvdial,modemmanager, usb_modeswitch

Le dongle Qualcomm étant détecté en Masse storage device, j’ai rajouté dans
/lib/udev/fules.d/40-usb_modeswitch.rules
la ligne ATTR{idVendor}=="05c6", ATTR{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch -W -v 05c6 -p 1000 -K"
Cela provoque bien la détection par lsusb de Qualcom en mode modem
J’ai rentré les config dans /etc/gammurc et gammu-smsdrc
Supprimé le code PIN sur la carte SIM

Le pb est qu’au bout de 30 secondes environ après le reboot, le modem est déconnecté, le Masse storage est détecté et semble prendre le dessus sur le modem ???

Que faire ??

le dmesg donne
11.743987] usb 1-1.1.2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
[ 11.743998] usb 1-1.1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 11.744003] usb 1-1.1.2: Product: Qualcomm CDMA Technologies MSM
[ 11.744008] usb 1-1.1.2: Manufacturer: Qualcomm, Incorporated
[ 11.744012] usb 1-1.1.2: SerialNumber: 351602000025260
[ 11.747073] usb-storage 1-1.1.2:1.4: USB Mass Storage device detected
[ 11.747393] scsi host0: usb-storage 1-1.1.2:1.4
[ 11.749294] Bluetooth: HCI UART driver ver 2.3
[ 11.749302] Bluetooth: HCI UART protocol H4 registered
[ 11.749346] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 11.749452] Bluetooth: HCI UART protocol Broadcom registered
[ 11.800920] usbcore: registered new interface driver usbserial_generic
[ 11.800959] usbserial: USB Serial support registered for generic
[ 11.816603] usbcore: registered new interface driver option
[ 11.816656] usbserial: USB Serial support registered for GSM modem (1-port)
[ 11.817162] option 1-1.1.2:1.0: GSM modem (1-port) converter detected
[ 11.820142] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 11.820393] option 1-1.1.2:1.1: GSM modem (1-port) converter detected
[ 11.825728] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 11.826044] option 1-1.1.2:1.2: GSM modem (1-port) converter detected
[ 11.831152] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 11.831410] option 1-1.1.2:1.3: GSM modem (1-port) converter detected
[ 11.833372] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3
[ 12.112297] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 12.112309] Bluetooth: BNEP filters: protocol multicast
[ 12.112332] Bluetooth: BNEP socket layer initialized
[ 12.172148] Bluetooth: RFCOMM TTY layer initialized
[ 12.172176] Bluetooth: RFCOMM socket layer initialized
[ 12.172198] Bluetooth: RFCOMM ver 1.11
[ 12.444109] fuse init (API version 7.27)
[ 12.793021] scsi 0:0:0:0: Direct-Access WCDMA MMC Storage 2.31 PQ: 0 ANSI: 2
[ 12.801394] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 12.818276] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 41.775101] usb 1-1.1.2: USB disconnect, device number 8
[ 41.776169] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 41.776250] option 1-1.1.2:1.0: device disconnected
[ 41.776956] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 41.777053] option 1-1.1.2:1.1: device disconnected
[ 41.777739] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 41.777833] option 1-1.1.2:1.2: device disconnected
[ 41.778722] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[ 41.778839] option 1-1.1.2:1.3: device disconnected

hello,

tu peux passer le log de udev en debug avec :
sudo udevadm control --log-priority=debug
avec un tail -f /var/log/syslog ( ou un less ) tu auras plus d’info…

Clair que la gestion d’udev c’est pas le plus simple dans linux !.

Bonsoir,

merci pour le conseil, je vais essayer ça demain.
Alain

Bonsoir,
J’ai réinstallé complétement raspbian strech lite
Le dongle Qualcomm non enfiché dans le port USB
installé gammu, gammusmsd, usb_modeswitch, wvdial
Ajouté dans /lib/udev/rules.d/40-usb_modeswitch.rules:
ATTR{idVendor}=="05c6", ATTR{idProduct}=="6000", RUN+="usb_modeswitch '%k'"

Ajouté dans /etc/udev/rules.d/99-com.rules: (pour basculer le Qualcom de storage en modem)
SUBSYSTEM =="usb", ATTR{idVendor}=="05c6", ATTR{id_product}=="1000", RUN+="/usb/sbin/usb_modeswitch -W -v 05c6 -p 1000 -K"

Cela semblait un peu mieux fonctionner j’ai reçu un sms.

Mais après reboot on retrouve le même problème de deconnextion du modem des ports USB
au bout d e30s , lsusb ne le voit plus

De plus pour qu’il apparaisse en modem il faut le débrancher rebrancher

As tu une idée ?

Ci dessous le résultat lsusb au début puis du tail au bout de 30s:

pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
Bus 001 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 010: ID 05c6:6000 Qualcomm, Inc. Siemens SG75
Bus 001 Device 006: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@raspberrypi:~ $ tail -f /var/log/syslog
Nov 16 17:31:19 raspberrypi kernel: [  940.766759] option 1-1.1.2:1.3: GSM modem (1-port) converter detected
Nov 16 17:31:19 raspberrypi kernel: [  940.767125] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3
Nov 16 17:31:19 raspberrypi kernel: [  940.767581] usb-storage 1-1.1.2:1.4: USB Mass Storage device detected
Nov 16 17:31:19 raspberrypi kernel: [  940.768201] scsi host0: usb-storage 1-1.1.2:1.4
Nov 16 17:31:19 raspberrypi mtp-probe: checking bus 1, device 14: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Nov 16 17:31:19 raspberrypi mtp-probe: bus: 1, device: 14 was not an MTP device
Nov 16 17:31:19 raspberrypi systemd[1]: Started USB_ModeSwitch_1-1.1.2.
Nov 16 17:31:20 raspberrypi kernel: [  941.835748] scsi 0:0:0:0: Direct-Access     WCDMA    MMC Storage      2.31 PQ: 0 ANSI: 2
Nov 16 17:31:20 raspberrypi kernel: [  941.836815] sd 0:0:0:0: Attached scsi generic sg0 type 0
Nov 16 17:31:20 raspberrypi kernel: [  941.840852] sd 0:0:0:0: [sda] Attached SCSI removable disk
Nov 16 17:31:37 raspberrypi gammu-smsd[856]: Starting phone communication...
Nov 16 17:31:42 raspberrypi gammu-smsd[856]: Soft reset return code: Aucune erreur. (NONE[1])
Nov 16 17:31:43 raspberrypi kernel: [  964.645025] usb 1-1.1.2: USB disconnect, device number 14
Nov 16 17:31:43 raspberrypi kernel: [  964.646039] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Nov 16 17:31:43 raspberrypi kernel: [  964.646111] option 1-1.1.2:1.0: device disconnected
Nov 16 17:31:43 raspberrypi kernel: [  964.646821] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Nov 16 17:31:43 raspberrypi kernel: [  964.646909] option 1-1.1.2:1.1: device disconnected
Nov 16 17:31:43 raspberrypi kernel: [  964.647544] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Nov 16 17:31:43 raspberrypi kernel: [  964.647630] option 1-1.1.2:1.2: device disconnected
Nov 16 17:31:43 raspberrypi kernel: [  964.648572] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Nov 16 17:31:43 raspberrypi kernel: [  964.648727] option 1-1.1.2:1.3: device disconnected
Nov 16 17:31:51 raspberrypi gammu-smsd[856]: Error getting security status: Erreur lors de l'écriture sur le périphérique. (DEVICEWRITEERROR[11])
Nov 16 17:31:51 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
Nov 16 17:32:06 raspberrypi gammu-smsd[856]: Error getting security status: Erreur lors de l'écriture sur le périphérique. (DEVICEWRITEERROR[11])
Nov 16 17:32:06 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
^C
pi@raspberrypi:~ $ tail -f /var/log/syslog
Nov 16 17:32:21 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
Nov 16 17:32:21 raspberrypi gammu-smsd[856]: Already hit 3 errors
Nov 16 17:32:21 raspberrypi gammu-smsd[856]: Terminating communication: L'entrée est vide. (EMPTY[22])
Nov 16 17:32:21 raspberrypi gammu-smsd[856]: Going to 30 seconds sleep because of too many connection errors
Nov 16 17:32:51 raspberrypi gammu-smsd[856]: Starting phone communication...
Nov 16 17:32:51 raspberrypi gammu-smsd[856]: Error at init connection: Erreur à l'ouverture du périphérique: il n'existe pas. (DEVICENOTEXIST[4])
Nov 16 17:32:51 raspberrypi gammu-smsd[856]: Going to 30 seconds sleep because of too many connection errors
Nov 16 17:33:21 raspberrypi gammu-smsd[856]: Starting phone communication...
Nov 16 17:33:21 raspberrypi gammu-smsd[856]: Error at init connection: Erreur à l'ouverture du périphérique: il n'existe pas. (DEVICENOTEXIST[4])
Nov 16 17:33:21 raspberrypi gammu-smsd[856]: Going to 30 seconds sleep because of too many connection errors
Nov 16 17:33:33 raspberrypi kernel: [ 1075.275272] usb 1-1.1.2: new high-speed USB device number 15 using dwc_otg
Nov 16 17:33:33 raspberrypi kernel: [ 1075.407191] usb 1-1.1.2: New USB device found, idVendor=05c6, idProduct=1000, bcdDevice= 0.00
Nov 16 17:33:33 raspberrypi kernel: [ 1075.407208] usb 1-1.1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Nov 16 17:33:33 raspberrypi kernel: [ 1075.407218] usb 1-1.1.2: Product: Qualcomm CDMA Technologies MSM
Nov 16 17:33:33 raspberrypi kernel: [ 1075.407227] usb 1-1.1.2: Manufacturer: Qualcomm, Incorporated
Nov 16 17:33:33 raspberrypi kernel: [ 1075.407237] usb 1-1.1.2: SerialNumber: 351602000025260
Nov 16 17:33:33 raspberrypi kernel: [ 1075.410778] usb-storage 1-1.1.2:1.0: USB Mass Storage device detected
Nov 16 17:33:33 raspberrypi kernel: [ 1075.412505] scsi host0: usb-storage 1-1.1.2:1.0
Nov 16 17:33:33 raspberrypi mtp-probe: checking bus 1, device 15: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Nov 16 17:33:33 raspberrypi mtp-probe: bus: 1, device: 15 was not an MTP device
Nov 16 17:33:34 raspberrypi systemd[1]: Starting USB_ModeSwitch_1-1.1.2...
Nov 16 17:33:34 raspberrypi kernel: [ 1075.748714] usb 1-1.1.2: USB disconnect, device number 15
Nov 16 17:33:34 raspberrypi kernel: [ 1076.045146] usb 1-1.1.2: new high-speed USB device number 16 using dwc_otg
Nov 16 17:33:34 raspberrypi root: usb_modeswitch: use overriding config file /etc/usb_modeswitch.d/05c6:1000; make sure this is intended
Nov 16 17:33:34 raspberrypi root: usb_modeswitch: please report any new or corrected settings; otherwise, check for outdated files
Nov 16 17:33:34 raspberrypi kernel: [ 1076.177163] usb 1-1.1.2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
Nov 16 17:33:34 raspberrypi kernel: [ 1076.177172] usb 1-1.1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Nov 16 17:33:34 raspberrypi kernel: [ 1076.177176] usb 1-1.1.2: Product: Qualcomm CDMA Technologies MSM
Nov 16 17:33:34 raspberrypi kernel: [ 1076.177180] usb 1-1.1.2: Manufacturer: Qualcomm, Incorporated
Nov 16 17:33:34 raspberrypi kernel: [ 1076.177184] usb 1-1.1.2: SerialNumber: 351602000025260
Nov 16 17:33:34 raspberrypi kernel: [ 1076.179761] option 1-1.1.2:1.0: GSM modem (1-port) converter detected
Nov 16 17:33:34 raspberrypi kernel: [ 1076.179977] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB0
Nov 16 17:33:34 raspberrypi kernel: [ 1076.180297] option 1-1.1.2:1.1: GSM modem (1-port) converter detected
Nov 16 17:33:34 raspberrypi kernel: [ 1076.180465] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB1
Nov 16 17:33:34 raspberrypi kernel: [ 1076.180711] option 1-1.1.2:1.2: GSM modem (1-port) converter detected
Nov 16 17:33:34 raspberrypi kernel: [ 1076.180856] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB2
Nov 16 17:33:34 raspberrypi kernel: [ 1076.181099] option 1-1.1.2:1.3: GSM modem (1-port) converter detected
Nov 16 17:33:34 raspberrypi kernel: [ 1076.181238] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3
Nov 16 17:33:34 raspberrypi kernel: [ 1076.181421] usb-storage 1-1.1.2:1.4: USB Mass Storage device detected
Nov 16 17:33:34 raspberrypi kernel: [ 1076.181712] scsi host0: usb-storage 1-1.1.2:1.4
Nov 16 17:33:34 raspberrypi mtp-probe: checking bus 1, device 16: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2"
Nov 16 17:33:34 raspberrypi mtp-probe: bus: 1, device: 16 was not an MTP device
Nov 16 17:33:35 raspberrypi systemd[1]: Started USB_ModeSwitch_1-1.1.2.
Nov 16 17:33:35 raspberrypi kernel: [ 1077.196377] scsi 0:0:0:0: Direct-Access     WCDMA    MMC Storage      2.31 PQ: 0 ANSI: 2
Nov 16 17:33:35 raspberrypi kernel: [ 1077.197364] sd 0:0:0:0: Attached scsi generic sg0 type 0
Nov 16 17:33:35 raspberrypi kernel: [ 1077.203343] sd 0:0:0:0: [sda] Attached SCSI removable disk
Nov 16 17:33:51 raspberrypi gammu-smsd[856]: Starting phone communication...
Nov 16 17:33:56 raspberrypi gammu-smsd[856]: Soft reset return code: Aucune erreur. (NONE[1])
Nov 16 17:33:56 raspberrypi kernel: [ 1098.533162] usb 1-1.1.2: USB disconnect, device number 16
Nov 16 17:33:56 raspberrypi kernel: [ 1098.534141] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Nov 16 17:33:56 raspberrypi kernel: [ 1098.534214] option 1-1.1.2:1.0: device disconnected
Nov 16 17:33:56 raspberrypi kernel: [ 1098.534914] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Nov 16 17:33:56 raspberrypi kernel: [ 1098.535004] option 1-1.1.2:1.1: device disconnected
Nov 16 17:33:56 raspberrypi kernel: [ 1098.536585] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Nov 16 17:33:56 raspberrypi kernel: [ 1098.536752] option 1-1.1.2:1.2: device disconnected
Nov 16 17:33:56 raspberrypi kernel: [ 1098.537680] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
Nov 16 17:33:56 raspberrypi kernel: [ 1098.537776] option 1-1.1.2:1.3: device disconnected
Nov 16 17:34:05 raspberrypi gammu-smsd[856]: Error getting security status: Erreur lors de l'écriture sur le périphérique. (DEVICEWRITEERROR[11])
Nov 16 17:34:05 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
Nov 16 17:34:20 raspberrypi gammu-smsd[856]: Error getting security status: Erreur lors de l'écriture sur le périphérique. (DEVICEWRITEERROR[11])
Nov 16 17:34:20 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
Nov 16 17:34:35 raspberrypi gammu-smsd[856]: Error getting security status: Erreur lors de l'écriture sur le périphérique. (DEVICEWRITEERROR[11])
Nov 16 17:34:35 raspberrypi gammu-smsd[856]: You might want to set CheckSecurity = 0 to avoid checking security status
Nov 16 17:34:35 raspberrypi gammu-smsd[856]: Already hit 3 errors
Nov 16 17:34:35 raspberrypi gammu-smsd[856]: Terminating communication: L'entrée est vide. (EMPTY[22])
Nov 16 17:34:35 raspberrypi gammu-smsd[856]: Going to 30 seconds sleep because of too many connection errors

t’as essayer de mettre CheckSecurity=0 ds le fichier de config de gammu-smsd ?

c’estt peut être la vérification qui provoque la nouvelle détection de la clé ( ou pas :roll_eyes:)

Oui le CheckSecurity est bien =0

Configuration file for Gammu SMS Daemon

# Gammu library configuration, see gammurc(5)
[gammu]
# Please configure this!
port = /dev/ttyUSB0
connection = at
# Debugging
#logformat = textall

# SMSD configuration, see gammu-smsdrc(5)
[smsd]
service = files
logfile = syslog
# Increase for debugging information
debuglevel = 0

PIN = 1234

J’ai essayé en le mettant =4 c’est pareil !

si j’ai bien compris cette ligne ne doit servir a rien; je comprends qu’elle veut dire au système: si tu trouves une cléSG75 tu la transformes en clé SG75
je la supprimerai !

par contre l’autre règle devrait faire le job ( https://gist.github.com/UedaTakeyuki/07e0c6ca8df540028accc4186e3c6149)
elle pourrait être dans 98-something.rules

mais uniquement après un reboot ou peut être avec sudo udevadm control -R

Merci beaucoup
Je ne suis pas chez moi je fais l essai dès que je rentre

Alain

Bonsoir, de retour à la maison, j’ai fait tout ce que tu m’as suggéré mais tjs le même problème.

J’ai rechargé Raspbian Stretch sur la carte, réinitialisé le Pi sans brancher le modem (on ne sait jamais si il détecte le Qualcomm en mass storage ?)
Ajouté dans /etc/udev/rules.d/99-com.rules la ligne:
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="1000", RUN+="/usr/sbin/usb_modeswitch -W -v 05c6 -p 1000 -K"

Ce qui au reboot avec le cle Qualcomm enfichée fait bien basculer le Qualcomm en modem
On le voit bien par lsusb

Mais toujours le même pb, au bout de 30 secondes environ le modem se déconnecte

dmesg renvoie:

11.734040] usb 1-1.1.2: New USB device found, idVendor=05c6, idProduct=6000, bcdDevice= 0.00
[   11.734053] usb 1-1.1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[   11.734060] usb 1-1.1.2: Product: Qualcomm CDMA Technologies MSM
[   11.734064] usb 1-1.1.2: Manufacturer: Qualcomm, Incorporated
[   11.734068] usb 1-1.1.2: SerialNumber: 351602000025260
[   11.737915] usb-storage 1-1.1.2:1.4: USB Mass Storage device detected
[   11.739260] scsi host0: usb-storage 1-1.1.2:1.4
[   11.781240] usbcore: registered new interface driver usbserial_generic
[   11.781273] usbserial: USB Serial support registered for generic
[   11.816176] usbcore: registered new interface driver option
[   11.816217] usbserial: USB Serial support registered for GSM modem (1-port)
[   11.816638] option 1-1.1.2:1.0: GSM modem (1-port) converter detected
[   11.817564] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB0
[   11.818139] option 1-1.1.2:1.1: GSM modem (1-port) converter detected
[   11.818536] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB1
[   11.819070] option 1-1.1.2:1.2: GSM modem (1-port) converter detected
[   11.819563] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB2
[   11.820071] option 1-1.1.2:1.3: GSM modem (1-port) converter detected
[   11.820500] usb 1-1.1.2: GSM modem (1-port) converter now attached to ttyUSB3
[   11.933023] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   11.933031] Bluetooth: BNEP filters: protocol multicast
[   11.933045] Bluetooth: BNEP socket layer initialized
[   11.981993] Bluetooth: RFCOMM TTY layer initialized
[   11.982021] Bluetooth: RFCOMM socket layer initialized
[   11.982043] Bluetooth: RFCOMM ver 1.11
[   12.240708] fuse init (API version 7.27)
[   12.793147] scsi 0:0:0:0: Direct-Access     WCDMA    MMC Storage      2.31 PQ: 0 ANSI: 2
[   12.810346] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   12.832726] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   42.532789] usb 1-1.1.2: USB disconnect, device number 8
[   42.533299] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   42.533335] option 1-1.1.2:1.0: device disconnected
[   42.533670] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   42.533715] option 1-1.1.2:1.1: device disconnected
[   42.534019] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   42.534060] option 1-1.1.2:1.2: device disconnected
[   42.534382] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   42.534442] option 1-1.1.2:1.3: device disconnected

C’est cette partie qui m’inquiette:

12.793147] scsi 0:0:0:0: Direct-Access     WCDMA    MMC Storage      2.31 PQ: 0 ANSI: 2
[   12.810346] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   12.832726] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   42.532789] usb 1-1.1.2: USB disconnect, device number 8

J’en perd mon latin !
Le même dongle, mais un peu plus ancien fonctionne bien sur un autre Pi

Je crois que je fais finir par abandonner cette solution et acheter une carte HAT SIM800C chez EagleRobotics.

ce qui m’étonne c’est que le changement d’ID se fasse sur 1-1.1.2:1.0, 1-1.1.2:1.1, 1-1.1.2:1.2, 1-1.1.2:1.3
mais pas sur 1-1.1.2:1.4 et c’est celui la qui semble se reconnecter en mass storage …

il doit y avoir un moyen de préciser l’option ds la regle UDEV mais je n’ai pas trouvé comment
en précisant un ATTR? mais lequel ?

ou bien avec les options de usb_modeswitch :

-b --bus-num NUM

       -g --device-num NUM
                 If bus and device number are provided, the handling of a specific device on a specific USB port is guaranteed, in contrast to using only the USB ID. This  is  important
                 if there are multiple similar devices on a system

selon le man usb_modeswitch

avec sudo udevadm monitor on devrait avoir l’info (?) ou par lsusb ?

avec le raspberry pi sur lequel l’autre Qualcomm fonctionne le dmesg renvoie:

 10.685568] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k FS
[   10.704037] usb 1-1.3: New USB device found, idVendor=05c6, idProduct=f000
[   10.704045] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[   10.704050] usb 1-1.3: Product: Qualcomm CDMA Technologies MSM
[   10.704053] usb 1-1.3: Manufacturer: Qualcomm, Incorporated
[   10.704057] usb 1-1.3: SerialNumber: 869478036085866
[   10.706225] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[   10.706851] scsi host1: usb-storage 1-1.3:1.0
[   10.994154] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.817524] usb 1-1.3: USB disconnect, device number 6
[   12.111564] usb 1-1.3: new high-speed USB device number 7 using dwc_otg
[   12.244106] usb 1-1.3: New USB device found, idVendor=05c6, idProduct=6000
[   12.244114] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[   12.244119] usb 1-1.3: Product: Qualcomm CDMA Technologies MSM
[   12.244122] usb 1-1.3: Manufacturer: Qualcomm, Incorporated
[   12.244126] usb 1-1.3: SerialNumber: 869478036085866
[   12.247296] usb-storage 1-1.3:1.4: USB Mass Storage device detected
[   12.247529] scsi host1: usb-storage 1-1.3:1.4
[   12.297590] usbcore: registered new interface driver usbserial
[   12.297626] usbcore: registered new interface driver usbserial_generic
[   12.297653] usbserial: USB Serial support registered for generic
[   12.335332] usbcore: registered new interface driver option
[   12.335373] usbserial: USB Serial support registered for GSM modem (1-port)
[   12.338998] option 1-1.3:1.0: GSM modem (1-port) converter detected
[   12.339287] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[   12.339452] option 1-1.3:1.1: GSM modem (1-port) converter detected
[   12.339632] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[   12.339777] option 1-1.3:1.2: GSM modem (1-port) converter detected
[   12.339936] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[   12.340080] option 1-1.3:1.3: GSM modem (1-port) converter detected
[   12.340233] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[   13.272988] scsi 1:0:0:0: Direct-Access     WCDMA    MMC Storage      2.31 PQ: 0 ANSI: 2
[   13.274290] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   13.281144] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[   13.710299] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   15.453107] fuse init (API version 7.26)
[   16.999059] Bluetooth: Core ver 2.22
[   16.999109] NET: Registered protocol family 31
[   16.999112] Bluetooth: HCI device and connection manager initialized
[   16.999127] Bluetooth: HCI socket layer initialized
[   16.999134] Bluetooth: L2CAP socket layer initialized
[   16.999151] Bluetooth: SCO socket layer initialized
[   17.010671] Bluetooth: HCI UART driver ver 2.3
[   17.010682] Bluetooth: HCI UART protocol H4 registered
[   17.010686] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   17.010819] Bluetooth: HCI UART protocol Broadcom registered
[   17.225724] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.225736] Bluetooth: BNEP filters: protocol multicast
[   17.225755] Bluetooth: BNEP socket layer initialized
[   17.258027] Bluetooth: RFCOMM TTY layer initialized
[   17.258061] Bluetooth: RFCOMM socket layer initialized
[   17.258082] Bluetooth: RFCOMM ver 1.11

la différence est que l’idProduct est f000 et celui qui ne fonctionne pas idProduct=1000
et sur celui qui fonctionne les 4 usb sont occupés, dont un DD ssd sur lequel le pi boot, et seulement 3 sur celui qui ne fonctionne pas

arghh
comprend plus !
la paire idvendor:idproduct sans modif de usb_modeswith c’est quoi ? (lsusb)

05c6:1000
ou
05c6:f000

si c est 05c6:f000 la règle devrait être :

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="f000", RUN+="/usr/sbin/usb-modeswitch -W -v 05c6 -p f000 -K"

a condition que usb_modeswith reconnaisse cette clé …
et par quel miracle la règle démarre si on met 1000 dans l id product

%$!!% de chinois lol

Bonjour,

Tout d’abord merci de intéresser à mon pb et de m’aider.
Et excuse moi d’avoir été un peu brouillon dans mes explications.
j’ai deux raspberry pi
Un qui depuis trois ans fonctionne très bien avec un dongle Qualcomm
Id product f000 , mais par défaut il est en modem, donc je n’avais pas eu besoin de faire de règle pour le basculer en modem.
Plus récemment, j’ai acheté un autre dongle qualcomm pour mon deuxième Raspberry pi.
Celui la il a un idProduct 1000
ET il est par défaut en Mass storage, j’ai bien trouvé sur différents forums la règle pour le basculer en modem, ça le bascule bien.
Il faut mettre dans usb_modeswitch.conf un MessageContent extrait d’un configPack.tar.gz , hors on n’a pas cet idProduct 1000 dans l’archive.

Est ce que le pb viens de là ??

Ce n’est pas dans mon tempérament d’abandonner , mais je crois que je vais passer à la solution du SIM800C de EagleRobotics.

Alain

clair dans le fichier /usr/share/doc/usb-modeswitch-data/README.Debian
il y a une explication !
en extrayant ds /etc/usb_modeswitch.d le fichier correspondant a 05c6:1000:uMa=Option depuis l’archive /usr/share/usb_modeswitch/configPack.tar.gz
( les détail de la manip sont dans le fichier ( /usr/share/doc/usb-modeswitch-data/README.Debian ))
le programme usb_modeswitch_dispatcher qui doit dépendre de usb-modeswitch ferait son job a l’insertion de la clé …

ce que je capte pas c’est les id(s) trouvé dans le fichier extrait mais bon on peut imaginer que les id(s) correspondent à la même clé chez un autre fabricant

merci,

j’ai fait la manip de la doc
Le fichier /etc/usb_modeswitch.f/05c6:1000:*a=Option ainsi généré contient:
GNU nano 2.7.4 Fichier : 05c6:1000:uMa=Option

# Quirky Option devices
TargetVendor=0x0af0
TargetProduct=0x6901
OptionMode=1

Ce qui est surprenant les ref vendor et product ne correspondent pas à 05c6:1000 ou 6000
Toujours le mêm pb deconnexion

J’ai même essayé de mettre ces valeurs dans 05c6:1000 c’est pareil

Ci joint ce que renvoie udevadm monitor lorsque j’enfiche le dongle

KERNEL[7015.663051] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
KERNEL[7015.666062] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
KERNEL[7015.668071] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0 (scsi)
KERNEL[7015.668243] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0/scsi_host/host0 (scsi_host)
KERNEL[7015.805837] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0/scsi_host/host0 (scsi_host)
KERNEL[7015.806040] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0 (scsi)
UDEV  [7015.903333] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
UDEV  [7015.907599] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
UDEV  [7015.911037] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0 (scsi)
UDEV  [7015.914542] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0/scsi_host/host0 (scsi_host)
UDEV  [7015.916595] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0/scsi_host/host0 (scsi_host)
UDEV  [7015.918488] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/host0 (scsi)
KERNEL[7016.007349] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
KERNEL[7016.007816] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
UDEV  [7016.011286] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
UDEV  [7016.013164] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
KERNEL[7016.432335] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
KERNEL[7016.434562] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
KERNEL[7016.434988] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0 (usb-serial)
KERNEL[7016.435099] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[7016.435203] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1 (usb)
KERNEL[7016.435479] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1 (usb-serial)
KERNEL[7016.436974] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
KERNEL[7016.437317] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2 (usb)
KERNEL[7016.437386] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2 (usb-serial)
KERNEL[7016.437619] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
KERNEL[7016.437860] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3 (usb)
KERNEL[7016.438120] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3 (usb-serial)
KERNEL[7016.438359] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3/tty/ttyUSB3 (tty)
KERNEL[7016.438468] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4 (usb)
KERNEL[7016.449779] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0 (scsi)
KERNEL[7016.449869] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/scsi_host/host0 (scsi_host)
UDEV  [7016.465102] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
UDEV  [7016.470738] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
UDEV  [7016.473376] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2 (usb)
UDEV  [7016.474130] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0 (usb-serial)
UDEV  [7016.475030] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1 (usb)
UDEV  [7016.475213] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3 (usb)
UDEV  [7016.478593] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1 (usb-serial)
UDEV  [7016.479205] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4 (usb)
UDEV  [7016.481930] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2 (usb-serial)
UDEV  [7016.483481] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0 (scsi)
UDEV  [7016.483615] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3 (usb-serial)
UDEV  [7016.491880] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/scsi_host/host0 (scsi_host)
UDEV  [7016.495251] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV  [7016.498858] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV  [7016.502628] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3/tty/ttyUSB3 (tty)
UDEV  [7016.513146] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
KERNEL[7017.511675] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0 (scsi)
KERNEL[7017.511886] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0 (scsi)
KERNEL[7017.512001] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0 (scsi_disk)
KERNEL[7017.512134] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0 (scsi_device)
KERNEL[7017.516611] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 (scsi_generic)
KERNEL[7017.517326] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0 (bsg)
KERNEL[7017.518028] add      /devices/virtual/bdi/8:0 (bdi)
KERNEL[7017.518630] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV  [7017.522101] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0 (scsi)
KERNEL[7017.523885] change   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV  [7017.530176] add      /devices/virtual/bdi/8:0 (bdi)
UDEV  [7017.532785] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0 (scsi)
UDEV  [7017.543288] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0 (scsi_device)
UDEV  [7017.544725] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0 (scsi_disk)
UDEV  [7017.547988] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0 (bsg)
UDEV  [7017.551450] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 (scsi_generic)
UDEV  [7017.609395] add      /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV  [7017.637004] change   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[7027.991567] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[7027.991760] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0 (usb-serial)
KERNEL[7027.999085] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
KERNEL[7027.999355] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1 (usb-serial)
KERNEL[7027.999584] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
KERNEL[7027.999748] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2 (usb-serial)
KERNEL[7027.999986] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3/tty/ttyUSB3 (tty)
KERNEL[7028.000354] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3 (usb-serial)
UDEV  [7028.000920] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV  [7028.004829] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1/tty/ttyUSB1 (tty)
UDEV  [7028.008524] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2/tty/ttyUSB2 (tty)
UDEV  [7028.009568] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/ttyUSB0 (usb-serial)
UDEV  [7028.012077] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/ttyUSB1 (usb-serial)
UDEV  [7028.012872] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/ttyUSB2 (usb-serial)
UDEV  [7028.014611] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3/tty/ttyUSB3 (tty)
UDEV  [7028.017168] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3/ttyUSB3 (usb-serial)
KERNEL[7028.740964] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
KERNEL[7028.741240] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1 (usb)
KERNEL[7028.741427] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2 (usb)
KERNEL[7028.741682] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3 (usb)
KERNEL[7028.742410] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0 (bsg)
KERNEL[7028.742667] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 (scsi_generic)
KERNEL[7028.742801] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0 (scsi_device)
KERNEL[7028.743282] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0 (scsi_disk)
UDEV  [7028.751201] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.0 (usb)
UDEV  [7028.754081] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.1 (usb)
UDEV  [7028.755537] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.2 (usb)
UDEV  [7028.762763] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/bsg/0:0:0:0 (bsg)
UDEV  [7028.763180] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_generic/sg0 (scsi_generic)
UDEV  [7028.764027] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_device/0:0:0:0 (scsi_device)
UDEV  [7028.765763] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.3 (usb)
UDEV  [7028.769637] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0 (scsi_disk)
KERNEL[7028.780883] remove   /devices/virtual/bdi/8:0 (bdi)
KERNEL[7028.781511] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
UDEV  [7028.785606] remove   /devices/virtual/bdi/8:0 (bdi)
UDEV  [7028.793267] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0/block/sda (block)
KERNEL[7028.850517] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0 (scsi)
UDEV  [7028.858088] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0/0:0:0:0 (scsi)
KERNEL[7028.960983] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0 (scsi)
KERNEL[7028.961176] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/scsi_host/host0 (scsi_host)
KERNEL[7028.961311] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0 (scsi)
UDEV  [7028.968406] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/target0:0:0 (scsi)
UDEV  [7028.970366] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0/scsi_host/host0 (scsi_host)
UDEV  [7028.974109] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4/host0 (scsi)
KERNEL[7029.030755] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4 (usb)
KERNEL[7029.033530] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)
UDEV  [7029.037738] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3/1-1.3:1.4 (usb)
UDEV  [7029.042276] remove   /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.3 (usb)

la version de buster semble plus récente ( pas vraiment beaucoup mais bon ! )

apt policy usb-modeswitch
usb-modeswitch:
  Installé : 2.5.2+repack0-2
  Candidat : 2.5.2+repack0-2
 Table de version :
 *** 2.5.2+repack0-2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@hotspot:~ $ apt policy usb-modeswitch-data
usb-modeswitch-data:
  Installé : 20170806-2
  Candidat : 20170806-2
 Table de version :
 *** 20170806-2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status

ceci dit ds le fichier /etc/usb_modeswitch.d/05c6:1000:uMa=Option
il y a les mêms valeur !

sur cette page : https://wiki.debian.org/DeviceDatabase/USB on trouve une clé en 0af0:6901 chez un vendeur Option ( type [Modem/3G/Cards) et interressant un module option d’où l’idée de mettre dans /etc/modules une ligne avec :
option
une fois redémarrer le lsmod donne (mon système est sur buster ):

lsmod|grep option
option                 45056  0
usb_wwan               20480  1 option
usbserial              36864  2 option,usb_wwan

on peut imaginer (rêver,espérer :wink: )que se le système ne trouve pas le bon driver (module) il vire la clé…

Oui moi aussi je pense que c’est un pb de driver
J’ai activé les logs usb_modeswitch et effectivement il teste successivement les config des fichiers 05c6:1000 etc qui sont posés dans le répertoire /etc/usb_modeswitch.d/
fichiers que l’on extrait du configPack.tar.gz
Et si ils ne sont pas conformes le modem est déconnecté.

j’ai « commandé au père Noël » :joy: une carte SIM800c qui se branche en sérial.

Je te tiens au courant en janvier.

merci encore.

Alain