From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6669365c0705150929t7e2c79b5o9f4e908ae50cc79e@mail.gmail.com> Date: Tue, 15 May 2007 16:29:19 +0000 From: "Daniel Ribeiro" To: "BlueZ development" In-Reply-To: <1179243101.10069.23.camel@violet> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4589_14163902.1179246559295" References: <6669365c0705150801g1868b3c4v40c59eba01e6e832@mail.gmail.com> <1179243101.10069.23.camel@violet> Subject: Re: [Bluez-devel] BCM2035 on UART at speeds higher than 230400 Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net ------=_Part_4589_14163902.1179246559295 Content-Type: multipart/alternative; boundary="----=_Part_4590_17570921.1179246559295" ------=_Part_4590_17570921.1179246559295 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/5/15, Marcel Holtmann : > > post your patch and I will integrate it. > Here it is. Thank you Marcel. -- EOF Daniel Ribeiro ------=_Part_4590_17570921.1179246559295 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/5/15, Marcel Holtmann <marcel@holtmann.org>:
post your patch and I will integrate it.

Here it is. Thank you Marcel.

--
EOF

Daniel Ribeiro ------=_Part_4590_17570921.1179246559295-- ------=_Part_4589_14163902.1179246559295 Content-Type: text/x-patch; name=bluez-bcm2035.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_f1qedw96 Content-Disposition: attachment; filename="bluez-bcm2035.patch" VGhpcyBjb3JyZWN0cyBiYXVyYXRlIHBhcmFtZXRlcnMgZm9yIGJjbTIwMzUgY29ubmVjdGVkIHZp YSB1YXJ0IGFuZCBhZGRzCnN1cHBvcnQgZm9yIHNldHRpbmcgdGhlIGJkYWR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G9uIiwgMHgwMjc5LCAweDk1MGIsIEhDSV9V QVJUX0JDU1AsIDExNTIwMCwgMTE1MjAwLCAwLCAgICAgICAgTlVMTCwgYmNzcCAgICAgfSwKIAog CS8qIEJyb2FkY29tIEJDTTIwMzUgKi8KLQl7ICJiY20yMDM1IiwgICAgMHgwQTVDLCAweDIwMzUs IEhDSV9VQVJUX0g0LCAgIDExNTIwMCwgMTE1MjAwLCAwLCAgICAgICAgTlVMTCwgYmNtMjAzNSAg fSwKKwl7ICJiY20yMDM1IiwgICAgMHgwQTVDLCAweDIwMzUsIEhDSV9VQVJUX0g0LCAgIDExNTIw MCwgNDYwODAwLCBGTE9XX0NUTCwgTlVMTCwgYmNtMjAzNSAgfSwKIAogCXsgTlVMTCwgMCB9CiB9 Owo= ------=_Part_4589_14163902.1179246559295 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ------=_Part_4589_14163902.1179246559295 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel ------=_Part_4589_14163902.1179246559295-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <6669365c0705150801g1868b3c4v40c59eba01e6e832@mail.gmail.com> References: <6669365c0705150801g1868b3c4v40c59eba01e6e832@mail.gmail.com> Date: Tue, 15 May 2007 17:31:41 +0200 Message-Id: <1179243101.10069.23.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] BCM2035 on UART at speeds higher than 230400 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 Hi Daniel, > I am working on bluetooth support for the Motorola EZX platform > (a780/e680 phones) and i am unable to hciattach bcm2035 at baud rates > higher than 230400. > > I reverse engineered the original firmware and found that it uses a > different argument to the hci command that sets the baud rate when > setting 460800 and 921600, i have changed hciattach.c and it works at > full speed for me now. > > What i want to know is if anyone is using this chip at rates higher > than 230400 before submiting my patch, so it doesnt break anyone else > work. Currently i know that the EZX platform and most Palm handhelds > use this chip on the UART port. My patch works for EZX and i am > waiting feedback from the hackndev guys about the palms. > > My patch also adds support for setting the bdaddr on chip init, > otherwise this chip gets 00:00:00:00:00:00. post your patch and I will integrate it. Regards Marcel ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6669365c0705150801g1868b3c4v40c59eba01e6e832@mail.gmail.com> Date: Tue, 15 May 2007 15:01:09 +0000 From: "Daniel Ribeiro" To: bluez-devel@lists.sourceforge.net MIME-Version: 1.0 Subject: [Bluez-devel] BCM2035 on UART at speeds higher than 230400 Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0554340765==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0554340765== Content-Type: multipart/alternative; boundary="----=_Part_2909_16183326.1179241269301" ------=_Part_2909_16183326.1179241269301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all. I am working on bluetooth support for the Motorola EZX platform (a780/e680 phones) and i am unable to hciattach bcm2035 at baud rates higher than 230400. I reverse engineered the original firmware and found that it uses a different argument to the hci command that sets the baud rate when setting 460800 and 921600, i have changed hciattach.c and it works at full speed for me now. What i want to know is if anyone is using this chip at rates higher than 230400 before submiting my patch, so it doesnt break anyone else work. Currently i know that the EZX platform and most Palm handhelds use this chip on the UART port. My patch works for EZX and i am waiting feedback from the hackndev guys about the palms. My patch also adds support for setting the bdaddr on chip init, otherwise this chip gets 00:00:00:00:00:00. Thank you in advance. -- EOF Daniel Ribeiro ------=_Part_2909_16183326.1179241269301 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all.

I am working on bluetooth support for the Motorola EZX platform (a780/e680 phones) and i am unable to hciattach bcm2035 at baud rates higher than 230400.

I reverse engineered the original firmware and found that it uses a different argument to the hci command that sets the baud rate when setting 460800 and 921600, i have changed hciattach.c and it works at full speed for me now.

What i want to know is if anyone is using this chip at rates higher than 230400 before submiting my patch, so it doesnt break anyone else work. Currently i know that the EZX platform and most Palm handhelds use this chip on the UART port. My patch works for EZX and i am waiting feedback from the hackndev guys about the palms.

My patch also adds support for setting the bdaddr on chip init, otherwise this chip gets 00:00:00:00:00:00.

Thank you in advance.

--
EOF

Daniel Ribeiro ------=_Part_2909_16183326.1179241269301-- --===============0554340765== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============0554340765== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0554340765==--