Hi Devindrappa Handraki, net connection is it working...!!!
On Tue, Jan 17, 2012 at 10:01 PM, Sai Chaitanya Chitneedi < [email protected]> wrote: > Hi Devindrappa, > Either of the attached 4 scripts should work. If you still get error check > the chat log :- /etc/ppp/connect-errors for what the error is. The > syntax mistake was that, the script starts with what to expect and not what > to send. if you are not expecting anything give 2 apostrophes ~ '' in > beginning {or} give /r as what to expect. > > On Tue, Jan 17, 2012 at 9:14 PM, Sai Chaitanya Chitneedi < > [email protected]> wrote: > >> When i see your ppp-log it is expecting "AT" as a response and not as >> what is to be sent. So that's why your chat script is wrong and is failing >> and that's why you are getting error. I will correct the chat script syntax >> and send it to you. >> >> >> On Tue, Jan 17, 2012 at 9:10 PM, Sai Chaitanya Chitneedi < >> [email protected]> wrote: >> >>> And i never used mux. I think it is bcoz venkat is working on the t63i >>> modem and it has a mux feature which gives 3 serial ports. I don't think it >>> applies here. >>> >>> >>> On Tue, Jan 17, 2012 at 9:08 PM, Sai Chaitanya Chitneedi < >>> [email protected]> wrote: >>> >>>> HI devindrappa, >>>> When pppd calls the script it passes these arguments. The comment is to >>>> tell you to pass them if you are invoking this script manually. Note that >>>> this script will be called only after connection is established and first >>>> IP packet is sent. So we are not there yet. The error "Connect Script >>>> Failed" is given by pppd when we use "chat" and it's chat script fails due >>>> to either timeout or if it doesn't get expected response. Could you please >>>> send me this file :- /etc/ppp/connect-errors . It will have more >>>> details about chat error. >>>> Exit code 8 is for unexpected termination. >>>> >>>> >>>> On Tue, Jan 17, 2012 at 8:57 PM, Devindrappa Handraki < >>>> [email protected]> wrote: >>>> >>>>> Hi Chaitanya, >>>>> >>>>> Thanks for your reply, >>>>> >>>>> >>>>> 1. I have one doubt like ip-up-ppp0 will expect below mentioned six >>>>> arguments, from where it will get these argument , do we need to pass to >>>>> it >>>>> or how will it gets can you please help me. >>>>> $1 Interface name ppp0 >>>>> # $2 The tty ttyS1 >>>>> # $3 The link speed 38400 >>>>> # $4 Local IP number 12.34.56.78 >>>>> # $5 Peer IP number 12.34.56.99 >>>>> # $6 Optional ``ipparam'' value foo >>>>> >>>>> 2. Still am not able to access internet, when i run init.gprs-pppd >>>>> script manually i am getting below mentioned error I have attached the >>>>> scrip please look at those script and help me where i am wrong. >>>>> >>>>> I/pppd ( 1401): ######## Starting pppd >>>>> I/pppd ( 1403): ######## pppd additional arguments >>>>> E/pppd ( 1404): Connect script failed >>>>> I/pppd ( 1408): ######### pppd exited with 8 >>>>> >>>>> 3. I don't know the mux concept do we need it to access internet. >>>>> Please help me. >>>>> >>>>> Thanks and Regards >>>>> Devindrapp >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Mon, Jan 16, 2012 at 11:26 PM, Sai Chaitanya Chitneedi < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi Devindrappa, >>>>>> You don't need the other 4 scripts but i will explain anyway- >>>>>> >>>>>> 1. */etc/ppp/options* *:-*This stores the option that we are >>>>>> passing to pppd as arguements like port,baud rate,ppp0,user etc. >>>>>> In the init.gprs-pppd you can see the options as passed directly as >>>>>> arguements so you can skip this. >>>>>> 2. */etc/ppp/chap-secrets :-* Stores authentication info >>>>>> (username and password) if you are using cHAP for authentication. Not >>>>>> using >>>>>> so Igonre >>>>>> 3. */etc/ppp/pap-secrets :-* Stores authentication info if you >>>>>> are using PAP for authentication. Passing noauth option so ignore. >>>>>> 4. */etc/ppp/chatscripts/dialer :*- a Script with which you can >>>>>> dial a number with something like - connect '/etc/pp/dialer >>>>>> 9999999123'. >>>>>> Not necessary. Ignore >>>>>> >>>>>> The idea is distributing the code rather than putting it all in >>>>>> init.rc. >>>>>> You can see the manual page of pppd here :- >>>>>> http://linux.die.net/man/8/pppd for more files it uses. Scroll down >>>>>> and you will see a list of scripts pppd invokes(ip-up-ppp0 and ip-down) >>>>>> if >>>>>> they exist. Below that you will see the files pppd uses with all of the >>>>>> above mentioned files listed there. >>>>>> >>>>>> You don't need to build pppd 2.4.4. Just build the "chat" program >>>>>> from it's sources and push to /system/bin/ .This program is used to >>>>>> do initialization of modem b4 ppp. >>>>>> >>>>>> The chat program then uses a chat script which has the list of at >>>>>> commands it's supposed to send and what response to expect. From the link >>>>>> you followed it expects the chat script for initializing to be at >>>>>> /etc/ppp/chatScripts/connectScript >>>>>> . You can see this at the only NOT commented line of the 4 >>>>>> /system/bin/pppd calls in init.gprs-pppd.This chat script file is >>>>>> not created yet and you need to create it with the commands specific to >>>>>> your modem for initialization b4 a ppp link. Use the chat command's man >>>>>> page i mentioned for writing a chat script.From what venkat suggests for >>>>>> gprs8000 and bsnl network you can simply paste this in your chat script >>>>>> :- >>>>>> >>>>>> *AT * >>>>>> OK >>>>>> *ATE0 * >>>>>> OK >>>>>> *AT+IPR=115200 * >>>>>> OK >>>>>> *AT+CGDCONT=1,\"IP\",\"bsnlnet.com\"* >>>>>> OK >>>>>> *ATD*99#* >>>>>> CONNECT >>>>>> >>>>>> >>>>>> Once again as venkat suggests you can simply pass them directly to >>>>>> chat rather than writing it to a separate script, but doing it in >>>>>> a separate scripts makes modification and managing easier. This script >>>>>> may >>>>>> vary with network as well, especially the APN and the *99# may also be >>>>>> *99***1# for aircel. >>>>>> >>>>>> Finally just edit the pppd script"init.gprs-pppd" to change >>>>>> /dev/ttyUSB0 to /dev/ttyS0 or whatever you are using and the baud rate >>>>>> and >>>>>> other things. >>>>>> >>>>>> On Mon, Jan 16, 2012 at 9:34 PM, Devindrappa Handraki < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> Hi Chaitanya, >>>>>>> >>>>>>> 1. I don't know detail about chat script and ppp script Can you >>>>>>> please tell me detail about chat script and ppp script, >>>>>>> According to below mentioned link a have created three script >>>>>>> init.gprs-pppd, ip-up-ppp0 and p-down-ppp0 but i don't know about >>>>>>> following script. >>>>>>> >>>>>>> - /etc/ppp/options >>>>>>> - /etc/ppp/chap-secrets >>>>>>> - /etc/ppp/pap-secrets >>>>>>> - /etc/ppp/chatscripts/dialer >>>>>>> >>>>>>> >>>>>>> >>>>>>> http://afewe.wordpress.com/android-arm-development/use-point-to-point-protocol-ppp-in-android/ >>>>>>> >>>>>>> 2. Do i need to build ppp 2.4.4 ? please help me. >>>>>>> >>>>>>> Thanks and Regards, >>>>>>> Devindrappa >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Mon, Jan 16, 2012 at 12:31 PM, Devindrappa Handraki < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ---------- Forwarded message ---------- >>>>>>>> From: venkat k raju <[email protected]> >>>>>>>> Date: Mon, Jan 16, 2012 at 12:15 PM >>>>>>>> Subject: Re: [android-porting] Interface GPRS8000 to Devkit8000 >>>>>>>> To: Devindrappa Handraki <[email protected]> >>>>>>>> Cc: android-porting <[email protected]> >>>>>>>> >>>>>>>> >>>>>>>> Hi Devindrappa, >>>>>>>> >>>>>>>> here i am using 2.6.32 kernel,so i am opening /dev/ttyS0. but your >>>>>>>> case is efferent(2.6.37) right !!!!! >>>>>>>> then you have to open ttyO0 in both the case in c program and pppd >>>>>>>> command. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Mon, Jan 16, 2012 at 11:50 AM, venkat k raju < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Hi Devindrappa, >>>>>>>>> >>>>>>>>> Thanks for your response. >>>>>>>>> i have written c application for gprs8000 in devkit8000 >>>>>>>>> contains >>>>>>>>> >>>>>>>>> fd = open("/dev/ttyS0", O_RDWR); >>>>>>>>> init_ttyS(fd); >>>>>>>>> GPRS_Net_Test(fd); >>>>>>>>> here >>>>>>>>> init_ttyS(fd){ >>>>>>>>> struct termios options; >>>>>>>>> >>>>>>>>> bzero(&options, sizeof(options)); /* clear options*/ >>>>>>>>> >>>>>>>>> cfsetispeed(&options,B115200); /* setup baud >>>>>>>>> rate*/ >>>>>>>>> cfsetospeed(&options,B115200); >>>>>>>>> >>>>>>>>> options.c_cflag |= (CRTSCTS | CS8 | CLOCAL | CREAD); >>>>>>>>> options.c_iflag = IGNPAR; >>>>>>>>> >>>>>>>>> tcflush(fd, TCIFLUSH); >>>>>>>>> >>>>>>>>> tcsetattr(fd, TCSANOW, &options); >>>>>>>>> checkstate(fd) >>>>>>>>> >>>>>>>>> } >>>>>>>>> GPRS_Net_Test(int fd){ >>>>>>>>> >>>>>>>>> char *cmd_buf1 = "at+cgatt=1\r"; >>>>>>>>> char *cmd_buf2 = "at+cgdcont=1,\"IP\",\"bsnlnet\"\r"; >>>>>>>>> char *cmd_buf3 = "at+cdnscfg?\r"; >>>>>>>>> >>>>>>>>> write(fd,cmd_buf1,sizeof(cdm_buf1); >>>>>>>>> read response >>>>>>>>> write(fd,cmd_buf2,sizeof(cdm_buf2); >>>>>>>>> read response >>>>>>>>> write(fd,cmd_buf3,sizeof(cdm_buf3); >>>>>>>>> read response >>>>>>>>> >>>>>>>>> } >>>>>>>>> >>>>>>>>> then i build the chat command also, >>>>>>>>> >>>>>>>>> after i typed this command >>>>>>>>> >>>>>>>>> >>>>>>>>> #pppd /dev/ttyS0 115200 asyncmap auth connect 'chat -v "" AT OK >>>>>>>>> ATE0 OK AT+IPR=115200 OK AT+CGDCONT=1,\"IP\",\"bsnlnet.com\" OK >>>>>>>>> ATD*99# CONNECT' nocrtscts defaultroute modem updetach >>>>>>>>> >>>>>>>>> then #logcat >>>>>>>>> >>>>>>>>> set the dns1,and dns2 address . >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Jan 16, 2012 at 11:26 AM, Devindrappa Handraki < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi Venkat, >>>>>>>>>> >>>>>>>>>> Modify the RIL source code according to below mentioned link >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> https://gitorious.org/0xdroid/hardware_ril/commit/ee75708cc786531c853e9ec7ffc28dd03658 >>>>>>>>>> >>>>>>>>>> and build the RIL lib and load the RIL lib as mentioned below >>>>>>>>>> >>>>>>>>>> cd $ANDSOURCES/gingerbread/ >>>>>>>>>> source build/envsetup.sh >>>>>>>>>> make clean >>>>>>>>>> mm libreference-ril TARGET_PRODUCT=beagleboard -j8 >>>>>>>>>> >>>>>>>>>> adb push $GINGER/out/target/product/$PRODUCT/system/lib/libril.so >>>>>>>>>> /system/lib/ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> adb push >>>>>>>>>> $GINGER/out/target/product/$PRODUCT/system/lib/libreference-ril.so >>>>>>>>>> /system/lib/ >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> then start the RIL daemon from init.rc >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> service ril-daemon /system/bin/rild -l >>>>>>>>>> /system/lib/libreference-ril.so -- -d /dev/ttyO0 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> socket rild stream 660 root radio >>>>>>>>>> socket rild-debug stream 660 radio system >>>>>>>>>> user root >>>>>>>>>> group radio cache inet misc audio vpn net_admin >>>>>>>>>> >>>>>>>>>> service pppd_gprs /etc/ppp/init.gprs-pppd.sh >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> user root >>>>>>>>>> group radio cache inet misc >>>>>>>>>> disabled >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> your RIL will work and you will be able to get signal strength, >>>>>>>>>> operator information and able to make call and receive call, but i >>>>>>>>>> am not able to access the Internet still i am exploring about >>>>>>>>>> Internet access. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Can you share me how you able to access the internat without using >>>>>>>>>> RIL, detail about pppd and chat script i am not able to access the >>>>>>>>>> intenet. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Thanks and regards >>>>>>>>>> Deindrappa Handraki >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Sun, Jan 15, 2012 at 4:43 PM, Chaitanya < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> @ Mark, >>>>>>>>>>> For HDMI out you can simply use TMDS serializers from the >>>>>>>>>>> parlallel >>>>>>>>>>> interface of your platform. More to do with hardware rather than >>>>>>>>>>> android porting. Could you please make a new post rather than >>>>>>>>>>> changing >>>>>>>>>>> the subject of a existing post. >>>>>>>>>>> >>>>>>>>>>> On Jan 14, 9:44 pm, "Mark" <[email protected]> wrote: >>>>>>>>>>> > Hello everyone: >>>>>>>>>>> > >>>>>>>>>>> > I am working on development of tvout on MHL and MINI-HDMI on >>>>>>>>>>> the android >>>>>>>>>>> > phone. I could not find information for the SDK or android >>>>>>>>>>> source support >>>>>>>>>>> > for this development. >>>>>>>>>>> > >>>>>>>>>>> > Who can help me to know how to do? >>>>>>>>>>> > >>>>>>>>>>> > Mark.Liu >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> unsubscribe: [email protected] >>>>>>>>>>> website: http://groups.google.com/group/android-porting >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> thanks&Regards >>>>>>>>> k.v.raju >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> thanks&Regards >>>>>>>> k.v.raju >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-porting > -- thanks&Regards k.v.raju -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
