1 2 3 4 Previous Next 46 Replies Latest reply on Aug 31, 2016 1:21 PM by Intel Corporation Go to original post
      • 15. Re: Bluetooth SPP Edison to PC
        thomatwn123

        Hi,

         

         

        I was following this link

         

         

        https://software.intel.com/en-us/articles/connecting-the-intel-edison-board-to-your-android-phone-with-serial-port-profile-spp

         

         

          whenever I am going to Command Line Mode of Bluetooth App Pro to Intel EDISON ... it is showing

         

         

                   "Bluetooth device communications connection is lost, try to reconnect"

         

         

        its happening so many times. Can anybody help me in this case?

        • 16. Re: Bluetooth SPP Edison to PC
          jmontague001

          Hi Diego,

           

          I wasnt able to get hold of a Linux PC so I've installed a virtual version of Ubuntu 14 using VirtualBox. But I'm not sure if I'm doing something wrong or just don't understand the process I need to follow.

           

          On the Edison BSP guide I unpackaged the edison-src-ww25.5-15.tgz file and built the enviroment but I can't find the 3 files that need to be updated. When I build the Image using the make command after several hours I got the following:

           

           

          jay@jay-VirtualBox:~/Desktop/Edison/edison-src$ make image

          /bin/bash -c "source out/current/poky/oe-init-build-env /home/jay/Desktop/Edison/edison-src/out/current/build ; bitbake -c cleansstate edison-image ; bitbake edison-image"

           

          ### Shell environment set up for builds. ###

           

          You can now run 'bitbake <target>'

           

          Common targets are:

              core-image-minimal

              core-image-sato

              meta-toolchain

              adt-installer

              meta-ide-support

           

          You can also run generated qemu images with a command like 'runqemu qemux86'

          Parsing recipes: 100% |#########################################| Time: 00:02:21

          Parsing of 959 .bb files complete (0 cached, 959 parsed). 1364 targets, 117 skipped, 0 masked, 0 errors.

          NOTE: Resolving any missing task queue dependencies

           

          Build Configuration:

          BB_VERSION        = "1.24.0"

          BUILD_SYS         = "x86_64-linux"

          NATIVELSBSTRING   = "Ubuntu-14.04"

          TARGET_SYS        = "i586-poky-linux"

          MACHINE           = "edison"

          DISTRO            = "poky-edison"

          DISTRO_VERSION    = "1.7.2"

          TUNE_FEATURES     = "m32 core2"

          TARGET_FPU        = ""

          meta

          meta-yocto

          meta-yocto-bsp    = "(detachedfromyocto-1.7.2):29812e61736a95f1de64b3e9ebbb9c646ebd28dd"

          meta-intel-edison-bsp

          meta-intel-edison-distro = "<unknown>:<unknown>"

          meta-intel-iot-middleware = "(detachedfromc6d6814):c6d681475e76107e6c04c5f7a06034dc9e772d1e"

          meta-intel-arduino = "<unknown>:<unknown>"

          meta-arduino      = "1.6.x:541b127163acb243109f07141bf249da2ecdcd9a"

           

          NOTE: Preparing runqueue

          NOTE: Executing RunQueue Tasks

          NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.

          Loading cache: 100% |###########################################| ETA:  00:00:00

          Loaded 1365 entries from dependency cache.

          NOTE: Resolving any missing task queue dependencies

           

          Build Configuration:

          BB_VERSION        = "1.24.0"

          BUILD_SYS         = "x86_64-linux"

          NATIVELSBSTRING   = "Ubuntu-14.04"

          TARGET_SYS        = "i586-poky-linux"

          MACHINE           = "edison"

          DISTRO            = "poky-edison"

          DISTRO_VERSION    = "1.7.2"

          TUNE_FEATURES     = "m32 core2"

          TARGET_FPU        = ""

          meta

          meta-yocto

          meta-yocto-bsp    = "(detachedfromyocto-1.7.2):29812e61736a95f1de64b3e9ebbb9c646ebd28dd"

          meta-intel-edison-bsp

          meta-intel-edison-distro = "<unknown>:<unknown>"

          meta-intel-iot-middleware = "(detachedfromc6d6814):c6d681475e76107e6c04c5f7a06034dc9e772d1e"

          meta-intel-arduino = "<unknown>:<unknown>"

          meta-arduino      = "1.6.x:541b127163acb243109f07141bf249da2ecdcd9a"

           

          NOTE: Preparing runqueue

          NOTE: Executing SetScene Tasks

          NOTE: Executing RunQueue Tasks

          WARNING: Failed to fetch URL http://zlib.net/pigz/pigz-2.3.1.tar.gz, attempting MIRRORS if available

          WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/b/base-passwd/base-passwd_3.5.29.tar.gz, attempting MIRRORS if available

          WARNING: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.xz, attempting MIRRORS if available

          WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-1.5.1.tar.bz2, attempting MIRRORS if available

          WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-util-1.5.3.tar.gz, attempting MIRRORS if available

          WARNING: Failed to fetch URL http://code.entropywave.com/download/orc/orc-0.4.18.tar.gz;name=orc, attempting MIRRORS if available

          NOTE: validating kernel config, see log.do_kernel_configcheck for details

          WARNING: Failed to fetch URL http://serf.googlecode.com/svn/src_releases/serf-1.3.7.tar.bz2, attempting MIRRORS if available

          WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.8.9.tar.bz2, attempting MIRRORS if available

          WARNING: QA Issue: bluez5: configure was passed unrecognised options: --with-systemdunitdir [unknown-configure-option]

          WARNING: Failed to fetch URL git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.c.git;protocol=http, attempting MIRRORS if available

          ERROR: Fetcher failure: Fetch command failed with exit code 128, output:

          Cloning into bare repository '/home/jay/Desktop/Edison/edison-src/bbcache/downloads/git2/git.eclipse.org.gitroot.paho.org.eclipse.paho.mqtt.c.git'...

          fatal: repository 'http://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.c.git/' not found

           

          ERROR: Function failed: Fetcher failure for URL: 'git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.c.git;protocol=http'. Unable to fetch URL from any source.

          ERROR: Logfile of failure stored in: /home/jay/Desktop/Edison/edison-src/out/linux64/build/tmp/work/core2-32-poky-linux/paho-mqtt/3.1-r1/temp/log.do_fetch.23307

          ERROR: Task 1052 (/home/jay/Desktop/Edison/edison-src/out/linux64/poky/meta-intel-iot-middleware/recipes-connectivity/paho-mqtt/paho-mqtt_3.1.bb, do_fetch) failed with exit code '1'

          NOTE: Tasks Summary: Attempted 1433 tasks of which 0 didn't need to be rerun and 1 failed.

          Waiting for 0 running tasks to finish:

           

          Summary: 1 task failed:

          /home/jay/Desktop/Edison/edison-src/out/linux64/poky/meta-intel-iot-middleware/recipes-connectivity/paho-mqtt/paho-mqtt_3.1.bb, do_fetch

          Summary: There were 10 WARNING messages shown.

          Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

          make: *** [edison-image] Error 1

           

           

          If I try using bitbake to build the image then i get the following error:

           

           

          jay@jay-VirtualBox:~/Desktop/Edison/edison-src/build$ bitbake edison-image

          ERROR:  OE-core's config sanity checker detected a potential misconfiguration.

              Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).

              Following is the list of potential problems / advisories:

           

              libsdl-native is set to be ASSUME_PROVIDED but sdl-config can't be found in PATH. Please either install it, or configure qemu not to require sdl.

           

          Summary: There was 1 ERROR message shown, returning a non-zero exit code.

          • 17. Re: Bluetooth SPP Edison to PC
            Intel Corporation
            This message was posted on behalf of Intel Corporation

            Hello thomatwn123,
             
            The reason why this is happening is probably because you are on an image newer than 159.devkit. As you ca see in https://communities.intel.com/thread/101689, there's a known issue with newer versions of the image and SPP. So you should use an older version. This has already been reported and we are working on it. However, there's no ETA for a fix.
             
            ----------------
             
            Hello jmontague001,
             
            Let me try to build the image to see if I am able to replicate the issue. I'll try to get back to you as soon as I can.
             
            -Peter.

            1 of 1 people found this helpful
            • 18. Re: Bluetooth SPP Edison to PC
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              I've just tested it. I can confirm that the issue is present. It looks like a repository URL has changed. Please let me see if I can find the file where this repo's URL is found in order to see if I can update it.

              -Peter.

              • 19. Re: Bluetooth SPP Edison to PC
                thomatwn123

                Peter,

                          Thanks a lot. I have already solved the issue using an old image from this link

                http://downloadmirror.intel.com/24909/eng/edison-image-ww05-15.zip

                 

                and installed using the help of this link

                 

                Intel Edison Getting Started - A Step-By-Step Tutorial (windows) | Intel - YouTube

                 

                Maybe others, who are suffering from this issue they can follow this. I tested it and its works fine.

                 

                need to save the file       SPP-loopback.py        in       /home/root/bluetooth           location (user defined) using Putty and  WinScp

                 

                commands are:

                 

                cd /home/root/bluetooth

                 

                ls

                 

                python SPP-loopback.py &

                 

                rfkill unblock bluetooth

                 

                hciconfig hci0

                 

                hciconfig hci0 up

                 

                hciconfig hci0 piscan

                 

                bluetoothctl

                 

                show

                 

                pair .......  (device id want to communicate)

                 

                trust ......  (device id want to communicate)

                 

                discoverable on

                 

                connect ...... (device id want to communicate)

                • 20. Re: Bluetooth SPP Edison to PC
                  jmontague001

                  Hi Peter,

                   

                  Thanks for looking into this for me.

                   

                  Something else I'm working on is writing some code in C using eclipse to automate the process of connecting to my PC via bluetooth and then store any commands received from my PC in a buffer or variable. I started this by trying to call the same commands to connect the blue tooth but using the system command in my code, but I've found that if I call the system("bluetoothctl") function then no following system commands work. It seems that once its in the bluetoothctl menu then none of the following system calls to set the agent etc work, if I then manually type exit in the console it exits the bluetoothctl menu and then the following system commands then run. I just wondered if you know why this is or if there is a better way that I should be doing this?

                  • 21. Re: Bluetooth SPP Edison to PC
                    thomatwn123

                    Hi, Peter,

                     

                    I have successfully connected my phone as BT  device and did the SPP communication. But now the problem is, whenever I am trying to connect my another ECG BT sensor, I get something like this

                     

                    [CHG] Device 00:0E:00:09:D8:F6 Paired: yes

                    Pairing successful

                    [CHG] Device 00:0E:00:09:D8:F6 Connected: no

                    [bluetooth]# connect 00:0E:00:09:D8:F6

                    Attempting to connect to 00:0E:00:09:D8:F6

                    [CHG] Device 00:0E:00:09:D8:F6 Connected: yes

                    Failed to connect: org.bluez.Error.NotAvailable

                     

                    How can I solve this problem? Even I downgraded my Edison and even tried with Ubilinux still get same result "Failed to connect: org.bluez.Error.NotAvailable". Pleas help me out in this critical situation

                     

                    Thanks and regards

                     

                    Susanta Sharma

                    • 22. Re: Bluetooth SPP Edison to PC
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Did you make sure to register an agent when pairing the device? Also, you could try trusting the device that has helped me in the past with similar issues.

                      -Peter.

                      • 23. Re: Bluetooth SPP Edison to PC
                        jmontague001

                        Hi Peter,

                         

                        I was just wondering if you have looked into either of the problems that I'm having?

                        • 24. Re: Bluetooth SPP Edison to PC
                          thomatwn123

                          Hi,

                              Peter, here is the full try on edison and failure status. Need your urgent positive solution to deal with my present situation as am in final semester of my masters degree.

                           

                          root@edison:~# cd /home/root/bluetooth

                          root@edison:~/bluetooth# ls

                          SPP-loopback.py

                          root@edison:~/bluetooth# python SPP-loopback.py &

                          root@edison:~/bluetooth# rfkill unblock bluetooth

                          root@edison:~/bluetooth# hciconfig hci0

                          hci0:   Type: BR/EDR  Bus: UART

                                  BD Address: 98:4F:EE:06:16:5E  ACL MTU: 1021:8  SCO MTU: 64:1

                                  UP RUNNING PSCAN

                                  RX bytes:661 acl:0 sco:0 events:38 errors:0

                                  TX bytes:1472 acl:0 sco:0 commands:38 errors:0

                           

                           

                          root@edison:~/bluetooth# hciconfig hci0 up

                          root@edison:~/bluetooth# hciconfig hci0 piscan

                          root@edison:~/bluetooth# bluetoothctl

                          [NEW] Controller 98:4F:EE:06:16:5E BlueZ 5.24 [default]

                          [bluetooth]# agent KeyboardDisplay

                          Agent registered

                          [bluetooth]# default-agent

                          Default agent request successful

                          [bluetooth]# scan on

                          Discovery started

                          Discovery started

                          [CHG] Controller 98:4F:EE:06:16:5E Discovering: yes

                          [NEW] Device BB:A0:51:00:00:AB ZL-RC02D

                          [NEW] Device 00:0E:00:09:D8:F6 00-0E-00-09-D8-F6

                          [CHG] Device 00:0E:00:09:D8:F6 LegacyPairing: no

                          [CHG] Device 00:0E:00:09:D8:F6 Name: CYUT

                          [CHG] Device 00:0E:00:09:D8:F6 Alias: CYUT

                          [CHG] Device BB:A0:51:00:00:AB RSSI: -89

                          [bluetooth]# scan off

                          [CHG] Device 00:0E:00:09:D8:F6 RSSI is nil

                          [CHG] Device BB:A0:51:00:00:AB RSSI is nil

                          Discovery stopped

                          [CHG] Controller 98:4F:EE:06:16:5E Discovering: no

                          [bluetooth]# trust 00:0E:00:09:D8:F6

                          [CHG] Device 00:0E:00:09:D8:F6 Trusted: yes

                          Changing 00:0E:00:09:D8:F6 trust succeeded

                          [bluetooth]# pair 00:0E:00:09:D8:F6

                          Attempting to pair with 00:0E:00:09:D8:F6

                          [CHG] Device 00:0E:00:09:D8:F6 Connected: yes

                          Request PIN code

                          [agent] Enter PIN code: 0000

                          [CHG] Device 00:0E:00:09:D8:F6 UUIDs:

                                  00001101-0000-1000-8000-00805f9b34fb

                          [CHG] Device 00:0E:00:09:D8:F6 Paired: yes

                          Pairing successful

                          [CHG] Device 00:0E:00:09:D8:F6 Connected: no

                          [bluetooth]# discoverable on

                          Changing discoverable on succeeded

                          [bluetooth]# connect 00:0E:00:09:D8:F6

                          Attempting to connect to 00:0E:00:09:D8:F6

                          [CHG] Device 00:0E:00:09:D8:F6 Connected: yes

                          Failed to connect: org.bluez.Error.NotAvailable

                          [CHG] Device 00:0E:00:09:D8:F6 Connected: no

                           

                          Thanks and regards

                           

                           

                          Susanta Sharma

                          • 25. Re: Bluetooth SPP Edison to PC
                            Intel Corporation
                            This message was posted on behalf of Intel Corporation

                            Is your sensor a BLE device? Or, does it use regular Bluetooth?
                             
                            In case you are using a BLE sensor, then you won't be able to interact with it using bluetoothctl. In order to interact with BLE devices you have to use gatttool. If in fact your sensor uses BLE, then I'd suggest you to read https://software.intel.com/en-us/articles/using-the-generic-attribute-profile-gatt-in-bluetooth-low-energy-with-your-intel-edison in order to learn how to install a BlueZ version that includes gatttool.
                             
                            -Peter.

                            • 26. Re: Bluetooth SPP Edison to PC
                              jmontague001

                              Peter, are you able to help me??.. Anybody?..

                              • 27. Re: Bluetooth SPP Edison to PC
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                Hi jmontague001,

                                In order to connect automatically to a Bluetooth device you could create a system service. I wrote a document about this a while ago, why you don’t check it out: https://communities.intel.com/docs/DOC-102152.
                                Let me know if it's helpful.

                                -Peter.

                                • 28. Re: Bluetooth SPP Edison to PC
                                  jmontague001

                                  Hi Peter,

                                   

                                  I will try to connect automatically to the blutooth device with the service script and let you know how I get on, but I will need to be able to auto connect to devices without knowing the device address in advance.

                                   

                                  Did you manage to look at the problem I'm having when I try to build an Image?

                                  • 29. Re: Bluetooth SPP Edison to PC
                                    Intel Corporation
                                    This message was posted on behalf of Intel Corporation

                                    Hi jmontague001,
                                     
                                    Please do keep us updated about your test. Also, we are still working on the issue that appears when building the image. I'm still trying to figure out what's causing this. If I'm able to find any useful information I'll make sure to post it here.
                                     
                                    -Peter.