Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
* Algorithm for create serial connection without rfcomm
       [not found]                       ` <480C9E29A742984996B50276401889F36B33E940@msceml521-mbx.china.huawei.com>
@ 2018-04-25  7:53                         ` Проклов Александр Валерьевич
       [not found]                           ` <CAAu3APYXpqO77M0AhAVD-EnOapXAOXsAD4e26x5ULTVCxfSreg@mail.gmail.com>
  2019-08-01  5:35                         ` May be 'bluetoothctl devices' not right? Проклов Александр Валерьевич
  1 sibling, 1 reply; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2018-04-25  7:53 UTC (permalink / raw)
  To: linux-bluetooth

Hi all,

The rfcomm command is deprecated, what is the use of the algorithm to 
create serial connections?

Whether it is possible to create /dev/rfcomm not using rfcomm command 
through Dbus or another utility from Bluez5?

In many forums, people also ask this question, and everything is decided 
by adding rfcomm command.

--------------
Best regards,
Aleksandr Proklov

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Algorithm for create serial connection without rfcomm
       [not found]                           ` <CAAu3APYXpqO77M0AhAVD-EnOapXAOXsAD4e26x5ULTVCxfSreg@mail.gmail.com>
@ 2018-04-27  5:56                             ` Проклов Александр Валерьевич
  2018-04-28  3:28                             ` Проклов Александр Валерьевич
  1 sibling, 0 replies; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2018-04-27  5:56 UTC (permalink / raw)
  To: linux-bluetooth

Thank you Barry Byford,

Your example is more understandable for me, but I do not know python.
If I understand correctly, the algorithm is as follows:
1. Connect to device (pair, connect)
2. "Release" profile
3. "RegisterProfile" with parameters. profile_path - path for new 
profile on Dbus?

After RegisterProfile device port /dev/rfcomm created automatic or need 
more operation?

4. For disconnect make RequestDisconnection



26.04.2018 21:39, Barry Byford пишет:
> Hello Aleksandr ,
>
> I believe that the following example in the tree is intended to serve
> the purpose.
> https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-profile
>
> I couldn't workout the correct command line switches to get this
> working so I did my own experiment and came up with the follow gist
> for Serial Port Profile:
> https://gist.github.com/ukBaz/217875c83c2535d22a16ba38fc8f2a91
>
> I hope that helps.
>
> Regards,
> Barry
>
>
> On 25 April 2018 at 08:53, Проклов Александр Валерьевич
> <ProklovAV@zabzd.ru> wrote:
>> Hi all,
>>
>> The rfcomm command is deprecated, what is the use of the algorithm to create
>> serial connections?
>>
>> Whether it is possible to create /dev/rfcomm not using rfcomm command
>> through Dbus or another utility from Bluez5?
>>
>> In many forums, people also ask this question, and everything is decided by
>> adding rfcomm command.
>>
>> --------------
>> Best regards,
>> Aleksandr Proklov
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
>> in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Algorithm for create serial connection without rfcomm
       [not found]                           ` <CAAu3APYXpqO77M0AhAVD-EnOapXAOXsAD4e26x5ULTVCxfSreg@mail.gmail.com>
  2018-04-27  5:56                             ` Проклов Александр Валерьевич
@ 2018-04-28  3:28                             ` Проклов Александр Валерьевич
  1 sibling, 0 replies; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2018-04-28  3:28 UTC (permalink / raw)
  To: linux-bluetooth

No, nothing is clear yet.

I use bash script for manage bluetooth, dbus-send command help me use DBus.

All programm need serial device ex: /dev/ttyS0 or for bluetooth 
/dev/rfcomm0 created.

I can not understand whether a device will be created, or it should be 
created by myself. And how to create a device with a given name ex: 
/dev/rfcomm0

After run ./spp-profile  script will the device file be created in /dev 
directory?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* May be 'bluetoothctl devices' not right?
       [not found]                       ` <480C9E29A742984996B50276401889F36B33E940@msceml521-mbx.china.huawei.com>
  2018-04-25  7:53                         ` Algorithm for create serial connection without rfcomm Проклов Александр Валерьевич
