Darren,

I have exactly the same setup.  I use Minicom as a front end dialer for
PPPD on an infared link to an I888 cell phone.  Here is a brief on what
my configuration looks like.  This may be a lot more then you need...
;)  I also program in REXX, which yes- is NOT Perl and I suffer the
taunts of co-workers accordingly... :)  Apologies in advance...

My minicom is by default configured for a Sony internal modem.  However,
on the road I use my cell phone.  When I click on the Minicom I888 icon
this REXX script gets executed...

/* program to set up infared, locate phone and copy appropriate config
files */
"clear"
parse value "0 888" with done phone_id /* set some values */
say "-> Starting IR comminucation with Ericsson I888 GSM Phone..."
"killall irmanager 2>/dev/null" /* stop IR support */
"killall irattach 2>/dev/null"
"/usr/sbin/irmanager -d 1" /* start IR support, irattach should
autostart */
call syssleep 1 /* give it a second to start irattach */
call charout ,"   Locating Phone..."
do i=1 by 1 until done /* go forward with Minicom when we know a phone
is present */
   "cp /proc/net/irda/discovery /tmp/phone" /* proc likes this better */
   parse value stream("/tmp/phone","C","QUERY SIZE") with size /*
monitor proc 4 changes */
   if size>23 then do /* 23 chars default if discovery finds nothing */
      /* so, there is something - let's see if it's the phone */
      if wordpos(phone_id,charin("/tmp/phone",1,size))>1 then do /*
phone found */
         say
         "play /usr/local/bin/ir_begin.wav 2>/dev/null &" /* win98
infared sound */
         say "-> Ericsson I888 present, configuring for IR modem!"
         /* do the switcheroo */
         "cp /etc/ppp/i888.rx /etc/ppp/minicom.rx"
         done=1
      end
      else do
         say
         say "-> Ericsson GSM phone not recognized!"
         exit 2
      end
   end
   call syssleep 1
   call charout ,"."
   if i>80 then do
      say 
      say "-> No phone found..."
      exit 1
   end
end
/* "cp /etc/resolv.ibm /etc/resolv.conf" */  /* I mess with this alot...
*/
/* start Minicom with the saved profile Infared, points serial port at
/dev/ircomm */
"/usr/bin/minicom infared"
say "-> Session complete, configuration reset to Internal Modem."
"cp /etc/ppp/modem.rx /etc/ppp/minicom.rx" /* point back at sony
internal modem */
exit 0

Minicom infared profile is configured like this... 

mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk  
x A -    Serial Device      : /dev/ircomm                              
x  
x B - Lockfile Location     : /var/lock                                
x  
x C -   Callin Program      :                                          
x  
x D -  Callout Program      :                                          
x  
x E -    Bps/Par/Bits       : 115200 8N1                               
x  
x F - Hardware Flow Control : No                                       
x  
x G - Software Flow Control : No                                       
x  
x                                                                      
x  
x    Change which setting?                                             
x  
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  

Make sure you have your scripting language of choice configured...

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk  
x A - Download directory :                                             
x  
x B -   Upload directory :                                             
x  
x C -   Script directory :                                             
x  
x D -     Script program : rexx                                        
x  
x E -     Kermit program :                                             
x  
x                                                                      
x  
x    Change which setting?                                             
x  
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj  

In my dialing entry I call minicom.rx, it connects to the ISP, and on
terminition kills minicom.  This file contains...

/**/
say ""
say "Now switching into ppp-mode and terminating minicom..."
say ""
"/usr/sbin/pppd file /etc/ppp/i888.options"
"/usr/bin/killall minicom"

And of course my i888.options file...

/dev/ircomm 115200
defaultroute
noipdefault
name internet.usinet.myuserid
noauth

Hope this has been useful, Art...

Darren Chan wrote:
> 
> Hi all
> 
> I need help here.
> I have a external infrared device which is attach to my com port 1
> (/dev/ttyS0).
> I wanted to communicate with my SH888 handphone using the infrared device.
> However I am not able to do it using minicom and kermit.
> 
> I did a " modprobe irda" and "modprobe irtty"
> and then I did "irattach /dev/ttyS0 -s "
> 
> After that I did "cat /proc/net/irda/discovery"
> 
> it gives :
> IrLMP: Discovery log:
> 
> nickname: SH 888, hint: 0x9104, saddr: 0x44eec0eb, daddr: 0x5833e6ef
> 
> then i configure minicom to set serial at "ircomm0"
> but it seems to hang here...
> 
> I do not know what is wrong....
> Can someone help me?
> 
> I did a "dmesg"
> it gives:
> IrDA (tm) Protocols for Linux-2.2 (Dag Brattli)
> IrDA: Registered device irda0
> IrCOMM protocol (Dag Brattli)
> IrLAP, no activity on link!
> 
> Why is there a Irlap no link?
> I don't understand....
> 
> Please help....
> can mail me at [EMAIL PROTECTED] directly...thx...
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> _______________________________________________
> Linux-IrDA mailing list  -  [EMAIL PROTECTED]
> http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

-- 
Arthur F. Tyde III, CEO, Linuxcare, Inc.
415.354.4878 x234 tel, 415.701.7457 fax
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to