From owner-freebsd-bluetooth@FreeBSD.ORG Fri Apr 20 17:41:30 2007 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BBCB016A402 for ; Fri, 20 Apr 2007 17:41:30 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.freebsd.org (Postfix) with ESMTP id 784D413C43E for ; Fri, 20 Apr 2007 17:41:30 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1045512ana for ; Fri, 20 Apr 2007 10:41:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HfbyJqiqH4p9Q5oV538/OxcYcgS1/BsWVbV/Q9WbD2e9n23cj5ZwlPVPssyWJVf3WvaZrxRXNGHcLSWCJG64O9O8CiNO4MSk3rRjCuj721aIqygW0UDMTsCkP2V35RKawcrbjkHkOH9r1MbXqi2HlRUe9HubwveBe8NCD6TqX0M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nLtdH5Ri0R/BY86j6CiFKEubDY25I3xWjZ/SEM69OCIYeKkWLJFy1awZCIKdP71f/C77qEcr7jvVzdtf5NfJdkBL8Z9F0LO5O9b60hjjSW+cGBalgxsWWytZ5KpkiN+04FakK6gHxGqOgW3BJ6LEJNaGoJpoeLqyQOXBpbuiXZc= Received: by 10.100.121.12 with SMTP id t12mr1872825anc.1177090889452; Fri, 20 Apr 2007 10:41:29 -0700 (PDT) Received: by 10.100.111.18 with HTTP; Fri, 20 Apr 2007 10:41:29 -0700 (PDT) Message-ID: Date: Fri, 20 Apr 2007 10:41:29 -0700 From: "Maksim Yevmenkin" To: "Jack T" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-bluetooth@freebsd.org Subject: Re: ng_btsocket_rfcomm_receive_msc: Got MSC on dlci=18 in invalid state=5 X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Apr 2007 17:41:30 -0000 On 4/20/07, Jack T wrote: > Hi all: As part of my class project, I chose to write a simple > application using the Bluetooth Stack on FreeBSD. > My first task is to generate and receive OBEX messages. > Here is my code, and it does work (I get the correct reply codes > from my Bluetooth cellphone), but each time after my program ends, > the FreeBSD console emits the following 2 messages: > > ng_btsocket_rfcomm_receive_msc: Got MSC on dlci=18 in invalid state=5 > ng_btsocket_rfcomm_receive_dm: Got DM for non-existing dlci=18 > > Could someone point me in the right direction on > where I'm doing wrong? Thank you! there is nothing wrong here. the messages above are just warning messages. basically first one says that your cell phone sent MSC (modem status control) command after rfcomm channel was marked for 'closing' and the last one says DM (disconnect mode) was received ater we closed rfcomm channel. i have seen other bluetooth stacks do the same thing. so it not a problem. i will need to mark those messages as 'info' so they wont show up by default. thanks, max