Sony Ericsson K300i AT commands in Linux
I am always interested in using unconventional methods to control the mobile phone using linux. I found that the AT commands has immense potential to control the functioning of my K300i mobile. We can make phone calls, invoke apps and java applications in the phone, change the profile , enable or disable certain features like silent mode, read & send sms…… I have downloaded the AT commands list from http://developer.sonyericsson.com/getDocument.do?docId=65054 Now to send the AT commands, I need a terminal connection to phone. I love minicom, best terminal emulator in Linux. After connecting the k300i phone to the usb of the system using it’s usb cable, dmesg : usb 2-2: new full speed USB device using uhci_hcd and address 2 usb 2-2: configuration #1 chosen from 1 choice usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial support registered for generic usbcore: registered new driver usbserial_generic drivers/usb/serial/usb-serial.c: USB Serial Driver core drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303 pl2303 2-2:1.0: pl2303 converter detected usb 2-2: pl2303 converter now attached to ttyUSB0 usbcore: registered new driver pl2303 drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver Hmm .. the serial device is ttyUSB0… Then this should be the serial port setup in minicom : /dev/ttyUSB0 57600 8N1 Ok then I have configured minicom and logged on to K300i.. to check whether it is success or not , ATI K300 series OK It is OK.. or more than ok :).. the AT commads are working
Then some more AT commands to test know more about it… Modifying the profile to enable alerts : AT+CVIB? +CVIB: 16 OK AT+CVIB=? +CVIB: (0-1,16) OK AT+CVIB=1 OK Profile Updated: HOME Modified … splashed on screen
Showing the default language AT*ELAN? *ELAN: “en” Executing Java Apps T*EJAVA=? *EJAVA: 1 *EJAVA: 2,(1-4294967295) *EJAVA: 3,120 *EJAVA: 4,(1-4294967295) 0 Run a java application. The search path to the application must be provided in . 1 List installed java applications. No value on needed. 2 Delete a java application. The object id of the application must be provided in . 3 Install a java application. The search path to the application must be provided in . 4 Run an installed java application. The object id of the application must be provided in . *EJAVA: “Alert”,”Sun Microsystems, Inc.”,”1.0″,524298,10 *EJAVA: “Audio Player”,”Sun Microsystems, Inc.”,”2.0″,65542,6 *EJAVA: “Bouncing Ball”,”Sun Microsystems, Inc.”,”2.0″,196614,6 *EJAVA: “ChoiceGroup”,”Sun Microsystems, Inc.”,”1.0″,458762,10 *EJAVA: “Colors”,”Sun Microsystems, Inc.”,”2.0″,65541,5 *EJAVA: “Converter”,”Sony Ericsson”,”2.1.6″,65537,1 *EJAVA: “CustomItem”,”Sun Microsystems, Inc.”,”1.0″,65546,10 *EJAVA: “Darts”,”Sony Ericsson”,”0.0.3″,65538,2 *EJAVA: “Datagram Demo”,”Sun Microsystems, Inc.”,”1.0″,131083,11 *EJAVA: “DateField”,”Sun Microsystems, Inc.”,”1.0″,196618,10 *EJAVA: “FiveStones”,”Sony Ericsson Mobile Communications AB”,”1.2″,65539,3 *EJAVA: “FontTestlet”,”Sun Microsystems, Inc.”,”2.0″,327685,5 *EJAVA: “Gauge”,”Sun Microsystems, Inc.”,”1.0″,589834,10 *EJAVA: “HelloMIDlet”,”Vendor”,”1.0″,65548,12 *EJAVA: “Http”,”Sun Microsystems, Inc.”,”2.0″,393221,5 *EJAVA: “List”,”Sun Microsystems, Inc.”,”1.0″,393226,10 *EJAVA: “ManyBalls”,”Sun Microsystems, Inc.”,”2.0″,131077,5 *EJAVA: “Mascot Capsule V3 Demo”,”Hi Corp.”,”2.0″,65543,7 *EJAVA: “Mix Demo”,”Sun Microsystems, Inc.”,”2.0″,131078,6 *EJAVA: “PhotoAlbum”,”Sun Microsystems, Inc.”,”2.0″,65545,9 *EJAVA: “Properties”,”Sun Microsystems, Inc.”,”2.0″,458757,5 *EJAVA: “PushPuzzle”,”Sun Microsystems, Inc.”,”2.0″,131076,4 *EJAVA: “Socket Demo”,”Sun Microsystems, Inc.”,”1.0″,65547,11 *EJAVA: “Start”,”Sony Ericsson Mobile Communications AB”,”2.1.4″,65544,8 *EJAVA: “Stock”,”Sun Microsystems, Inc.”,”2.0″,262149,5 *EJAVA: “StringItem”,”Sun Microsystems, Inc.”,”1.0″,655370,10 *EJAVA: “TextBox”,”Sun Microsystems, Inc.”,”1.0″,327690,10 *EJAVA: “TextField”,”Sun Microsystems, Inc.”,”1.0″,262154,10 *EJAVA: “Ticker”,”Sun Microsystems, Inc.”,”1.0″,131082,10 *EJAVA: “Tickets”,”Sun Microsystems, Inc.”,”2.0″,196613,5 *EJAVA: “TilePuzzle”,”Sun Microsystems, Inc.”,”2.0″,65540,4 *EJAVA: “WormGame”,”Sun Microsystems, Inc.”,”2.0″,196612,4 To execute the Darts game in the mobile , type: AT*EJAVA=4,65538 and viola, I got to see the Darts game start executing in the phone