@ 2019-08-01  5:35                         ` Проклов Александр Валерьевич
  2019-08-05  5:09                           ` Проклов Александр Валерьевич
  1 sibling, 1 reply; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2019-08-01  5:35 UTC (permalink / raw)
  To: linux-bluetooth

Hi all,

The 'devices' command 'List available devices' should show all founded 
devices after 'scan on' (all visible paired and unpaired devices?).

Now (git version bluetoothctl) 'devices' command show visible devices 
and all paired devices even if the device is turned off (not available).

May be exclude the display of paired devices that are turned off (not 
available)?

--------------
Best regards,
Aleksandr Proklov

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: May be 'bluetoothctl devices' not right?
  2019-08-01  5:35                         ` May be 'bluetoothctl devices' not right? Проклов Александр Валерьевич
@ 2019-08-05  5:09                           ` Проклов Александр Валерьевич
  0 siblings, 0 replies; 5+ messages in thread
From: Проклов Александр Валерьевич @ 2019-08-05  5:09 UTC (permalink / raw)
  To: linux-bluetooth

Maybe you know the standart method to check availability of the device ?

Now i use l2ping command for this.



01.08.2019 13:35, Проклов Александр Валерьевич пишет:
> Hi all,
>
> The 'devices' command 'List available devices' should show all founded
> devices after 'scan on' (all visible paired and unpaired devices?).
>
> Now (git version bluetoothctl) 'devices' command show visible devices
> and all paired devices even if the device is turned off (not available).
>
> May be exclude the display of paired devices that are turned off (not
> available)?
>
> --------------
> Best regards,
> Aleksandr Proklov


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <000301d347db$df1dd300$9d597900$@com>
     [not found] ` <6B2D6FC09217DA4280D35175FA16A620688418CA@msceml521-mbx.china.huawei.com>
     [not found]   ` <457BA4F48509464E9000537839AF501857261694@msceml521-mbx.china.huawei.com>
     [not found]     ` <59E7EBF9.3050705@zabzd.ru>
     [not found]       ` <457BA4F48509464E9000537839AF501857261990@msceml521-mbx.china.huawei.com>
     [not found]         ` <7CC793D56C5DD04ABFAFBF59EB0D4A3650F1DDAB@msceml522-mbx.china.huawei.com>
     [not found]           ` <59E946F9.1060501@zabzd.ru>
     [not found]             ` <7CC793D56C5DD04ABFAFBF59EB0D4A3650F1E01D@msceml522-mbx.china.huawei.com>
     [not found]               ` <59ED2E3D.7030809@zabzd.ru>
     [not found]                 ` <7CC793D56C5DD04ABFAFBF59EB0D4A3650F1E6D0@msceml522-mbx.china.huawei.com>
     [not found]                   ` <59F92B55.0@zabzd.ru>
     [not found]                     ` <7CC793D56C5DD04ABFAFBF59EB0D4A3650F23FDB@msceml522-mbx.china.huawei.com>
     [not found]                       ` <480C9E29A742984996B50276401889F36B33E940@msceml521-mbx.china.huawei.com>
2018-04-25  7:53                         ` Algorithm for create serial connection without rfcomm Проклов Александр Валерьевич
     [not found]                           ` <CAAu3APYXpqO77M0AhAVD-EnOapXAOXsAD4e26x5ULTVCxfSreg@mail.gmail.com>
2018-04-27  5:56                             ` Проклов Александр Валерьевич
2018-04-28  3:28                             ` Проклов Александр Валерьевич
2019-08-01  5:35                         ` May be 'bluetoothctl devices' not right? Проклов Александр Валерьевич
2019-08-05  5:09                           ` Проклов Александр Валерьевич

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org linux-bluetooth@archiver.kernel.org
	public-inbox-index linux-bluetooth


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/ public-inbox