Wind River Support Network

HomeDefectsLIN8-7488
Fixed

LIN8-7488 : Bluetooth connection is inconsistent

Created: Aug 24, 2017    Updated: Jul 10, 2019
Resolved Date: Oct 22, 2017
Found In Version: 8.0.0.18
Fix Version: 8.0.0.23
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Networking, Userspace

Description

When trying to get a connection with BlueZ using a smartphone or other device the device not always can get connected. Usually, when you connect, disconnect and try to reconnect the issue is happening

Steps to Reproduce

All the files described can be found at 172.18.222.234 inside /cases/00074688_lx8_0018_x86-32/, there is also a project already built there if you need to use it, you can connect there with ssh and your NIS account.

Hardware requeriments
========================================
Build is for MinnowTurbot.
Optional: HDMI Monitor of at least 800x600 resolution
Optional: USB Keyboard
Serial port lure to PC USB
Micro SD card (preferred) or USB stick
Plugable Bluetooth USB adapter (Model: USB-BT4LE)
  https://www.amazon.com/Plugable-Bluetooth-Adapter-Raspberry-Compatible/dp/B009ZIILLI/
Android device with Bluetooth (phone or tablet)\

Observations
=========================================
Make sure MinnowTurbot has 32-bit firmware installed.
Android device install John Deere App "SolutionsPlus".

Steps to reproduce
========================================
1. Create a project with: (BasicLayers is inside build.tar.gz, it just give extra configurations)

/wr/installs/lx8/wrlinux-8/wrlinux/configure --enable-board=intel-x86-32 --enable-build=production --enable-kernel=preempt-rt --enable-rootfs=glibc-core --with-layer=wr-bsps/intel-x86,/cases/00074688_lx8_0018_x86-32/build/BasicLayers --enable-reconfig --with-rcpl-version=0018

2. Create an SDK and build the attached test case "BluetoothServer.tar.gz", make sure this binary will be available inside /root in the image fs

3. Create an usb image and dd it to an SD card
  When prompted
    Select 4 for "Use ext  2,3,4 [2]"
    Select n for "Make root file system readonly? <y/n> [y]"
    And then defaults for all the rest

4. Boot the Minowboard with the "Plugable Bluetooth" USB adapter connected, on GRUB menu press "e" and change "ro" to "rw" for this line, "linux /vmlinuz LABEL=boot rootwait ro max_loop=255 console=ttyS0,115200 root=LABEL=wr_usb_boot", then resume startup with F10

5. Run the commands below:
cd /root
./BluetoothServer -r -s low

On Mobile side
========================================
* Android device make sure Bluetooth is turned on
* Launch the SolutionsPlus app on the mobile device (Bluetooth needs to be turned on)
* On the first run of the App select Agriculture
* New app only: Select Tools at the bottom of the screen (not required for the current available app)
* Click on "Machine to Wireless"
* Click on "Get Started"
* Click on "Yukon" once it is found (this step requires the BluetoothServer to be running on the Dev Kit)
* If the retrieving dialog (Android) or spinner (iOS) disappear this means the application level messaging (described below)
is working
* If the connection lost dialog pops up this means the application level messaging is NOT working

Expectation and produced error
========================================
First connection may pass. If it does then hit the "<- Yukon" and try again. It seam to consistently fail on the second
attempt.

Side notes
========================================
You can take a look of some logs atached by the customer

Other Downloads


Live chat
Online