Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#142 Updated SerialPort.ccp can't communicate with device

open
nobody
5
2009-09-03
2009-09-03
Christian O.
No

I just updated to the most recent version in cvs and noticed that src/base/SerialPort.cpp was updated recently:
----------------------------
revision 1.15
date: 2009/06/27 01:14:56; author: kvangend; state: Exp; lines: +18 -24
rewrite serial port writing code - by Lubomir Schmidt and Markus Weber.

With r1.15, communication with my Huwai E160 is broken:
- snip - (-v5 output)
##P4 t=116: Kernel: 'Linux version 2.6.30-1-686 (Debian 2.6.30-5) (maks@debian.org) (gcc version 4.3.3 (Debian 4.3.3-1\ 5) ) #1 SMP Mon Aug 3 16:18:30 UTC 2009'
##P3 t=116: AutoDetectBase::go() for 'Device creation from supplied parameters'
##P3 t=116: AutoDetectBase::createDevice() for CardType 0x600A1000
##P3 t=116: Device creation for type 0x600a1000 requested
##P2 t=116: Profile::Profile('')
##P2 t=116: finally created profile for 'tre'
##P3 t=116: MonthlyTraffic::save()
##P5 t=116: MonthlyTraffic::save: totals for 2009/9 are: home=8940280B/42s, roaming=0B/0s
##P2 t=116: Profile::Profile('')
##P2 t=116: finally created profile for 'tre'
##P3 t=116: Device: probing port '/dev/ttyUSB0' for AT commands
##P3 t=116: TempSerialPort::TempSerialPort()
##P5 t=116: (nil) = Query::setSerial(0xbf8b2320)
##P3 t=116: Serial::openDev('/dev/ttyUSB0') as FD 7 - Serial instance 0xbf8b2320
##P5 t=116: Query instance 0xbf8b2308 acquired MUTEX
##P4 t=116: Query sends the following mesage: 'AT'
##P5 t=116: receiveStringRetry: '(null)'
##P2 t=116: Device port '/dev/ttyUSB0': no response to "AT", return code 5
##P5 t=116: Query instance 0xbf8b2308 abandoned MUTEX
##P3 t=116: Device: probing port '/dev/ttyUSB0' failed
- snip -

While with -r1.14 things work:

-snip-
##P4 t=071: Kernel: 'Linux version 2.6.30-1-686 (Debian 2.6.30-5) (maks@debian.org) (gcc version 4.3.3 (Debian 4.3.3-1\ 5) ) #1 SMP Mon Aug 3 16:18:30 UTC 2009'
##P3 t=071: AutoDetectBase::go() for 'Device creation from supplied parameters'
##P3 t=071: AutoDetectBase::createDevice() for CardType 0x600A1000
##P3 t=071: Device creation for type 0x600a1000 requested
##P2 t=071: Profile::Profile('')
##P2 t=071: finally created profile for 'tre'
##P3 t=071: MonthlyTraffic::save()
##P5 t=071: MonthlyTraffic::save: totals for 2009/9 are: home=8940280B/42s, roaming=0B/0s
##P2 t=071: Profile::Profile('')
##P2 t=071: finally created profile for 'tre'
##P3 t=071: Device: probing port '/dev/ttyUSB0' for AT commands
##P3 t=071: TempSerialPort::TempSerialPort()
##P5 t=071: (nil) = Query::setSerial(0xbfc70440)
##P3 t=071: Serial::openDev('/dev/ttyUSB0') as FD 7 - Serial instance 0xbfc70440
##P5 t=071: Query instance 0xbfc70428 acquired MUTEX
##P4 t=071: Query sends the following mesage: 'AT'
##P5 t=071: receiveStringRetry: 'AT\xd\xd\xaOK\xd\xa'
##P4 t=071: answer 1:'AT'
##P4 t=071: answer 2:'OK'
##P5 t=071: checkQuery: removing echo up front
##P5 t=071: because known statement #0 was detected, removing obvious answer 'OK'
##P3 t=071: Got Query::OK from port
-snip-

Unfortunately, I don't understand SerialPort.cpp at all nor the general communication infrastructure
in umtsmon. Could the authors of the update perhaps have a look at this issue?

Thanks.
- Christian

Discussion