Click here to Skip to main content
15,881,248 members
Home / Discussions / Linux Programming
   

Linux Programming

 
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
Richard MacCutchan3-Apr-23 4:40
mveRichard MacCutchan3-Apr-23 4:40 
AnswerRe: Please help me understanding Bluetooth "socket"usage ... Pin
Gerry Schmitz3-Apr-23 6:10
mveGerry Schmitz3-Apr-23 6:10 
AnswerRe: Please help me understanding Bluetooth "socket"usage ... Pin
jschell3-Apr-23 6:47
jschell3-Apr-23 6:47 
GeneralMessage Closed Pin
3-Apr-23 14:08
Member 149687713-Apr-23 14:08 
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
Richard MacCutchan3-Apr-23 21:49
mveRichard MacCutchan3-Apr-23 21:49 
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
jschell4-Apr-23 5:54
jschell4-Apr-23 5:54 
GeneralMessage Closed Pin
4-Apr-23 8:03
Member 149687714-Apr-23 8:03 
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
Richard MacCutchan4-Apr-23 22:26
mveRichard MacCutchan4-Apr-23 22:26 
You seem to be struggking with some basic concepts. A device_id is simply an identifier that is returned by the bluetooth driver in the kernel. The kernel code uses this id to acces a specific connection (socket etc.) between devices. So every time you call a library function, you pass it the device_id so the driver code knows which connection you are referring to. I use the analogy of a telphone number, if you pass your telephone number to your mobile service provider, it always knows where to send messages.

If you want to bypass the device_id and use a plain socket (which is conceptually the same thing as described above) then that is fine. But as we keep saying, that means you have to write the code to actually use the bluetooth protocol over the connection that the socket makes with a remote device. Also, Bluetooth does not replace RS232, it is a network protocol that uses the ISO/OSI model.


But ultimately all your questions are asking for more information than there is space for in a forum such as this. The only way to get a good understanding of what you are trying to do (which remains something of a mystery) is to do a lot of research. The internet has hundreds of papers that detail networking in general and the various specific protocols, so that is where you need to go.

The link I gave you three days ago gives some good details (although abridged) on this whole subject. I strongly advise you to study it carefully, as it answers at least most of your questions.
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
trønderen5-Apr-23 2:58
trønderen5-Apr-23 2:58 
GeneralRe: Please help me understanding Bluetooth "socket"usage ... Pin
Richard MacCutchan5-Apr-23 3:24
mveRichard MacCutchan5-Apr-23 3:24 
QuestionShrinking root partiton Pin
megaadam24-Jan-23 0:27
professionalmegaadam24-Jan-23 0:27 
AnswerRe: Shrinking root partiton Pin
k505424-Jan-23 5:53
mvek505424-Jan-23 5:53 
GeneralRe: Shrinking root partiton Pin
megaadam24-Jan-23 12:25
professionalmegaadam24-Jan-23 12:25 
AnswerRe: Shrinking root partiton Pin
megaadam26-Jan-23 2:14
professionalmegaadam26-Jan-23 2:14 
AnswerRe: Shrinking root partiton Pin
jschell24-Jan-23 10:31
jschell24-Jan-23 10:31 
AnswerRe: Shrinking root partiton Pin
Jeremy Falcon13-Feb-23 12:56
professionalJeremy Falcon13-Feb-23 12:56 
QuestionMessage Closed Pin
29-Dec-22 8:51
Member 1496877129-Dec-22 8:51 
AnswerRe: How to add CAP_NET_ADMIN=eip permanently ? Pin
Eddy Vluggen20-Jan-23 7:24
professionalEddy Vluggen20-Jan-23 7:24 
AnswerRe: How to add CAP_NET_ADMIN=eip permanently ? Pin
jschell22-Jan-23 9:11
jschell22-Jan-23 9:11 
QuestionMessage Closed Pin
25-Oct-22 17:20
Member 1496877125-Oct-22 17:20 
AnswerRe: How to backup Linux OS? Pin
Richard MacCutchan25-Oct-22 22:22
mveRichard MacCutchan25-Oct-22 22:22 
GeneralMessage Closed Pin
26-Oct-22 5:54
Member 1496877126-Oct-22 5:54 
GeneralRe: How to backup Linux OS? Pin
Richard MacCutchan26-Oct-22 6:19
mveRichard MacCutchan26-Oct-22 6:19 
GeneralMessage Closed Pin
27-Oct-22 4:20
Member 1496877127-Oct-22 4:20 
GeneralRe: How to backup Linux OS? Pin
Richard MacCutchan27-Oct-22 4:40
mveRichard MacCutchan27-Oct-22 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.