LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-24-2010, 01:59 PM   #1
gottimw
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
Question multi platform protocol question


I just finished 3rd year of university (computer systems) and in 4th we are required to come up with a FYP (final year project).

I was lately interested in networking so i tried to come up with something that involves connecting "stuff"

My friend gave me an idea to connect few devices (eg mobile, pc, laptop) to a server through some common protocol. So that they can talk to each other through that one server.

Basic idea is that for example you missed a call and your mobile sends an update to server and depending on the server rules an appropriate action would be taken eg if user is connected ping him that he missed call etc.

Here's my question... What protocol should i be using to achieve a multi platform capability? (my goal is to connect all main platforms linux pc and mac). I did a little bit of digging yesterday and XML sounds like something that i should look into.

Do you have and comments or thoughts oh wise linux gurus


i d really appreciate and comments
 
Old 06-24-2010, 03:59 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 452

Rep: Reputation: 46
TCP?

XML has lots of overhead and overkill for your application.

TCP is good as you don't need to send lots of information. Your phone app just has to wait for the mobile phone to ring too many times then send a packet to your presence server. From there, your presence server does all the work.
 
Old 06-26-2010, 10:15 AM   #3
Lobinho
Member
 
Registered: May 2010
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 17
There are many many protocols you could use. I think that an easy way is to implement your own protocol and send it through TCP socket.
There are many "how to" teaching how to use sockets on java or c++ to do TCP communication. You will have to send and read your messages only, the sockets are ready for use.
In the future you could use the same protocol on RS-232, GPRS, zigbee or any other communication type.

Java is multi platform and you can run on some mobile devices.

http://java.sun.com/docs/books/tutor...ets/index.html

Hope it helps.
good luck on your project!

Last edited by Lobinho; 06-26-2010 at 10:18 AM.
 
Old 06-27-2010, 12:27 AM   #4
gottimw
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
thx for advice. I have another question. I was thinking about operational cases for my project and i came to conclusion that server would have to contact moblie first in some cases. (eg server sends updates of other device's states to mobile).
So this unusual for server to init communication.
The solution for this: devices poll server every x seconds for updates however this would increase power footprint for handheld devices, is there a way around it???
 
Old 06-27-2010, 01:20 AM   #5
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by gottimw View Post
thx for advice. I have another question. I was thinking about operational cases for my project and i came to conclusion that server would have to contact moblie first in some cases. (eg server sends updates of other device's states to mobile).
So this unusual for server to init communication.
The solution for this: devices poll server every x seconds for updates however this would increase power footprint for handheld devices, is there a way around it???
If you want to be practical, the first question is: who pays for air time ?

In some countries it's both sides, in some - just the caller.
 
Old 06-27-2010, 11:53 PM   #6
gottimw
LQ Newbie
 
Registered: Nov 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Sergei Steshenko View Post
If you want to be practical, the first question is: who pays for air time ?

In some countries it's both sides, in some - just the caller.
FYI This is going to university project so this project probably will not see a daylight

I was just curious. Device asking for an update seems the easies and logical solution, however if there is some other way to create two way communication.
 
Old 07-01-2010, 06:58 AM   #7
Lobinho
Member
 
Registered: May 2010
Distribution: Ubuntu
Posts: 67

Rep: Reputation: 17
Take a look at GPRS communication (you can use tcp sockets).
Your client and your server will be connected all time, and you will pay only when you transmit data through it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux powers multi-protocol, multi-frequency wireless switch LXer Syndicated Linux News 0 11-03-2006 09:54 AM
LXer: Linux powers multi-protocol, multi-frequency WAP LXer Syndicated Linux News 0 11-03-2006 09:33 AM
multi-protocol downloader for linux? gub Linux - Software 3 08-09-2005 09:31 PM
Multi protocol messenger emailssent Linux - Software 2 09-16-2004 08:35 AM
Multi-Platform Development/Programming al042077 Linux - Software 1 04-05-2004 05:34 PM


All times are GMT -5. The time now is 10:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration