Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

You are here: Forum Home → ANT+ Forums → ANT-FS → Thread

   

Why ANTFS download command send fail?

Avatar
Rank

Total Posts: 9

Joined 0

PM

I port ANT-Lib to window ce platform. The host app can search device, but download directory fail. but earse command success. why? I need your suggetions. Thank you so much! below is serial command log.


2.201 { 27209691} Tx - [A4][02][4D][00][52][B9][00][00]
2.235 { 27209725} Rx - [A4][02][52][00][00][F4]
2.236 { 27209726} Tx - [A4][09][46][00][A8][A4][23][B9][F5][5E][63][C1][74][00][00]
2.279 { 27209769} Rx - [A4][03][40][00][46][00][A1]
2.279 { 27209769} Tx - [A4][03][42][00][00][00][E5][00][00]
2.311 { 27209801} Rx - [A4][03][40][00][42][00][A5]
2.313 { 27209803} Tx - [A4][03][43][00][00][20][C4][00][00]
2.350 { 27209840} Rx - [A4][03][40][00][43][00][A4]
2.350 { 27209840} Tx - [A4][02][44][00][FF][1D][00][00]
2.382 { 27209872} Rx - [A4][03][40][00][44][00][A3]
2.383 { 27209873} Tx - [A4][02][45][00][32][D1][00][00]
2.414 { 27209904} Rx - [A4][03][40][00][45][00][A2]
2.415 { 27209905} Tx - [A4][03][49][00][56][00][B8][00][00]
2.447 { 27209937} Rx - [A4][03][40][00][49][00][AE]
2.449 { 27209939} Tx - [A4][05][51][00][00][00][01][00][F1][00][00]
2.483 { 27209973} Rx - [A4][03][40][00][51][00][B6]
2.484 { 27209974} Tx - [A4][01][4B][00][EE][00][00]
2.514 { 27210004} Rx - [A4][03][40][00][4B][00][AC]
2.515 { 27210005} Tx - [A4][02][4D][00][52][B9][00][00]
2.545 { 27210035} Rx - [A4][02][52][00][02][F6]
2.847 { 27210337} Rx - [A4][09][4E][00][43][2B][00][00][A0][01][02][00][28]
2.850 { 27210340} Tx - [A4][02][4D][00][51][BA][00][00]
2.881 { 27210371} Rx - [A4][05][51][00][64][00][01][05][90]
2.886 { 27210376} Tx - [A4][09][4F][00][44][02][36][04][00][00][00][00][96][00][00]
3.096 { 27210586} Rx - [A4][09][4E][00][43][2B][00][00][A0][01][02][00][28]
3.096 { 27210586} Rx - [A4][03][40][00][01][05][E3]
3.099 { 27210589} Tx - [A4][03][43][00][00][10][F4][00][00]
3.130 { 27210620} Rx - [A4][03][40][00][43][00][A4]
3.131 { 27210621} Tx - [A4][02][44][00][03][E1][00][00]
3.162 { 27210652} Rx - [A4][03][40][00][44][00][A3]
3.164 { 27210654} Tx - [A4][02][45][00][36][D5][00][00]
3.194 { 27210684} Rx - [A4][03][40][00][45][00][A2]
3.342 { 27210832} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
3.347 { 27210837} Tx - [A4][09][4F][00][44][04][01][00][00][00][00][00][A3][00][00]
3.469 { 27210959} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
3.469 { 27210959} Rx - [A4][03][40][00][01][05][E3]
3.602 { 27211092} Rx - [A4][09][50][00][43][2C][03][00][00][00][00][00][91]
3.602 { 27211092} Rx - [A4][09][50][20][44][84][00][06][64][00][00][00][7F]
3.603 { 27211093} Rx - [A4][09][50][C0][50][43][44][65][6D][6F][00][00][0D]
3.715 { 27211205} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
3.839 { 27211329} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
3.964 { 27211454} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
4.088 { 27211578} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
4.212 { 27211702} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]

7.323 { 27214813} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
7.375 { 27214865} Tx - [A4][09][4F][00][44][04][00][00][00][00][00][00][A2][00][00]
7.448 { 27214938} Rx - [A4][09][4E][00][43][2C][01][00][00][00][00][00][8D]
7.448 { 27214938} Rx - [A4][03][40][00][01][05][E3]
7.576 { 27215066} Rx - [A4][09][50][00][43][2C][03][00][00][00][00][00][91]
7.577 { 27215067} Rx - [A4][09][50][A0][44][84][01][00][64][00][00][00][F8]
7.694 { 27215184} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
7.818 { 27215308} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
7.943 { 27215433} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
8.067 { 27215557} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]

16.276 { 27223766} Tx - [A4][02][4D][00][52][B9][00][00]
16.306 { 27223796} Rx - [A4][02][52][00][03][F7]
16.306 { 27223796} Tx - [A4][09][50][00][44][09][00][00][00][00][00][00][B0][00][00]
16.401 { 27223891} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
16.401 { 27223891} Rx - [A4][03][40][00][01][0A][EC]
16.401 { 27223891} Tx - [A4][09][50][A0][00][01][00][00][FF][FF][00][00][5C][00][00]
16.451 { 27223941} Rx - [A4][03][40][00][01][06][E0]
16.452 { 27223942} Rx - [A4][03][40][00][50][20][97]
16.522 { 27224012} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
16.647 { 27224137} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
16.771 { 27224261} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
16.895 { 27224385} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
17.020 { 27224510} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
17.022 { 27224512} Tx - [A4][02][4D][00][52][B9][00][00]
17.052 { 27224542} Rx - [A4][02][52][00][03][F7]

17.052 { 27224542} Tx - [A4][09][50][00][44][09][00][00][00][00][00][00][B0][00][00]
17.147 { 27224637} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
17.147 { 27224637} Rx - [A4][03][40][00][01][0A][EC]
17.147 { 27224637} Tx - [A4][09][50][A0][00][01][00][00][FF][FF][00][00][5C][00][00]

17.196 { 27224686} Rx - [A4][03][40][00][01][06][E0]
17.197 { 27224687} Rx - [A4][03][40][00][50][20][97]

17.268 { 27224758} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
17.393 { 27224883} Rx - [A4][09][4E][00][43][2C][02][00][00][00][00][00][8E]
17.768 { 27225258} Tx - [A4][02][4D][00][52][B9][00][00]
17.797 { 27225287} Rx - [A4][02][52][00][03][F7]      
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Hi,

Neither of your download requests were received properly as signified by the TX_FAILED message.

[A4][09][50][00][44][09][00][00][00][00][00][00][B0][00][00] // Download Request p1
[A4][09][4E][00][43][2C][02][00][00][00][00][00][8E] // Transport state
[A4][03][40][00][01][0A][EC] // TX_START
[A4][09][50][A0][00][01][00][00][FF][FF][00][00][5C][00][00] // Download Request p2
[A4][03][40][00][01][06][E0] // TX_FAILED
[A4][03][40][00][50][20][97] // TRANSFER_SEQUENCE_NUMBER_ERROR

You cannot wait for TX_START before you send your second packet, burst packets must be sent consecutively to ANT, otherwise the buffer will starve.

Cheers      
Avatar
Rank

Total Posts: 9

Joined 0

PM

hfchin, Thanks a lot! I will try it and feed back test result. smile