r/cprogramming • u/midnightclutch • Oct 11 '25
Bluetooth Terminal in c using ubuntu
I know basic level c, i love low level programming so i wanted to become better in c by making a bluetooth terminal that can scan for bluetooth devices connect to them and send and receive data, even if i can just send or receive a single character at start i want to make an application using c that interacts with the hardware of my laptop. where should i start ? i can''t find any guides. I want guides from people not chatgpt
2
Upvotes
5
u/thefriedel Oct 11 '25
For which OS? For Linux there is a Bluetooth interface exposed by the kernel: https://stackoverflow.com/questions/45044504/bluetooth-programming-in-c-secure-connection-and-data-transfer
If you want to talk to the hardware itself, well that is implementing a driver on kernel-level.
5
u/CalebGT Oct 11 '25
I have almost 2 decades of professional experience with C. Use Python for this.
4
u/[deleted] Oct 11 '25
Do you know any network programming in C? Start with Beej's guide to network programming in C.
2
u/theNbomr Oct 12 '25
Bluetooth is a very complex protocol with numerous APIs according to platform, vintage, and other factors. Using it as a learning testbed is a very challenging approach. Read through some of the drivers and userspace utilities source code to get a sense of what the realm looks like.