Keywords: Mode: All keywords (AND) |
Thu Sep 26, 2013 18:45
|
rbariviera: conekta,
Testar diretamente utilizando o /dev/TTYUSBxx irá ajudar muito a entender o que esta acontecendo.
Porem, tenho outra dúvida, esta regra de udev que vc postou é a que está no arquivo de configuração ou é só um exemplo ??
Pergunto isso pois a regra: ATTRS{idVendor}=="idmysub" não deveria funcionar pois o idVendor deste modem é o 19d2 e o idProduct é o 0091...
Independente da pergunta acima, sugiro que vc adicione a seguinte regra no udev:
ATTRS{bInterfaceNumber}=="01"
ou
ATTRS{bInterfaceNumber}=="04"
"01" representa a segunda porta do modem e "04" a quarta porta.
OBS: os números que coloquei acima correspondem ao meu modem. o seu pode conter algumas alterações devido a data de fabricação, versão do firmware, etc
O comando abaixo pode auxiliar a coletar as informações de idProduct, idVendor e bInterfaceNumber
udevadm info -a -p $(udevadm info -q path -n ttyUSBxx) | egrep "bInterfaceNumber|idVendor|idProduct" | head -n3
Espero ter ajudado.
----------------------------------
In english to help others...
Test directly using the /dev/TTYUSBxx will greatly help to understand what is happening.
However, I have another question, this udev rule that u posted is the one in the configuration file or is it just an example?
I ask this because the rule: ATTRS{idVendor}=="idmysub" should not work because of this modem's idVendor is 19d2 and idProduct is 0091...
Regardless of the question above, I suggest that u add the following rule in udev:
ATTRS{bInterfaceNumber}=="01"
or
ATTRS{bInterfaceNumber}=="04"
"01" represents the second port of the modem and "04" the fourth port.
PS: The numbers listed here correspond to my modem. your modem may contain some changes due to manufacturing date and firmware version, etc.
The command below can help you collect informations like idProduct, idVendor and bInterfaceNumber.
udevadm info-a-p $ (udevadm info-q path-n ttyUSBxx) | egrep "bInterfaceNumber|idVendor|idProduct" | head-n3
Rodigo.
|
Tue Sep 17, 2013 14:42
|
rbariviera: My configuration for ONDA MSA190UP
[GSM1]
device = /dev/ttyUSB0
start = AT+CREG=1
startsleeptime = 5
check_memory_method = 2
primary_memory = ME
secondary_memory = SR
incoming = yes
detect_unexpected_input = no
phonecalls = clip
signal_quality_ber_ignore = yes
This modem creates four devices, for example: ttyUSB0, ttyUSB1, ttyUSB2, ttyUSB3.
You can only use the device 2 (ttyUSB1) or 4 (ttyUSB3) in the configuration file.
Check the symbolic link is created via udev, but I recommend that you test using /dev/ttyUSBxx directly to isolate the problem.
If /dev/ttyUSBxx work, we must review the udev rule.
Sorry my poor english :).
Rodrigo.
|