samsung GT 7510 slave error

一边是平板 android3.1,作为device端
一边是pc机或者arm板,作为host端

他们之间通过usb线连接,虚拟串口来通信。现在host端发送数据过来,device总是出现丢弃1次数据,50%;而反过来,device发送给host倒是100%成功。
以下为logcat:

host上第1次发过来时情况,看上去device收到数据,但是中间好像卡了:
E/DataRouter( 236): Got command as string
E/DataRouter( 236): last char is 10
E/DataRouter( 236): last second char is 57
E/DataRouter( 236): IsDeviceManagerCmd buffer in usb = 123456789
E/DataRouter( 236):
E/DataRouter( 236): IsDeviceManagerCmd buffer in usb: return false
E/DataRouter( 236): DSR is OFF, can not send the packet to Modem
E/DataRouter( 236): write [19] bytes of data to USB fd[0]
E/DataRouter( 236): Before the usb select

host上第2次发过来时情况,看上去device收到的是第1次卡的数据:
E/DataRouter( 236): After the usb select
D/---JniLog---( 1068): callback len:10, buf:123456789
D/---JniLog---( 1068):
E/DataRouter( 236): Before checking the modem suspend state
E/DataRouter( 236): PDP is resumed now
E/DataRouter( 236): After checking the modem suspend state
D/BatteryService( 292): update start

host上第3次发过来时情况,重复轮回:
E/DataRouter( 236): Got command as string
E/DataRouter( 236): last char is 10
E/DataRouter( 236): last second char is 57
E/DataRouter( 236): IsDeviceManagerCmd buffer in usb = 123456789
E/DataRouter( 236):
E/DataRouter( 236): IsDeviceManagerCmd buffer in usb: return false
E/DataRouter( 236): DSR is OFF, can not send the packet to Modem
E/DataRouter( 236): write [19] bytes of data to USB fd[0]
E/DataRouter( 236): Before the usb select
D/BatteryService( 292): update start

host上第4次发过来时情况:
E/DataRouter( 236): After the usb select
D/---JniLog---( 1068): callback len:10, buf:123456789
D/---JniLog---( 1068):
E/DataRouter( 236): Before checking the modem suspend state
E/DataRouter( 236): PDP is resumed now
E/DataRouter( 236): After checking the modem suspend state


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值