Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2011, 04:04 PM   #16
h1uke
Zealot
h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.
 
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
Quote:
Originally Posted by Acorn View Post
What is the command to make the Kindle wake up from sleep? Is it safe to use if the kindle is already awake?
Code:
powerd_test -p
emulates a short move of the power slider
h1uke is offline   Reply With Quote
Old 01-31-2011, 04:18 PM   #17
Acorn
Enthusiast
Acorn began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Amazing! Now the person can even wake the Kindle up from sleep using their voice! .. although that will only work if the SSH connection has already been established before the Kindle went to sleep. You can't connect via SSH while it's sleeping. Although with UDP....
Acorn is offline   Reply With Quote
Old 01-31-2011, 09:57 PM   #18
kranu
I <3 my Kindle
kranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensionskranu can understand the language of future parallel dimensions
 
Posts: 528
Karma: 51332
Join Date: Nov 2010
Location: United States
Device: Kindle 3G + WiFi
Quote:
Originally Posted by Acorn View Post
Amazing! Now the person can even wake the Kindle up from sleep using their voice! .. although that will only work if the SSH connection has already been established before the Kindle went to sleep. You can't connect via SSH while it's sleeping. Although with UDP....
I thought that the Kindle turned of WiFi (and thus connection to SSH) when it went into stand-by mode...
kranu is offline   Reply With Quote
Old 02-01-2011, 08:04 AM   #19
Acorn
Enthusiast
Acorn began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by kranu View Post
I thought that the Kindle turned of WiFi (and thus connection to SSH) when it went into stand-by mode...
You might be right.. I haven't tested it very thoroughly..
Acorn is offline   Reply With Quote
Old 02-02-2011, 12:42 PM   #20
h1uke
Zealot
h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.
 
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
Quote:
Originally Posted by Acorn View Post
Although with UDP....
I've added a primitive RemoteCommandEntry feature to the existing launchpad code.
When started, it now joins the 239.1.2.3 multicast group and listens for UDP packets
on port 10000 of usb0 interface. Each packet (can be up to 1024 bytes in length).
When RCE enabled, the contents of every incoming packet gets conveyed to the system shell.

All RCE parameters mentioned above are controlled by rce.ini configuration file.
h1uke is offline   Reply With Quote
Old 02-02-2011, 01:03 PM   #21
Acorn
Enthusiast
Acorn began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Oct 2010
Device: Kindle 3
Amazing! Thank you so much! Can't wait to try it out.

You say it listens on usb0? Does that mean it wont receive packets sent over WIFI?
Acorn is offline   Reply With Quote
Old 02-02-2011, 01:28 PM   #22
h1uke
Zealot
h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.h1uke can do the Funky Gibbon.
 
Posts: 121
Karma: 82565
Join Date: Aug 2010
Location: Maryland, USA
Device: dxg, k3w,k4nt,kpw
Quote:
Originally Posted by Acorn View Post
You say it listens on usb0? Does that mean it wont receive packets sent over WIFI?
That, probably, doesn't mean so. I'm unable to check that -- my device has its WiFi turned off forever.

But you can try. Just set proper interface name in rce.ini and kick the launchpad using
Shift Shift Space
Don't forget that by default you have to enable the RCE first by sending a packet containning
start RCE
string.
h1uke is offline   Reply With Quote
Old 04-13-2011, 04:22 PM   #23
bubnikv
Junior Member
bubnikv began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
If you want a voice control on Kindle, why don't you do it on the Kindle itself.
The Kindle has a built in microphone, which is accessible on Kindle using the alsalib. Porting a simple phrase recognition software from Linux to Kindle is not a big deal. A good candidate may be

http://www.kiecza.net/daniel/linux/

Vojtech
bubnikv is offline   Reply With Quote
Old 04-14-2011, 03:27 AM   #24
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 593
Karma: 2061091
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
Quote:
Originally Posted by bubnikv View Post
A good candidate may be
http://www.kiecza.net/daniel/linux/
Good idea. I'll try to build it and install on my Kindle.
dsmid is offline   Reply With Quote
Old 05-19-2011, 12:29 PM   #25
kinkle
Enthusiast
kinkle began at the beginning.
 
Posts: 41
Karma: 10
Join Date: May 2011
Location: romania
Device: kindle3 3g and KT 3G
Quote:
Originally Posted by dsmid View Post
Good idea. I'll try to build it and install on my Kindle.
This can instal on kindle? how?
kinkle is offline   Reply With Quote
Old 12-04-2011, 04:54 PM   #26
PoP
Antonín ♯♭♪♮♫ ᵖʸᶠᵍᶜʳˡ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 521
Karma: 7391817
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3.₄, PRS-350, SGS3, Rπ, iPad Air
I can't get Launchpad's RCE to work

