View Full Version : N95 Drum We will rock you with N95 accelerometer



gkataria
21st April 2008, 20:04
N95 Drum We will rock you with N95 accelerometer

by chirpho from Singapore

Before you proceed, we assume that you have already installed Nokia PC Suite on your PC, using the provided CD in the Nokia box. This software allows easy data transfer between the phone and PC.

Prerequisite: (Install in the prescribed order)

On PC:
1. Install in the prescribed order: Python 2.5.2, pywin32, PySerial.
2. Place C:\Python25 in the Path environment variable.
3. Extract the API folder to your PC.
4. Set up Incoming Bluetooth COM Port, say COM4.
5. Change the COM port number in the file pythonserver\syncA.config

>>>> PC Done!!

6. Plug your phone in to the PC.
7. On your phone, choose PC Suite. If you get three 'ding's and no response, you probably haven't got Nokia PC Suite installed on your PC.
8. On your PC, open Nokia Application Installer, which goes together with Nokia PC Suite. You can find it in Nokia PC Suite folder.
9. In Nokia Application Installer, in the left window, choose your N95 in the drop down list. If you can't find your phone in the list, unplug and replug in your phone.
10. In Nokia Application Installer window, install the following softwares by double clicking the installation files: PythonForS60, PythonScriptShell, N95RDAccelerometer, aXYZ.
11. On PC, browse to the phone's directory. Then to drive "E" of the phone. Then to folder "Python". Create directory "lib" in folder "Python" on the phone.
12. Copy the files phcomm.py, keyboard_module.py, phone_bd_component.py, phone_instrument.py from "to phone" folder in our package to the "lib" directory on the phone, created from previous step.
13. Copy phone_client.py to the folder "Python" on the phone.

>>>> Phone Done!!

============
How to run |
============
On PC.
Supposedly, we put all the files on PC into folder "project"
In folder project: run_javaserver.bat, run_pythonserver_A.bat (currently opening connection over Bluetooth com port 9; you should change confA.config to open connection over the Bluetooth com port available on your PC), global.config, risset.config, string.config and string.config.
In project\javaserver: MyDemoServer.class, MyDemoInstrumentThread.class, folder classes, SoundModels, ASWCore.jar
In project\libs: instrument_server.py, phcomm.py, server_bd_component.py
In project\pythonserver: pyserver.py, confA.config (open connection over bluetooth comm port 9)

- Run these two executables run_javaserver.bat, run_pythonserver_A.bat
=========
On phone:
- Open python, run script, choose phone_client.py.
- In the pop up menu, choose Other... (for the first time) or Default host (for subsequent times).
- In the list, choose the PC name that you're connecting to, then choose the Bluetooth Com Port that the python server on PC is opening. For the first time, on your PC, there'll be a small notification box in yellow popping up in the right bottom corner. Click on that and authorize the phone. Remember to tick Always authorize.
- Choose the desired instrument you want to play.
- Press Exit to quit.

**Note: If you want to play multiple instruments, run various python server listening to differnt COM ports.
** You can change confA.config, confB.config and confC.config to open python server listening to your desired Bluetooth COM port.

02 Apr 2008
Huy, Loc, Sang

What we want:
1. A python server running PC to receive accelerometer's readings from the phone. It's also a client to the java server. The python server interpretes accelerometer and keypad readings into musical commands.
2. A python client on phone to send accelerometer's readings to PC.
3. A java server on the PC to receive musical commands from the python server.

This is a 15mb file
[Only registered and activated users can see links]


[Only registered and activated users can see links]

aristotelhs2060
21st April 2008, 20:15
woa!need to try this.thanks

manolinp
21st April 2008, 20:22
Rep++ for this amazing app gkataria. You rock with and without help of accelerom. ;)

THANKS a lot.

:)

myk810i
22nd April 2008, 02:35
lol ! best app so far.

karyawati
22nd April 2008, 03:16
Gr8 apps GK,thanx 4 dis.rep ++

azharmhd
22nd April 2008, 03:39
its very difficult to install. But its gr8 program!
Thanks

Mr G
22nd April 2008, 03:40
Will there be a simpler way to install this in the future?

kojirox
22nd April 2008, 04:07
Youre the best! :P

Whrer is API folder?

Sncrespo
22nd April 2008, 05:40
Youre the best! :P

Whrer is API folder?

Also didn't understand that part...

Help please...

Tatlises
22nd April 2008, 06:16
Very nice app ... but little complicated in installing

opicks
22nd April 2008, 08:17
Thanks for this share gkataria. So some reps goes to you..

Ghost Team
22nd April 2008, 10:00
I'll wait for the NiiMe Drums

It will be out 1st May ;)

KosteK94
23rd April 2008, 21:08
Not working on my N95.

Traceback (most recent call last):
File "C:\private\2000b1a5\default.py", line 81, in menu_action
f()
File "C:\private\2000b1a5\default.py", line 65, in query_and_exec
execfile(script_list[index][1].encode('utf-8'), script_namespace.namespace)
File "c:\python\phone_client.py", line 64, in ?
main()
File "c:\python\phone_client.py", line 48, in main
sock = phone_instrument.connect_phone2PC( interactive )
AttributeError: 'module' object has no attribute 'connect_phone2PC'
I have this error. I've installed all to phone (.py files and python, python script shell, accelerometer and axyz). Any ideas?

roxy_selindo
1st May 2008, 14:13
I think this app not compatible with every N95...because i have same problem with you:
Traceback (most recent call last):
File "C:\private\2000b1a5\default.py", line 81, in menu_action
f()
File "C:\private\2000b1a5\default.py", line 65, in query_and_exec
execfile(script_list[index][1].encode('utf-8'), script_namespace.namespace)
File "c:\python\phone_client.py", line 64, in ?
main()
File "c:\python\phone_client.py", line 48, in main
sock = phone_instrument.connect_phone2PC( interactive )
AttributeError: 'module' object has no attribute 'connect_phone2PC'
other member in other forum have too same problem with us...

WHO CAN HELP WE???? I HOPE SENIORs can give we a simple way...

basilkov
1st May 2008, 17:16
Very nice app ... but too complicated in installing !!!

roxy_selindo
2nd May 2008, 07:48
I'll wait for the NiiMe Drums

It will be out 1st May ;)

BRO ,NIIME DRUM has available for download....i had tried..
BUT i think drum we will rock you is very amaging then niime drum...But its very difficult ti install

basilkov
2nd May 2008, 14:37
do i need bluetooth ?? and can I use the bluetooth of lenovo n200 will procedure steps change ?

herrfox
3rd May 2008, 15:01
thank you for this sharing.I hope to try it soon!

basilkov
3rd September 2008, 22:01
Where are u guys ? anyone confirms that this works !!

apex05
4th September 2008, 00:28
Looks good!!! i'll install it when i get a spare 3 or 4 hours to read the installation guide, rep+

rafterm200
4th September 2008, 05:37
i do also have this problem on my N82..

Traceback (most recent call last):
File "C:\private\2000b1a5\default.py", line 81, in menu_action
f()
File "C:\private\2000b1a5\default.py", line 65, in query_and_exec
execfile(script_list[index][1].encode('utf-8'), script_namespace.namespace)
File "c:\python\phone_client.py", line 64, in ?
main()
File "c:\python\phone_client.py", line 48, in main
sock = phone_instrument.connect_phone2PC( interactive )
AttributeError: 'module' object has no attribute 'connect_phone2PC'

can someone help us.. thanks..

YawnZ
27th August 2009, 13:26
so lazy to install step by step ~_~

Novane
3rd September 2009, 13:40
Its too complicated, i'll try this if its made easier someday, thanx anyway.