Re: Suggestions for custom application-layer protocol?

From: Peter Andersen (peter_at_smedekrogen.dk)
Date: 05/25/05


Date: Wed, 25 May 2005 19:43:18 +0200

On Wed, 25 May 2005 17:01:05 +0000, Mark wrote:

> I need to implement a simple application layer protocol that will be used to
> communicate between an embedded device (single-board computer running Linux)
> and a monitoring terminal (running Windows). There isn't alot of data being
> passed around, mostly status information collected by the embedded device,
> and control messages from the monitoring terminal. Messages will consist of
> between 1 and 10 fields of data.
>
> I want the protocol to be text based rather than binary since the data
> throughput is low. I also want the protocol to be based on TCP/IP. Does
> anyone here have any suggestions on the design of a simple protocol? Are
> there simple, standard ways of formatting text messages to be sent over a
> TCP socket (such as comma-separated)? I would prefer to avoid the
> complexities of XML. Since either the embedded device or the monitoring
> terminal can initiate a message, is it preferable to have TCP servers
> running on both sides? Or is it better to simply leave a TCP connection
> open between client and server? Any suggestions on ultra-simple standard
> protocols that do something similar to this?

Take a look at netcat or nc.
It open a tcp port where you can send any data binary or ascii. You can
find nc for both windows and linux.

-- 
/ Peter Andersen
/ Skanderborg


Relevant Pages

  • Re: Suggestions for custom application-layer protocol?
    ... > communicate between an embedded device ... > and a monitoring terminal (running Windows). ... I also want the protocol to be based on TCP/IP. ... > TCP socket? ...
    (comp.os.linux.embedded)
  • Re: Suggestions for custom application-layer protocol?
    ... :I need to implement a simple application layer protocol that will be used to ... :communicate between an embedded device ... :TCP socket? ... Or is it better to simply leave a TCP connection ...
    (comp.os.linux.embedded)
  • Re: Suggestions for custom application-layer protocol?
    ... :I need to implement a simple application layer protocol that will be used to ... :communicate between an embedded device ... :TCP socket? ... Or is it better to simply leave a TCP connection ...
    (comp.unix.programmer)
  • Re: Suggestions for custom application-layer protocol?
    ... > the embedded device, and control messages from the monitoring terminal. ... I also want the protocol to be based on TCP/IP. ... > to be sent over a TCP socket? ... field for a command or status code, and put your data in the other fields. ...
    (comp.unix.programmer)
  • Re: Suggestions for custom application-layer protocol?
    ... > the embedded device, and control messages from the monitoring terminal. ... I also want the protocol to be based on TCP/IP. ... > to be sent over a TCP socket? ... field for a command or status code, and put your data in the other fields. ...
    (comp.os.linux.embedded)