I would like to have Leonardo set up to enter a key string as an emulated keyboard when it receives some sort of actuation over Ethernet. I have a couple questions regarding this. The text input part seems simple enough, but is there anyway to have only the HID Keyboard connected to the computer and not have the board accessible? Will the board stay programmed / connected to the computer if power is lost? I don't know if its possible, but ideally I would like to have the arduino unable to be accessed without some sort of physical hard reset.
reckman:
I would like to have Leonardo set up to enter a key string as an emulated keyboard when it receives some sort of actuation over Ethernet.
That seems straightforward.
reckman:
I have a couple questions regarding this. The text input part seems simple enough, but is there anyway to have only the HID Keyboard connected to the computer and not have the board accessible? Will the board stay programmed / connected to the computer if power is lost?
What is 'the board' in this context and, if it's not a physical keyboard then what do you mean by 'accessible'?
What is 'the board' in this context and, if it's not a physical keyboard then what do you mean by 'accessible'?
[/quote]
As far as reprogramming the Leonardo, from the PC it is hooked. Ideally I'd like only the HID "Virtual" Keyboard to be accessible when the sketch is running.
I would like to use it as a sort of basic two - factor auth for a computer that I connect to remotely.
reckman:
As far as reprogramming the Leonardo, from the PC it is hooked. Ideally I'd like only the HID "Virtual" Keyboard to be accessible when the sketch is running.
I'm not sure how that would contribute to security, but if you want to prevent the Arduino from being reprogrammed via USB then you can remove the bootloader. Programming it then would require making electrical connections to the ICSP interface.
Still not clear what it means for the virtual keyboard to be 'accessible' to the PC. Are you saying that when the Arduino is acting as a virtual keyboard, you want to inhibit any other keyboard devices so that the Arduino is the only keyboard input device? You can't do that unless you're able to install software on the PC - you'd have to write the software yourself, and it would require diving into the depths of the host operating system.