免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: geniusmen
打印 上一主题 下一主题

高手请进:驱动开发中关于心跳机制的问题! [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-11-17 10:41 |只看该作者
有的时候模块就死了,心跳也不跳了,
  兄弟们帮看看这些代码说明了什么?(我写的是MODEM驱动)

usb.c: USB disconnect on device 00:07.2-1 address 11
usbserial.c: Generic converter now disconnected from ttyUSB0
hub.c: new USB device 00:07.2-1, assigned address 12
usb.c: USB device 12 (vend/prod 0x456/0x6588) is not claimed by any active driver.
usb.c: USB disconnect on device 00:07.2-1 address 12
hub.c: new USB device 00:07.2-1, assigned address 13
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usb.c: USB disconnect on device 00:07.2-1 address 13
usbserial.c: Generic converter now disconnected from ttyUSB0
hub.c: new USB device 00:07.2-1, assigned address 14
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=1887, generation=13
divert: not allocating divert_blk for non-ethernet device ppp0
usb-uhci.c: interrupt, status 3, frame# 1778
smb_get_length: recv error = 512
smb_request: result -512, setting invalid
smb_retry: caught signal
smb_retry: caught signal
divert: no divert_blk to free, ppp0 not ethernet
usb.c: USB disconnect on device 00:07.2-1 address 14
usbserial.c: Generic converter now disconnected from ttyUSB0
smb_retry: successful, new pid=1887, generation=14
hub.c: new USB device 00:07.2-1, assigned address 15
usb.c: USB device 15 (vend/prod 0x456/0x6588) is not claimed by any active driver.
usb.c: USB disconnect on device 00:07.2-1 address 15
hub.c: new USB device 00:07.2-1, assigned address 16
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
usb-uhci.c: interrupt, status 3, frame# 1807
smb_get_length: recv error = 512
smb_request: result -512, setting invalid
smb_retry: caught signal
smb_retry: caught signal
divert: no divert_blk to free, ppp0 not ethernet
smb_retry: caught signal
smb_retry: successful, new pid=1887, generation=15
usb.c: USB disconnect on device 00:07.2-1 address 16
usbserial.c: Generic converter now disconnected from ttyUSB0
hub.c: new USB device 00:07.2-1, assigned address 17
usb.c: USB device 17 (vend/prod 0x456/0x6588) is not claimed by any active driver.
usb.c: USB disconnect on device 00:07.2-1 address 17
hub.c: new USB device 00:07.2-1, assigned address 18
usbserial.c: Generic converter detected
usbserial.c: Generic converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
usb-uhci.c: interrupt, status 3, frame# 288
smb_get_length: recv error = 512
smb_request: result -512, setting invalid
smb_retry: caught signal
smb_retry: caught signal
divert: no divert_blk to free, ppp0 not ethernet
usb.c: USB disconnect on device 00:07.2-1 address 18
usbserial.c: Generic converter now disconnected from ttyUSB0
smb_retry: successful, new pid=1887, generation=16
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=1887, generation=17

[ 本帖最后由 dreamice 于 2008-11-17 10:44 编辑 ]

论坛徽章:
3
金牛座
日期:2014-06-14 22:04:062015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:49:45
12 [报告]
发表于 2008-11-17 10:47 |只看该作者
單純看你这些信息,确实看不出什么眉目。

论坛徽章:
0
13 [报告]
发表于 2008-11-17 11:14 |只看该作者
主要是这几行呀!!
divert: not allocating divert_blk for non-ethernet device ppp0
divert: no divert_blk to free, ppp0 not ethernet
divert: not allocating divert_blk for non-ethernet device ppp0
usb-uhci.c: interrupt, status 3, frame# 288
smb_get_length: recv error = 512

论坛徽章:
3
CU大牛徽章
日期:2013-03-14 14:14:08CU大牛徽章
日期:2013-03-14 14:14:26CU大牛徽章
日期:2013-03-14 14:14:29
14 [报告]
发表于 2010-09-28 10:22 |只看该作者
usbserial_generic 2-2:1.0:generic converter detected
usb2-2:generic converter now attached to ttyUSB0
usb2-2:USB disconnect
generic ttyUSB0: generic converter now attached from ttyUSB0
usbserial_generic 2-2:1.0: device disconnected
我也出现类似的错误,你的是怎么解决的?

论坛徽章:
0
15 [报告]
发表于 2010-09-30 11:38 |只看该作者
看你这个问题内容,发现接收心跳和接收数据的是一个接收方,我觉得在没有数据传输的时候才有必要发心跳包!这样可以绕过你的问题,假如接收心跳和接收数据的不是一个接收方,你才需要调整发心跳包和发数据的任务调度策略了,当然是优先保证心跳包了,发数据的时候能判断是否该发心跳包,如果是则先发心跳包.你觉的怎样?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP