Tuesday, September 15, 2009

Lets see how I started using this device on my Linux distribution (You can follow the same steps to configure this device on any Linux distribution) :
Device : [b]ZTE EV-DO AC8700 800M[/b]
Product Vendor : Qualcomm, Inc.
1) Insert the EvDO device into USB port
2) Check whether the device is getting detected on your system or not. You can issue the following command in console :
#sudo tail -f /var/log/messages
This will result in following messages if the device is detected

Mar 4 09:27:42 techfiz kernel: [ 8251.024000] usb 4-1: configuration #1 chosen from 1 choice
Mar 4 09:27:42 techfiz kernel: [ 8251.028000] usbserial_generic 4-1:1.0: generic converter detected
Mar 4 09:27:42 techfiz kernel: [ 8251.028000] usb 4-1: generic converter now attached to ttyUSB0

In the above lines ttyUSB0 is the device file for your modem. This file gets created automatically if the required modules are available. Else you will see some error messages.
Note :You might face an issue while activating this device on Ubuntu 7.04 and 7.10 as there have made some modifications to the USB serial device mappings. To resolve this issue, edit the file /etc/init.d/mountdevsubfs.sh.
Find the function do_start () and ensure that you have all the following lines.
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

The complete function looks like this

do_start () {
#
# Mount a tmpfs on /dev/shm
#
SHM_OPT=
[ “${SHM_SIZE:=$TMPFS_SIZE}” ] && SHM_OPT=”-osize=$SHM_SIZE”
domount tmpfs shmfs /dev/shm $SHM_OPT

#
# Mount /dev/pts. Create master ptmx node if needed.
#
domount devpts “” /dev/pts -ogid=$TTYGRP,mode=$TTYMODE
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb
}
The above change creates a file called /proc/bus/usb/.usbfs/devices which is missing in the new Ubuntu releases.
After making these changes run /etc/init.d/mountdevsubfs.sh restart at consoel or restart system before continuing with the other steps.
4) Now, your system can easily identify the new USB device which you have inserted into your PC. You can confirm this by running lsusb command.
# lsusb
Bus 005 Device 004: ID 046d:08c6 Logitech, Inc.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 027: ID 05c6:6000 Qualcomm, Inc.
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 413c:8126 Dell Computer Corp.
Bus 002 Device 004: ID 0a5c:4502 Broadcom Corp.
Bus 002 Device 005: ID 0a5c:4503 Broadcom Corp.
Bus 002 Device 002: ID 0a5c:4500 Broadcom Corp.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 004: ID 046d:c50e Logitech, Inc. MX-1000 Cordless Mouse Receiver
Bus 001 Device 001: ID 0000:0000

Here Bus 004 Device 027: ID 05c6:6000 Qualcomm, Inc. is the new device which started showing up for me on my laptop.
5) Your Linux kernel need to know which company’s driver need to be used with device. Most of the new kernels comes with the Qualcomm drivers inbuilt. Else you need to insert the driver module into your kernel.
Run this at the console to activate the module based on the vendor id and product id (You can find them in the previous step ID 05c6:6000. As we need to pass these numbers in hex format, I’m adding 0x).
# modprobe usbserial vendor=0x05c6 product=0x6000
(Goto step 2 and check if your USB device gets detected or not. You can even try replugging your USB device)
PS : You can permanently add this line to ensure that the module gets loaded to your kernel each time you restart your system by adding the following line into /etc/modules
usbserial vendor=0×05c6 product=0×6000
Finally you must get the following output, showing the Vendor name, ID, Device id , Device Bus used by your kernel to interact with the device.
#lsusb -v | grep Qualcomm
Bus 004 Device 022: ID 05c6:6000 Qualcomm, Inc.
idVendor 0×05c6 Qualcomm, Inc.

Now, your Linux PC is capable of creating the device files /dev/ttyUSB0 automatically without any issues.
6) Now its time for us to create the dialup profile. Its so simple with “wvdialconf” command.
#wvdialconf /etc/wvdial.conf
This creates a file called /etc/wvdial.conf with following output :

# wvdialconf /etc/wvdial.conf
Writing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.
Modem Port Scan< *1>: S0 S1 S2 S3
WvModem< *1>: Cannot get information for serial port.
ttyUSB0< *1>: ATQ0 V1 E1 — OK
ttyUSB0< *1>: ATQ0 V1 E1 Z — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0< *1>: Modem Identifier: ATI — Manufacturer: QUALCOMM INCORPORATED
ttyUSB0< *1>: Speed 4800: AT — OK
ttyUSB0< *1>: Speed 9600: AT — OK
ttyUSB0< *1>: Speed 19200: AT — OK
ttyUSB0< *1>: Speed 38400: AT — OK
ttyUSB0< *1>: Speed 57600: AT — OK
ttyUSB0< *1>: Speed 115200: AT — OK
ttyUSB0< *1>: Speed 230400: AT — OK
ttyUSB0< *1>: Speed 460800: AT — OK
ttyUSB0< *1>: Max speed is 460800; that should be safe.
ttyUSB0< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem< *1>: Cannot get information for serial port.
ttyUSB1< *1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB1< *1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB1< *1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
WvModem< *1>: Cannot get information for serial port.
ttyUSB2< *1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB2< *1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB2< *1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
/etc/wvdial.conf: Can’t open ‘/etc/wvdial.conf’ for reading: No such file or directory
/etc/wvdial.conf
: …starting with blank configuration.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

Your /etc/wvdial.conf will have the following entries.
# cat /etc/wvdial.conf
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Username =
Init1 = ATZ
; Password =

Modem = /dev/ttyUSB0
Baud = 460800

Change the target phone no. to #777 and Username and password need to be set to the EVDO number provided by BSNL.
And you require an another magical line added to this file. i.e.
Stupid Mode = 1
More about Stupid Mode (from man pages):
When wvdial is in Stupid Mode, it does not attempt to interpret any prompts from the terminal server. It starts pppd immediately after the modem connects. Apparently there are ISP’s that actually give you a login prompt, but work only if you start PPP, rather than logging in. Go figure. Stupid Mode is (naturally) disabled by default.
Your /etc/wvdial.conf should look like this :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = 22222222
Password = 22222222
Baud = 460800
Stupid Mode = 1

22222222 is just an example id, replace this with your EvDO number.
7) You’re all set to get connected now. just execute the following command again at the console
# wvdial
output :
# wvdial
WvDial< *1>: WvDial: Internet dialer version 1.56
WvModem< *1>: Cannot get information for serial port.
WvDial< *1>: Initializing modem.
WvDial< *1>: Sending: ATZ
WvDial Modem< *1>: ATZ
WvDial Modem< *1>: OK
WvDial< *1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem< *1>: OK
WvDial< *1>: Modem initialized.
WvDial< *1>: Sending: ATDT#777
WvDial< *1>: Waiting for carrier.
WvDial Modem< *1>: ATDT#777
WvDial Modem< *1>: CONNECT
WvDial< *1>: Carrier detected. Starting PPP immediately.
WvDial: Starting pppd at Tue Mar 4 16:26:53 2008
WvDial
: Pid of pppd: 14536
WvDial< *1>: Using interface ppp0
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: local IP address 10.1.0.169
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: remote IP address 10.64.64.64
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: primary DNS address 218.248.240.23
WvDial< *1>: pppd: ��[06][08]��[06][08]
WvDial< *1>: secondary DNS address 218.248.240.135
WvDial< *1>: pppd: ��[06][08]��[06][08]

There should be a smile at your face after looking at it as you’re connected to internet. Start browsing unlimited.
7) To terminate the connection issue CTRL + C command and then remove EvDO device.
Note: If you still love windows, you have a bad news. BSNL does not provide you with the Windows Vista drivers for this device. I haven’t found one so far even for testing it.
You have just hacked into Linux to make a device work. Isn’t it fun.
If you have any questions, don’t hesitate to comment on it. I shall help you understand it better.
Source: http://platonic.techfiz.info/2008/03/04/ha…-evdo-on-linux
Hero Honda Glamour PGM-FI

Hero Honda has launched the fuel-injection model of its 125 cc bike Glamour under the title Hero Honda Glamour FI. The higher-end version will have self-start and disc brakes and will cost Rs 61700 (Price updated in September 2009 in Kerala) . This is the first time that Honda is offering its fuel injection technology on low-end bikes anywhere outside Japan. However, the Hero Honda Glamour FI is not expected to be a runaway hit due to two reasons; one - the price difference with the existing Glamour is just Rs 5,500. Two - The Hero Honda Glamour FI needs unleaded fuel, something that is still not available in large parts of India.

Honda’s Programmed Fuel Injection (PGM-FI) bikes come with better fuel efficiency and are more environment-friendly. The Glamour FI has a more refined design and its engine is integrated with a black color pattern and a unique FI logo. However, Hero Honda is not planning to stop production of the existing Glamour model - at least for now. The Hero Honda chairman said at a press conference that both models of Hero Honda Glamour would co-exist for now. Honda is planning to fit PGM-FI on most of its bikes across the world by the end of 2010 to cut down on emissions.

Hero Honda has piped all others to the post; with the first fuel, injected mass-produced Indian motorcycle, the Glamour. Instrumentation similar in design and layout as on the current Glamour, but the FI gets a digital fuel gauge complete with instantaneous fuel consumption display. We are talking about the very first fuel injected mass produced Indian motorcycle, the Hero Honda Glamour. No, she is not more powerful as the max power and torque figures suggest, and since the company has not gone to town declaring better fuel efficiency, we can only presume there is not much of an improvement.

However, presume we do not. Even though the new avatar of the Glamour shares almost everything with her carbureted twin, a change in fuelling system certainly called for a complete road test, if for nothing else but in hope to shatter the first paragraph pessimism. Styling is identical to the present Glamour complete with that odd-looking front fairing, accommodating knee recesses as part of the fuel tank design and easy to read clocks.

The clocks now sport a digital fuel gauge instead of the analogue one earlier, one that gives you instantaneous fuel consumption. Okay it’s not exactly instantaneous given it runs a 10-second delay, and tells you how much fuel the bike consumed in the previous 10 seconds, but it’s still a great tool for deriving good fuel efficiency. There are sensors on the crank and counter balancer shaft, which help return this data.

She also comes with bank angle sensor, which cuts the fuel supply and ignition in case of a fall. Additionally the Glamour sports a malfunction indicator that lights up if the sensors fail. The cycle parts are identical too. You have a double down tube cradle for a chassis supported on telescopic forks up front and 5-way adjustable coil over shock absorber units coupled to a box section swing arm. The package along with MRF rubber makes it an accomplished handler. Even in the wet, as we found out in the course of this road test. The front does tend to slide when pushed hard but is a characteristic peculiar to damp surfaces. Ride, as we mentioned last month, is among the better ones in the 125 class. It is not wallowy or back-breakingly stiff, but just right to see you through a daily commute.

Engine & Gearbox
Smooth… According to Hero Honda, besides the fuelling system, no other change has been made to the engine. So in place of a carburetor comes Honda’s PGM-FI fuel injection. Honda has managed to slot in the FI unit in almost the same space a carburetor would occupy. The FI unit (inset of injector) takes up as much space as a carburetor, and helps improve fuel economy tremendously. It is a super refined power plants too, this 125.

This is down to the fact that Honda Japan has developed PGM-FI specifically for smaller capacity motorcycles (125cc and less). The system firstly uses downsized parts as compared to FI used in higher capacity motorcycles; in addition, it incorporates more than one module in a compartment. Therefore, you have the ECU and the throttle module together for instance.

PGM-FI essentially controls the fuel injection volume, injection timing, and the ignition timing based on inputs it receives from sensors that detect throttle position, pressure, and temperature of air in the intake manifold, engine temperature as well as the rotation angle of the crank. Further, the ECU employs two ignition maps. One is for conditions with fewer loads or light throttle input intended to return better fuel economy. While the other comes into play when the bike’s revs rise and the throttle is opened completely, either so you have decent grunt every time you open the throttle to get away at traffic signals or while overtaking.

Otherwise the under square 124.8cc engine (a layout preferred for better torque characteristics) is the same. The 9.13PS of power at the crank developed at 7000rpm is identical as is the 10.35Nm of torque. There is no alteration in the power or torque curves either, as was the case with the Unicorn engine when it made its way on to the Achiever. The only difference between the engines though is in the refinement levels. We know by experience that the Super Splendor/Glamour engine is a truly sweet unit, devoid of earth shattering vibrations and as calm, an engine you will encounter, especially at full clip.

The Glamour FI’s engine is even better. Particularly where refinement, smoothness, and vigor are concerned. So much so that where we would be constantly searching for higher gear in most other bikes, we never felt the urge to do so in the FI. For instance, we were in third and doing almost 90kmph, but so stress free was the engine, we completely forgot about 4th. At least until the time we looked at the instantaneous fuel consumption contraption showing we were hurting the planet by eking a little over 52kmpl on a 125.

When we did shift up, it was like running the bike on idle. Smooth… Now that’s the advantage of FI, and yes, better er… make that lesser exhaust emissions too. According to Honda, the system is expected to lower hydrocarbon emissions by almost a third. By the way, I love the way she bounces off the rev limiter too. So car likes! Would buy one just to keep doing that all morning, evening and night. The gearbox is the same four-speed unit with identical ratios for the gears as well as for the primary and secondary. The box is notchy but never leaves you struggling to find the right gear.

Performance & Efficiency
Nope. The performance has not improved exponentially. In fact, it has not improved at all, at least not at bottom and mid range. Given that, Honda designed PGM-FI with a view of improving fuel economy by almost 30 per cent, the outcome is not surprising. The fuel injected Glamour as if her twin takes 3.4 seconds to complete the 0-40kmph run while the 60kmph mark comes up in over seven seconds. She does shave almost a second in the run up to 80kmph taking 14.49 seconds against 15.18sec taken by the carbureted Glamour.

Roll on times again in third and fourth are almost identical with the former requiring 11.02 seconds and 13.98 seconds in third and fourth respectively to complete the 30-70kmph run. The major difference is in the fuel economy of both bikes. The Glamour in any case is the most fuel efficient of the 125s, and now with fuel injection she has moved the bar so high even the 100cc bikes will struggle to match her. The bike returned a phenomenal 95kmpl on our highway run! In the city, the figure dropped to 75.25kmpl but then again its 4kmpl more than the carbureted version. That is reason enough to buy it then, wouldn’t you say?

So there you have it: the first fuel-injected bike in the country does nothing for performance-oriented individuals. It sure will have the penny pinchers swaying to the samba with that exceptional fuel efficiency. However, what about the cost, a good 5,500 bucks more expensive than the carbureted version? Sure, you get one of the most refined two-wheelers in the country. Sure, she is good in the city thanks to her decent low and mid range. Moreover, on the highway, with no vibes to talk about, no matter what rpm besides improved high-end performance, she will certainly make for a desirable companion. But Rs 5,500 more of your hard earned money? That is just too much to ask for plain technology!

Glamour is powered by the same 125 cc Super Splendor engine having bore x stroke of 52.4 mm x 57.8 mm, which produces NINE bhp at 7000 rpm and develops max. 10.35 Nm of Torque at 4000 rpm at a compression ratio of 9.1. The max torque at such low (4000) rpm, and the long-stroke (stroke/bore ratio==1.10) gives this bike excellent Low End characteristics, which means minimum gear changing in city traffic as well as excellent mileage / average in city traffic, even riding double seat. Between these two, apart from different looks, the only apparently visible technical difference is in rear tyre thickness, which is 2.75 in Super Splendor and 3.oo in Glamour, Same as between the 100 cc HH models Splendor and Passion.

One can say that relation between Super Splendor and Glamour is the same as between old Splendor and Passion. Other notable differences between the two are that Glamour has a 13.6-liter fuel tank and 240 mm disc brake, while Super Splendor has a 12-liter tank and a 215 mm disc. My standard fuel economy tests on Super Splendor, riding single seat (my weight=62 kg), using ordinary cheapest green petrol, gave the following results. Since Glamour has the same engine, gears and cycle parts, it will also give the same mileage as above. Difference due to thicker rear tyre and 5 kg heavier weight of Glamour if any, will be negligible.
For more details:
http://www.herohonda.com/glamourPGMfi