debian 13蓝牙文件传输问题

普通用户权限,通过命令行参数/usr/libexec/bluetooth/obexd -a -d -n -r /tmp启动obexd
如果先启动bluetoothd,再启动obexd,会无法注册服务

 60 obexd[11194]: obexd/client/pbap.c:name_acquired() org.bluez appeared
 61 obexd[11194]: obexd/client/pbap.c:register_profile_reply() Profile /org/bluez/obex/0000112e_0000_1000_8000_00805f9b34fb registered
 62 obexd[11194]: Terminating
	[BT5.2 Mouse]> show
Controller 00:1A:7D:DA:71:11 (public)
	Manufacturer: 0x000a (10)
	Version: 0x06 (6)
	Name: pplblog
	Alias: pplblog
	Class: 0x006c0108 (7078152)
	Powered: yes
	PowerState: on
	Discoverable: no
	DiscoverableTimeout: 0x000000b4 (180)
	Pairable: yes
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: SIM Access                (0000112d-0000-1000-8000-00805f9b34fb)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d0552
	Discovering: no
	Roles: central
	Roles: peripheral
Advertising Features:
	ActiveInstances: 0x00 (0)
	SupportedInstances: 0x05 (5)
	SupportedIncludes: tx-power
	SupportedIncludes: appearance
	SupportedIncludes: local-name
	SupportedCapabilities.MaxAdvLen: 0x1f (31)
	SupportedCapabilities.MaxScnRspLen: 0x1f (31)

而先启动obexd,再启动bluetoothd就没问题

 60 obexd[11208]: obexd/client/pbap.c:name_acquired() org.bluez appeared
 61 obexd[11208]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001133_0000_1000_8000_00805f9b34fb registered
 62 obexd[11208]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001132_0000_1000_8000_00805f9b34fb registered
 63 obexd[11208]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001106_0000_1000_8000_00805f9b34fb registered
 64 obexd[11208]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001105_0000_1000_8000_00805f9b34fb registered
 65 obexd[11208]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00005005_0000_1000_8000_0002ee000001 registered
 66 obexd[11208]: obexd/client/pbap.c:register_profile_reply() Profile /org/bluez/obex/0000112e_0000_1000_8000_00805f9b34fb registered
67  obexd[11208]: Terminating

[bluetoothctl]> show
Controller 00:1A:7D:DA:71:11 (public)
	Manufacturer: 0x000a (10)
	Version: 0x06 (6)
	Name: pplblog
	Alias: pplblog
	Class: 0x007c0108 (8126728)
	Powered: yes
	PowerState: on
	Discoverable: no
	DiscoverableTimeout: 0x000000b4 (180)
	Pairable: yes
	UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
	UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
	UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
	UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
	UUID: Vendor specific           (00005005-0000-1000-8000-0002ee000001)
	UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
	UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
	UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
	UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
	UUID: Device Information        (0000180a-0000-1000-8000-00805f9b34fb)
	UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
	UUID: Phonebook Access Client   (0000112e-0000-1000-8000-00805f9b34fb)
	UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
	UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
	UUID: SIM Access                (0000112d-0000-1000-8000-00805f9b34fb)
	UUID: OBEX File Transfer        (00001106-0000-1000-8000-00805f9b34fb)
	Modalias: usb:v1D6Bp0246d0552
	Discovering: no
	Roles: central
	Roles: peripheral
Advertising Features:
	ActiveInstances: 0x00 (0)
	SupportedInstances: 0x05 (5)
	SupportedIncludes: tx-power
	SupportedIncludes: appearance
	SupportedIncludes: local-name
	SupportedCapabilities.MaxAdvLen: 0x1f (31)
	SupportedCapabilities.MaxScnRspLen: 0x1f (31)

是bug吗?

obexd 怎么没说它为什么要退出啊……

因为用Ctrl^C中断了,第一种情况会一直处于服务未注册,但进程不退出的状态