Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data sent over bluetooth is not getting received by the package '@ionic-native/bluetooth-serial' #4863

Open
shouvikbajpayee opened this issue Oct 22, 2024 Discussed in #4862 · 0 comments

Comments

@shouvikbajpayee
Copy link

Discussed in #4862

Originally posted by shouvikbajpayee October 22, 2024
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::

  1. Data Not Flushed or Sent Properly from the Sender [checked - not solving the issue]

  2. Mismatched Data Encoding [checked - both packages are using 'UTF-8' encoding]

  3. Improper Buffer Handling on the Receiver Side [checked - not solving the issue]

  4. Timing Issues [checked - not solving the issue]

  5. Bluetooth Connection Issues or Data Packet Loss (will check - seems like the problem what we are facing)

  6. Incorrect Read Buffer Size on the Receiver [checked - data being sent is within the buffer capacity of 1024 bytes]

  7. Flow Control Mismatch [checked - not solving the issue]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant