[Gambas-user] Serial port data being changed ????

Ron_1st ronstk at ...239...
Wed Dec 9 00:39:47 CET 2009


On Tuesday 08 December 2009, nospam.nospam.nospam at ...626... wrote:
> Les Hardy wrote:
> > Kadaitcha Man wrote:
> > I first have to figure out if icrnl flaf is a typo or an esoteric
> > command line :)
> >> 
> > Yes, esoteric, makes me feel special. Only a few know about flafs.
> 
> lol
> 
> > Then again, it could just be flag.
> 
> Nah. That'd ruin the whole effect.
> 

LOL

read:
http://forums.realsoftware.com/viewtopic.php?f=8&t=26026

near the end
NO GAMBAS code
----------- 
  dim portname as New String
  portname = "/dev/ttyUSB0"

  #if targetLinux
    dim sh as New Shell
    sh.Execute "stty -F "+ portname +" -icrnl"
  
    while sh.IsRunning
      app.doevents
    wend
  #endif

  dim sp as New SerialPort
  sp.SerialPort = System.SerialPort(portname)
  sp.open

Answer by v-man:
   Post subject: Re: Serial Port on Linux / USB adapters / CR LF issues
   PostPosted: Wed Jan 21, 2009 8:59 am 
   Location: Rheinbach, Germany  
    Wow, thank you for your solution. It works. I cant believe that after years 
    living with this bug someone find a workaround. Great Job.

> ------------------------------------------------------------------------------
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 


Best regards,

Ron_1st

-- 





More information about the User mailing list