How can I detect normal Bluetooth connection In HMS Awareness? - huawei-mobile-services

In Bluetooth Awareness device type value 0 indicates car stereo. Is it possible to indicate normal Bluetooth by using any other device type value. I used 1 and other values but it is not detecting.

Currenltly Bluetooth awarenss can only identify Car Stero.
To know more about Bluetooth awareness you can use the link
https://developer.huawei.com/consumer/en/doc/development/HMS-References/awareness-barrier-bluetoothbarrier

Related

BLE execute a function near a Bluetooth device

I have a Bluetooth device, and I try to execute a function when my application is near the device.
I read on an iBeacon technology, but I did not really understand if the iBeacon could be used on all Bluetooth devices as long as you have your UUID, or you need the Bluetooth device have a service that sends a special UUID for iBeacon?
If you have access to the firmware on your Bluetooth device, it is generally simple to set up iBeacon advertising. You must enable the Bluetooth controller to emit a manufacturer advertisement with a specific 22 byte payload. The details of how you do this is device-dpecific.
That payload contains three identifiers which you may choose, the Proximity UUID is a 16 byte sequence, the major is a two byte sequence and the minor is also a two byte sequence.
You can see the layout of this payload in my answer here.
You can then use the CoreLocation API on iOS and the Android Beacon Library on Android devices to detect the iBeacon advertisement with the same identifiers and make your app react.

Can I make iPhone/iPad broadcast as Eddystone Beacon?

We can make iOS devices act as a iBeacon transmitter and We can locate nearby iBeacons if we know their Proximity UUID.
With Google's Proximity Beacon API, It's possible to configure and register real Beacon hardware, and we can locate them with Nearby Messaging API.
But is it possible to make iOS devices to broadcast as Eddystone Beacons ? And it needs to be discoverable by apps that scan Eddystone beacons.
Thanks in advance.
Unfortunately, this is not possible. While iOS devices can advertise Bluetooth LE service advertisements(which are the advertisement type used by Eddystone) using CoreBluetooth APIs, you cannot attach the necessary data. This is because the CBAdvertisementDataServiceDataKey that associates service data to an advertisement is read-only on iOS. You can't set the data.
So while you want to make the iOS device advertise something like this to transmit Eddystone-UID:
0201060303aafe1516aafe00e72f234454f4911ba9ffa6000000000001
You end up advertising something like this:
0201060303aafe0316aafe
This leaves off the Eddystone-UID type code (00), the calibrated power (e7), the namespace identifier (2f234454f4911ba9ffa6) and the instance identifier (000000000001). As a result, it won't be recognized as an Eddystone-UID frame.

Simulate iBeacon region enter and exit by turning bluetooth on and off

When I am testing with beacon emulator I can turn bluetooth on and off to simulate a user enter and exit the beacon area. However this is not possible when testing with real beacons since there are no switches to enable or disable them. Therefore, is it possible to simulate this by turning bluetooth on and off in the actual iphone? Is the result the same? Does turning on bluetooth result in an immediate bluetooth scan by iOS?
You can use your mac to generate ibeacons if it have bluetooth 4.0 (https://github.com/mttrb/BeaconOSX) and with that project you can enable or disable the virtual beacon. You can also use another idevice to generate a ibeacon signal.

Detect type of 802.11 on iPhone

I found a way to determine data network type of iPhone but I need more information on if the device is connected via Wifi.
How can I find out which type of 802.11 (a/b/g/n) my iPhone is connected using xcode?
There is no API for that in the IOS SDK

Is it possible to get connect to Bluetooth Camera?

I need to build an application which display the list of available Bluetooth Cameras and need to paired with them.I have search through the web,but unable to find any useful link.
any Tutorials/Sample code would greatly appreciated. !!
Thanks !!
If you are talking about BLE (Bluetooth Low Energy or Bluetooth 4.0) than the answer is YES. You can easily discover BLE devices in your app.
They identify using a specific UUID which you have to know to discover them. You will act as a so called BLE Central, the camera would be a Peripheral.
I don't know any Bluetooth cameras, but if they support BLE, you can refer to Core Bluetooth framework reference or the Core Bluetooth Programming Guide.
If they don't support BLE, but the old Bluetooth, you would have to be member of the MFi Program. To be a member you would probably be a hardware manufacturer and have already products in stores. I also heard of individuals that got accepted, but you might probably not.
Long story short: BLE - YES, !BLE - NO.