dioannidis / usbasp

usbasp improved firmware
GNU General Public License v2.0
73 stars 12 forks source link

UART retaining state after ISP commands finished #13

Closed dioannidis closed 2 years ago

dioannidis commented 2 years ago

Currently, if, during uart is opened, a ISP read / write command issued, then the uart closes as to not interfere with ISP.

I wanted the uart to return to ~open state~ its previous state ( to closed if it was closed or to open if it was opened ), after the ISP commands finished. So, I've implemented ( not uploaded yet ) one more hid interface for monitoring, which report the device state . With this information I can reopen the uart if it was opened before the ISP commands started.

The label lblMonitor is the current USBasp state, the extra hid interface reports.

This is a nice improvement as well. Thanks.

Originally posted by @mcuee in https://github.com/dioannidis/usbasp/issues/11#issuecomment-1193231887

dioannidis commented 2 years ago

@mcuee

My tests regarding this are successful. The libUSBUARTTerminal already has support for this functionality. But I need to add it to the USBaspHIDUART utility also.

If you're going to test this I'll wait otherwise I'll closed it as resolved.

mcuee commented 2 years ago

You can close it for now. If I encountered issues later, I will report it here.