11-01-2012, 05:49 AM | #1 |
Member
Posts: 17
Karma: 11628
Join Date: Oct 2012
Device: Kobo Touch
|
Wifi Connection on boot (touch)
Hi.
Is it possible to enable wifi (and connect to a network already stored) in order to run e.g. wget on boot (run.sh)? I am trying to make the touch fetch a new calibre news epub whenever I reboot the device. |
11-11-2012, 05:57 AM | #2 |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
Hi there,
If you already have a setup and configured network it should be sufficient to run wpa_supplicant by Code:
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B Since I haven't setup my Kobo Touch yet, I am going to briefly describe how I did setup the wireless manually. 1. Load the module for the wifi Code:
# insmod /drivers/freescale/wifi/ar6000.ko Code:
# lsmod Code:
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B Code:
# wpa_cli Code:
> scan > scan_results Code:
> add network 0 Code:
> set_network 0 ssid "Your-Network" Code:
> set_network 0 psk "YourPassphrase" Code:
> save_config Code:
> quit 5a. static IP (example) Code:
# ifconfig wlan0 192.168.1.1 Code:
# udhcpc -i wlan0 Code:
nameserver 192.168.1.1 Code:
# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 dev wlan0 To have the wireless available after booting the Kobo Touch I created a script that is called during start up: Code:
/bin/busybox insmod /drivers/freescale/wifi/ar6000.ko > /mnt/onboard/test.log sleep 4 /bin/busybox lsmod > /mnt/onboard/test.log /bin/wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B > /mnt/onboard/test.log sleep 2 /sbin/ifconfig wlan0 192.168.1.12 > /mnt/onboard/test.log sleep 2 /sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 dev wlan0 /sbin/route > /mnt/onboard/test.log One issue I discovered is that nickel interferes with my batch script. The output in the log file was as expected, but when I listed loaded modules and running threads neither the wireless module was loaded nor wpa_supplicant was running. In dmesg log file an error during wireless module loading was indicated. Therefore, I decided to comment out nickel in rcS file, since I do not need it anyway. I hope my description helps you to get your wireless running after boot, Sven |
11-11-2012, 02:20 PM | #3 |
Connoisseur
Posts: 88
Karma: 39373
Join Date: Apr 2003
Location: Austria
Device: Kobo Touch
|
|
11-11-2012, 05:24 PM | #4 |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
I currently try to replace nickel with a java application ( I am not a C++ guy) that at the end of the day hopefully provides some calendar, mail, note taking and, of course, reading (books and news) functionality. Through a simple plug-in mechanism this application shall be extendable with a kind of applets for further functions.
The project is still in prototype stage, but I could provide some pictures in the next few days if you would be interested. |
11-12-2012, 04:43 PM | #5 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2011
Device: Kobo Glo
|
Sven that is awesome! I for one would love to see some pictures of that.
|
11-13-2012, 04:48 AM | #6 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: Kobo Touch
|
Very interesting!
Screenshot please |
11-17-2012, 06:41 AM | #7 |
Enthusiast
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
|
Hi.
As promised a few days ago I provide some pictures of my nickel replacing Java application on my Kobo Touch. The first one is the Home Screen. The upper part of the screen shows a list of recently read books. The lower part contains icons for several "Applets", e.g. Calendar, News, Mail or Reader. The Calendar can be displayed in a month, week or day view. One can switch through the different views by tapping on the icons at the right part of the menu bar. With a swipe to the left or to the right one can go a month, a week or a day back or forward. By a long tap one can create a new event, by a normal tap on an existing event one can modify the details of the event. The events are stored in a file in XCAL (XML iCal)format. I hope to implement in future a synch mechanism for my thunderbird calendar at home. The Reading Applet shows the exiting book categories as a tag cloud considering the number of books in a particular category. Currently the category structure is file system based, that means each category is a directory in file system. That makes it easy to manipulate categories and add or remove books. After a tap on a category, a list of the books in that category is diplayed to select the book to read (I haven´t finished this work yet). The News Applet displays my favorite online news. A separate application crawls the news webpages and compiles an ePub (without advertisements and pictures). The Weather Applet is inspired by the great work of KevinShort https://www.mobileread.com/forums/sho...d.php?t=194376 As it can be seen on the pictures the User Interface is not consistent yet, some menu items are displayed as icons some as text. I am to date not sure what will be the best solution. Also one can notice a lot of ghosting on the pictures, but this will be fixed in the future. All in all, there is still much room for improvement and a lot of work to be done. Any feedback is appreciated whether the community might be interested in my replacement of nickel or whether I only develop for my purpose (then I do not have to clean up the code ) |
11-17-2012, 07:01 AM | #8 |
Member
Posts: 11
Karma: 10
Join Date: Feb 2011
Device: Kobo Glo
|
I really love the way it looks, simple, like an e-reader should be. The applications that you developed are just what an e-reader missed in my eyes. I would really like to try this! This makes my e-reader so much more than a reader, it provides information now.
Please start a topic here with your Nickel replacement(Copper :P). |
12-08-2012, 08:59 PM | #9 |
Junior Member
Posts: 7
Karma: 10
Join Date: Dec 2012
Device: Kobo Touch
|
Difficulty connecting using TLS
This may be a bit off-topic, but I'm having trouble with wpa-supplicant connecting to my university's wireless. It uses WPA-EAP TLS.
Here's my conf file: Code:
ctrl_interface=/var/run/wpa_supplicant update_config=1 ap_scan=1 fast_reauth=1 eapol_version=1 network={ ssid="WPI-Wireless" scan_ssid=0 key_mgmt=WPA-EAP pairwise=CCMP TKIP group=CCMP TKIP eap=TLS mode=0 auth_alg=OPEN identity="Wireless User 12-13" anonymous_identity="Wireless User 12-13" ca_cert="/home/certs/netops-ca.pem" ca_path="/home/certs" private_key="/home/certs/Wireless-User.pem" client_cert="/home/certs/Wireless-User.pem" private_key_passwd="--------" } Code:
# wpa_supplicant -dd -i wlan0 -c /home/wpa_supplicant.conf Initializing interface 'wlan0' conf '/home/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/home/wpa_supplicant.conf' -> '/home/wpa_supplicant.conf' Reading configuration file '/home/wpa_supplicant.conf' ctrl_interface='/var/run/wpa_supplicant' update_config=1 ap_scan=1 fast_reauth=1 eapol_version=1 Line: 6 - start of a new network block ssid - hexdump_ascii(len=12): 57 50 49 2d 57 69 72 65 6c 65 73 73 WPI-Wireless scan_ssid=0 (0x0) key_mgmt: 0x1 pairwise: 0x18 group: 0x18 eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00 mode=0 (0x0) auth_alg: 0x1 identity - hexdump_ascii(len=19): 57 69 72 65 6c 65 73 73 20 55 73 65 72 20 31 32 Wireless User 12 2d 31 33 -13 anonymous_identity - hexdump_ascii(len=19): 57 69 72 65 6c 65 73 73 20 55 73 65 72 20 31 32 Wireless User 12 2d 31 33 -13 ca_cert - hexdump_ascii(len=25): 2f 68 6f 6d 65 2f 63 65 72 74 73 2f 6e 65 74 6f /home/certs/neto 70 73 2d 63 61 2e 70 65 6d ps-ca.pem ca_path - hexdump_ascii(len=11): 2f 68 6f 6d 65 2f 63 65 72 74 73 /home/certs private_key - hexdump_ascii(len=29): 2f 68 6f 6d 65 2f 63 65 72 74 73 2f 57 69 72 65 /home/certs/Wire 6c 65 73 73 2d 55 73 65 72 2e 70 65 6d less-User.pem client_cert - hexdump_ascii(len=29): 2f 68 6f 6d 65 2f 63 65 72 74 73 2f 57 69 72 65 /home/certs/Wire 6c 65 73 73 2d 55 73 65 72 2e 70 65 6d less-User.pem private_key_passwd - hexdump_ascii(len=8): [REMOVED] Priority group 0 id=0 ssid='WPI-Wireless' SIOCGIWRANGE: WE(compiled)=22 WE(source)=13 enc_capa=0x0 capabilities: key_mgmt 0x0 enc 0x3 flags 0x0 netlink: Operstate: linkmode=1, operstate=5 Own MAC address: a0:0b:ba:6c:e4:48 wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0 wpa_driver_wext_set_countermeasures RSN: flushing PMKID list in the driver Setting scan request: 0 sec 100000 usec WPS: UUID based on MAC address - hexdump(len=16): b1 7d 94 e4 f5 d4 58 7e 96 91 fc c6 c2 5a 51 2f EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED EAPOL: Supplicant port status: Unauthorized EAPOL: Supplicant port status: Unauthorized Added interface wlan0 RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b06 len=8 RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Trying to get current scan results first without requesting a new scan to speed up initial association Received 4096 bytes of scan results (8 BSSes) BSS: Start scan result update 1 BSS: Add new id 0 BSSID 78:19:f7:77:8b:82 SSID 'WPI-Wireless' BSS: Add new id 1 BSSID 78:19:f7:78:42:82 SSID 'WPI-Wireless' BSS: Add new id 2 BSSID 78:19:f7:73:44:c2 SSID 'WPI-Wireless' BSS: Add new id 3 BSSID 00:16:ca:32:7f:c0 SSID 'WPI-Wireless' BSS: Add new id 4 BSSID 66:6d:57:68:63:57 SSID 'Connectify-wxs' BSS: Add new id 5 BSSID 78:19:f7:77:8b:80 SSID 'WPI-Guest' BSS: Add new id 6 BSSID 78:19:f7:78:42:80 SSID 'WPI-Guest' BSS: Add new id 7 BSSID 78:19:f7:73:44:c0 SSID 'WPI-Guest' New scan results available Selecting BSS from priority group 0 Try to find WPA-enabled AP 0: 78:19:f7:77:8b:82 ssid='WPI-Wireless' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 selected based on RSN IE selected WPA AP 78:19:f7:77:8b:82 ssid='WPI-Wireless' Trying to associate with 78:19:f7:77:8b:82 (SSID='WPI-Wireless' freq=2412 MHz) Cancelling scan request WPA: clearing own WPA/RSN IE Automatic auth_alg selection: 0x1 Overriding auth_alg selection: 0x1 RSN: using IEEE 802.11i/D9.0 WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 1 proto 2 WPA: clearing AP WPA IE WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 00 00 WPA: using GTK CCMP WPA: using PTK CCMP WPA: using KEY_MGMT 802.1X WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 00 00 No keys have been configured - skip key clearing State: DISCONNECTED -> ASSOCIATING wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) netlink: Operstate: linkmode=-1, operstate=5 wpa_driver_wext_associate wpa_driver_wext_set_drop_unencrypted wpa_driver_wext_set_psk ^Cioctl[SIOCSIWESSID]: Interrupted system call Association request to the driver failed Setting authentication timeout: 5 sec 0 usec EAPOL: External notification - EAP success=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - EAP fail=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portControl=Auto EAPOL: Supplicant port status: Unauthorized CTRL-EVENT-TERMINATING - signal 2 received RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b06 len=8 RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP]) RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added Wireless event: cmd=0x8b04 len=12 Removing interface wlan0 No keys have been configured - skip key clearing State: ASSOCIATING -> DISCONNECTED wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) netlink: Operstate: linkmode=-1, operstate=5 EAPOL: External notification - portEnabled=0 EAPOL: Supplicant port status: Unauthorized EAPOL: External notification - portValid=0 EAPOL: Supplicant port status: Unauthorized wpa_driver_wext_set_countermeasures No keys have been configured - skip key clearing BSS: Remove id 0 BSSID 78:19:f7:77:8b:82 SSID 'WPI-Wireless' BSS: Remove id 1 BSSID 78:19:f7:78:42:82 SSID 'WPI-Wireless' BSS: Remove id 2 BSSID 78:19:f7:73:44:c2 SSID 'WPI-Wireless' BSS: Remove id 3 BSSID 00:16:ca:32:7f:c0 SSID 'WPI-Wireless' BSS: Remove id 4 BSSID 66:6d:57:68:63:57 SSID 'Connectify-wxs' BSS: Remove id 5 BSSID 78:19:f7:77:8b:80 SSID 'WPI-Guest' BSS: Remove id 6 BSSID 78:19:f7:78:42:80 SSID 'WPI-Guest' BSS: Remove id 7 BSSID 78:19:f7:73:44:c0 SSID 'WPI-Guest' Cancelling scan request Cancelling authentication timeout netlink: Operstate: linkmode=0, operstate=6 Last edited by ryanthejuggler; 12-08-2012 at 08:59 PM. Reason: removed password |
03-17-2013, 03:22 PM | #10 |
Junior Member
Posts: 5
Karma: 10
Join Date: Feb 2013
Device: Kobo Mini
|
If anyone is trying to automatically connect wifi at startup on the Kobo Mini, I found the following script on a Japanese website:
Code:
#!/bin/sh insmod /drivers/ntx508/wifi/sdio_wifi_pwr.ko insmod /drivers/ntx508/wifi/dhd.ko sleep 2 ifconfig eth0 up wlarm_le -i eth0 up wpa_supplicant -s -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -B udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q Source: http://itpro.nikkeibp.co.jp/article/...42/?ST=oss&P=2 |
03-29-2013, 02:20 PM | #11 |
Member
Posts: 19
Karma: 10
Join Date: Mar 2013
Device: Kobo Touch
|
Hello Sven,
is there any further progress in your genius project now? This looks very good! |
05-01-2013, 02:33 PM | #12 | |
Connoisseur
Posts: 51
Karma: 5942
Join Date: May 2013
Device: kobo mini
|
Hello,
for me the japanese part works as-is - but nickel needs to be down. I went a step further and also shut down the whole wifi interface again after I don´t use it anymore. Quote:
The battery is now up for almost 1 week already - I still need to do a precise runtime measurement. I am using this to read various temperature sensors in the house + a forecast from wunderground.com The complete setup is being shown here Last edited by z000ao8q; 05-01-2013 at 02:36 PM. |
|
05-01-2013, 03:04 PM | #13 | |
Addict
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
|
Quote:
|
|
05-02-2013, 05:33 AM | #14 | |
Avid reader
Posts: 825
Karma: 6377682
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy Z Flip 4 / Kindle Paperwhite
|
Quote:
And can we see a photo of the device in action? Andrew |
|
05-02-2013, 12:59 PM | #15 | ||
Connoisseur
Posts: 51
Karma: 5942
Join Date: May 2013
Device: kobo mini
|
hello,
this is how it currently looks like (the battery level on right-top) regarding the php-script:
Quote:
Quote:
Last edited by z000ao8q; 05-09-2013 at 06:12 AM. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch: execute script when wifi connection is established | atordo | Kindle Developer's Corner | 5 | 07-13-2012 05:06 AM |
Connection problem on dual boot Nook Color | pops1959 | Barnes & Noble NOOK | 0 | 02-03-2012 05:27 PM |
Did anyone succeed to boot the Wifi from SD card? How? | Cyberman tM | Kobo Reader | 6 | 07-26-2011 04:20 AM |
Touch Nook Touch WiFi won't connect after "forgetting" connection config | el34han | Nook Developer's Corner | 0 | 07-16-2011 02:35 PM |
Classic Unrooting my Nook Wifi lost Wifi connection: unable to save the hotspot | SnerdlyBosco | Nook Developer's Corner | 2 | 03-08-2011 08:17 AM |