On Sat, Apr 29, 2017 at 01:41:55AM +0000, Lm Chew wrote: > Hi Chris, > > > Ops... i did missed the FS_NMGR config, thanks. > > > Now the FS command works for download. > > > When i try to upload the same file back it just got stuck at "Reading from > data channel" as shown in the log below. > > > newtmgr -c myserial fs upload test.txt /cfg/test.txt -ldebug > > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > 2017/04/29 09:31:51 [DEBUG] Writing newtmgr request &{Op:2 Flags:0 Len:7 > Group:0 Seq:0 Id:1 Data:[161 100 101 99 104 111 0]} > 2017/04/29 09:31:51 [DEBUG] Serializing request &{Op:2 Flags:0 Len:7 Group:0 > Seq:0 Id:1 Data:[161 100 101 99 104 111 0]} into buffer [2 0 0 7 0 0 0 1 161 > 100 101 99 104 111 0] > 2017/04/29 09:31:51 [DEBUG] Tx packet dump: > 00000000 02 00 00 07 00 00 00 01 a1 64 65 63 68 6f 00 |.........decho.| > > 2017/04/29 09:31:51 [DEBUG] Writing [6 9] to data channel > 2017/04/29 09:31:51 [DEBUG] Writing [65 66 69 67 65 65 65 72 65 65 65 65 65 > 97 70 107 90 87 78 111 98 119 68 51 122 81 61 61] to data channel > 2017/04/29 09:31:51 [DEBUG] Writing [10] to data channel > 2017/04/29 09:31:51 [DEBUG] Reading [] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [6 9 65 65 119 68 65 65 65 67 65 65 65 65 > 65 98 47 47 57 116 56 61] from data channel > 2017/04/29 09:31:51 [DEBUG] Rx packet dump: > 00000000 03 00 00 02 00 00 00 01 bf ff |..........| > > 2017/04/29 09:31:51 [DEBUG] Deserialized response &{Op:3 Flags:0 Len:2 > Group:0 Seq:0 Id:1 Data:[191 255]} > 2017/04/29 09:31:51 [DEBUG] Writing newtmgr request &{Op:2 Flags:0 Len:39 > Group:8 Seq:0 Id:0 Data:[164 100 100 97 116 97 67 49 50 51 99 108 101 110 22 > 100 110 97 109 101 109 47 99 102 103 47 116 101 115 116 46 116 120 116 99 111 > 102 102 0]} > 2017/04/29 09:31:51 [DEBUG] Serializing request &{Op:2 Flags:0 Len:39 Group:8 > Seq:0 Id:0 Data:[164 100 100 97 116 97 67 49 50 51 99 108 101 110 22 100 110 > 97 109 101 109 47 99 102 103 47 116 101 115 116 46 116 120 116 99 111 102 102 > 0]} into buffer [2 0 0 39 0 8 0 0 164 100 100 97 116 97 67 49 50 51 99 108 > 101 110 22 100 110 97 109 101 109 47 99 102 103 47 116 101 115 116 46 116 120 > 116 99 111 102 102 0] > 2017/04/29 09:31:51 [DEBUG] Tx packet dump: > 00000000 02 00 00 27 00 08 00 00 a4 64 64 61 74 61 43 31 |...'.....ddataC1| > 00000010 32 33 63 6c 65 6e 16 64 6e 61 6d 65 6d 2f 63 66 |23clen.dnamem/cf| > 00000020 67 2f 74 65 73 74 2e 74 78 74 63 6f 66 66 00 |g/test.txtcoff.| > > 2017/04/29 09:31:51 [DEBUG] Writing [6 9] to data channel > 2017/04/29 09:31:51 [DEBUG] Writing [65 68 69 67 65 65 65 110 65 65 103 65 65 > 75 82 107 90 71 70 48 89 85 77 120 77 106 78 106 98 71 86 117 70 109 82 117 > 89 87 49 108 98 83 57 106 90 109 99 118 100 71 86 122 100 67 53 48 101 72 82 > 106 98 50 90 109 65 65 78 83] to data channel > 2017/04/29 09:31:51 [DEBUG] Writing [10] to data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 85 110 104 97 110 > 100 108 101 100 32 105 110 116 101 114 114 117 112 116 32 40 51 41 44 32 101 > 120 99 101 112 116 105 111 110 32 115 112 32 48 120 50 48 48 48 48 56 100 56] > from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 32 114 48 58 48 120 > 50 48 48 48 48 101 56 52 32 32 114 49 58 48 120 48 48 48 48 48 48 48 48 32 32 > 114 50 58 48 120 48 48 48 48 48 48 49 54 32 32 114 51 58 48 120 48 48 48 48 > 48 56 48 48] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 32 114 52 58 48 120 > 50 48 48 48 48 101 56 52 32 32 114 53 58 48 120 50 48 48 48 48 57 102 56 32 > 32 114 54 58 48 120 50 48 48 48 50 57 97 52 32 32 114 55 58 48 120 48 48 48 > 48 48 52 48 48] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 32 114 56 58 48 120 > 48 48 48 50 53 51 49 100 32 32 114 57 58 48 120 50 48 48 48 48 102 99 48 32 > 114 49 48 58 48 120 48 48 48 50 57 54 101 48 32 114 49 49 58 48 120 48 48 48 > 48 48 48 50 102] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 114 49 50 58 48 120 > 48 48 48 48 48 48 48 48 32 32 108 114 58 48 120 48 48 48 48 56 56 57 98 32 32 > 112 99 58 48 120 48 48 48 48 48 56 48 48 32 112 115 114 58 48 120 52 48 48 48 > 48 48 48 48] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 73 67 83 82 58 48 > 120 48 48 52 50 49 56 48 51 32 72 70 83 82 58 48 120 52 48 48 48 48 48 48 48 > 32 67 70 83 82 58 48 120 48 48 48 50 48 48 48 48] from data channel > 2017/04/29 09:31:51 [DEBUG] Reading [48 48 56 48 57 50 32 66 70 65 82 58 48 > 120 101 48 48 48 101 100 51 56 32 77 77 70 65 82 58 48 120 101 48 48 48 101 > 100 51 52] from data channel > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
It looks like newtmgr is sending a lot of little fragments. Your device might be running out of mbufs before it can reassemble the newtmgr request. I would try increasing the MSYS_1_BLOCK_COUNT setting if you have the RAM for it. > The Config command is still not working though, i still get the same response > a before for both set & get config value. What config variable are you setting and getting? Could you please send a log of the newtmgr exchange? Sorry if you have already done this and I missed it. Chris