Menu

Obex sendfile, using specify HCI / Multiples

Help
2007-08-17
2013-04-25
  • Addo Del Grossi

    Addo Del Grossi - 2007-08-17

    Hi,

    It would be possible specify Bluetooth Dongle (Sample hci1) used in the function to sendfile ?

    Thanks
    Addo

     
    • blam

      blam - 2007-08-20

      No, not at the moment, unfortunately.

       
    • aptc

      aptc - 2007-11-17

      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?

       
      • blam

        blam - 2007-11-18

        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?

         
    • aptc

      aptc - 2007-11-18

      yes, that's what I mean. specify the channels for outgoing connections to send several files at same time.

       
      • blam

        blam - 2007-11-19

        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.

         
    • aptc

      aptc - 2007-11-19

      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 :)

       
      • blam

        blam - 2007-11-21

        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.

         
    • aptc

      aptc - 2007-11-21

      OK, I see, thank you so much.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.