Re: [Gambas-user] serial ports

2015-06-01 Thread Shane
Thanks very much Ron :-) On 01/06/15 22:57, Ron wrote: > Onboard serial ports show themselves as /dev/ttyS0-4, so maybe you can > tighten the filter. > > We prefer to use the /dev/serial/by-id/* links since those don't > change after reboots, where as the normal /dev/tty device do. (with > usb int

Re: [Gambas-user] serial ports

2015-06-01 Thread Ron
Onboard serial ports show themselves as /dev/ttyS0-4, so maybe you can tighten the filter. We prefer to use the /dev/serial/by-id/* links since those don't change after reboots, where as the normal /dev/tty device do. (with usb interfaces) That's why you see extra code to read the links, you can l

Re: [Gambas-user] serial ports

2015-06-01 Thread Shane
ok this works for me "tty[ACM*,USB*]" On 01/06/15 22:20, Shane wrote: > Thanks heaps this is exactly what i wanted. > just one thing i get some 30 odd ttys's and I'm sure there all not > usable serial ports but this is not a problem for me i can just use the > ones with values > also i would have

Re: [Gambas-user] serial ports

2015-06-01 Thread Shane
Thanks heaps this is exactly what i wanted. just one thing i get some 30 odd ttys's and I'm sure there all not usable serial ports but this is not a problem for me i can just use the ones with values also i would have thought that a filter of 'tty[ACM|USB]*' would stop this On 01/06/15 21:55, R

Re: [Gambas-user] serial ports

2015-06-01 Thread Ron
https://domotiga.nl/projects/domotiga/repository/revisions/master/entry/DomotiGa3/.src/Util.module#L218 Where argument are '/dev/', 'tty[ACM|S|USB]*' Regards, Ron. 2015-06-01 13:31 GMT+02:00 Benoît Minisini : > Le 01/06/2015 12:23, Shane a écrit : >> what would be the best way to make a list of

Re: [Gambas-user] serial ports

2015-06-01 Thread Benoît Minisini
Le 01/06/2015 12:23, Shane a écrit : > what would be the best way to make a list of available serial ports in a > gambas program? > > thanks Shane > Does anyone have an idea? ls /dev/lp* maybe? -- Benoît Minisini -- __

Re: [Gambas-user] Serial ports in Gambas

2009-11-24 Thread nando
ambas-user] Serial ports in Gambas > Hi, > > after not being active with Gambas for some time now. I am thinking of > making a program with it. > > I am learning products from http://www.byvac.com especially the BV513, > which is PIC-based microcontroller programmed in basic. &

Re: [Gambas-user] Serial ports in Gambas

2009-11-22 Thread Robert JUHASZ
Hello, In the examples you find one for the serial port: Open Example \ Networking \ SerialPort. It shows the basics. You can send commands from your code (by taking them for example from a textbox filled by the user) with PRINT or WRITE, you can read from the serial port with READ. Regards, Rob

[Gambas-user] Serial ports in Gambas

2009-11-22 Thread Kari Laine
Hi, after not being active with Gambas for some time now. I am thinking of making a program with it. I am learning products from http://www.byvac.com especially the BV513, which is PIC-based microcontroller programmed in basic. The sofware from Byvac is for Windows only. I tried with minicom but