你好,我在测试PC与单片机通信时,用的是提供的test.c程序.为什么我一运行PC端程序,通用串口总线中的 USB CH372/CH375就会消失(应该是断开了吧),此时出现下面的错误: CH372/CH375 Bulk Data Test Program V1.1 , Copyright (C) W.ch 2004.12 test data correctness *** Load DLL: CH375DLL.DLL *** CH375OpenDevice: 0# *** Step-1: test data correctness: 10000000 times, random length and data S1-T2-C22 CH375ReadData return error, length=18... S1-T3-C23 CH375WriteData return error, length=0... S1-T0-C24 CH375WriteData return error, length=0... S1-T1-C25 CH375WriteData return error, length=0... S1-T2-C26 CH375WriteData return error, length=0... S1-T3-C27 CH375WriteData return error, length=0... S1-T0-C28 CH375WriteData return error, length=0... S1-T1-C29 CH375WriteData return error, length=0... S1-T2-C30 CH375WriteData return error, length=0... S1-T3-C31 CH375WriteData return error, length=0... S1-T0-C32 CH375WriteData return error, length=0... S1-T1-C33 CH375WriteData return error, length=0... S1-T2-C34 CH375WriteData return error, length=0... S1-T3-C35 CH375WriteData return error, length=0... S1-T0-C36 CH375WriteData return error, length=0... S1-T1-C37 CH375WriteData return error, length=0... S1-T2-C38 CH375WriteData return error, length=0... S1-T3-C39 CH375WriteData return error, length=0... S1-T0-C40 CH375WriteData return error, length=0... S1-T1-C41 CH375WriteData return error, length=0... S1-T2-C42 CH375WriteData return error, length=0... S1-T3-C43 CH375WriteData return error, length=0... S1-T0-C44 CH375WriteData return error, length=0... S1-T1-C45 CH375WriteData return error, length=0... S1-T2-C46 CH375WriteData return error, length=0... S1-T3-C47 CH375WriteData return error, length=0... S1-T0-C48 CH375WriteData return error, length=0... S1-T1-C49 CH375WriteData return error, length=0... S1-T2-C50 CH375WriteData return error, length=0... S1-T3-C51 CH375WriteData return error, length=0... S1-T0-C52 CH375WriteData return error, length=0... S1-T1-C53 CH375WriteData return error, length=0... S1-T2-C54 CH375WriteData return error, length=0... S1-T3-C55 CH375WriteData return error, length=0... S1-T0-C56 CH375WriteData return error, length=0... S1-T1-C57 CH375WriteData return error, length=0... S1-T2-C58 CH375WriteData return error, length=0... S1-T3-C59 CH375WriteData return error, length=0... S1-T0-C60 CH375WriteData return error, length=0... S1-T1-C61 CH375WriteData return error, length=0... S1-T2-C62 CH375WriteData return error, length=0... S1-T3-C63 CH375WriteData return error, length=0... S1-T0-C64 CH375WriteData return error, length=0... S1-T1-C65 CH375WriteData return error, length=0... S1-T2-C66 CH375WriteData return error, length=0... Cnt= 67, Len=64, Data: 21H,07H,6CH,7FH,B3H,3CH... 这是怎么回事啊?怎么会断开呢?
查看: 1690
回复: 5
CH375数据测试
热门产品 :
CH634: 4端口USB3.0 HUB控制器芯片
从您发的测试结果可以看出 前22次写成功了,但是第21次的读没成功,后面的写都没成功,您的下位机或是usb线可能有点问题,换个屏蔽线试试.
还有一种情况就是你的单片机可能在第22次的时候复位,出现断开的情况!
没有给单片机复位信号阿。我换了几根USB线,还是这样的问题,为什么啊
首先如果是模拟I/O口操作CH372的话,你需要去检查下你的时序上面有没有错误,按照你说的现象,更像是你操作时序上面有问题,因为我们的CH732芯片有复位命令(0X05),当你时序上面出问题的话,可能将0X05的数据当作命令发下去了,这样的话,372的就复位掉了。同时,你可以在USB和372之间多飞几根地线,这样的话可以更好的抗干扰
我也是这个问题,除了工作模式写进去反回正常外,其它情况都返回0X5F,驱动已经安上,但工作不正常,你们是怎么解决的,能否说一下你们的处理方法。
请勿发布广告和违法内容, 代码可以选择编辑器代码语言格式, 更易他人阅读帮助您, 或者留下联系方式,以便更好更快服务您
只有登录才能回复,可以选择微信账号登录