PDA

View Full Version : Serial Ports


S.P.Prasad
08-10-2004, 02:17 AM
I am a learner and rather hard to be correct. I have been assigned to develop software that can download data from mobile set to PC. We have the required setup, but I am not familiar of the Serial Port Addresses of the mobile handset to write data.

Once I can write data to the serial port of mobile the same can be captured via RS232 or USB port and feed to the PC.

Could someone please let me know what's the address of the mobile handset serial port.

Thanks in advance.

commedecargons
08-10-2004, 02:57 AM
Originally posted by S.P.Prasad
I am a learner and rather hard to be correct. I have been assigned to develop software that can download data from mobile set to PC. We have the required setup, but I am not familiar of the Serial Port Addresses of the mobile handset to write data.

Once I can write data to the serial port of mobile the same can be captured via RS232 or USB port and feed to the PC.

Could someone please let me know what's the address of the mobile handset serial port.

Thanks in advance.

wOW, hardest question i saw in Mobileburn.com since i joined....

Sorry in advance:p

S.P.Prasad
08-10-2004, 06:20 AM
Please help me out? As this is my first project, which I am doing all by self, I need to come up with some solution.

I have the APIs for USB and code in mind for RS232 serial port, if I knew where to write data from a gaming software running in mobile handset I can capture the same to PC.

Thanks in advance.

Shun
08-10-2004, 05:29 PM
Wish to help, but cannot interpret your messages, so I will be guessing...

Below are some information that I found while working with a Nokia M2M device, the Nokia-30.

I used AT commands to communicate with the device. It can be use to read the status, read/write to phonebook, send/receive SMS and etc. If you are looking for this, take a look at the documentation for Nokia PC Connectivity at http://www.forum.nokia.com/main/1,6566,1_55_20,00.html.

For more information on Nokia handset, you may want to take a look at the Developer Resources at http://www.forum.nokia.com/main/0,6566,40,00.html.

BTW, Sony Ericsson phones can also accept some of the Nokia AT commands, I had used it to send SMS with T68. It is not fully compatible though.

As for serial ports, there is no such thing as serial port addresses on the phone. Virtual serial ports are create on the PC when you install the PC Suite. You can treat the virtual ports like standard ports and use the API of the PC's OS, eg. Win32 API for Windows. You can also use Terminal software or ECHO command from the command prompt to send and receive AT commands to the phone.

(PS: HyperTerminal on Windows is extremely lousy for working on serial port application, don't use it, look for our Terminal software instead. I use a self-made Terminal software)

You can find the serial port addresses on the PC from the System Information.

Lastly, if the game write data to a file, you can also try using OBEX over IrDA/Bluetooth, or Bluetooth File Transfer profile to read/write the data using standard protocols. I only know the API for Windows CE, not too sure about PC Suite on Windows, it should be available in device's Developer Resources too.

S.P.Prasad
08-11-2004, 02:10 AM
Thanks a lot for the information as provided by Shun. My objective is that a gaming software running in phone should capture keypads pressed events and write data to the phone I/O ports, which would then be captured and processed by software running in a PC.

Our plan is to develop a gaming application for Mobile and same for PC. If the user wants he/she can download the current game status from the phone to PC and play the same through mobile in PC.

I need to download those DLLs and checks its interface. Also if possible could you please let me know how software in phone can capture key press event and route the information to the port.

Thanks in advance.

Shun
08-11-2004, 05:14 PM
It seems to me that your application will be device dependent, not that easy to go into detail without seeing the actual setup and tools available.

I've not done such programming on a phone, but there many methods that you can consider:-

1) Bluetooth or IrDA, most like to be available in your phone. Use you phone Bluetooth, IrDA or OBEX API to exchange data, should be quite straight forward.

2) Remoting, you set your PC as server and the phone calls it's methods to pass the data over.

3) Create a network chat like application and pass the data using messages.

4) Virtual serial port, pass the data like an RS232 stream.

5) Polling, quick and dirty. Write the key presses to file or the phone storage, that get it from the PC at an interval. Not usable for real time application.

There are other methods like file monitor, web services and etc.