Will I be able connect both Zigbee and GSM modules to Yun? Does Yun have the hardware to support both? I have looked at the hardware and searched the web but couldn't get any clear info regarding hardware support for this configuration. I know both Zigbee and GSM modules use serial pins to communicate with the microcontroller and Yun has only one pair of serial pins which it uses to communicate between the micro-controller and processor and. Does this mean I wont be able to use these pins for any other peripherals? I'm really confused. Please help me out.
#include <SoftwareSerial.h>
// software serial #1: TX = digital pin 10, RX = digital pin 11
SoftwareSerial portOne(10,11);
// software serial #2: TX = digital pin 8, RX = digital pin 9
// on the Mega, use other pins instead, since 8 and 9 don't work on the Mega
SoftwareSerial portTwo(8,9);
long lininoBaud = 250000;
void setup() {
Serial.begin(115200); // open serial connection via USB-Serial
Serial1.begin(lininoBaud); // open serial connection to Linino
// Start each software serial port
portOne.begin(9600); //open SoftwareSerial port1 connection
portTwo.begin(9600); //open SoftwareSerial port2 connection
}
B.T.W. GSM modules is 2G~2.5G technology, you could use 3G or 4G USB dongle connect with linino site. but it will be required you install correct driver. or use 4G hotspot with linino wifi.