Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with /dev/ttyUSB2 #24

Open
adrianboimvaser opened this issue Jan 28, 2021 · 2 comments
Open

Problem with /dev/ttyUSB2 #24

adrianboimvaser opened this issue Jan 28, 2021 · 2 comments
Assignees

Comments

@adrianboimvaser
Copy link
Contributor

adrianboimvaser commented Jan 28, 2021

I have ppp using /dev/ttyS0. Also trying to use /dev/ttyUSB2 for receiving SMS with smstools.
When ppp0 connects I get this in dmesg and /dev/ttyUSB2 goes away:

[   40.330141] usb 1-1.3: USB disconnect, device number 3
[   40.330614] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[   40.330688] option 1-1.3:1.0: device disconnected
[   40.331146] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[   40.331211] option 1-1.3:1.1: device disconnected
[   40.331683] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[   40.331737] option 1-1.3:1.2: device disconnected
[   40.332272] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[   40.332338] option 1-1.3:1.3: device disconnected
[   42.792325] usb 1-1.3: new high-speed USB device number 4 using xhci_hcd
[   42.927658] usb 1-1.3: New USB device found, idVendor=2c7c, idProduct=0700, bcdDevice= 0.00
[   42.927677] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[   42.927694] usb 1-1.3: Product: Quectel LPWA Module
[   42.927710] usb 1-1.3: Manufacturer: Quectel, Incorporated
[   42.927725] usb 1-1.3: SerialNumber: 9e6c63db
[   42.945614] option 1-1.3:1.0: GSM modem (1-port) converter detected
[   42.945979] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[   42.946427] option 1-1.3:1.1: GSM modem (1-port) converter detected
[   42.946749] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[   42.947181] option 1-1.3:1.2: GSM modem (1-port) converter detected
[   42.947492] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[   42.947965] option 1-1.3:1.3: GSM modem (1-port) converter detected
[   42.948286] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB4

This in turn causes errors in smstools like:

GSM1: write_to_modem: error 5: Input/output error

I suspect it's something about calling gpio -g write in the reconnect script.

I've tested swapping the devices and using smstools over /dev/ttyS0 and ppp over /dev/ttyUSB2 and apparently the problem doesn't happen.

@saeedjohar saeedjohar self-assigned this Feb 4, 2021
@saeedjohar
Copy link
Contributor

Which module with Base HAT or HAT are you using?
Did you try to troubleshoot following the troubleshoot guide?

@adrianboimvaser
Copy link
Contributor Author

It's a custom HAT built by you based on the cellular IoT HAT I believe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants