<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xor eax, eax &#187; Linux</title>
	<atom:link href="http://navindutta.com/wordpress/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://navindutta.com/wordpress</link>
	<description>Change the world or go home !!</description>
	<lastBuildDate>Sun, 08 Jan 2012 18:45:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing reliance Broadband+ on fedora linux part three</title>
		<link>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-three/</link>
		<comments>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-three/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 19:09:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cherishing Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[My Frankenstein Lab]]></category>
		<category><![CDATA[PunchBag]]></category>
		<category><![CDATA[evdo]]></category>
		<category><![CDATA[reliance]]></category>
		<category><![CDATA[reliance broadband+]]></category>
		<category><![CDATA[usbserial]]></category>
		<category><![CDATA[wvdial]]></category>
		<category><![CDATA[ztemt]]></category>

		<guid isPermaLink="false">http://navindutta.com/wordpress/?p=525</guid>
		<description><![CDATA[Welcome to chapter three of the Reliance Broadband+ installation. We ve done enough to make it work. Now we will iron out the changes and glue the changes to the system so that we dont have to run the flurry of commands over and over again and again.
First of all we will make the usb_modeswitch [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to chapter three of the Reliance Broadband+ installation. We ve done enough to make it work. Now we will iron out the changes and glue the changes to the system so that we dont have to run the flurry of commands over and over again and again.</p>
<p>First of all we will make the usb_modeswitch to do the job automatically everytime the usb is inserted.</p>
<p>You have followed the steps in <a href="http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/" target="_blank">http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/</a></p>
<p>Now lets continue make the usb cdrom to usb modem switch automagic <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .. so all this is will be done when you insert the device in usb<br />
<span style="color: #99cc00;"><br />
#vim /etc/udev/rules.d/70-persistent-cd.rules<br />
</span><br />
Append the following to the end of the file<br />
<span style="color: #99cc00;"><br />
</span><span style="color: #339966;"><span style="color: #99cc00;">ACTION==&#8221;add&#8221;, ATTRS{idVendor}==&#8221;19d2&#8243;, ATTRS{idProduct}==&#8221;fff5&#8243;,<br />
RUN+=&#8221;/usr/bin/usb_modeswitch&#8221;</span><br />
</span><span style="color: #339966;"><span style="color: #99cc00;">ACTION==&#8221;add&#8221;, ATTRS{idVendor}==&#8221;19d2&#8243;, ATTRS{idProduct}==&#8221;fff1&#8243;,<br />
RUN+=&#8221;/sbin/modprobe</span></span><span style="color: #99cc00;"> usbserial vendor=0×19d2 product=0xfff1 maxRSize=12288 maxWSize=8192</span><span style="color: #339966;"><span style="color: #99cc00;">&#8220;</span><br />
</span><br />
Once this has been done run the following and then plug your modem in and run this command to load the newly set rule.</p>
<p><span style="color: #99cc00;">#udevadm control &#8211;reload-rules<br />
</span></p>
<p>Now if you notice you dont have to run the usb_modeswitch everytime you plug in the modem. It is done automagically.. Cool !! <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  aint it? as well as teh modprobe for high speed access.</p>
<p>Everytime you want to connect to the internet you just need to run the command</p>
<p><span style="color: #99cc00;">#wvdial</span></p>
<p>Thats it!!! There you go <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Have fun!!</p>
]]></content:encoded>
			<wfw:commentRss>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-three/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing reliance Broadband+ on fedora linux part two</title>
		<link>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-two/</link>
		<comments>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-two/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:47:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cherishing Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[My Frankenstein Lab]]></category>
		<category><![CDATA[PunchBag]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux kernel]]></category>
		<category><![CDATA[reliance]]></category>
		<category><![CDATA[reliance broadband+]]></category>
		<category><![CDATA[usbserial]]></category>
		<category><![CDATA[zte ac2726]]></category>
		<category><![CDATA[ztemt]]></category>

		<guid isPermaLink="false">http://navindutta.com/wordpress/?p=504</guid>
		<description><![CDATA[Was fairly satisfied with 60kbps speed on average with the Reliance Broadband+ connection using Zte AC2726 modem, when I stumbled upon an article saying the usbserial kernel module isnt designed for high speed access and has a bottleneck which caps the speed to over 60 kpbs on an average.
(You can check how to set it [...]]]></description>
			<content:encoded><![CDATA[<p>Was fairly satisfied with 60kbps speed on average with the Reliance Broadband+ connection using Zte AC2726 modem, when I stumbled upon an article saying the usbserial kernel module isnt designed for high speed access and has a bottleneck which caps the speed to over 60 kpbs on an average.</p>
<p>(You can check how to set it up here at the link below)</p>
<p><a title="Installing Reliance BroadBand+ on linux" href="http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-on/">http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/</a></p>
<p>Hmm&#8230; Not quiet what we want when we pay for 3.1MBpS.. This should be dealt with; but how.</p>
<p>After hours of toil I figured out how to do this. Lets setup the kernel compiling environment. We update our kernel; install kernel source packages and kernel header files for compiling the hacked usbserial kernel module.</p>
<p>(My kernel version was <span style="color: #99cc00;">2.6.27.30-170.2.82.fc10.i686</span>)</p>
<p>Lets do this.</p>
<p><span style="color: #99cc00;">#yum update kernel<br />
#yum install kernel-devel<br />
#yum install kernel-headers</span></p>
<p>After this I tried to build a custom kernel but it kept failing. This was taken care of after I installed the ncurses dependency package for kernel compiling.</p>
<p><span style="color: #99cc00;">#yum install ncurses-devel</span></p>
<p>Okay..after installing ncurses-devel package lets see if we can build the kernel.</p>
<p><span style="color: #99cc00;">#cd /usr/src/kernels/`uname -r`/ &amp;&amp; make menuconfig</span></p>
<p>Yes we can <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  GEE &#8230;YUHOO &#8230; it gives a pretty menu like interface .. so we are ready to build our patched usbserial.ko <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Lets locate the source file</p>
<p><span style="color: #99cc00;">#locate usb-serial.c</span></p>
<p>Output<br />
#########################<br />
/usr/local/bin/ztemtApp/zteusbserial/2.6.27/usb-serial.c<br />
#########################<br />
End Output</p>
<p>Lets copy this file the kernel module compiler directory for usbserial</p>
<p><span style="color: #99cc00;">#cp /usr/local/bin/ztemtApp/zteusbserial/2.6.27/usb-serial.c /usr/src/kernels/`uname -r`/drivers/usb/serial/</span></p>
<p>Make a backup if something goes.</p>
<p><span style="color: #99cc00;">#cp /usr/src/kernels/`unname -r`/drivers/usb/serial/ /home/nick/Desktop/usbserial_emergency_backup</span></p>
<p>Copy the files from the running usbserial module to build directory<br />
<span style="color: #99cc00;">#cp /usr/local/bin/ztemtApp/zteusbserial/2.6.27/* /usr/src/kernels/`uname -r`/drivers/usb/serial/</span></p>
<p>Patch the current usbserial.c with added layer to accomodate highspeed access argumentss</p>
<p>The patch file should be like this<br />
************************************<br />
61a62<br />
&gt; static ushort maxRSize, maxWSize, maxISize;<br />
841a843,844<br />
&gt;         if (buffer_size &lt; maxRSize)<br />
&gt;         buffer_size = maxRSize;<br />
865a869,870<br />
&gt;         if (buffer_size &lt; maxWSize)<br />
&gt;         buffer_size = maxWSize;<br />
891a897,898<br />
&gt;             if (buffer_size &lt; maxISize)<br />
&gt;             buffer_size = maxISize;<br />
1260a1268,1273<br />
&gt; module_param(maxRSize, ushort, 0);<br />
&gt; MODULE_PARM_DESC(maxRSize, &#8220;User specified USB input buffer size&#8221;);<br />
&gt; module_param(maxWSize, ushort, 0);<br />
&gt; MODULE_PARM_DESC(maxWSize, &#8220;User specified USB output buffer size&#8221;);<br />
&gt; module_param(maxISize, ushort, 0);<br />
&gt; MODULE_PARM_DESC(maxISize, &#8220;User specified USB interrupt buffer size&#8221;);<br />
************************************</p>
<p>Or you can download this <a title="usbserial.c patched file" href="http://navindutta.com/attachments/usbserial/usbserial.c" target="_blank">patched file</a><br />
Instead of building the whole kernel, lets just build the usbserial.ko kernel module</p>
<p><span style="color: #99cc00;">#make -C /lib/modules/`uname -r`/build M=/usr/src/kernels/`uname -r`/drivers/usb/serial/</span></p>
<p>Create a backup for the current usbserial.ko</p>
<p><span style="color: #99cc00;">#cp /lib/modules/`uname -r`/kernel/drivers/usb/serial/usbserial.ko /lib/modules/`uname -r`/kernel/drivers/usb/serial/usbserial.ko.backup</span></p>
<p>You will find a ztemt.ko in the /usr/src/kernels/`uname -r`/drivers/usb/serial/</p>
<p>copy this file to /lib/modules/`uname -r`/kernel/drivers/usb/serial/ and rename it to usbserial.ko</p>
<p><span style="color: #99cc00;">#cp /usr/src/kernels/`uname -r`/drivers/usb/serial/ztemt.ko /lib/modules/`uname -r`/kernel/drivers/usb/serial/usbserial.ko</span></p>
<p>Install the new usbserial kernel module like this</p>
<p><span style="color: #99cc00;">#depmod -a</span></p>
<p>Reboot to save changes.</p>
<p><span style="color: #99cc00;">#reboot</span></p>
<p>Now lets modprobe with added parameters</p>
<p><span style="color: #99cc00;">#modprobe usbserial vendor=0&#215;19d2 product=0xfff1 maxRSize=12288 maxWSize=8192;sudo wvdial</span></p>
<p>Enjoy the highspeed access over 250 kbps <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   Depending on the signal strength this goes upto 400kbps. Welcome hack!!</p>
<p>Have fun <img src='http://navindutta.com/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-two/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing reliance Broadband+ on fedora linux part one</title>
		<link>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/</link>
		<comments>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:45:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cherishing Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[My Frankenstein Lab]]></category>
		<category><![CDATA[PunchBag]]></category>
		<category><![CDATA[cdma]]></category>
		<category><![CDATA[evdo]]></category>
		<category><![CDATA[reliance]]></category>
		<category><![CDATA[reliance broadband+]]></category>
		<category><![CDATA[rtt_1x]]></category>
		<category><![CDATA[usbserial]]></category>
		<category><![CDATA[zte ac2726]]></category>
		<category><![CDATA[ztemt]]></category>

		<guid isPermaLink="false">http://navindutta.com/wordpress/?p=500</guid>
		<description><![CDATA[Recently I switched from (Zte MC 315+ )Reliance Netconnect connection to (Zte AC2726 ) Reliance Broadband+ plan. The transition was one of a bloggable experience hence the post.
The new device Zte AC2726 is a usb composite device which means at the same time it emulates as a usb cdrom device as well as usb evdo/cdma_1x(rtt_1x) [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I switched from (Zte MC 315+ )Reliance Netconnect connection to (Zte AC2726 ) Reliance Broadband+ plan. The transition was one of a bloggable experience hence the post.</p>
<p>The new device Zte AC2726 is a usb composite device which means at the same time it emulates as a usb cdrom device as well as usb evdo/cdma_1x(rtt_1x) modem. This is fairly simple to install in Windows Vista without the need of any cd. The device has the windows software listed in it and when plugged in prompts to install the setup needed else runs the application if already installed on the local syste. Quiet amazing.</p>
<p>Now lets put it back to older systems like Windows XP which dont have neccesary drivers for the usb composite device and go bananas trying to figure what it is. I tried updating my drivers through many available softwares Driver Detective, Driver Genius. All of em fail. Some which do recognize it ask for money. After spending Rs. 3500 on the device already. That was a no go. Bad bad support.</p>
<p>Now I wanted to try and make it work on Fedora. So I plugged in the device to see if it recognises it.</p>
<p><span style="color: #99cc00;">#lsusb</span></p>
<p>Output<br />
**********************<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 005 Device 005: ID 19d2:fff5 ONDA Communication S.p.A.<br />
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
**********************<br />
End Output<span style="color: #99cc00;"><br />
#dmesg</span></p>
<p>**********************<br />
Lists no ttyUSBx device but shows it as a cdrom<br />
**********************</p>
<p>Lets make a switch which changes the usb cdrom mode to usb modem mode. For this we require usb_modeswitch. Lets install it.</p>
<p><span style="color: #99cc00;">#yum install usb_modeswitch</span></p>
<p>**********************<br />
usb_modeswitch is installed<br />
**********************</p>
<p>We know what to look for. So lets add these lines in usb_modeswitch.conf and uncommented and comment all other lines.</p>
<p><span style="color: #99cc00;">#vim /etc/usb_modeswitch.conf</span></p>
<p>**********************</p>
<p>########################################################<br />
# ZTE AC2726 (EVDO)<br />
#<br />
# Contributor: Navin Dutta</p>
<p>DefaultVendor=  0&#215;19d2<br />
DefaultProduct= 0xfff5</p>
<p>TargetVendor=   0&#215;19d2<br />
TargetProduct=  0xfff1</p>
<p>MessageEndpoint=0&#215;0a<br />
MessageContent=&#8221;5553424312345678c00000008000069f010000000000000000000000000000&#8243;</p>
<p>**********************</p>
<p>Now lets make it switch.</p>
<p><span style="color: #99cc00;">#usb_modeswitch</span></p>
<p>**********************<br />
Successful&#8230; msg sent<br />
**********************</p>
<p>now lsusb to see if it got changed</p>
<p><span style="color: #99cc00;">#lsusb</span></p>
<p>Output<br />
**********************<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 005 Device 005: ID 19d2:fff1 ONDA Communication S.p.A.<br />
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub<br />
**********************<br />
End Output</p>
<p>Yes it got changed from fff5 to fff1 which means from cdrom to modem mode</p>
<p>Now lets modprobe it</p>
<p><span style="color: #99cc00;">#modprobe usbserial vendor=0&#215;19d2 product=0xfff1</span></p>
<p>Now lsusb or dmesg to see the if it gets detected</p>
<p><span style="color: #99cc00;">#dmesg</span></p>
<p>**********************</p>
<p>usbserial_generic: generic carrier detected<br />
&#8230;..<br />
&#8230;..<br />
**********************</p>
<p>Now put ttyUSB0 in wvdial.conf</p>
<p><span style="color: #99cc00;">#vim /etc/wvdial.conf</span></p>
<p>**********************<br />
[Dialer Defaults]<br />
Modem = /dev/ttyUSB0<br />
Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0<br />
Modem Type = Analog Modem<br />
Phone=#777<br />
Username=9xxxxxxxxx<br />
Init1=ATZ<br />
Password=9xxxxxxxxx<br />
Baud=4608000<br />
PPPP Path= /usr/sbin/pppd<br />
New PPPD= 1<br />
Stupid Mode = 1<br />
Tonline = 0</p>
<p>**********************</p>
<p><span style="color: #99cc00;">#sudo wvdial</span></p>
<p>**********************<br />
Gets connected. Voila!! I get an average speed of over 60kbps. Not bad.<br />
**********************</p>
<p>Check the part two of this article for the kernel module hack for high speed access of over 250 kbps with the same device.</p>
<p><a title="Installing Reliance BroadBand+ on linux" href="http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-two/">http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-two/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://navindutta.com/wordpress/2009/09/installing-reliance-broadband-on-fedora-linux-part-one/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

