Post not yet marked as solved
One of our latest innovation and patented technology can be used in mobile devices like
the Apple Watch to protect the environment from being attacked and bit by
mosquitos. By modelling sensor structures this technology influences behavior
patterns of mosquitoes and other insects. This allows mosquitos to be kept away
without being affected.
Using
existing IoT hardware already available on-board, in addition to software-based
algorithms, the Apple Watch could be a best fit for this application.
I would
appreciate if we had the opportunity to set up a personal discussion with the
Apple Watch engineers.
Post not yet marked as solved
I’m planning on making on making a prototype of a phone case that brings back the android LED light that shines a specific color depending on notifications received by the user so you can just glance at phone. I’m wondering if there is a way to see what apps have sent notifications to the user?
On a side note, would it be possible to see what apps a user has to allow LED customization? Specific apps = specific lights system.
Post not yet marked as solved
Calling the Bluetooth GetMessage function for a message that was sent via Bluetooth, the returned BMessage contains an incorrect folder path to the message. The Event Report returns the correct folder path when the message is successfully sent.
Scenario:
Connect to Bluetooth MAP services (MNS and MAS).
Call Bluetooth "PushMessage" function.
Get 'Name Header' for the Message Handle.
MAP-Event-Report received with Type of SendingSuccess and Folder equal to "telecom/msg/sent".
Use "SetFolder" to navigate to Sent folder.
Call "GetMessage" with the Message Handle (the handle is the same for both the event report and PushMessage function).
The BMessage response has a folder of "telecom/msg/inbox"
BMessage:
BEGIN:BMSG
VERSION:1.0
STATUS:UNREAD
TYPE:SMS_GSM
FOLDER:telecom/msg/inbox
NOTIFICATION:1
BEGIN:VCARD
VERSION:2.1
FN;CHARSET=UTF-8:[Contact]
N;CHARSET=UTF-8:[Contact]
TEL:3:
END:VCARD
BEGIN:BENV
BEGIN:VCARD
VERSION:2.1
FN;CHARSET=UTF-8:[Contact]
N;CHARSET=UTF-8:[Contact]
TEL:[Phone Number]
END:VCARD
BEGIN:BBODY
CHARSET:UTF-8
LANGUAGE:UNKNOWN
LENGTH:[Some Length]
BEGIN:MSG
iOS is the worst.
END:MSG
END:BBODY
END:BENV
END:BMSG
Set Folder to telecom:
85-00-20-02-00-01-00-13-00-74-00-65-00-6C-00-65-00-63-00-6F-00-6D-00-00-4C-00-03-CB-08-60-59-D0
Set Folder to msg:
85-00-18-02-00-01-00-0B-00-6D-00-73-00-67-00-00-4C-00-03-CB-08-60-59-D0
Setting Folder to sent:
85-00-1A-02-00-01-00-0D-00-73-00-65-00-6E-00-74-00-00-4C-00-03-CB-08-60-59-D0
Calling GetMessage function:
83-00-44-01-00-23-00-44-00-33-00-42-00-43-00-34-00-45-00-39-00-31-00-30-00-35-00-41-00-41-00-34-00-43-00-32-00-00-42-00-10-78-2D-62-74-2F-6D-65-73-73-61-67-65-00-4C-00-09-14-01-01-0A-01-00-CB-08-60-59-D0
Section 3.1.4 of the Bluetooth Specification states:
"telecom/msg/sent: This folder shall contain messages that were successfully sent to the network by the MSE, at least during the period of the current MAP session. In particular these messages have been queued in the 'Outbox' folder before sending and are shifted by the MSE to this folder after transmission."
Apple is also nice enough to not include any additional contacts when the text message is part of a group text. This has been made unnecessarily difficult for developers to use and what's worse, it seems intentional.
Post not yet marked as solved
All,
I have an issue where my IOBluetoothDeviceInquiry and IOBluetoothDevicePair objects do not seem to be triggering all of their lifecycle states. Here is some sample code below. What am I missing here. In this example, the deviceInquiryStarted trigger never fires, even though it clearly starts and finds devices. Also devices are not added to the @Published object as they are found.
Also the sender.stop() does not seem to work when coming from the delegate to stop the search.
I feel like I am just missing something here as it relates to delegates.
I am just looking to scan for HID devices like mice, keyboards and headsets. Then allow the user to pair the device, and list paired devices.
I am pretty new to IOBluetooth so any help is appreciated.
import IOBluetooth
import IOBluetoothUI
import SwiftUI
class BluetoothSearchDelegate : NSObject, ObservableObject, IOBluetoothDeviceInquiryDelegate {
@Published var devices: [IOBluetoothDevice] = []
func deviceInquiryDeviceFound(_ sender: IOBluetoothDeviceInquiry, device: IOBluetoothDevice) {
debugPrint("********** DEVICE FOUND ************")
self.devices.append(device)
}
func deviceInquiryStarted(_ sender: IOBluetoothDeviceInquiry) {
debugPrint("inquiryStarted")
}
func deviceInquiryComplete(_ sender: IOBluetoothDeviceInquiry, error: IOReturn, aborted: Bool) {
sender.stop()
print("completed")
}
}
class BluetoothController: ObservableObject {
//
// DEVICE LISTS
//
@Published var devices: [IOBluetoothDevice] = []
//
// SEARCH TYPE
//
let searchType: IOBluetoothDeviceSearchTypes = kIOBluetoothDeviceSearchClassic.rawValue
//
// BLUETOOTH DEVICE
//
let btDevice: IOBluetoothDevice = IOBluetoothDevice()
//
// DELEGATES
//
let searchDelegate = BluetoothSearchDelegate()
//
// AGENTS
//
let searchAgent: IOBluetoothDeviceInquiry
let pairingAgent = IOBluetoothDevicePair()
init() {
self.searchAgent = IOBluetoothDeviceInquiry(delegate: self.searchDelegate)
self.searchAgent.searchType = self.searchType
}
func scan() {
self.searchAgent.inquiryLength = 1
self.searchAgent.start()
self.devices = self.searchDelegate.devices
}
func getPairedDevices() -> [IOBluetoothDevice] {
let devices = IOBluetoothDevice.pairedDevices() as? [IOBluetoothDevice]
debugPrint(devices ?? [])
return devices ?? []
}
func stop() {
self.searchAgent.stop()
self.devices = self.searchAgent.foundDevices() as? [IOBluetoothDevice] ?? []
self.searchAgent.clearFoundDevices()
debugPrint("Device Count: \(self.devices.count)")
}
func pair(device: IOBluetoothDevice) -> IOBluetoothDevicePair {
self.pairingAgent.setDevice(device)
pairingAgent.start()
return pairingAgent
}
func stopPairing(pairingAgent: IOBluetoothDevicePair) {
pairingAgent.stop()
}
}
struct ContentView: View {
@State var isScanning: Bool = false
@State var isPairing: Bool = false
@ObservedObject var bt = BluetoothController()
var body: some View {
VStack {
Text("Scan for bt devices").padding()
Button(action: {
if !self.isScanning {
self.bt.scan()
self.isScanning.toggle()
return
} else {
self.bt.stop()
self.isScanning.toggle()
return
}
}, label: {
Text(self.isScanning ? "Stop" : "Scan")
}).padding()
List(self.bt.searchDelegate.devices, id: \.self) { device in
HStack {
Text("\(device.name)")
Spacer()
Button(action: {
var pairingAgent: IOBluetoothDevicePair = IOBluetoothDevicePair()
if !self.isPairing {
pairingAgent = bt.pair(device: device)
} else {
bt.stopPairing(pairingAgent: pairingAgent)
}
}, label: {
if !self.isPairing {
Text("Pair")
} else {
Text("Stop")
}
})
}
}
}
}
}
Post not yet marked as solved
I was wondering if it is possible to use the bluetooth API on iPadOS to let an app become an emulated "bluetooth speaker/car". I want to make an app where an iPhone or Android phone can connect to it via bluetooth so the app can play the audio from the phone, and receive and handle calls just like a car can play audio and handle calls and display call information via bluetooth. I would also like to know if the app could also get contact information from the phone over bluetooth.
If it is possible to do so, how? I would love a friendly nudge in the right direction :)
Post not yet marked as solved
Any developer has experience in CTKD?
I saw it was mentioned in WWDC 2019 (https://developer.apple.com/videos/play/wwdc2019/901), and it stated that there would be a sample project from documentation (https://developer.apple.com/documentation/corebluetooth/using_core_bluetooth_classic). But I could not find further information on it.
Post not yet marked as solved
Hello
Our app has been rejected from the app store because of 1.4 Physical Harm https://developer.apple.com/app-store/review/guidelines/#safety
This app is used by the users from Kenya (Only registered users). Users can log their health based self-assessment data like blood pressure, glucose level, temperature, body weight, BMI with medical hardware devices and that will be shared with specialist (Physician or Clinical) to do the diagnosis and advice subscription accordingly.
Problem:
We have the above features from earlier versions but with the new version update our app got rejected from app store stated that we have violated the app stores' guidelines (1.4.1 Physical Harm - Safety)
Your app connects to external medical hardware to provide medical services. However, to be compliant with App Store Review Guideline 1.4.1, you must:
Provide documentation from the appropriate regulatory organization demonstrating regulatory clearance for the medical hardware used by your app
Provide documentation of a report or peer-reviewed study that demonstrates your app’s use of medical hardware works as described
Our app's features:
AccuCheck-Instant Glucometer: CE0088 This product fulfils the requirements of the European Directive 98/79/EC on in vitro diagnostic medical devices.
b) FORA-DigitalThermometer-IR21b: CE Mark for compliance with European Directive integration over Bluetooth
c) FORA-OximeterPO200: CE0123 and IEC 61000-4-3 Compliant integration over Bluetooth
d) FORA-Weighing Machine-W310b: IEC/EN 61010-1, IEC/EN 61326, EN 301 489-17, EN 300 328 Compliant integration over Bluetooth
e) OmronBPMachine-HEM -9210T: EC & EN Compliance integration over Bluetooth
Please anyone help us to resolve this issue.
Post not yet marked as solved
Hi everyone,
I am developing a virtual keyboard device connected to an iOS device by Bluetooth. And how to press any special characters by HID usage. I have tried all combinations of keys option + shift + key or option + key but there aren't any characters that I want
Particularly, I want to press the character '@' in the Lithuanian language for iOS devices by Bluetooth virtual keyboard. Are there any combinations of keys to press these special characters?
Dien Vu
Post not yet marked as solved
Hi there!
I'm currently new to Mac OS dev (coming from a history of Linux dev).
I have an external BT keyboard and a couple keys are mapped differently than my Mac keyboard (§ to ` for example). I'm wondering if it's possible to write a kernel extension that detects the key sent from the BT keyboard and remap the key code.
I don't really know whether this is possible and if it is, where to look in the ecosystem. It's a bit different from Linux.
Thank you!
Post not yet marked as solved
Here I have an requirement that ios ble app may not repeatedly does service and characterice discovery process if that the gatt database in the peer device is not changed. To use the cache in the ios could fast the operation on peer device.
And it said to use the cache of gatt database in IOS needs the condition which IOS and ble device need to be paired firstly. However my ios app does not need to be paired.
who could tell how to do with it ?
Post not yet marked as solved
My Logi devices were working perfectly well for the last 2 years, but after recently upgrading to macOS Monterey 12.4 (21F79), these devices are not showing up in the list of Bluetooth devices, its not getting discovered, can anyone help to resolve this issue.
Post not yet marked as solved
Does anyone know if I can create an app that can detect ibeacon even if the app is closed? I need to send the user a local notification when a region is entered (at an immediate distance) while the app is closed.
Post not yet marked as solved
Last week or two AirDrop will not work and Bluetooth connection immediately gets dropped after pairing and connecting momentarily
Post not yet marked as solved
So i got this problem where i cant turn on bluetooth or wifi in my i phone. Thoes worked fine just minute ago but suddenly both of thoes stopped working. I tried to restart phone, restart wifi settings and restart all of the settings but nothing seems to work. What i can do?
Post not yet marked as solved
My right airpod is not charging properly after the update. It shows it is always connected to the phone even when it is in the case. And when charging only left AirPod is getting charged. When I receive a call through the phone I am still getting airpods option. I tried unpairing and pairing, cleaned the case thoroughly, restarted my phone but nothing helped. Help me find a solution.
Post not yet marked as solved
hi Team,
after upgrading my Mac to Monterey m not able to connect my Non-Mac Bluetooth devices. please sort this out as I am suffering from this.
Post not yet marked as solved
Hi
my bluetooth wont turn on after monterey
Is anyone solved his problem of bluetooth turning on after monterey 12.3.1 or public beta 12.4? I updated to it but yet can’t turning on bluetooth of my core i5 macbook /
anyone does have better solution? /
I delete plist /
rest smc and nvram /
reset bluetooth /
reinstall mac old and new versions /
clean install mac /
try unsigned blufix kext /
try pkill bluetoothd in terminal try bluetool by brew /
force quit bluetoothd and… /
but didn’t solve it and I cant turn on bluetooth and using my magic mouse 2
Post not yet marked as solved
The library I use in esp32 is bledevice.h cpp. macbook finds my esp32 through 3rd party software. but macos can't find it with bluetooth software.
Post not yet marked as solved
Hi,
Before my question, I've sent this ticket to Apple Bug Report. But it need to wait a lot of time for getting response.
So that I leave it on the Developer Forums. Please help or try to give some ideas how to achieve this. Thanks!
Initially, there are running two apps in our project. The first one is sending the data with iAP2(Bluetooth)(40KB per sec). The other is sending the data with BLE(150 byte per 100 ms). The BT device is same(iAP2(BT), BLE). The phone connect with a Bluetooth headset and play a music. Normally, they work well. All of transmission are sent well.
*** BTW: The MFi device is also made by us. ***
But when answering a phone call, the iAP2 data looks like is hung on the iOS. We get two situations.
The first one is no space. Check by the api(https://developer.apple.com/documentation/foundation/outputstream/1411335-hasspaceavailable). All of commands could not be sent.
The other the hasSpaceAvailable is true. By checking the api(https://developer.apple.com/documentation/foundation/outputstream/1411335-hasspaceavailable), the content is sent completed.
The results both of them are same. The iAP2(BT) could not be sent to the MFi device. We also traced the air-sniffer log, but we got nothing. The transmission between iPhone and the device stopped. We have no idea about it. Please help or try to give some ideas how to analyze this. Thanks!
Post not yet marked as solved
I am working on an iPad application which uses Henex HC-3208R wireless bar code scanner.
While doing scanning the scanner reads the code from the QR code or barcode and copies the code in the textfield where focus is there which need to be restricted. If by mistakenly the focus goes to any textfield and you trigger the scanning button in device at the same time then it reads the code and copies it to the textfield.
I also tried to distinguish between the text inputs from the virtual keyboard and bluetooth input device so that I can block the text coming from bluetooth scanner device but there is no changes in the textfield delegates, it behaves the same.
If we can get to know the source of the key strike when focus is already there in a textfield, that will be much helpful.
PS: I am connecting the scanner as using HID Profile and it is treated as a bluetooth keyboard by iPad.This is expected as device treats bar code scanner as bluetooth keyboard, but we can forcefully open the virtual keyboard on long pressing the arrow-up icon in keyboard task bar which is shown everytime.
Please let me know if it is possible or any other suggestion which I can try.
Thanks in advance.