這個時序?qū)?

外部固件模式:程序是例子程序USBDISK.C.那些描述符也都是USBDISK.H中的.這是什么原因

先收到電腦的: 80 06 00 01 00 00 40 00 收到后反回了只有16字節(jié)的設(shè)備描述符下面這個中斷就產(chǎn)生了: 00 05 03 00 00 00 00 00 設(shè)置完地址后,收到: 80 06 00 01 00 00 12 00 然后反回了18字節(jié)的設(shè)備描述符,收到: 80 06 00 02 00 00 09 00 然后返回9字節(jié)的配置描述符,收到 80 06 00 02 00 00 ff 00 反回9字節(jié)的接口描述符,然后又收到了一個: 80 06 00 01 00 00 12 00 然后反回了18字節(jié)的設(shè)備描述符,收到: 80 06 00 02 00 00 09 00 然后返回7字節(jié)的端點描述符,收到 80 06 00 02 00 00 82 02 反回7字節(jié)的端點描述符.之后MCU就沒有反應了.

Bus Hound 檢測數(shù)據(jù): Device Phase Data Description Cmd.Phase.Ofs(rep) Delta 7.0 CTL 23 01 14 00 02 00 00 00 CLEAR FEATURE 280.1.0 4us 2005-07-17 08:58:31.482 7.0 URB 50 00 08 00 00 00 00 00 c0 51 71 81 20 00 00 00 CONTROL TRANSFER 280.2.0 22us 2005-07-17 08:58:31.482 d8 51 71 81 0a 00 00 00 00 00 00 00 00 00 00 00 280.2.16 00 00 00 00 00 00 00 00 ff ff ff ff 0d f0 ad de 280.2.32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 280.2.48 00 00 00 00 00 00 00 00 23 01 14 00 02 00 00 00 280.2.64 7.0 CTL 80 06 00 02 00 00 ff 00 GET DESCRIPTOR 281.1.0 85ms 2005-07-17 08:58:31.567 7.0 LEN 09 00 00 00 9 281.2.0 1.9ms 2005-07-17 08:58:31.569 7.0 DI 09 04 00 00 02 08 04 50 00 .......P. 281.3.0 3us 2005-07-17 08:58:31.569 7.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 281.4.0 4us 2005-07-17 08:58:31.569 08 d4 8f 81 0b 00 00 00 09 00 00 00 68 7b 7e ff 281.4.16 b8 38 22 81 00 00 00 00 ff ff ff ff 0d f0 ad de 281.4.32 e0 35 22 81 40 00 00 00 00 00 00 00 00 00 00 00 281.4.48 38 f0 34 e1 00 00 00 00 80 06 00 02 00 00 ff 00 281.4.64 7.0 CTL a3 00 00 00 03 00 04 00 GET STATUS 282.1.0 22us 2005-07-17 08:58:31.569 7.0 LEN 04 00 00 00 4 282.2.0 32us 2005-07-17 08:58:31.569 7.0 DI 00 01 00 00 .... 282.3.0 2us 2005-07-17 08:58:31.569 7.0 URB 50 00 08 00 00 00 00 00 c0 51 71 81 22 00 00 00 CONTROL TRANSFER 282.4.0 3us 2005-07-17 08:58:31.569 d8 51 71 81 0b 00 00 00 04 00 00 00 58 10 a5 81 282.4.16 b8 38 22 81 00 00 00 00 ff ff ff ff 0d f0 ad de 282.4.32 e0 35 22 81 40 00 00 00 00 00 00 00 00 00 00 00 282.4.48 38 f0 34 e1 00 00 00 00 a3 00 00 00 03 00 04 00 282.4.64 17.0 CTL 80 06 00 01 00 00 12 00 GET DESCRIPTOR 283.1.0 17ms 2005-07-17 08:58:31.587 17.0 LEN 12 00 00 00 18 283.2.0 2.2ms 2005-07-17 08:58:31.589 17.0 DI 12 01 10 01 00 00 00 08 48 43 37 55 00 01 00 00 ........HC7U.... 283.3.0 2us 2005-07-17 08:58:31.589 00 01 .. 283.3.16 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 283.4.0 3us 2005-07-17 08:58:31.589 08 d4 8f 81 df b8 53 80 12 00 00 00 b8 d7 8b fd 283.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 283.4.32 00 00 04 c0 01 00 00 00 64 09 e8 f9 64 09 e8 f9 283.4.48 00 00 00 00 00 00 00 00 80 06 00 01 00 00 12 00 283.4.64 17.0 CTL 80 06 00 02 00 00 09 00 GET DESCRIPTOR 284.1.0 12us 2005-07-17 08:58:31.589 17.0 LEN 07 00 00 00 7 284.2.0 960us 2005-07-17 08:58:31.590 17.0 DI 07 05 82 02 40 00 00 ....@.. 284.3.0 2us 2005-07-17 08:58:31.590 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 284.4.0 2us 2005-07-17 08:58:31.590 08 d4 8f 81 0b 00 00 00 07 00 00 00 08 09 e8 f9 284.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 284.4.32 12 00 00 00 b8 d7 8b fd 68 b8 2f 81 00 00 00 00 284.4.48 ff ff ff ff 0d f0 ad de 80 06 00 02 00 00 09 00 284.4.64 17.0 CTL 80 06 00 02 00 00 82 02 GET DESCRIPTOR 285.1.0 13us 2005-07-17 08:58:31.590 17.0 LEN 07 00 00 00 7 285.2.0 980us 2005-07-17 08:58:31.591 17.0 DI 07 05 02 02 40 00 00 ....@.. 285.3.0 2us 2005-07-17 08:58:31.591 17.0 URB 50 00 08 00 00 00 00 00 f0 d3 8f 81 22 00 00 00 CONTROL TRANSFER 285.4.0 2us 2005-07-17 08:58:31.591 08 d4 8f 81 0b 00 00 00 07 00 00 00 88 98 ed fc 285.4.16 68 b8 2f 81 00 00 00 00 ff ff ff ff 0d f0 ad de 285.4.32 12 00 00 00 b8 d7 8b fd 68 b8 2f 81 00 00 00 00 285.4.48 ff ff ff ff 0d f0 ad de 80 06 00 02 00 00 82 02 285.4.64 17.0 CTL 00 09 00 00 00 00 00 00 SET CONFIG 286.1.0 23us 2005-07-17 08:58:31.591 17.0 USTS 00 0f 00 c0 bad config desc 286.2.0 5us 2005-07-17 08:58:31.591 17.0 URB 18 00 00 00 00 0f 00 c0 f0 d3 8f 81 00 00 00 00 SELECT CONFIG 286.3.0 2us 2005-07-17 08:58:31.591 88 98 ed fc 00 00 00 00 286.3.16

計算機在要配置描述符時好象你傳輸?shù)牟粚?09 04 00. 04不是配置描述符標志.00長度為0怎麼處理.


計算機要要兩次配置符嗎?在收到 80 06 00 02 00 00 09 00 返回了9字節(jié)的配置描述符,然后又收到

80 06 00 02 00 00 ff 00 反回9字節(jié)的接口描述符

這樣不對嗎?


請問這個時序?qū)?為什么沒人解答呀?


這樣給你說,你的描述符上傳有問題,計算機給要什麼數(shù)據(jù)你只要正確上傳就行了,不要管計算機為什麼這樣給你要數(shù)據(jù).


引用回復:這樣給你說,你的描述符上傳有問題,計算機給要什麼數(shù)據(jù)你只要正確上傳就行了,不要管計算機為什麼這樣給你要數(shù)據(jù).

我知道計算機要什么給什么,我問的就是我給的對不對?

先收到電腦的: 80 06 00 01 00 00 40 00 收到后反回了只有16字節(jié)的設(shè)備描述符下面這個中斷就產(chǎn)生了: 00 05 03 00 00 00 00 00 設(shè)置完地址后,收到: 80 06 00 01 00 00 12 00 然后反回了18字節(jié)的設(shè)備描述符,收到: 80 06 00 02 00 00 09 00 然后返回9字節(jié)的配置描述符,收到 80 06 00 02 00 00 ff 00 反回9字節(jié)的接口描述符,然后又收到了一個: 80 06 00 01 00 00 12 00 然后反回了18字節(jié)的設(shè)備描述符,收到: 80 06 00 02 00 00 09 00 然后返回7字節(jié)的端點描述符,收到 80 06 00 02 00 00 82 02 反回7字節(jié)的端點描述符.之后MCU就沒有反應了.

這是我發(fā)送給電腦的包內(nèi)容: ConDes: DB 009H ;描述符大小 DB 002H ;常數(shù)CONFIG DB 020H ;此配置傳回所有數(shù)據(jù)大小 DB 000H DB 001H ;接口數(shù) DB 001H ;配置值 DB 000H 索引 DB 080H ;電源設(shè)置 DB 040H ;需要總線電源 ConDes0: ;接口描述符 DB 009H ;描述符大小 DB 004H ;常數(shù)INTERFACE DB 000H ;識別碼 DB 000H ;代替數(shù)值 DB 002H 支持的端點數(shù) DB 008H 類別碼 DB 004H 子類別碼 DB 050H ;協(xié)議碼 DB 000H ;索引 ConDes1: ;端點描述符 DB 007H ;述符大小 DB 005H ;常數(shù)ENDPOINT DB 082H ;端點數(shù)目及方向 DB 002H ;支持的傳輸類型 DB 040H ;支持的最大信息包大小 DB 000H DB 000H ConDes2: DB 007H DB 005H DB 002H DB 002H DB 040H DB 000H DB 000H ConDes3: DB 007H DB 005H DB 081H DB 003H DB 008H DB 000H DB 001H ConDes4: DB 007H DB 005H DB 001H DB 002H DB 008H DB 000H DB 000H


描述符沒問題,應該是你程序的問題.

7.0 CTL 80 06 00 02 00 00 ff 00 GET DESCRIPTOR 281.1.0 85ms 2005-07-17 08:58:31.567 7.0 LEN 09 00 00 00 9 281.2.0 1.9ms 2005-07-17 08:58:31.569 7.0 DI 09 04 00 00 02 08 04 50 00 .......P.

80 06 00 02 00 00 09 00 GET DESCRIPTOR 284.1.0 12us 2005-07-17 08:58:31.589 17.0 LEN 07 00 00 00 7 284.2.0 960us 2005-07-17 08:58:31.590 17.0 DI 07 05 82 02 40 00 00

都是要配置描述符,你卻返回不一樣,而且第二個為什麼返回端點描述符. 09 04 00 00 02 08 04 50 00 根本不是設(shè)備描述符


80 06 00 02 00 00 09 00 是要設(shè)備描述符還是要配置描述符?協(xié)議上說這是要配置描述符.可我返回配置描述符后也不對呀


謝謝,我找到原因了,驅(qū)動程序安裝有問題.成功了.


只有登錄才能回復,可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频