PDA

View Full Version : Setting up Point-to-Point Data Mode


kbanks
04-04-2008, 03:52 PM
Using Synapse SNAP Pro nodes to replace an existing RS-232 serial cable requires two nodes and two scripts (attached).

You will need to know the addresses of your two nodes (readable from the RF Engine stickers, and also displayed within Portal).

Edit each script, and change the “otherNodeAddr” to match what you really have.

You can also edit each script to specify baud rate, and whether or not you want to use hardware flow control.

Put one script in one unit, and the other script in the other. Make sure each node gets the script specifying the OTHER nodes address!

Each unit will send data it receives over its RS-232 port to the other node, who will forward the data out it’s RS-232 port.

kbanks
09-08-2008, 09:27 AM
As mentioned on page 5 (item 6) of the 2.1.5 Release notes (it's mentioned in previous release notes too, but I don't have the page numbers handy), as of 2.1 multicasts messages get sent over the Packet Serial interface (in addition to still going out over the radio).

Also, to ensure connectivity, Packet Serial defaults to ON.

If you want to use the DEFAULT UART for other purposes, be sure and do a


crossConnect(DS_NULL, DS_PACKET_SERIAL)


so Packet Serial traffic won't get mixed in with your DATA MODE (AKA TRANSPARENT MODE traffic).

I have attached updated copies of dataMode1.py and dataMode2.py.

kbanks
09-08-2008, 10:22 AM
We are going to change the way crossConnect() works in the next build of the SNAP core firmware (2.1.6).

The previous post gives you a work-around if you are running build 2.1.1 through 2.1.5.

In 2.1.6, crossConnect() will become "exclusive". If you do something like


crossConnect(DS_UART1, DS_TRANSPARENT)


then any pre-existing connections to DS_UART1 will be undone.

As of 2.1.6, if you need non-exclusive connections, use the uniConnect() function instead of the crossConnect() function.

kbanks
04-16-2009, 10:56 AM
Some of the example scripts were written during the time of SNAP 2.0, and so have lines like:


from switchboard import *


When we created the 2.1 series, we cleaned up the snappyImages directory some by adding a "synapse" subdirectory, and moving some of the "importable" scripts into this subdirectory.

If you have an example script that won't load, try making a change like


from synapse.switchboard import *

KPSECS
01-14-2010, 09:03 PM
I am interested in trying the RS-232 data link.
Would like to use the SNAPPY prototype board ?
Would you have a diagram of the connections or do I just use the RS-232 connector on the prototype board ??

Thanks;

mgenti
01-15-2010, 09:29 AM
Would you have a diagram of the connections or do I just use the RS-232 connector on the prototype board ??

The built-in DB9 on either of our boards would work fine to test data mode.

rsingh161
07-30-2010, 05:37 AM
Hello to all,

I am using ZICM2400p0 Boards,and scrpits(Attached)
wanna send and recieve the data b/t two nodes..
and wanna see the transfered data on the portal window...
there is no UART interface function in the SNAP LIB.....
What are the changes I need in my scripts Please tell me.

mgenti
07-30-2010, 11:20 AM
The way your scripts are currently configured you are doing point-to-point data mode so Portal would never see these packets. You need to setup your nodes to do point-to-multipoint data mode. There are several threads on this forum on this topic as well as more information in the SNAP manuals included with Portal.

vivekgang
08-02-2010, 02:17 AM
Hi Mark,

This is vivek from India am just new developer for SNAP.
I Have ZIC2410p0 Boards,on that I wanna run the snap script for Data Transfering b\t the nodes and wanna see the Packets on to portal.
I have facing the problem in transfering and see the data on the portal.
Please help me find the attachement for my script..
If you have any Example related with the RF communication b\t two nodes.
please send me.

Thanks.
vivek.gangwar@nxgn.in

mgenti
08-02-2010, 10:08 AM
There are several threads on the forum that describe what you are trying to do and even give example scripts, such as this (http://forums.synapse-wireless.com/showthread.php?t=38) one.

Looking at your script you are using the wrong command, you need to setup multi-cast data mode using the mcastSerial command.