Sep 23 2009

First (silly, silly, silly) official kernel patch

Today, I got a mail from Greg Kroah-Hartman !!!

Starred from Greg Kroah-Hartman <gregkh@suse.de>
to linux-usb@vger.kernel.org
cc Maxin John <maxin.john@gmail.com>,
“Maxin B. John” <maxinbjohn@gmail.com>,
Greg Kroah-Hartman <gregkh@suse.de>
date Wed, Sep 23, 2009 at 7:25 PM
subject [PATCH 056/142] USB: serial: Spelling correction in Motorola USB Phone driver
hide details 7:25 PM (24 minutes ago)

From: Maxin John <maxin.john@gmail.com>

Spelling correction in Motorola USB Phone driver

Changed: * Mororola should be using the CDC ACM USB spec, but instead
To: * Motorola should be using the CDC ACM USB spec, but instead

Signed-off-by: Maxin B. John <maxinbjohn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

drivers/usb/serial/moto_modem.

c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff –git a/drivers/usb/serial/moto_modem.c b/drivers/usb/serial/moto_modem.c
index b66b71c..99bd00f 100644
— a/drivers/usb/serial/moto_modem.c
+++ b/drivers/usb/serial/moto_modem.c
@@ -8,7 +8,7 @@
*  published by the Free Software Foundation.
*
* {sigh}
- * Mororola should be using the CDC ACM USB spec, but instead
+ * Motorola should be using the CDC ACM USB spec, but instead
* they try to just “do their own thing”…  This driver should handle a
* few phones in which a basic “dumb serial connection” is needed to be
* able to get a connection through to them.

Wow, he has accepted my silly patch. It is now in the linux-next git tree

Link to the patch: moto_modem.c

It was one of my dreams to submit patches to the Linux Kernel (can be anything, just anything).  Now it is true !!!

It’s now in Linux-2.6.32-rc1 tree:


Mar 4 2008

Sending Linus.mp3 to K300i from Linux – The obexftp way

One of the most difficult things that I faced when connecting my Sony Ericsson K300i to the Gnu/Linux box was the difficulty in sending and receiving data from Linux to Mobile and vice versa. Today, I have managed to overcome that difficulty too.. Now my mobile is completely useful… (Atleast from the Gnu/Linux side :) )

First I need the obex installation in my system (Fedora core 6)
For that
yum install openobex

After the installation, connect the mobile phone using usb cable. Now dmesg shows that we have a new device called ‘/dev/ttyUSB0′.

Here are the following steps:

obexftp –tty /dev/ttyUSB0 -c . -l

This gives the following output..

Connecting…done
Sending “.”… failed: .
Receiving “(null)”… <?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE folder-listing SYSTEM “obex-folder-listing.dtd”>
<!–
XML Coder, May 24 2005, 21:06:32, (C) 2001 Sony Ericsson Mobile Communications AB
–>
<folder-listing version=”1.0″><folder name=”Pictures”/>
<folder name=”Sounds”/>
<folder name=”Themes”/>
<folder name=”Videos”/>
<folder name=”Other”/>
</folder-listing>
done
Disconnecting…done

Then download the Linus torvald’s voice

wget http://www.paul.sladen.org/pronunciation/torvalds-says-linux.mp3

Now push the mp3 to the mobile phone

obexftp –tty /dev/ttyUSB0 -p ./torvalds-says-linux.mp3 Sounds/linux.mp3

After about 5 seconds, your phone will prompt you to save the mp3 to phone memory. Now play the torvalds-says-linux.mp3
 
Now you have the voice of Linus in your mobile….. Cheers.. Wink


Get Adobe Flash playerPlugin by wpburn.com wordpress themes