RPi & XBee Pro S1

Fórumok

Üdv!

Kinek van tapasztalata az XBee Pro S1 eszközzel Raspberry-vel?
Xbee Pro S1 module: https://www.adafruit.com/product/964
USB Xbee adapter: http://www.adafruit.com/products/247

Fájlokat kellene átvinni két ilyen XBee Pro S1 között, pl.:

 ------------                                  -----------
| RPi - XBee | <----------------------------> | XBee - PC |
 ------------                                  -----------

Ha jól sejtem, akkor soros kapcsolatként lehet velük kommunikálni.
A doksija Linux-ról nem ír, de attól még persze működhet.

--
G.

Hozzászólások

USB-s eszközként működik. Milyen prg-vel tudnám letesztelni az USB adatátvitelt?

(Ahogy olvasom USB-n nem ajánlott az fájlátvitel. Nem erre való.)
8-10MB-os fájlokat szeretnék átküldeni. Akkor inkább Wifi-n?

--
G.

Az xbee USB socket egy FTDI chip + táp + foglalat. Két módja van:
- AT mód ahol neked kell összerakni a packeteket.
- Van bypass* neve FIXME mód ahol két node-t tudsz összetanítani és gyakorlatilag sorosport hoszabbítóként működnek. Hogy milyen baudratet tud nem emlékszem, viszont azt tudom, hogy ha messze voltak egymástól akkor belaggolt az ávitel.

Szerintem nem arra való az zigbee, hogy 8-10 MB-t küldözgess.

Ez a Fixme mód hogyan állítható be egyébként? Nem találok ilyet a doksiban.
Az RF kapcsolat automatikusan felépül? Vagy hogyan működne? Próbált már valaki ilyet?

Peer-to-peer módot irogat:

The following terms will be used to explicate the network operations:

Terms and definitions
Term Definition
1. PAN Personal ---> Area Network - A data communication network that includes one or more End Devices and
optionally a Coordinator.
2. Coordinator ---> A Full-function device (FFD) that provides network synchronization by polling nodes [NonBeacon
(w/ Coordinator) networks only]
3. End Device ---> When in the same network as a Coordinator - RF modules that rely on a Coordinator for
synchronization and can be put into states of sleep for low-power applications.
4. Association ---> The establishment of membership between End Devices and a Coordinator. Association is only
applicable in NonBeacon (w/Coordinator) networks.

Peer-to-Peer:
By default, XBee®/XBee-PRO RF Modules are configured to operate within a Peer-to-Peer network
topology and therefore are not dependent upon Master/Slave relationships. NonBeacon systems
operate within a Peer-to-Peer network topology and therefore are not dependent upon Master/
Slave relationships. This means that modules remain synchronized without use of master/server
configurations and each module in the network shares both roles of master and slave. Digi's peer-
to-peer architecture features fast synchronization times and fast cold start times. This default con-
figuration accommodates a wide range of RF data applications.
Figure 2‐06. Peer‐to‐Peer Architecture
A peer-to-peer network can be established by
configuring each module to operate as an End Device (CE = 0), disabling End Device Association
on all modules (A1 = 0) and setting ID and CH parameters to be identical across the network.

--
G.

Ha egy XBee van egy RPi-n és egy másik XBee egy PC-n (v. notebook), akkor ha küldök egy fájlt soros/USB porton az egyik gépről:

cat binfile > /dev/ttyUSB0

akkor a másik gépen hol lesz elérhető? (A két XBee RF-en össze van kapcsolva.)
Vagy inkább minicommal kellene küldeni fájlt?

--
G.

Az X-CTU-val össze lehet kötni RF kapcsolattal a két XBee-t. Linux alatt hogyan lehet?

Fedora 20 + XBee | <------------- RF connection -------------> | XBee + RPi

Minicommal küldenék fájlt a fenti szituációban, de nem tudom, hogy Linux alatt hogyan kellene a két XBee-t összekötni. Csak várakoznak a minicom-ok, gondolom az RF kapcsolat hiánya miatt.

--
G.

Ha az X-CTU prg-ben átállítom a Destination Address High, Low értékét és utána 0-ra már nem tudom visszaállítani. Elvileg elmenti, de ha visszatöltöm a beállításokat, akkor marad az előző beállítás.
Ez miért van? Mire nem figyeltem?

--
G.