makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 12:48 pm

Hi!

I would like to transfer some files with XBee Pro S1:

Code: Select all

 ------------                                  -----------
| RPi - XBee | <----------------------------> | XBee - PC |
 ------------                                  -----------
Xbee Pro S1 module: https://www.adafruit.com/product/964
USB Xbee adapter: http://www.adafruit.com/products/247

Can I use them as simple serial communication?
--
G.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 2:03 pm

RPi B or B+?
They can be used however for the Pro versions you may need to provide a separate 3V3 power supply. I am not sure how much current is available on the 3V3 rail? Or what has changed from B to B+ in that regard?
The Xbee Pro needs 215mA TX and 55mA RX
See data sheet http://www.adafruit.com/datasheets/ds_x ... odules.pdf
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 4:20 pm

klricks wrote:RPi B or B+?
RPi B.
--
G.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 4:41 pm

I see on the internet the XBee Pro S1 is usable over simple USB port.
Which app can I test the file transfer with? Can anybody suggest such Linux app?
--
G.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 5:09 pm

makgab wrote:I see on the internet the XBee Pro S1 is usable over simple USB port.
Which app can I test the file transfer with? Can anybody suggest such Linux app?
I would have thought it would be much easier to hook the Xbee directly to the RPi TTL serial port..... But either way.....
You can install a serial terminal program minicom on the RPi and then look up how to transfer files using Xmodem or Zmodem file transfer.
sudo apt-get update
sudo apt-get install minicom

What exactly are you trying to accomplish? Sending files over serial is cumbersome and very slow. Requires user intervention at both ends. etc.....
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sat Nov 15, 2014 5:27 pm

klricks wrote: What exactly are you trying to accomplish? Sending files over serial is cumbersome and very slow. Requires user intervention at both ends. etc.....
I would like to test XBee for transfering files. I would like to transfer some files between two XBee (~8-10MB/file).
How can I solve it? Or rather do I use Wifi connection?
--
G.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sun Nov 16, 2014 4:10 pm

I read about it:

Code: Select all

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.
The two XBees connect to each other, by default? How can I transfer files in this case? Can I configure them with IP addresses?
--
G.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sun Nov 16, 2014 4:28 pm

I found this video: https://www.youtube.com/watch?v=77LTEjP-S6Y
How can I configure them for file transfering?
--
G.

klricks
Posts: 7154
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: RPi & XBee Pro S1 file transfer

Sun Nov 16, 2014 6:13 pm

makgab wrote:I found this video: https://www.youtube.com/watch?v=77LTEjP-S6Y
How can I configure them for file transfering?
As mentioned already get a terminal program running on both ends and use Xmodem protocol.
If my calculations are right, be prepared to wait over 15 hours to transfer one 10MB file. @ 115200 baud
Using Xmodem will take even longer as it has to send and calculate checksums etc.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Sun Nov 16, 2014 8:13 pm

klricks wrote: If my calculations are right, be prepared to wait over 15 hours to transfer one 10MB file. @ 115200 baud
Using Xmodem will take even longer as it has to send and calculate checksums etc.
In docs of XBee Pro:
RF Data Rate: 250,000 bps
Serial Interface Data Rate: (non-standard baud rates also supported) 1200 bps - 250 kbps

It is rather slow. Yes.
But theoretically, it transfers a 10MB file:
10×1024×1024×8 = 83886080bit
83886080 / 250000 = 335,5sec (~5,6min).
I understand, it is theoretically data transfer time!
--
G.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: RPi & XBee Pro S1 file transfer

Mon Nov 17, 2014 9:22 pm

I would like to test the file transfer with two XBee Pro S1.
The situation:
Fedora 20 Linux machine & XBee | <------------------> | XBee & RPi B

If I send a file from Fedora Linux with minicom (CTRL-A S xmodem) then the RPi Linux can't recieve it. (CTRL-A R)
Can I set the XBee for RF connection automatically? How will the RF connection be started?
--
G.

Return to “General discussion”