Skip to content

Can't connect to my OrangePi Zero 2 #493

Description

@rodrigovaras

Client is a Windows 11 machine
Remote device is an orange pi zero 2 with ubuntu.

Running on device a console app:

tarting Bluetooth RPC service 'BluetoothRpcService'
Service GUID: 7d04d8e6-447e-4a58-b6f2-13991fad34a8
Notification interval: 00:01:00
Address Family: Unknown
Address Byte: 31
Size: 10
Listening for Bluetooth RFCOMM clients. Press Ctrl+C to stop.

On my desktop i run:
Connecting to remote Bluetooth RPC service...
Unhandled exception. System.InvalidOperationException: Bluetooth connect failed with AddressNotAvailable (10049) for BBC596F6B378. A paired link (e.g., 'Connected: yes' in bluetoothctl) does not guarantee an RFCOMM app endpoint is reachable. Check that: (1) the Linux service process is running, (2) service GUID matches, (3) the target is Classic Bluetooth RFCOMM (not BLE-only), and (4) your local adapter supports Classic Bluetooth. Try adding --channel to bypass SDP lookup if the server uses a fixed RFCOMM channel.
---> System.Net.Sockets.SocketException (10049): The requested address is not valid in its context. BBC596F6B378:7d04d8e6-447e-4a58-b6f2-13991fad34a8 (0)
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at InTheHand.Net.Sockets.Win32BluetoothClient.Connect(BluetoothEndPoint remoteEP)
at InTheHand.Net.Sockets.Win32BluetoothClient.Connect(BluetoothAddress address, Guid service)

i have on anothetr terminal the 'bluetoothctl' running and i saw:
[CHG] Device 04:42:1A:49:B4:2D Connected: yes
.. after a couple of seconds:
[CHG] Device 04:42:1A:49:B4:2D Connected: no

That make me believe the initial connection did happen bit somehow the service GUID is not found ?
I run the same code from my phone but there was no error but then the GetStream() call is null

How can I debug this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions