Sending keystrokes

bulbay
 
Posts: 5
Joined: Tue Mar 28, 2017 7:32 am

Sending keystrokes

Wed Apr 05, 2017 3:54 pm

Is it possible to send keyboard strokes as soon as board is plugged in a computer?

I have VoCore2 Lite. I am planning to use a usb socket and solder it on the board. How can I make VoCore2 Lite to behave like a keyboard.

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Sending keystrokes

Thu Apr 06, 2017 12:34 am

I do not think so :)
Its USB 2.0 is only host mode.
But you can use GPIO to simulate USB1.0.

bulbay
 
Posts: 5
Joined: Tue Mar 28, 2017 7:32 am

Re: Sending keystrokes

Thu Apr 06, 2017 10:12 pm

How can I do that:)

Alleycat
 
Posts: 7
Joined: Wed Mar 08, 2017 3:41 am

Re: Sending keystrokes

Sun Apr 09, 2017 11:05 pm

yes, i personally would like to capture a yubikey with it to use authentication via the yubikey server api with curl (i seen that is available in the packages) to use it as a sort of electronic lock with one singe potential identifier (which is me unless they steal my key) but dmesg gives

Code: Select all
root@fuckpencilpushingnazis:/dev# dmesg
[    0.000000] Linux version 3.18.29 (vocore@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49378) ) #32 Sat Dec 24 22:01:05 CST 2016
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
...yadda yadda about 100 lines...
[    0.180000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
...yadda yadda another 100 lines ...
[    6.180000] sdhci: Secure Digital Host Controller Interface driver
[    6.190000] sdhci: Copyright(c) Pierre Ossman
[    6.200000] sdhci-pltfm: SDHCI platform and OF driver helper
[    6.210000] usbcore: registered new interface driver usb-storage
[    6.300000] mmc0: new SD card at address 159e
[    6.300000] mmcblk mmc0:159e: no of_node; not parsing pinctrl DT
[    6.310000] mmcblk0: mmc0:159e SD064 59.1 MiB
[    6.310000]  mmcblk0: p1
...this part (i think says the microsd 64mb cars is recognized, partition is mounted? ...
[    6.440000] init: - preinit -
...yadda yadda... another 70 lines of startup...
[   59.460000] random: nonblocking pool is initialized
<<-- that part gave me a headache when i first tried booting it after flashing firmware ...
THEN

[  410.910000] usb 1-1: new high-speed USB device number 6 using ehci-platform

thats a 4GB usb flashdrive, it gives no errors but i dont see what device which is probably due to my lamer nubness ...

THEN

[  542.640000] usb 2-1: new low-speed USB device number 4 using ohci-platform
[  542.830000] usb 2-1: device descriptor read/64, error -62
[  543.120000] usb 2-1: device descriptor read/64, error -62
[  543.410000] usb 2-1: new low-speed USB device number 5 using ohci-platform
[  543.600000] usb 2-1: device descriptor read/64, error -62
[  543.890000] usb 2-1: device descriptor read/64, error -62
[  544.180000] usb 2-1: new low-speed USB device number 6 using ohci-platform
[  544.600000] usb 2-1: device not accepting address 6, error -62
[  544.780000] usb 2-1: new low-speed USB device number 7 using ohci-platform
[  545.200000] usb 2-1: device not accepting address 7, error -62
[  545.200000] usb usb2-port1: unable to enumerate USB device


is what happens when i insert the yubikey ... the green led blinks exactly in sync with the error 62s (which i have no clue what that means) and then i just goes out

my idea was if that thing can get input from a camera it can get input from a whatever fits the slot, no ? but this is at machine level , no ? some kind of driver problem ?

which would make it way above my capabilities unless someone can point me to a this bit goes there type manual ?

im not the dullest tool in the shed but in the world of electronics compared to you ppl im a total nub, apologies

but it <b>would</b> be cool to just use a yubikey in a vocore connected to i dont know what, i suppose even a lock since the authentication happens serverside you'd have to break through the wall to intercept the signal through the cables
and yes i know, if the ISP goes down you're screwed, its just a concept and im sure it can work but i have no clue where to start with this

Vonger
 
Posts: 896
Joined: Sun Oct 19, 2014 6:00 am

Re: Sending keystrokes

Fri Apr 14, 2017 2:44 am

It is a hardware issue. Looks like one of the USB data line is short connected to GND or 5V, maybe you need to have a check.

Return to VoCore2/Lite/Ultimate

Who is online

Users browsing this forum: No registered users and 45 guests