The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Serial Bridge.



Hi,

I seem to be having some issues getting the bridge to run properly.

Are all the parameters in unix format?  Do I need to specify all of them?

The heartbeat msg from the bridge, seems to return an error at best,
and for the rest of my attempts nothing.

The error is as follows
-----
Error Message: A xAP message received was malformed. The UID FF000101
is setup as a subaddress but the Source address is not: Rocket.Bridge.One
Received From: 192.168.0.7:2569

xap-hbeat
{
v=12
hop=1
uid=FF000101
class=xap-hbeat.alive
source=Rocket.Bridge.One
interval=60
port=3639
}
-----

I must be doing something simple wrong here, does anyone have any
ideas please?

Thanks

Dan


--- In xap_automation@xxxxxxx, James <james@...> wrote:
>
> hi,
>
> This is a bit of a guess but:
> xap-bridge [serial port] [instance name] [network interface] [udp
port]
> [debug level]
>
> and serial port will probably be in the unix format eg /dev/ttyS0
for com1
>
> I did notice this though, and this one is really for Patrick:
> /*
>    $Date: 2003/05/05 14:02:53 $
>    $Revision: 1.1 $
>    $Log: bridge.c,v $
>    Revision 1.1  2003/05/05 14:02:53  cvsowner
>    Very simple serial bridge - only listens on serial port at 9600
> (fixed), does not modify hop count. Forwards messages on to ethernet
> interface without verifying integrity.
>
>
>    xAP Serial - Ethernet bridge
>
> */
> which implies a 9600 baud
>
> but this
>     newtio.c_cflag = B19200CS8CREADCLOCAL;
>     newtio.c_iflag=IGNBRK  IGNPAR  IXON  IXOFF;
>     newtio.c_lflag=0;
>
>     newtio.c_cc[VTIME]=0;
>     newtio.c_cc[VMIN]=0;
>
>         cfsetispeed(&newtio, B19200);        // this seems to be
> necessary under
>         cfsetospeed(&newtio, B19200);            // Cygwin, it
isn't
> required under Linux
>
> would imply a 19200 baud?
>
> James
>
>
> danward79 wrote:
> > Hi,
> >
> > I have downloaded Patrick's Serial Bridge.  What is the
commandline
> > format?
> >
> > Is it xap-bridge.exe <port>?
> >
> > or are there other parameters required?
> >
> > I am wanting to play around with some AVR Microprocessors am I
right
> > in assuming as long as the serial bridge is listening on the
correct
> > port (6 in my case).  I just send a xAP msg over the serial
interface
> > and the Bridge should handle it ok?
> >
> > I am looking at trying to make some simple light level detector's
> > using Bascom.
> >
> > Any tips?
> >
> > Cheers
> >
> > Dan
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>









xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.