How to use bluetooth to pass simple ASCII serial data ?
-
I am using several code examples to find local Bluetooth adapters to "bind " to local Bluetooth adapter to build "client server" to start rfcomm server to scan for and find remote Bluetooth devices to "bind to serial port" .... to build "socket"... to listen or send a message to connected device / adapter I cannot find a single example how to actually exchange messages in real connection at this point a simplex exchange would work send a message from "local adapter" to "remote device "... ...listen for response from remote device rinse and repeat... I am not sure want to get into "client / server / host " discussion. A simple C/C++ code example would be great. And if I asked this before or I am in wrong pew (again) - keep your comments to yourself - no need to rub it in. Cheers
-
I am using several code examples to find local Bluetooth adapters to "bind " to local Bluetooth adapter to build "client server" to start rfcomm server to scan for and find remote Bluetooth devices to "bind to serial port" .... to build "socket"... to listen or send a message to connected device / adapter I cannot find a single example how to actually exchange messages in real connection at this point a simplex exchange would work send a message from "local adapter" to "remote device "... ...listen for response from remote device rinse and repeat... I am not sure want to get into "client / server / host " discussion. A simple C/C++ code example would be great. And if I asked this before or I am in wrong pew (again) - keep your comments to yourself - no need to rub it in. Cheers
-
been there , done that
08:31:50: Starting /home/nov25-1/Qt/Nov26/Examples/Qt-5.15.2/bluetooth/build-btchat-Desktop_Qt_5_15_2_GCC_64bit-Debug/btchat...
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.but it is conceptually sound and usable if I can get rid of this missing
CAP_NET_ADMI
permission it is hard to concentrate on passing / setting for serial ACSII code when the example is so buggy.... Thanks
-
I am using several code examples to find local Bluetooth adapters to "bind " to local Bluetooth adapter to build "client server" to start rfcomm server to scan for and find remote Bluetooth devices to "bind to serial port" .... to build "socket"... to listen or send a message to connected device / adapter I cannot find a single example how to actually exchange messages in real connection at this point a simplex exchange would work send a message from "local adapter" to "remote device "... ...listen for response from remote device rinse and repeat... I am not sure want to get into "client / server / host " discussion. A simple C/C++ code example would be great. And if I asked this before or I am in wrong pew (again) - keep your comments to yourself - no need to rub it in. Cheers
Member 14968771 wrote:
I am not sure want to get into "client / server / host " discussion.
Member 14968771 wrote:
keep your comments to yourself - no need to rub it in
Granted. You now have 2 wishes left.
Bastard Programmer from Hell :suss: "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
-
I am using several code examples to find local Bluetooth adapters to "bind " to local Bluetooth adapter to build "client server" to start rfcomm server to scan for and find remote Bluetooth devices to "bind to serial port" .... to build "socket"... to listen or send a message to connected device / adapter I cannot find a single example how to actually exchange messages in real connection at this point a simplex exchange would work send a message from "local adapter" to "remote device "... ...listen for response from remote device rinse and repeat... I am not sure want to get into "client / server / host " discussion. A simple C/C++ code example would be great. And if I asked this before or I am in wrong pew (again) - keep your comments to yourself - no need to rub it in. Cheers
-
been there , done that
08:31:50: Starting /home/nov25-1/Qt/Nov26/Examples/Qt-5.15.2/bluetooth/build-btchat-Desktop_Qt_5_15_2_GCC_64bit-Debug/btchat...
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.bluetooth.bluez: Missing CAP_NET_ADMIN permission. Cannot determine whether a found address is of random or public type.but it is conceptually sound and usable if I can get rid of this missing
CAP_NET_ADMI
permission it is hard to concentrate on passing / setting for serial ACSII code when the example is so buggy.... Thanks
Ihsan Web Solutions is a Pakistan-based IT services provider Company. Our Digital Marketing(DM) offers a wide range of IT-related services, including Website Design and Development, Social Media Marketing (SMM), Pay-Per-Click (PPC), Google Ads, Search Engine Optimization (SEO), Graphic Designing, and Social Networking. We are here if you want your ideas to become a reality.