0

General XBee Inquiry (API and a Digital Input)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

General XBee Inquiry (API and a Digital Input)

by cyberpunklink on Wed Jul 13, 2016 2:18 pm

So, I've been using this tutorial on YouTube to learn about the XBee. However, I've reached the part where I'm using one in API mode to read a digital input and transmit the state (high or low). However, in the tutorial he is using a series 2 and I'm still on a series 1. So, while his packet is 21 chunks, mine is only 14. The transmission looks like this:

7E 00 0A 83 00 00 30 00 01 00 10 00 10 2B

I know the first piece is the Start and the last one is the Stop, but is there a table somewhere that explains what the rest of the pieces represent so I can determine which is the data from the pin? I've gone through the Xbee manual but I don't see anything about it.

cyberpunklink
 
Posts: 66
Joined: Wed Nov 14, 2012 7:35 pm

Re: General XBee Inquiry (API and a Digital Input)

by cyberpunklink on Thu Jul 14, 2016 10:51 am

[UPDATE]

Alright, using the XCTU software I realized it explains to me what each chunk of data means.

Next step: does anyone know of good tutorials that have to do with using Xbees and arduinos? specifically at this moment I'm looking for one that has to do with transmitting a digital input.

Currently I can see the hex string on my serial monitor and I see the data changing depending on if I am pulling the pin high or low, however, I don't know how to grab that specific data and say 'ok, if this is high, do this...if this is low, do this...'

cyberpunklink
 
Posts: 66
Joined: Wed Nov 14, 2012 7:35 pm

Re: General XBee Inquiry (API and a Digital Input)

by franklin97355 on Thu Jul 14, 2016 6:13 pm

Quite a few to choose from here.

franklin97355
 
Posts: 18143
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: General XBee Inquiry (API and a Digital Input)

by cyberpunklink on Fri Jul 15, 2016 7:47 am

Well, I see a lot of tutorials for how to set up an xbee using an Arduino and a shield, but I have yet to find any that have to do with using the xbee as far as inputs and outputs.

Adafruit made this video which basically shows exactly what I want https://www.youtube.com/watch?v=qAlEL6mWbBc

Except there's no instruction.

Does anyone know of a specific tutorial/video/stone tablet that talks about this sort of thing? Should I be reading up more on serial communication with an arduino?

cyberpunklink
 
Posts: 66
Joined: Wed Nov 14, 2012 7:35 pm

Re: General XBee Inquiry (API and a Digital Input)

by franklin97355 on Fri Jul 15, 2016 12:26 pm

Google has these links.

franklin97355
 
Posts: 18143
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.