Communicate Arduino and Intel Edison using XBee - xbee

I am learning how to use XBee S2 to communicate with two Arduinos in API mode. Communication is successful. The problem is when I use XBee S2 with Intel Edison. I am not able to receive the data on the Intel Edison.
I would like to know if the Arduino receiver code can be used in the Intel Edison or do I have to use Python to receive the data by XBee.

Related

Linux C USB write speed

I am using a Raspberry Pi in order to communicate with a GSM/GPRS modem by USB. I am able to communicate in 115200bps. I would like to improve the communication speed as much as possible but I do not know how I should do it. The connection is RPi's USB <--> Modem's USB
I am programming in C and I have to choose the speed_t in cfsetispeed and cfsetospeed functions, which it`s maximum is B230400... I am using write function to send data.
USB 2.0 protocol has theoretically some mb/s speed so, how could I achieve this?
Unfortunately you can not achieve higher rates.
Most of GSM/GPRS modem have inbuilt USB-->Serial(RS232) Converter.
The USB port is just for USB connector compatibility.
To communicate to these modem's from any computer you need to install drivers to Emulate a RS232 connection.
In this case your board is already have those.
So basically you are doing a RS232 communication over USB lines. Your speed will be limited by RS232 standard baud-rates.

xbee & xbee pro series 1 interoperability

Is it possible for XBee Series 1 (802.15.4) and XBee Pro Series 1 units to communicate? I have two units but I cannot get them communicate. Standard XBee to Standard XBee works just fine but I cannot communicate (either send or receive) when the Pro unit is involved. Are they interoperable?
TIA
You have to check if both have implemented the zigbee protocol (I understand in xBee series 1, the main difference between Pro and "normal" is that Pro xbees have zigBee protocol to communicate, but "normal" haven't, so the communication must be imposible.
You should read this website in order to clear and order your mind:
https://www.sparkfun.com/pages/xbee_guide
EDIT: Now I have seen the question date, I hope you have fixed this issue.
I tried this once with Xbee S2 and Xbee S2B. They both have same kind of structure when i opened it in XCTU. They both communicated in both AP and API mode.
When i tried this with Xbee S2 and Xbee S2C, the communication could not take place in AP and API mode. This because when i opened them in XCTU, they both had different kind of structure.
I think, i same logic will work in Xbee S1 also.

Data transfer using xbee and arduino

i have a portable device that consist of
arduino leonardo board,xbee series 2 as router( AT mode ) and different sensors.This portable device acts as a remote device and can be used upon power up.
The other side, i have a host controller that consist of arduino uno board, arduinoxbee shield v1.1, and xbee series 2 as coordinator( AT mode ). This host controller is plug through USB into my PC.
The aim of my project is to send the sensor data from the portable device using xbee wirelessly over to my host controller and displaying out on the arduino serial monitor.
I've managed to configured the two xbees. But now, i'm unsure of how im going to transmit and receive the data. I need a transmitter and receiver program for both xbees that is connected to the arduino. Anyone can help please?
There are a couple different options for how you can do this, but the simplest is to set up your sensor XBee either in change detect (IC) mode, or set a sample rate (IR). In either case you'll need to handle the RX Indicator frame at the controller, which will contain the sampled data.
I wrote a C# stack that can configure all this, but for what you're trying to do it would probably only be useful as a reference (https://github.com/jefffhaynes/XBee).

Connecting to Bluetooth LE devices from raspberry pi using Bluez libraries in C language

I am using my raspberry pi to perform LEScan at fixed intervals and connect to new found BLE devices.
Performing a general scan is easy and can be easily done by using the bluez libraries.
http://people.csail.mit.edu/albert/bluez-intro/x45.html
But i can't figure out how to perform LE scan using Bluetooth programming in C language.
I have to find new BLE devices, connect to them and receive json data from the connected devices.
To write a C program to scan BLE devices you can have a look at BlueZ hcitool sources.
To connect to the BLE device and interact with the GATT protocol you can either use the experimental DBUS Bluez API in Bluez v5.x (recommended to use v5.39+) or use a library like 'gattlib'.
The link you are pointing is for classic bluetooth;for BLE lescan go
through scantest.c in link
https://github.com/carsonmcdonald/bluez-experiments/tree/master/experiments

XBee Wi-Fi - decoding UDP packets of sampled data

I just bought an XBee Wi-Fi S6B. (I was expecting it to be similar to the WiFly that can easily post sampled I/O data to a webpage.) I am going to hook two temperature sensors to the analog inputs. Note - there are no Arduinos in this project.
I have configured the XBee to send UDP packets to my computer on port 3054 (0xBEE) - I can see them using Netcat.
My question: Is there any existing software out there for Linux or the Raspberry Pi that can receive these packets and decode them? I'd rather not have to re-invent the wheel. I've searched extensively, but everything I found was for API mode with an arduino attached. I'm interested in just running the XBee with the two temperature sensors.
Many of the search results I've seen are for talking to another XBee connected to my computer via a serial port. I'd rather not buy an extra XBee, because my computer is already on the same network.
Here's a small program I just created to listen for XBEE UDP packets. It listens currently for one temperature sensor, but is easily configurable to add on other sensors.
https://github.com/bseeger/XBEE_Listener

Resources