Why I am unable to read data from bluetooth module which supports spp

2 views (last 30 days)
I am working with rn-42 bluetooth module.I am transfering some data from my microcontroller to my pc.At first I have tried with usb to serial cable to receive data on matlab window and I have succeeded properly.Now I am trying to send data by this bluetooth module to my pc but I am not receiving anything on my matlab window.I have checked with serial terminal monitor that I am receiving data on serial terminal by this same bluetooth module.I dnt understand why I am not getting anything frm my bluetooth module.I am using the same code which I worked for serial to usb cable after changing the com port number .With this same com port number I was able to receive data on my serial monitoring terminal.I am quite struck.Everytime it is showing this same error Open failed: Port: COM19 is not available. Available ports: COM1. Use INSTRFIND to determine if other instrument objects are connected to the requested device. please help em with this.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!