02-26-2012, 09:43 AM | #31 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Network access to /proc/?
If using the Netcat (nc) built into Busybox, you will need to adjust the following nc command to match its limitations.
Objective: Send strings via network to /proc/keypad Kindle: Listen on all interfaces, using some port number of your choosing (12345) Remote machine: Assume Kindle appears as 192.168.2.1 on that machines network Using a full copy of Netcat (nc) and assuming you haven't blocked new UDP connections in the Kindle's iptables setup (that is, open your above choice of port for UDP, state:new). On Kindle: (Listen, IPv4, re-start a new connection, no DNS lookups, UDP) nc -l -4 -k -n -u 12345 >/proc/keypad On remote machine: echo "send 104" > nc -4 -n -u 192.168.2.1:12345 The Kindle end will auto-restart its listening for the next connection when it finishes receiving the above UDP packet. I.E: You don't have to repeat the Kindle nc command, it will continue until you kill it. Embellish as desired. Such as start the Kindle nc command "on demand" using inetd and inetd.conf (in which case you don't need the "-k" - inetd will take care of start/stop of nc). Last edited by knc1; 02-26-2012 at 09:53 AM. |
02-26-2012, 04:34 PM | #32 |
Enthusiast
Posts: 46
Karma: 97694
Join Date: Feb 2012
Device: kindle touch
|
Code:
arecord -c 1 -r 16000 -f S16_LE test.wav |
Advert | |
|
02-26-2012, 08:32 PM | #33 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Some versions don't know about -4/-6 (IPv4 / IPv6 selection). Note: You can test the two nc ends by "talking" over the local-loopback (127.0.0.1) No need to trash up your Kindle until you get what you want working locally. |
|
02-27-2012, 08:24 AM | #34 |
Connoisseur
Posts: 55
Karma: 124493
Join Date: Jan 2012
Device: Kindle Touch
|
Unfortunately there is a dozen of different netcat variants. But for the purposes of this thread anything should be good enough. Anyway if you find yourself compiling your own netcat somewhere you may as well consider using socat instead (much more powerful).
|
10-07-2012, 12:05 PM | #35 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
(sadly I have ncurses-5.9, so possibly some hackery required) Thanks for the tip. I will put it on my list to try. Last edited by twobob; 10-07-2012 at 12:13 PM. Reason: host-ncurses-5.9 |
|
Advert | |
|
10-07-2012, 01:36 PM | #36 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
|
|
Tags |
accessibility, key-press, simulate, voice, voice-control |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessories DIY Kindle Cover | djulian | Amazon Kindle | 11 | 02-26-2011 08:12 PM |
iPad Enable voice control on iPad (jailbreak) | scottjl | Apple Devices | 0 | 05-03-2010 06:17 PM |
The Clerkenwell Presses | ShortNCuddlyAm | Writers' Corner | 16 | 01-30-2010 06:21 PM |
Free on Kindle - The Voice | koland | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 12-09-2009 02:06 PM |
DIY Kindle Case | EnginerdLisa | Amazon Kindle | 3 | 09-27-2008 10:56 PM |