8 Replies Latest reply on Mar 14, 2016 2:35 PM by DiegoV_Intel

    How to redirect the terminal window content to a serial port? Intel Edison

    channinglin

      Hi all,

       

      I am doing a BLE project using Bluez and gatttool.

      I can read what my BLE sensor has sent to me by using command as follows:

       

      > rfkill unblock bluetooth

      > export PATH=$PATH:~/bluez-5.24/attrib

      > gatttool -b D2:AD:9F:B7:BB:60 -t random --char-write-req -a 0x000e -n 0100 --listen

       

      The data I received is in the terminal window, now I want to export them to a serial port so that I can log it. 

      Anyone has any idea?

       

      And when I try to use system() function in arduino sketch, it didn't work. For example

      void setup

      {

      system(rfkill unblock bluetooth);

      system(export PATH=$PATH:~/bluez-5.24/attrib);

      system(gatttool -b D2:AD:9F:B7:BB:60 -t random --char-write-req -a 0x000e -n 0100 --listen);

      }

       

      My image version is 146.