Data sent over bluetooth is not getting received by the package '@ionic-native/bluetooth-serial' #4862
shouvikbajpayee
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have built a custom bluetooth package using C++ to be compiled in node and be used with node applications specifically in windows. The package is built using the protocol "BTHPROTO_RFCOMM".
I am using '@ionic-native/bluetooth-serial' package in my android app built using ionic capacitor for bluetooth functionalities.
When I am creating a connection over bluetooth from my desktop app to the android device, it is getting created properly.
But when I am trying to send string data or files to the connected device via bluetooth, the data and file is getting sent from the sender desktop app, but not getting received in the receiver android app.
What could be the possible reasons? Please help.
Following checks I have already done::
Data Not Flushed or Sent Properly from the Sender [checked - not solving the issue]
Mismatched Data Encoding [checked - both packages are using 'UTF-8' encoding]
Improper Buffer Handling on the Receiver Side [checked - not solving the issue]
Timing Issues [checked - not solving the issue]
Bluetooth Connection Issues or Data Packet Loss (will check - seems like the problem what we are facing)
Incorrect Read Buffer Size on the Receiver [checked - data being sent is within the buffer capacity of 1024 bytes]
Flow Control Mismatch [checked - not solving the issue]
Beta Was this translation helpful? Give feedback.
All reactions