I would like to get multiple concurrent connections from one HCI device, for example, channel 1 as a client for broadcasting, channel 2 as a server for listening, and channel 3 as a client for answer the request from channel 2, is it possible to do this in the future?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is possible to run a server on one channel of a HCI device and also send files from the same HCI device at the same time. You can do this right now with lightblue. But, you can't specify the channels for outgoing connections - it doesn't work like that. You just specify the remote device and channel.
Is that what you mean?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, there's no need to specify outgoing channels - you can run a server and send files concurrently without needing to specify a separate outgoing channel. The server will still be able to accept connections while you are running a separate client connection that sends a file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In my application, I need one channel to broadcast message, I also need other two channels to recieve a request and response to the request to make a server. totally three channels are needed at least, two for sending file, one for recieving file. That's what I really want.
I'm sorry for my poor english, I would like to express myself better, but that beyonds my capability :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From what I understand, you want to run a server and concurrently send files with a separate client connection at the same time. You can do this with LightBlue at the moment. You can't respond to the server requests on a separate channel, because you have to use the socket that's been accepted by the server, which is already opened to talk on a particular channel.
You can't actually specify an "outgoing" channel, as far as I know - I don't think Bluetooth works like that. I haven't seen any Bluetooth APIs that let you specify an "outgoing" channel on your own device; you just specify the remote device and channel that you want to connect to. But, if what you want to do is run a server and send files separately (if that's what you mean by "broadcast") then that can be done, and it's taken care of automatically - you don't need to (and you can't) try to separate them into different "outgoing" channels.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
It would be possible specify Bluetooth Dongle (Sample hci1) used in the function to sendfile ?
Thanks
Addo
No, not at the moment, unfortunately.
I would like to get multiple concurrent connections from one HCI device, for example, channel 1 as a client for broadcasting, channel 2 as a server for listening, and channel 3 as a client for answer the request from channel 2, is it possible to do this in the future?
It is possible to run a server on one channel of a HCI device and also send files from the same HCI device at the same time. You can do this right now with lightblue. But, you can't specify the channels for outgoing connections - it doesn't work like that. You just specify the remote device and channel.
Is that what you mean?
yes, that's what I mean. specify the channels for outgoing connections to send several files at same time.
Yes, there's no need to specify outgoing channels - you can run a server and send files concurrently without needing to specify a separate outgoing channel. The server will still be able to accept connections while you are running a separate client connection that sends a file.
In my application, I need one channel to broadcast message, I also need other two channels to recieve a request and response to the request to make a server. totally three channels are needed at least, two for sending file, one for recieving file. That's what I really want.
I'm sorry for my poor english, I would like to express myself better, but that beyonds my capability :)
From what I understand, you want to run a server and concurrently send files with a separate client connection at the same time. You can do this with LightBlue at the moment. You can't respond to the server requests on a separate channel, because you have to use the socket that's been accepted by the server, which is already opened to talk on a particular channel.
You can't actually specify an "outgoing" channel, as far as I know - I don't think Bluetooth works like that. I haven't seen any Bluetooth APIs that let you specify an "outgoing" channel on your own device; you just specify the remote device and channel that you want to connect to. But, if what you want to do is run a server and send files separately (if that's what you mean by "broadcast") then that can be done, and it's taken care of automatically - you don't need to (and you can't) try to separate them into different "outgoing" channels.
OK, I see, thank you so much.