Samuel Sadok
861a26735c
Merge branch 'sam_disable_dfu' into sam_oskar_testing
2018-04-24 13:41:53 -07:00
Samuel Sadok
dc303606b1
fix USB TX lockup issue
...
When the host reset the connection without reading the response packet first, the TX-empty semaphore would never get released, thereby blocking any further TX communication. This commit just overrides the TX buffer if the semaphore wait times out.
2018-04-23 19:03:55 -07:00
Samuel Sadok
1f504d1d99
Merge branch 'sam_testing' into sam_oskar_testing
2018-04-21 23:11:36 -07:00
samuelsadok
4cefbbb0f9
dont start thread with daemon=True, doesnt work in python2
2018-04-21 22:49:18 -07:00
Samuel Sadok
1cdda103a3
Merge branch 'devel' into sam_refactoring
2018-04-21 22:11:49 -07:00
Oskar Weigl
c19510e1c6
Update protocol.py
2018-04-21 20:23:54 -07:00
Samuel Sadok
b1f9be531d
request more bytes at a time when reading JSON
2018-04-21 20:22:30 -07:00
Samuel Sadok
80b3bab553
cancel receiver thread correctly on app shutdown
2018-04-21 20:09:24 -07:00
Oskar Weigl
78e157f879
Merge branch 'devel' into sam_python_fixes
2018-04-21 17:57:38 -07:00
Oskar Weigl
9d2b56998f
Update protocol.py
2018-04-21 00:13:28 -07:00
Oskar Weigl
2f5f6ead9c
add retry error counter, some fixes for windows
2018-04-13 00:25:03 -07:00
Samuel Sadok
d9b7996c8a
Merge branch 'sam_refactoring' into sam_testing
2018-04-09 18:23:25 -07:00
Brandon Kinman
8c2223de20
System version checking now works as expected
2018-04-08 12:14:12 -07:00
Samuel Sadok
e264e1c326
rename legacy protocol to ASCII protocol
2018-04-07 13:25:19 -07:00
Samuel Sadok
5104c3ad99
robustify connect and disconnect logic
2018-03-17 19:27:15 -07:00
Samuel Sadok
f4bded078f
make remote_endpoint_operation thread-safe
2018-03-17 18:27:24 -07:00
Samuel Sadok
3ea4b731b3
rename USBHaltException to ChannelDamagedException
2018-03-16 22:32:26 -07:00
Oskar Weigl
df6d0bf3a7
comment out incorrect version check
2018-02-13 19:37:36 -08:00
Oskar Weigl
13e3befc8c
also reset halt/stall on writes
2018-02-12 01:52:34 -08:00
Oskar Weigl
0625bd39ef
automatic recovery from stalled/halted endpoint
2018-02-12 00:52:09 -08:00
Oskar Weigl
03d90035e3
Update protocol.py
2018-02-11 13:34:21 -08:00
Brandon Kinman
0f64f03d67
Added compatibility for python 2.7
2018-02-05 20:31:41 -08:00
Oskar Weigl
fc891c418d
Update protocol.py
2018-01-11 17:41:29 -08:00
Samuel Sadok
91f61c076b
miscelleneous python updates
...
accept arguments in explore_odrive.py (like in test_communication.py)
implement --discover argument
fix spurious property fetch
fix read-only properties
better serial port detection for windows
revert demo.py
2017-11-13 19:37:17 +01:00
Oskar Weigl
49754af4cc
add comments
2017-11-08 23:53:15 -08:00
Samuel Sadok
7de12a4639
change sync byte to 0xAA
2017-11-06 21:27:36 +01:00
Samuel Sadok
8523c40832
fix UART protocol, enable legacy protocol coexistence on USB port
2017-11-06 18:31:26 +01:00
Samuel Sadok
23bd60efbe
python tool: add cmdline option to select a specific device (on USB or serial)
2017-11-06 18:29:59 +01:00
Samuel Sadok
3cba81e6f7
make remote precedure calls work
2017-11-06 14:38:15 +01:00
Samuel Sadok
ba46e5fb29
update test_communication.py to new backend, deferred USB processing, move CRC16 to stream based layer, some protocol refactoring
2017-10-30 23:39:21 +01:00
Oskar Weigl
87498ef1b9
add comments
2017-10-29 16:37:20 -07:00
Oskar Weigl
692e9239fa
add comments
2017-10-28 21:06:06 -07:00
Samuel Sadok
d02f5fe808
make float read/write work
2017-10-24 00:51:14 +02:00
Samuel Sadok
c19a693fe9
almost make new binary protocol work with python (up to fetching and parsing the JSON)
2017-10-23 23:15:56 +02:00