Bluetoothverbindung zu handy
-
Hallo!
Also ich habe einen usb bluetooth adapter und ein bluetooth handy. und hatte die idee das handy als fernbedienung für den pc einzusetzen. hab mir dann paar programme runtergeladen aber die sind zum groß teil noch verdammt buggy usw und deswegen wollte ich mich da selbst mal dranhocken und was versuchen.
aber bei mir scheiterts schon gleich am anfang.
wie nehme ich eine verbindung auf?
man hat ja eine bluetooth software und kann so einen virtuellen com port erstellen. alle andern programme benutzen dann immer diesen com port um mit dem handy zu kommunizieren. aber ich weiß nicht ob ich dann da einfach ganz normal von lesen/schreiben kann und das teil als stinknormalen com port benutzen kann. oder muss da irgendetwas besonderes beachtet werden?Ich wär auch so ganz froh wenn ihr mir ein paar links zum thema bluetooth geben könntet und zum com port... cih weiß da hat mal wer ne klasse hier gepostet glaub ich aber ich finds nimmer. -.-'
thx im voraus
.:: w@lly ::.
-
ich glaube mit sockets.

Bluetooth uses the socket function to create a socket for inbound or outbound connections. To create a socket using Bluetooth, use the following settings: The af parameter of the socket function is always AF_BTH for Bluetooth sockets. The type parameter of the socket function is always SOCK_STREAM; SOCK_DGRAM sockets are not supported by Bluetooth. For the protocol parameter, BTHPROTO_RFCOMM is the supported protocol.