From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <5c1c70820711141825g6c9e27ecm51c00272bad6d7fd@mail.gmail.com> Date: Thu, 15 Nov 2007 12:55:52 +1030 From: "Pooyan McSporran" To: bluez-devel@lists.sourceforge.net MIME-Version: 1.0 Subject: [Bluez-devel] Serial server problems Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net (I'm unclear on which list, either bluez-devel or bluez-users, this query should be on. Let me know if I've sent to the wrong list.) I'm trying to write an application using BlueZ which will: - advertise a service, based on SPP (custom UUID, etc) - listen for incoming connections for that service - when an inbound connection is requested, create the connection - send data to/from on the connection I'm having problems trying to work out how to do this using the DBus interface. I've browsed through the Wiki (http://wiki.bluez.org) but all the examples that I've found seem to be from the client perspective, not a server. (Correct me if I'm wrong.) The only server example I found is for the network service, not the serial service. Similarly, the 'test-serial' python script only implements a client. The approximate sequence of actions that I'm currently (unsuccessfully!) using is: - Determine the default adapter (DefaultAdapter()) - add the service (AddServiceRecordFromXML()) - activate the serial service (ActivateService ("serial")) The service is then visible to remote devices (so far so good!) - create a proxy (serial.Manager.CreateProxy (uuid, "/dev/rfcomm0")) This is where I'm obviously missing some basic stuff, I'm not sure in this area (with ports, proxies, etc). Any help that people might have in this regard would be appreciated. Thank you. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel