Return-Path: Message-ID: <41DA46A2.9060801@avantwave.com> From: mike MIME-Version: 1.0 To: bluez-devel@lists.sourceforge.net Subject: Re: [Bluez-devel] rfcomm socket and rfcomm tty References: <41D12158.6020206@avantwave.com> <1104315958.6319.13.camel@notepaq> <41D3600B.8000702@avantwave.com> <1104604967.4253.4.camel@pegasus> <41D8F10B.5050207@avantwave.com> <1104745873.8894.44.camel@pegasus> In-Reply-To: <1104745873.8894.44.camel@pegasus> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net Reply-To: bluez-devel@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ development List-Post: List-Help: List-Subscribe: , List-Archive: Date: Tue, 04 Jan 2005 15:32:50 +0800 Dear Marcel Thanks for explain. Actually, i have tried to connect to Window base computer and test with hyperterminal . my program does success in connection and send out data. But when i try to connect to rfcomm listen in another computer, it comes out a oops. and then my usb dongle halt and need a OS reboot. Do you have any idea on below oops? Thanks for helping ------------[ cut here ]------------ kernel BUG at include/linux/module.h:325! invalid operand: 0000 [#1] CPU: 0 EIP: 0060:[<129d25e1>] Not tainted EFLAGS: 00010246 (2.6.5-1.358) EIP is at rfcomm_session_add+0x73/0x88 [rfcomm] eax: 00000000 ebx: 0e63a984 ecx: 00000000 edx: 11ee5400 esi: 00000002 edi: 0e63a9b0 ebp: 0bda8080 esp: 0e283fa4 ds: 007b es: 007b ss: 0068 Process krfcommd (pid: 1835, threadinfo=0e283000 task=10ee39b0) Stack: 128daba0 0bda8080 0a7e1800 0397c91c 129d3b29 029d91a8 129d84f0 00000000 0e283000 00000000 0e283fde 00000000 129d3f49 00000000 00000000 0000007b 0000007b 129d3ef1 00000000 021041d9 00000000 00000000 00000000 Call Trace: [<129d3b29>] rfcomm_worker+0x10b/0x3a6 [rfcomm] [<129d3f49>] rfcomm_run+0x58/0x6b [rfcomm] [<129d3ef1>] rfcomm_run+0x0/0x6b [rfcomm] [<021041d9>] kernel_thread_helper+0x5/0xb Code: 0f 0b 45 01 ff 5f 9d 12 ff 05 00 89 9d 12 89 d8 5b 5e 5f 5d best regard Mike,Lee Marcel Holtmann wrote: >Hi Mike, > > > >> Is it mean that rfcomm socket can not connect to a rfcomm tty? >> If the answer is yes, Does it mean that all program base on bluez >>should use rfcomm tty to connect to bluetooth Serial Port profile? >> >> > >you can use RFCOMM socket or RFCOMM TTY to connect to the serial port >profile. Nothing matters and actually you can convert a socket into a >TTY if it is needed later. However if you don't need a TTY for legacy >reasons then always use the RFCOMM socket, because this will be much >cleaner and easier. > >Regards > >Marcel > > > > >------------------------------------------------------- >The SF.Net email is sponsored by: Beat the post-holiday blues >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >_______________________________________________ >Bluez-devel mailing list >Bluez-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/bluez-devel > > > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel