Skip to content

Upload too verbose? #6605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
matthijskooijman opened this issue Oct 5, 2019 · 1 comment · Fixed by #6606
Closed
5 tasks done

Upload too verbose? #6605

matthijskooijman opened this issue Oct 5, 2019 · 1 comment · Fixed by #6606

Comments

@matthijskooijman
Copy link

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • I have filled out all fields below.

Platform

  • Hardware: all
  • Core Version: 2.5.2
  • Development Env: Arduino IDE
  • Operating System: Ubuntu

Problem Description

Since #5635 was merged, uploading uses the Python esptool uploader. When verbose uploads are enabled in the IDE, --trace is passed to esptool, causing very verbose output (showing all bytes uploaded, I think).

IMHO, this is too verbose to be productive, and might even be very confusing for newer ESP users (such as myself). It might also slow down the upload, but that might just be my perception.

Of course one can turn off verbose uploads, but this makes other cores (e.g. the default Arduino AVR core) very silent, pretty much outputting nothing.

Looking at the esptool options, there is no other options that make it more verbose than the default (which only shows an upload progress percentage), so maybe verbose and non-verbose should just be the same (or perhaps a --quiet option should be added to esptool.py for the non-verbose option)?

Debug Messages

Here's how the verbose output looks like now:

esptool.py v2.6
2.6
esptool.py v2.6
Serial port /dev/ttyUSB1
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.001 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.101 Timed out waiting for packet header
.TRACE +0.050 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.001 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.014 Read 1 bytes: c0
TRACE +0.000 Read 95 bytes: 
    0108020007071220 0000c0c001080200 | ....... ........
    070712200000c0c0 0108020007071220 | ... ........... 
    0000c0c001080200 070712200000c0c0 | ........... ....
    0108020007071220 0000c0c001080200 | ....... ........
    070712200000c0c0 0108020007071220 | ... ........... 
    0000c0c001080200 070712200000c0   | ........... ...
TRACE +0.001 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000
TRACE +0.000 Received full packet: 01080200070712200000

TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5c00f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005c00f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200ebf384000000c0
TRACE +0.000 Received full packet: 010a0200ebf384000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5800f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005800f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a020000b000270000c0
TRACE +0.000 Received full packet: 010a020000b000270000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5400f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005400f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200741a00020000c0
TRACE +0.000 Received full packet: 010a0200741a00020000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5000f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005000f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a02000000972d0000c0
TRACE +0.000 Received full packet: 010a02000000972d0000
Chip is ESP8266EX
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5c00f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005c00f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200ebf384000000c0
TRACE +0.000 Received full packet: 010a0200ebf384000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5800f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005800f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a020000b000270000c0
TRACE +0.000 Received full packet: 010a020000b000270000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5400f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005400f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200741a00020000c0
TRACE +0.000 Received full packet: 010a0200741a00020000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5000f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005000f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a02000000972d0000c0
TRACE +0.000 Received full packet: 010a02000000972d0000
Features: WiFi
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5000f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005000f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a02000000972d0000c0
TRACE +0.000 Received full packet: 010a02000000972d0000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5400f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005400f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200741a00020000c0
TRACE +0.000 Received full packet: 010a0200741a00020000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=5c00f03f
TRACE +0.000 Write 14 bytes: c0000a0400000000005c00f03fc0
TRACE +0.003 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 010a0200ebf384000000c0
TRACE +0.000 Received full packet: 010a0200ebf384000000
MAC: 84:f3:eb:1a:74:2d
Uploading stub...
TRACE +0.000 command op=0x05 data len=16 wait_response=1 timeout=3.000 data=6c1f0000020000000018000000e01040
TRACE +0.000 Write 26 bytes: 
    c000051000000000 006c1f0000020000 | .........l......
    000018000000e010 40c0             | ........@.
TRACE +0.005 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 01050200ebf384000000c0
TRACE +0.000 Received full packet: 01050200ebf384000000
TRACE +0.003 command op=0x07 data len=6160 wait_response=1 timeout=3.000 data=
    0018000000000000 0000000000000000 | ................
    a810004001ffff46 460000000080fe3f | [email protected]......?
    4f484149a4abff3f 0cabfe3f80800000 | OHAI...?...?....
    f4f910400c000060 0000000100000100 | ...@...`........
    00100000ffff0000 8c80000010400000 | .............@..
    0000ffff00400000 0080fe3f9c2bff3f | .....@.....?.+.?
    a02bff3f10270000 14000060ffff0f00 | .+.?.'.....`....
    a4abff3fa4abff3f a42bff3fb4abff3f | ...?...?.+.?...?
    0080000020290000 f88dfe3f5880fe3f | .... ).....?X..?
    a8abff3f98aeff3f 989bfe3f84aeff3f | ...?...?...?...?
    [Tons of data removed]
TRACE +0.038 Write 6269 bytes: 
    c000071018240000 0000180000000000 | .....$..........
    0000000000000000 00a810004001ffff | ............@...
    46460000000080fe 3f4f484149a4abff | FF......?OHAI...
    3f0cabfe3f808000 00f4f910400c0000 | ?...?.......@...
    6000000001000001 0000100000ffff00 | `...............
    008c800000104000 000000ffff004000 | ......@.......@.
    000080fe3f9c2bff 3fa02bff3f102700 | ....?.+.?.+.?.'.
    0014000060ffff0f 00a4abff3fa4abff | ....`.......?...
    3fa42bff3fb4abff 3f00800000202900 | ?.+.?...?.... ).
    [Tons of data removed]
TRACE +0.595 Read 1 bytes: c0
TRACE +0.000 Read 11 bytes: 01070200ebf384000000c0
TRACE +0.000 Received full packet: 01070200ebf384000000
TRACE +0.001 command op=0x07 data len=1916 wait_response=1 timeout=3.000 data=
    [Repeats over and over]
d-a-v added a commit to d-a-v/Arduino that referenced this issue Oct 5, 2019
d-a-v added a commit that referenced this issue Oct 5, 2019
@matthijskooijman
Copy link
Author

Lightning response, thanks! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant