00101010

My blog on life the universe and everything…

Category Archives: Symbian

How to use the Bluetooth console of PyS60 from your computer.

Open a shell and type the following commands one at a time:

“hciconfig reset”

“rfcomm listen 0 3”

This last command will advertise an rfcomm connection on channel 3.

then on your PyS60 screen on the phone choose “Options ->Bluetooth Console” to connect to the computer.

Once this is done, open a new shell and type “screen /dev/rfcomm0″

whala! you can now type in commands on your PC and those are redirected to the phone. Commands that do not require UI access will be displayed on your computer screen, but UI based commands such as appuifw.note(u”hello world”,”info”) will be displayed on your phone as would happen if the script was running on your phone (which is what is happening actually).

——————————————————————–

If the above approach does not work for you, try the one below:

Plug-in your bluetooth adapter, and then from the shell:

hciconfig reset

Then check that the device exists by typing:

  • $ hcitool dev

Register a serial port (use channel 2. For some reason, channel 1 and channel 3 might not let the connection through)

  • $ sdptool add –channel=2 SP

Now listen to the channel:

  • $ rfcomm listen rfcomm2 2

In your phone, make sure bluetooth is on, then go to the Python application and then select the Bluetooth Console. Select from the list of available devices your computer’s bluetooth adapter (you might need to select search even if you think you have already defined the pairing). If the operation is successful, you should see something similar to the following on your computer’s shell:

  • Waiting for connection on channel 2
  • Connection from 00:11:9F:BE:47:CA to /dev/rfcomm2
  • Press CTRL-C for hangup

Now open a new shell terminal and execute:

  • $ cu -l /dev/rfcomm2

Enjoy!

sources:

PyS60 Bluetooth console

bluetooth fun with my Nokia 6600

How to pack/unpack/edit SiS files and packages

Download and install SisWare(latest version) and discover it’s potential.

How to create a certificate/privkey and sign a SiS package for Symbian phones(Obsolete,needs update)

Credits for this information go to this site. Although it is dedicated to the Nokia N91 phone, following the instructions has allowed me to succesfully sign and install my SiS files on a Nokia N80 phone. I suppose it works for other models too.

Download and Install the following packages:

Developer Certificate Request Tool for Symbian

Sign SiS tool

Phase 1: Generating a Certificate Request
Run the Developer Certicate Request Tool

In the first screen enter the destination and name of the certificate to be created (e.g c:\mycertificates\mycert.cer).

In the second screen choose No in the ACS Pub ID Avaialble field.
Then enter the destination and name of the private key to be created (e.g c:\mycertificates\mycert.key). Also provide a password for the private key and click Next

In the following screen enter your personal details. Hint: no need to enter your true details.

The next screen asks for your phone’s IMEI number. This can be retrieved
by pressing *#06# in your Nokia phone’s main screen. Be carefull to input this
accurately otherwise all this effort will be wasted and you will find out
after the whole procedure is over. Select the Application capabilities you
are interested in and add them to the right hand side of the given table.

In the next screen review your certificate and click finish.

You have now created a request file (mycert.csr). This will be used later to acquire a certificate (mycert.cer) with which you will sign your files.

Phase 2: Acquiring a Developer Certificate
Go to the SymbianSigned and create an account.

Once you create your account login and click on the “My Symbian Signed” tab.

In the left menu click Open Signed” and click the “Request” link.

Enter the appropriate code and then browse to your certficate folder and choose the mycert.csr file. Then click “Send”.

After a while the certificate will be generated.Download it and save it.

Phase 3: Signing an unsigned SiS file.
Run the SignSiSUI application.

In the first field select the SiS file to be signed.

In the second field select the certificate that you downloaded from Symbian in the previous phase

Finally select the private key that you have generated (mycert.key) and enter the password.

If everything goes fine, the SiS file will be signed successfully and you can now install it on your Nokia phone.

%d bloggers like this: