Now, in my last Posts i showed you that i use the Xbee Series to play a little bit around.
First of all i tried to design a system that allows me to realize my House Automation.
I wanted to include the Xbee System as this not just helps me to save cables, but enable me doing freaky wireless stuff like remote-open my door or alarming all Xbee Chips at the same time that some burgular trying to do his work.
I had the following things in mind:
- Xbee Devices are all over the house, encryption on, connected to a Micro like the ATMega32 or standalone (for my letterbox)
- Communicator is hooked up to a linux system so i can take control from there
- Xbee’s should communicate with each other, the Computer is just passive
So the following thing is what i need:
1. XBee’s in API Mode
This is a must as only in this mode fast addressing is possible
2. Linux system connected to the Coordinator via FTDI
I had the standard ftdi_sio module loaded with the connected FTDI 232BL, it got’s recognized and i can communicate with the XBee.
After a while i can write to the XBee but my subsequent read’s doesn’t return anything.
While i debugged and changed my Code over two Month’s i found the Problem: The FTDI Chip or the ftdi_sio driver.
I use perl, threads and a lot of other stuff i never used before and searched the Problem there. But i didn’t find anything.
A quick test with an standard RS232 Converter + XBee resulted that my Code is completly OK. >:[ D-A-M-N
3. Preferbly a Perl Script that run’s a a Server
So more than one “Client” can Connect to it and Control everything, for ex. a recurring linux Cron Job checking Temperature and a “GUI” User Interface on Windows should not disturb each other and both should work at the same time.
4. Xbee’s connected to ATMega32
No problems here, ATMega32 have a Serial Interface
5. ATMega32 API
This was not too hard to write, but the Memory Management is tricky..
I learned that i even can overwrite my Memory with BASCOM, so this is no more excuse to not use C ^^
This was written about two years ago, in the meantime i created a system exact like this one, written a perl server and has the XBee’s connected.
Everything is fine until a day where all XBee’s lost it’s connection to the coordinator without an obvoius reason.
I’m still investigating why the Radiochips loose it’s connection, sometimes it takes 3-4 Weeks, sometimes every hour they loose it.
I’m really disappointed about the relaiability of those XBee’s, i thought they will reconnect to other routers but it seems that one XBee is sticked to it’s parent forever.
I’ve written an perl server with jabber and network integration for the System but i discarded it.
At the moment i’m concentrating on an FHEM implementation as I started to head over to HomeMatic :)
More to come..
This is the Story i had the last weekend with some cool Chips named “XBEE”.
These Chips are intelligent RS-232 -> Wireless sender and reciever who can stickt together to a so called mesh network.
First i have to tell the terminology:
“Coordinator” – is the Main Boss of the Network, who coordinates everything – and let routers and endpoints connect
“Router” – is a endpoint but can route packets and other endpoints can connect to it.
“End Device” – is a endpoint but noone can conenct to it – it is designed to save energy and run from batteries.
Mesh Networking is really fantastic because you can have a coordinator (“middle”) which is connected to routers and end devices, and is “self-healing” this means if a router is powered off, packets get automatically routed through another reachable router – so packets can arrive to their destination.
If a Enddevice don’t have a connection to a router or the coordinator, put a router in between and it will connect seamless without configuring routing or anything manually.
More about the theory you can find in the references section at the end of my Post.
Okay, first a Picture of my actual “Setup” then the painful story :)
Ever thought it might be cool to only have an USB-Stick where all your individual security / pentest / recovery / hack-a-tack bootdiscs can be booted?
I thought so!
Crawling the Internet looks promising and shows two different ways how to get an bootdisc on your USB thumbdrive:
- Booting a bootdisc as ISO stored on the drive (which is not compatible to most bootdisc’s)
- Booting abootdisc ISO extracted to a extra Partition on the USB-Drive (which is more compatible)
Remember: both ways are possible on a single Stick, so you can have ISO’s there AND extra partitions with the contents of the original ISO.
This is my first entry, so i think i would better introduce me to you :)
I’m BioS, a not the best english writing german boy who is called a “Freak” by his colleagues, intrested in Electronics, Networking, IT, Security and everything else that can be powered..
Told as a young boy not to sit all day long in front of the C64, now earning his money with this kind of hobby.
Have a family with a little child which is trying to use Backtrack with 10 Months and a wife who plays in the evening WoW with me :)
Okay, enough for now..