8 Replies Latest reply on Sep 6, 2016 10:13 AM by Intel Corporation

    3G shield didn't work on Intel Edison

    khoinguyen2k

      Hi

      I have the Intel Edison and a 3G shield design by cooking hacks(SIM 5215E version),I connect the 3G shield with Intel Edison as the picture below:

      https://drive.google.com/open?id=0B_9cxClOYF8taEdJdWZPbVRkcTA

       

      I have typed 2 Linux command to check the status of serial device

      -dmesg | grep ttyMFD1:

      [    0.698163] 0000:00:04.2: ttyMFD1 at MMIO 0xff010100 (irq = 29) is a hsu_uart1_port_p

      - stty -F /dev/ttyMFD1 -a:

      speed 9600 baud; rows 0; columns 0; line = 0;

       

      After that I upload my code

      #include<String.h>

      char data[512];

      int x;

      void setup() {

        Serial.begin(115200);

        Serial1.begin(115200);

        Serial.println("Hello");

        Serial1.println("AT+CSQ");

        Serial1.flush();

        x=0;

        do

        {

         while(Serial1.available()!=0);

         data[x]=Serial1.read();

         x++;

         Serial.println(data[x-1]);

          }

          while (!(data[x-1]=='K'&&data[x-2]=='O'));

       

       

      for (int i=0;i<=x;i++)

        {Serial.println(data[i]);

         delay(1000);

        }    

      }

      But when I open the serial monitor,It seem that it only appear:

      Hello

      ÿ

      ÿ

      ...

      Does anyone can help me fix this problem?

      Thanks and regard