Setting up GATT server using bluetoothctl tool - bluez

I'm able to set up GATT services and characteristics with the
latest bluetoothctl tool using the following commands:
register-service,
register-characteristic,
register-application
I was just wondering if there is a way to define GATT-based service
for use only over the BR/EDR transport or LE transport using the
bluetoothctl tool or any Bluez utility tool? Can anyone shed some
light on this?

Theoretically speaking, the GATT layer should be agnostic of whether BLE or BR/EDR is used. You can test this by disabling BLE through the following commands:-
#btmgmt power off
#btmgmt le off
#btmgmt power on
After that you can use something like gatttool from a remote device to check if you can see the services/characteristics that you have created using the bluetoothctl commands that you listed earlier.
I hope this helps.

Related

BlueZ API - OOB process?

How works OOB as pairing process for a LE setup, so NO classic bluetooth bredr?
Regardless of NFC as wireless transfer mechanism I was thinking of doing the following process manually as proof of concept.
Read out the local oob (btmgmt local-oob) and pass the oob to the other device that needs to be paired with the remote-oob cmd in btmgmt.
But when trying to readout the local-oob I get an error message the operation is not supported. The bluetooth adapters I'm using are single mode, BLE.
Any idea what could be wrong? Or what the proper way is to implement OOB for a BLE setup.
So far I didn't find any well documented process how to use the BlueZ API or tooling for doing this OOB process.
Thanks in advance,
Best regards,
Frank

NS-3 WIFI Base Station and accesspoint handover

I am a new user of NS-3. Can you help me in writing a code of handover in between nodes in Wi-Fi environment?
I'm gonna base my response on the little information you have provided.
General idea of Wi-Fi (as the technology which we use on daily basis to connect to internet and stuff like that :D) is based on IEEE 802.11 standard which does not support handover between nodes. Therefor you either are asking the wrong question or you want to implement the handover support to a IEEE 802.11 standard.
In case you want to do the latter I strongly suggest you to do the following steps (NS-3 tutorial in case needed):
1- Install NS-3 simulator on a Linux operating system, preferably Ubuntu 14.04.
2- Browse wifi/examples folder and try to fully understand basic wifi examples.
3- Implement your proposed algorithm in proposed scenario (Which obviously requires you to understand how user equipment connects to a Wi-Fi access point automatically and how APs can interact with each other and etc.).

How do I access a GPS from Windows IoT on Rasperry Pi?

I have done this when running Debian using gpsd. But when running Windows IoT preview...what is a way to get the NMEA sentences off an attached GPS (on the USB port). Is that kind of support around yet?
Currently this support is not yet available but it is being actively developed. Furthermore the Geolocator API is broken. Unfortunately I don't have an ETA for this but its coming.
Mark Radbourne (MSFT)

MirrorLink and ADB in parallel

Is it possible to use MirrorLink and Android Debug Bridge in parallel?
I'm working on a third party MirrorLink application and want to debug it with ADB/logcat.
Actually I've tried to use ADB over wifi and it works very good. But when I started the MirrorLink session, the connection got lost and couldn't be established again until the MirrorLink session was over.
We actually use the ADB when testing some ML devices, but I don't think we actually use it while in in an active MirrorLink session. There is nothing explicitly preventing it within MirrorLink that prevents it - but there may be some interaction vai UPnP or the MirrorLink attestation mechanism.
I've talked to some of the ML server (phone) device makers about this. You should be able to run ADB during a ML session via the WiFi connection. You have to do some work to enable ADB over wifi, but there is a handy guide on doing so here: https://developer.android.com/guide/topics/connectivity/usb/index.html
ADB and MirrorLink use different USB drivers and application software stacks. The capability is depends on the design of host and device side in terms of USB role. Some of the devices can run more than one driver and application at a time. However, some of them are limited to run one and exclusive from other drivers.
You may try use the method from the answer provided by Ed P. ADB forward through Wi-Fi is an alternative.

Network bandwidth assesment tool

I need to test the bandwidth I have on my USB RNDIS connection. I am using windows CE 6.0.
I already tried looking into iperf for windows ce, but, sadly, I did not manage to compile it.
Can anybody recommend of a tool/API to test the bandwidth under Windows CE?
In case the answer involves an API, I am looking for something with minimal effort (obviously)
Can't you do something as simple as connecting to the other end (you didn't say if you want to test from the device side or PC side), pull some known-size file, and time the pull. You then have bytes/time.