COM port - Linux

BlitzMax Forums/BlitzMax Programming/COM port - Linux

Yeshu777(Posted 2007) [#1]
Does BMax support wrting and reading to the comport under Linux?

I have Blitz Plus running with portio DLL on Windows but would ideally like this to run on Linux.

Any help greatly appreciated.


Dreamora(Posted 2007) [#2]
If you write yourself a COM Port Stream Class that extends the regular one and use that one, yes.

Not out of the box


Yeshu777(Posted 2007) [#3]
Ok, was hoping there was an existing lib that I could use.

But thanks for the reply.


FlameDuck(Posted 2007) [#4]
Does BMax support wrting and reading to the comport under Linux?
Yes.

Ok, was hoping there was an existing lib that I could use.
On Linux, there are text terminal drivers for all serial ports. Just use OpenStream on any one of the dev/ttySn (where n is the logical number of the serial port you want to access) devices you want to use and it should work out of the box.


Yeshu777(Posted 2007) [#5]
Brilliant, thank you very much.

Guess I'll be purchasing Blitz Max then.


Nigel Brown(Posted 2008) [#6]
try wxCTB with blitzMAX


jhocking(Posted 2008) [#7]
And where does one get that?


Brucey(Posted 2008) [#8]
Nigel's a bit quick on the trigger...

There's some info about wxMax HERE a WIP GUI module for BlitzMax which comes with some other useful additions, like wxCTB, a serial port API.

But it is work-in-progress, so unless you like to dabble with unfinished things, you may want to wait til it gets an official release.


plash(Posted 2008) [#9]
Guess I'll be purchasing Blitz Max then.


BlitzMax is well worth the money.