Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
ekke
Posts: 1,506
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone
Accepted Solution

WiFi Direct | Bluetooth LE | NFC - Questions

haven't done anything with WiFi Direct yet as a developer - only as a user for Miracast.

have tested the sample app

 

now have some questions before I decide to use it

perhaps someone can share some details

 

---

WIFI DIRECT

Is it possible after first time syncing to connect without user interaction ?

 

If this is possible can it be done from headless app ?

 

....

thinking about this workflow:

 

environment:

* BB10 Device

* Arduino w BT LE / WIFI Direct support

 

usecase:

User with BB10 Device detects via BT LE that its nearby the Arduino

BB10 App connects to Arduino via WIFI Direct

Data is transfered from Arduino to BB10 via WIFI Direct

 

best would be if - after first time syncing is done - it could be done in the background

(headless on BES10)

If background not possible also could be run if minimized

 

most important:

NO User Interaction to connect via BT LE and WIFI Direct

If this cannot be done without - is it possible to be done using NFC Tag ?

 

----

more details on the usecase:

a) TruckDriver already running BB10 business app to manage work orders

b) Inside Truck there's an Arduino tracking data from CAN-bus and collecting into Mongo DB

 

Truck Driver goes in and out of the truck and if he's inside the truck collected data should be transfered to BB10 device,  then BB10 is sending CAN-bus data to server via MQTT if there's network coverage or later via WIFI in the office

 

The great thing: customer doesn't need extra SIM for CAN-bus-data-transfer, the BB10 device is already used for orders and sending data via REST to server

 

 

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: WiFi Direct | Bluetooth LE | NFC - Questions

[ Edited ]

I modified the WiFiDirect-ion sample, so that the half of the app that receives connections ran headless and it did work.  The one catch is that the notification from the API is still shown.  Here is an image of what it looks like from my Directions for Wi-Fi Direct Connection blog post that shows the prompt.

 

So you could make the Wi-Fi Direct connection from a headless app without requiring user interaction, but the dialog is shown.  But you can't make a Wi-Fi Direct connection to a headless app without the user accepting the connection (see this screenshot from the same blog).

 

So for your case, this should work since you could make the connection from your BlackBerry 10 app to the Arduino.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
ekke
Posts: 1,506
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: WiFi Direct | Bluetooth LE | NFC - Questions

Hi Mark,

 

thanks for your detailed testing. good news :smileyhappy:

 

So from my BB10 APP I can make the WIFI Direct Connection headless.

The notification is harmless because it disappears if connection was done.

 

Now it's up to a friend of mine who does the Arduino part to connect automatically from there ;-)

 

So Step 2 can be done as I hoped for

 

Now the question is open, if same can be done from Bluetooth LE:

BB10 Device comes near the Arduino with proximity profile,

detects it's near and then connects via WIFI Direct to do high speed data transfer from Arduino to BB10

 

perhaps John Murray or Martin Woolley can answer this.

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: WiFi Direct | Bluetooth LE | NFC - Questions

I didn't try it myself, but asked around and confirmed that Bluetooth LE is supported in headless applications.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
ekke
Posts: 1,506
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: WiFi Direct | Bluetooth LE | NFC - Questions


MSohm wrote:

I didn't try it myself, but asked around and confirmed that Bluetooth LE is supported in headless applications.


thx for the info

 

Will be a real cool workflow :smileyhappy:

all done by magic under the hood without any knowledge needed by the truck driver,

which in fact would be a show stopper in companies from domain of waste & recycling

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Administrator
MSohm
Posts: 14,528
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: WiFi Direct | Bluetooth LE | NFC - Questions

Nice, magic is good!  :smileywink:

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.