cvra / can-bootloader

The bootloader used to flash our CAN-connected boards
BSD 2-Clause "Simplified" License
146 stars 51 forks source link

Nonblocking IO + ping #50

Closed antoinealb closed 9 years ago

antoinealb commented 9 years ago

Here is a proposal for an implementation of ping that I would like to test tomorrow in real life.

antoinealb commented 9 years ago

Of course, when this PR gets merged, I will add a ping feature to the flashing tool, so far it is only a demo of what is possible.

antoinealb commented 9 years ago

antoine@antoine-thinkpad client]$ time ./bootloader_read_config.py --tcp 192.168.2.20 --all

"1": { "ID": 1, "application_crc": 513860380, "application_size": 21088, "device_class": "motor-board-v1", "name": "foobar2000", "update_count": 35 }, "10": { "ID": 10, "application_crc": 513860380, "application_size": 21088, "device_class": "motor-board-v1", "name": "Left", "update_count": 44 }

real 0m0.923s user 0m0.107s sys 0m0.013s

Fast enough ? ;)