• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

problems with receiving data of byte type with RFcomm with c#.

Q&A Forum › Category: ESP32 › problems with receiving data of byte type with RFcomm with c#.
0 Vote Up Vote Down
Antonello Stella asked 4 years ago

Hi, I need to realize a communication via Rfcomm protocol of Bluetooth classic to replace a serial wire communication between an ESP32-DevKit board and a program made in visual studio 2019 with c# on windows forms application and I have loaded the InTheHand Feet32 DLLs library to do it. The project involve sending commands in byte format from the pc to the board and its response to the command. I tested the operation between esp32 and the bluetooth serial terminal tool and it works. I also tried with DockLight opening the virtual serial ports and it works. When I try with the program I created, the command that I send arrives on the ESP32 board, while the response if I put the breakpoint, I see the data in the buffer, when I remove the breakpoint the data arrives partially and incorrectly. I have used both read and readbyte functions but the thing doesn’t change. Does anyone have any suggestion about this. I also have to say that I put in TRY the reception of data is often arrives the following exception: I/O operation terminated due to thread exit or application request. Thank you for a possible answer.

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Antonello.
 
I’m sorry, but I’m not familiar with Rfcomm Bluetooth.
It seems that the problem is not related to the ESP32 but to the program you created.
 
I would suggest that you post your issue on the library issues page: https://github.com/inthehand/32feet/issues, but I noticed that you already did that. I think that place is more suitable to ask for help about this subject.
 
I’m sorry that I can’t help much.
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.