Quote:
Originally Posted by h1uke View Post
I've added a primitive RemoteCommandEntry feature to the existing launchpad code.
When started, it now joins the 239.1.2.3 multicast group and listens for UDP packets
on port 10000 of usb0 interface. Each packet (can be up to 1024 bytes in length).
When RCE enabled, the contents of every incoming packet gets conveyed to the system shell.

All RCE parameters mentioned above are controlled by rce.ini configuration file.
I have configured my RCE.ini parameters as follows:
Spoiler:

[RemoteCommandEntry]

;; comment out AutoEnable and enableRCE definitions below
;; in order to fully disable the RCE feature

AutoEnable = yes
enableRCE = start RCE
disableRCE = stop RCE

Interface = wlan0
MulticastGroup = 239.1.2.3
Port = 10000

I have opened the port in the firewall:
Spoiler:

iptables -A INPUT -i wlan0 -p udp --dport 10000 -j ACCEPT

And I am using This freeware UDP test tool to send UDP packets (containing shell commands) to the Kindle.

My wlan0 interface seems healthy:
Spoiler:

[root@kindle root]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1449 errors:0 dropped:0 overruns:0 frame:0
TX packets:1449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:408369 (398.7 KiB) TX bytes:408369 (398.7 KiB)

wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.2.9 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11383 errors:0 dropped:0 overruns:0 frame:0
TX packets:1984 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2715897 (2.5 MiB) TX bytes:276735 (270.2 KiB)


It recieves unicast UDP packets on port 10000:
Spoiler:

Before sending the packet

[root@kindle root]# iptables --list --verbose
Chain INPUT (policy DROP 6229 packets, 681K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere tcp dpt:40317
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere state RELATED,ESTABLISHED
101K 78M ACCEPT tcp -- wlan0 any anywhere anywhere state RELATED,ESTABLISHED
439 74280 ACCEPT udp -- wlan0 any anywhere anywhere state ESTABLISHED
0 0 ACCEPT udp -- ppp0 any anywhere anywhere state ESTABLISHED
6 328 ACCEPT all -- lo any localhost.localdomain anywhere
0 0 ACCEPT all -- usb0 any anywhere anywhere
1 89 ACCEPT icmp -- any any anywhere anywhere state RELATED,ESTABLISHED
38 1968 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT icmp -- wlan0 any anywhere anywhere
3 144 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:4200
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:www
6 347 ACCEPT udp -- wlan0 any anywhere anywhere udp dpt:10000

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 61771 packets, 7450K bytes)
pkts bytes target prot opt in out source destination
6 328 ACCEPT all -- any lo anywhere localhost.localdomain


After sending one UDP packet to 192.168.2.9:10000


[root@kindle root]# iptables --list --verbose
Chain INPUT (policy DROP 6254 packets, 684K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere tcp dpt:40317
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere state RELATED,ESTABLISHED
102K 78M ACCEPT tcp -- wlan0 any anywhere anywhere state RELATED,ESTABLISHED
439 74280 ACCEPT udp -- wlan0 any anywhere anywhere state ESTABLISHED
0 0 ACCEPT udp -- ppp0 any anywhere anywhere state ESTABLISHED
6 328 ACCEPT all -- lo any localhost.localdomain anywhere
0 0 ACCEPT all -- usb0 any anywhere anywhere
1 89 ACCEPT icmp -- any any anywhere anywhere state RELATED,ESTABLISHED
38 1968 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT icmp -- wlan0 any anywhere anywhere
3 144 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:4200
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:www
7 385 ACCEPT udp -- wlan0 any anywhere anywhere udp dpt:10000


Per launchpad instructions, I tried enabling the RCE by first sending a packet containning the "start RCE" string. To no avail. The Kindle doesn't seem to receive UDP packets multicasted to 239.1.2.3:10000
Spoiler:

After multicasting several packets, the count does not change

[root@kindle root]# iptables --list --verbose
Chain INPUT (policy DROP 6255 packets, 684K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere tcp dpt:40317
0 0 ACCEPT tcp -- ppp0 any anywhere anywhere state RELATED,ESTABLISHED
102K 78M ACCEPT tcp -- wlan0 any anywhere anywhere state RELATED,ESTABLISHED
439 74280 ACCEPT udp -- wlan0 any anywhere anywhere state ESTABLISHED
0 0 ACCEPT udp -- ppp0 any anywhere anywhere state ESTABLISHED
6 328 ACCEPT all -- lo any localhost.localdomain anywhere
0 0 ACCEPT all -- usb0 any anywhere anywhere
1 89 ACCEPT icmp -- any any anywhere anywhere state RELATED,ESTABLISHED
38 1968 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT icmp -- wlan0 any anywhere anywhere
3 144 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:4200
0 0 ACCEPT tcp -- wlan0 any anywhere anywhere tcp dpt:www
7 385 ACCEPT udp -- wlan0 any anywhere anywhere udp dpt:10000

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 61854 packets, 7468K bytes)
pkts bytes target prot opt in out source destination
6 328 ACCEPT all -- any lo anywhere localhost.localdomain


Can you help me spot what is missing?

Edit 2011-12-05 thread moved to http://www.mobileread.com/forums/sho...d.php?t=159903

Last edited by PoP; 12-10-2011 at 09:14 AM. Reason: not to hichjack
PoP is offline   Reply With Quote
Old 12-09-2011, 10:58 AM   #27
Carocaro
Junior Member
Carocaro began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2011
Device: Kindle
Similar problems for disabled.

hi Acorn. Can you check out Amazon.co thread Voice activated Kindle for disabled. Coz put out a plea for their Mom who is paralyzed for such. So much help, suggestions etc has been put forward I can identify a large market worldwide for people with neurological,muscular,skeletal disabilities I gave a range of examples that's not a finite list and sent it to the Kindle team they say they will look at it but I worry that may be a statement to pacify me as nothing else came back. I have serious arthritis and it would benefit me too. I also think the gimmick of voice activated ereaders would be a novelty for all ages too. Please join the forum and also put requests in to Amazon kindle team if enough ask they may listen. there is an app for PC called Dragon that dictates directly onto computer and I wondered if this would be any use as a start point?
Carocaro is offline   Reply With Quote
Old 12-09-2011, 03:10 PM   #28
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by kranu View Post
I thought that the Kindle turned of WiFi (and thus connection to SSH) when it went into stand-by mode...
Wifi stays on if the kindle is receiving power over the USB port (not in USB Drive mode). Either the kindle must be in USBnet mode, or the USB Drive must be ejected, or the USB port must be connected to a power adapter.

UPDATE: Although this was true for the older kindles, it seems that wifi is disabled when the new K4NT and Touch go to stand-by mode.

Last edited by geekmaster; 01-24-2012 at 06:23 PM.
geekmaster is offline   Reply With Quote
Old 02-25-2012, 06:10 PM   #29
evepi
Junior Member
evepi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2012
Device: kindle 3
any news?
evepi is offline   Reply With Quote
Old 02-26-2012, 09:13 AM   #30
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 7,020
Karma: 6359394
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by PoP View Post
And I am using This freeware UDP test tool to send UDP packets (containing shell commands) to the Kindle.
This thread sounds like the process could be simplified by using NetCat (nc).
http://nc110.sourceforge.net/

On the Kindle end of things, see if it was included in your Busybox build.
(/bin/busybox will list everything included)

NetCat is a very old, very basic, networking tool - you can find builds of it for any operating system that might be in use to talk to the Kindle.

What NetCat does is tie stdin/stdout to a network socket, either TCP or UDP
What you send to its stdin goes out on the network, what it receives appears on its standard out.

Ask google about: "netcat"

If you need any sort of stateful communications (state-machine) try NetExpect.
That probably isn't on your Kindle - you may have to add it.

Another (good) choice for maintaining state (at either end) is to do it in Lua.
The Lua vm is already installed on your Kindle (at least the ones I know of).

And Lua is available for anything you might possibly be using to talk to the kindle.
Lua + NetCat will handle just about any network remote control situation you can dream up.

Another thing to check on your Kindle -
See if the network bridge is included in your kernel build.
Then just bridge all of your interfaces into one, talk to the bridge - the bridge will send your packet out usb0, wan0, 3G, etc - whatever you have bridged together - as appropriate at the moment for you.
Think of it as a network bridge box (it is).
knc1 is offline   Reply With Quote
Reply

Tags
accessibility, key-press, simulate, voice, voice-control

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessories DIY Kindle Cover djulian Amazon Kindle 11 02-26-2011 09:12 PM
iPad Enable voice control on iPad (jailbreak) scottjl Apple Devices 0 05-03-2010 07:17 PM
The Clerkenwell Presses ShortNCuddlyAm Writers' Corner 16 01-30-2010 07:21 PM
Free on Kindle - The Voice koland Deals, Freebies, and Resources (No Self-Promotion) 0 12-09-2009 03:06 PM
DIY Kindle Case EnginerdLisa Amazon Kindle 3 09-27-2008 11:56 PM


All times are GMT -4. The time now is 06:16 PM.


MobileRead.com is a privately owned, operated and funded community.