This video is unavailable.
N900 bluetooth remote GUI demo
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Published on May 23, 2012
I created GUI for bluetooth remote. This is a small demo for it. Nothing too fancy at the moment, just a GUI to connect to bluetooth device and notifications.
I'm gonna add more stuff to GUI when i have ideas for them. Checkbox for enabling/disabling notifications would be nice.
GUI is made using pygtk and uses threading for background process and GUI.
Also modified arduino code a little to allow start playing selected song (or start playing, you don't need to even open mediaplayer anymore!)
also ordered 1.2Ah battery pack with usb and solar panel that im going to use as power source. whole thing uses ~60mA when its running so 1200Ah battery will give 20h of working time!
Was having hard time to get threading, closing bluetooth and reopening bluetooth again to work so here are tips:
Quit another thread that you have created:
in target thread:
def stop(self) self._stopevent.set()
and to access that function you need to use same way that you used to start thread.
like if you started thread with MainLoop(var).start() you need to use code: MainLoop(var).stop() to stop that thread.
and you cannot use one bluetooth socket multiple times, if you create bluetooth_socket and connect it and then disconnect it you cannot connect it again.
create array for sockets and use bluetooth_socket.append(BluetoothSocket(
Be sure to watch previous videos:
http://youtu.be/NM_BVjM5-So
http://youtu.be/VkRmSLDV_1c
Fun fact:
Python script without GUI 44 lines of code
Python script with GUI about 200 lines of joy!
-
Category
-
License
Standard YouTube License
Loading...
Loading...
Loading...
Loading...
-
1:16
N900 bluetooth mediaplayer remote controller.by JorGGa
189 views
-
0:55
N900 mediaplayer bluetooth controlby JorGGa
227 views
-
7:05
THE nokia N900by victor GRE
216 views
-
15:24
Nokia N900 Video Reviewby MobileTechReview
229,882 views
-
52:30
Python 在豆瓣中的应用by Guangchen Chen
1,247 views
-
5:31
video prova dualboot android nokia n9by Francesco Di Sarno
616 views
-
3:22
Lynxmotion Robot Controlled with Matlabby rsenior101
2,981 views
-
9:00
Nokia N900 USB Mouse host modeby ServerRussia
11,205 views
-
10:20
Controlando Arduino Robot desde un Nokia N900 mediante Bluetooth con Pythonby Leonidas Andrade Otalora
537 views
-
4:17
TV on Nokia N900 via TVC Player and 3Gby repo4
2,740 views
-
0:50
Hobo stove 1.1 [1080p FHD]by JorGGa
66 views
-
5:24
MeeGo Türkiye - Nokia N950by MeeGoTurkiye
2,419 views
-
4:27
VR + MatLab GUI controlling Melfa RV-2AJ robotby Előd Páll
4,307 views
-
3:34
Nokia N900 GPSby mobonoid
7,147 views
-
5:29
Dual boot on the N950 - Harmattan and Nemo [MyNokiaBlog]by MFaroTusino
3,836 views
-
2:12
rzr-rootfs-ubuntu-precise-armhf-0.0.20120518.ogvby rzrfreefr
1,139 views
-
6:14
Confronto Nokia N900 e Nokia N950by Dario Giannuzzi
2,135 views
-
3:29
How to install conky from terminal (Nokia N9)by Juan Ignacio Pacher
3,601 views
-
0:33
Sähköpalikka - Woodblock PSUby JorGGa
55 views
-
7:05
Episode 46: Multi-threadingby Ryan Shea
2,130 views
- Loading more suggestions...
All Comments (0)