Archive

Archive for the ‘Mobile Devices’ Category

USB networking on mobile platforms

April 25, 2010 3 comments

After the dot com bubble the new bubble is surely mobile platforms.  The same trend is getting the hype in ma university where now lot of guys are working on mobile platforms and related technologies. Two of the guys are tease me with a lot of questions accordingly including Mr. Hassaan Masud and Mr. Humanyun Ali Daud.

Symbian:

Nokia network bridge

Which is a J2ME based api and can be downloaded from here. For a complete set of IP related application scan here. If you are a Linux guy then you are well aware of the importance of doing ssh on other machines here you go with a putty (.sis) for you symbian device. GNUBox is an application that let’s you share your machine’s internet with the device using USB.

Other applications repos: [1]

Windows Mobile:

You can connect your Windows mobile 6.0 or higher with you machine by following the following steps. By using the Virtual Machine Network Driver you can enable TCP/IP Networking on the Device Emulator.

Google Android:

Wow! Android is ma love :p the fantastic platform as far as mobile eco-system is concerned. There is one application called ConnecBot an port of linux terminal and a perfect SSH client. here’s an other how-to guide with HTC set.

Apple’s iPhone:


RIM’s Blackbery:


Palm’s WebOS:


OpenMoko’s Freerunner:

This is the world’s first Open source mobile phone both in terms of software and hardware. The USB networking on Openmoko has been well explained on it’s wiki which gives you the real feel of linux in your hands.

Nokia Web Runtime WRT

April 23, 2010 1 comment
Categories: S60 Devices Tags: , , ,

Nokia PC suite on Linux

April 3, 2010 1 comment

Here is ma ma first interaction (officially) with Nokia devices specially with E73.

Following needs to be done while sticking to the Linux distro for humans, yeah you caught me right “Ubuntu”

Task: File synchronization among the phone and linux distro

As we are operating in the open source environment having Nokia phones following issue will be faced as listed hereunder;-

1-      File synchronization with desktop

Nokia is not offering their mobile manager software PC Suite for the Linux operating system we are left with following options;-

1-      Install  PC suite using Crossover (Proprietary version of Wine)

2-      Use card reader to snatch mobile data from external SD card

3-      Alternative native Linux packages for PC suite

Considering the third option regarding alternative PC suite packages on Linux following packages have been identified;-

Series60 Remote Installation

Redhat distro

rpm -i series60*.rpm

yum install PyQt4 pybluez python-matplotlib python-obexftp rpmlib

yum install rpm-libs

Debian distros

sudo dpkg -i series60*.deb

sudo apt-get install python-bluez python-qt4 python-qt4-sql sqlite3 libqt4-sql-sqlite

Applications>Internet>Series60-Remote

Instll package on Mobile phone

Python for S60, Series60-Remote

Testing

Device = E61i

Nokinux installation

Download the tar package

wget http://launchpad.net/nokinux/trunk/0.0.8.5/+download/nokinux-0.0.8.5.tar.gz

Untar the file

tar nokinux-0.0.8.5.tar.gz

Now install the package

sudo ./nokinux-setup install
Nokinux Pre Alpha 0.0.8.5 Setup
Welcome, this script will install Nokinux in your system.

==> Installing dependencies
Choose your distribution:

1. Debian, Ubuntu and derivatives
2. ArchLinux
3. Mandriva ( Experimental )
4. Fedora ( Experimental )
5. Suse ( Experimental )
6. Others

Enter number: 1
* Run APT-GET… Done
./nokinux-setup: line 104: /home/qasim/.nokinux/distro: No such file or directory
Warning: Dependencies install failed. Please install manually these packages:
openobex-apps obexftp obexfs gzip tree

==> Installing languages
* Installing language [it]… Fail

==> Copying necessary files
* Making folders… Done
* Copying files… Done
* Copying launcher… Done

==> Correction Zenity bug (LP: #272083)
* Patching zenity… Fail

<<< Installation failed >>>
Log files saved: /var/log/nokinux-install.log

Install the following packages manually

sudo apt-get install openobex-apps obexftp obexfs gzip tree linux-headers-2.6.31-14 libtsmux0 linux-headers-2.6.31-14-generic

Errors: patch: **** Can’t find file /usr/share/zenity/zenity.glade : No such file or directory

Download the zenity.glade file and place it accordingly

Re run the install command as listed here above;-

==> Correction Zenity bug (LP: #272083)
* Patching zenity… patching file /usr/share/zenity/zenity.glade
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #3 succeeded at 287 (offset -1 lines).
Hunk #4 succeeded at 327 (offset -1 lines).
Hunk #5 succeeded at 450 (offset 25 lines).
Hunk #6 succeeded at 575 (offset 25 lines).
Hunk #7 succeeded at 678 (offset 25 lines).
Hunk #8 succeeded at 801 (offset 25 lines).
Hunk #9 succeeded at 926 (offset 24 lines).
Hunk #10 succeeded at 1062 (offset 24 lines).
Hunk #11 succeeded at 1174 (offset 23 lines).
Done

Installation complete!

Applications>Accessories>Nokinux

Synchronize 🙂

Setting up Android Development Environment on Ubuntu

February 19, 2010 1 comment

# sudo apt-get update && sudo apt-get upgrade
# sudo apt-get install sun-java6-jdk
# apt-get install eclipse
While installing ADT plugin

Cannot complete the install because one or more required items could
not be found.
Software being installed: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404)
Missing requirement: Android Development Tools
0.9.5.v200911191123-20404 (com.android.ide.eclipse.adt.feature.group
0.9.5.v200911191123-20404) requires ‘org.eclipse.wst.xml.ui 0.0.0’ but
it could not be found

“Go to “Help/Install New Software…”

Add http://download.eclipse.org/releases/galileo/ to the update sites
list (strange it’s not installed by default on ubuntu)

>From there, install WST (use the filter box to find the package)

Restart eclipse

Go back to “Help/Install New Software…” and install the Android ADT
as explained on the android website.

Android SDK components
Add Android component as listed here under;-

  • Platform SDK
  • API
  • Documentation

Go to the following menu
Window >Android SDK and AVD Manager>Available Packages.

Categories: Android Tags: ,

How to access your Windows drives from Ubuntu

March 4, 2009 1 comment

If you want to access your NTFS Windows drives follow these instructions:

  1. Make sure you have internet access (see the network icon on the top right)
  2. Open the “Applications” menu and select “Add/Remove…”
  3. In the listbox on the right select: “Show All Available Applications”
  4. Search for “NTFS” and select “NTFS Configuration Tool”. Click OK to install it
  5. Run the configuration tool under Applications > System Tools > NTFS Configuration Tool
  6. Select “Enable write support for internal device”. Click OK to set it up.
  7. Once you reboot you will find your windows disks under /media (you can access that from Places > Computer > File System > media).
Categories: OS: Ubuntu Tags: , ,

openMoko – neo1973

Openmoko™ is an Open Source project under GPL and LGPL license. The aim of Openmoko is to build the world’s first free mobile platform which runs a full X server and can therefore run most X applications. You can install any Openmoko software over the whole range of supported phones, and if you upgrade your phone, you won’t lose that software. Bugs fixed on any phone are fixed on all.

The Neo 1973 (GTA01) from FIC is the first of many phones that Openmoko may be used on. It has now sold out (Feb 08) as you can see at the Openmoko Online Shop. Neo FreeRunner (GTA02) the new generation Openmoko mobile phone is not yet available – press here to get more hardware information. Otherwise, scroll down this page for info on the development status , or you can add your nickname to those interested buying the Neo FreeRunner at Buying Interest List. The Openmoko project is a community that anyone can join, to help design their ideal phone. Please join us in collaborating on the Openmoko project through any of the project resources including this Openmoko wiki. Please see the wiki editing help page for information on making contributions to this wiki. A core team of developers funded by FIC, Inc. leads the project.

To the novice, can start by use introduction page , photos, videos and Openmoko Wiki Official Index Page, to take the overview of Openmoko and wiki. Moreover, the usual Frequently Asked Questions (FAQ) and mailing list pages might be helpful. Developers may find the change log an important resource.

Source: http://wiki.openmoko.org/wiki/Main_Page

Categories: Mobile Devices, OS: Ubuntu

Java Code: Connect and dial using Serial port

April 14, 2008 1 comment

/*
* @(#)SimpleWrite.java 1.12 98/06/25 SMI
*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
* Sun grants you (“Licensee”) a non-exclusive, royalty free, license
* to use, modify and redistribute this software in source and binary
* code form, provided that i) this copyright notice and license appear
* on all copies of the software; and ii) Licensee does not utilize the
* software in a manner which is disparaging to Sun.
*
* This software is provided “AS IS,” without a warranty of any kind.
* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND
* ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY
* LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE
* SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS
* BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES,
* HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING
* OUT OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*
* This software is not designed or intended for use in on-line control
* of aircraft, air traffic, aircraft navigation or aircraft
* communications; or in the design, construction, operation or
* maintenance of any nuclear facility. Licensee represents and
* warrants that it will not use or redistribute the Software for such
* purposes.
*/
import java.io.*;
import java.util.*;
import javax.comm.*;

/**
* Class declaration
*
*
* @author
* @version 1.10, 08/04/00
*/
public class SimpleWrite {
static Enumeration portList;
static CommPortIdentifier portId;
static String messageString = “ATDA +923455935526;\r\n”;
static SerialPort serialPort;
static OutputStream outputStream;
static boolean outputBufferEmptyFlag = false;
/**
* Method declaration
*
*
* @param args
*
* @see
*/
public static void main(String[] args) {
boolean portFound = false;
//String defaultPort = “/dev/term/a”;
String defaultPort = “COM5”;

if (args.length > 0) {
defaultPort = args[0];
}

portList = CommPortIdentifier.getPortIdentifiers();

while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();

if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {

if (portId.getName().equals(defaultPort)) {
System.out.println(“Found port ” + defaultPort);

portFound = true;

try {
serialPort =
(SerialPort) portId.open(“SimpleWrite”, 2000);
} catch (PortInUseException e) {
System.out.println(“Port in use.”);

continue;
}

try {
outputStream = serialPort.getOutputStream();
} catch (IOException e) {}

try {
serialPort.setSerialPortParams(9600,
SerialPort.DATABITS_8,
SerialPort.STOPBITS_1,
SerialPort.PARITY_NONE);
} catch (UnsupportedCommOperationException e) {}

try {
serialPort.notifyOnOutputEmpty(true);
} catch (Exception e) {
System.out.println(“Error setting event notification”);
System.out.println(e.toString());
System.exit(-1);
}
System.out.println( “\nWriting ” + messageString + ” to “+ serialPort.getName());
try {
outputStream.write(messageString.getBytes());
} catch (IOException e) {}

try {
Thread.sleep(2000); // Be sure data is xferred before closing
} catch (Exception e) {}
serialPort.close();
System.exit(1);
}
}
}

if (!portFound) {
System.out.println(“port ” + defaultPort + ” not found.”);
}
}

}

Categories: Java, OS: Windows, SMS Gateway
%d bloggers like this: