Our team develops custom device and an Android app which communicate through Bluetooth and ModBus, and we're going to recreate our app using Dart/Flutter so we will also have an iOS version. But is it possible to use ModBus with Bluetooth on this platform? I've found modbus package for Dart, but found nothing about using it with Bluetooth. Or, is there any analog to modbus which can be used on our device programmed in C, Java Android app, and Dart?
Related
I have been working on a flutter app for few months now. The main feature that my app relying on is Bluetooth serial communication. Basically my app will connect and communicate (receive and send data) to HC-06 Bluetooth module that is connected with a microcontroller.
Everything was going great till the moment when I found out that flutter bluetooth serial package doesn’t actually work with Ios devices (have been doing all tests on android device).
So I’m wondering if there is a way to make it work on ios devices or if there is any alternative way that I can use to creat the serial communication between ios and Hc-06 device.
iOS does not support SPP (Serial Port Profile), which is the serial protocol you are almost certainly using with Android. You will need to redesign your system to use another protocol.
The HC-06 only supports Bluetooth 2.0+EDR, and I don't believe there is any protocol it can handle that is also supported by iOS (in a way accessible to developers). You would likely need to use a module that supports BLE GATT, which requires Bluetooth 4.
(iOS does support GATT over BR/EDR, but I don't believe that's available on the HC-06.)
taha! I recommend you to try this package flutter_blue.
I use it to connect my BLE device and communicate well.
I am new to flutter.
I came across flutter_bluetooth_serial it works only for android ..please suggest
One suggestion could be to use Android ;-) Howsoever, flutter_bluetooth_serial implementation uses Classical Bluetooth and here we enter the land of Apples MFI (Made for iPhone/iPod/iPad) licensing programme . This is the reason for the lack of support in libraries like flutter.
I suggest using another interface with fewer restrictions, for example Bluetooth LE.
Need to have some information about NFC reading and writing tags, with phonegap in IONIC
I would like to make an app with shared data between 2 mobiles, I want to know if it's possible to read and write it between two phones using a different OS like Android and iOs.
Do you know if it's possible or if it will have any limitation with this use?
Without having a real NFC Card to acts as intermediary between devices, due to lacking NFC support in iOS
iOS <=> iOS is impossible
iOS <=> Android is complicated
Android <=> Android is complicated
iOS does not support NFC Peer to Peer, Android does support NFC Peer to Peer before Android 10 but it is now deprecated.
This leaves Host Card Emulation where one device pretends to be a real card, iOS does not support this (Only Apple themselves can do this), Android Supports this but it is not the simplest thing to do natively and probably does not have a module to help.
Better to use Bluetooth or Wifi Direct.
I would like to send a message from an Android device to an IOS device using NFC.
I found multiple NFC packages and tried out example app from nfc_in_flutter but was not able to send a message between 2 phones.
Do they only support reading and writing to NFC-Tags or am I missing something?
iOS does not support Peer to Peer NFC even natively and Android has deprecated support for it in Android 10 (Android Beam).
So you are not missing something, iOS lags behind Android and only in iOS 13 supports reading/writing where as Android has supported reading/writing and Host Card Emulation for a long time.
Better to use Bluetooth or Wifi Direct
Does the iPhone sdk support l2cap bluetooth sockets? Any additional information about SDK classes, etc would be greatly appreciated.
The latest CoreBluetooth does expose L2Cap through CBL2CAPChannel: https://developer.apple.com/documentation/corebluetooth/cbl2capchannel
It can be opened from a CBPeripheral: https://developer.apple.com/documentation/corebluetooth/cbperipheral/2880151-openl2capchannel
No.
There are no direct support for Bluetooth APIs in the SDk,
REfer the game kit programming APIs for application development with Bluetooth for peer-to-peer gaming
Other than than you will have to join the Made for iPod/iPhone/iPad program to get access and develop bluetooth connected accessories
Bad news from MFI FAQ (2014):
Q: I want to develop an accessory that communicates with an Apple device using only Bluetooth Low Energy. Do I need to join the MFi Program?
A: No. Accessories which connect to an Apple device using only Bluetooth Low Energy/BTLE/Bluetooth 4.0 or standard Bluetooth profiles supported by iOS are not part of the MFi Program.
I'm developing an app to connect with a L2CAP device on Android, now I'm studying porting on IOS but I found this issue.
For enabling a device to talk by Bluetooth, it must integrate the Apple authentication chip into device and must be able to connect with built-in Apple's Bonjour discovery service.
No L2CAP for any device... Sorry!
Website: https://mfi.apple.com
Source: https://mfi.apple.com/MFiWeb/getFAQ.action#4-2