Next question came up. Is it possible to use my existing communication module like XBee / Pololu Wixel with Raspberry PI?
With Pololu Wixel it come with USB connection. So, It might be possible. But XBee you need a USB breakout board. I got it from Sparkfun.
Before start, by default Raspbian configuration come with Serial Console enable. You have to disable it first.
pi@raspberrypi ~ $ sudo nano -w /etc/inittab
Go to last line, you have to comment T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100 out.
Edit cmdline.txt file in /boot to disable serial console
Then reboot your Raspberry PI,
pi@raspberrypi ~ $ sudo reboot
Now your device ready for communicate with serial connection.
Start with Pololu Wixel. Please make sure your Wixel modules already load with wireless serial communication. And already config baud-rate. Then plug it to your Raspberry PI USB.
Use lsusb to check device and also check output from system message.
Please see that ‘cdc_acm’ module will link your Pololu Wixel with ttyACM0. wow! You only connect your application with /dev/ttyACM0. Use same baud-rate from Wixel configuration. And communicate. Easy??
Next is XBee with USB breakout board. This is also easy. Just plug the breakout board to Raspberry PI.
This time you’ll get ttyUSB0 as your communication device. Just like before. Point your communication software or code to use ttyUSB0 and start communicate.