[Gambas-user] Gambas Scripting Problem

Benoit Minisini gambas at ...1...
Tue Sep 16 10:16:41 CEST 2008


On mardi 16 septembre 2008, Arief Bayu Purwanto wrote:
> Dear All,
>
> Currently, I'm trying to connect to a GSM modem on server. This is a
> headless server, so there's no way for me to access it's GUI. All I have is
> console:(.
>
> For this purpose, I'm trying to test serial port example:
>
> -----------------' Gambas module file
>
> DIM Sport AS NEW SerialPort
>
> Sport.Speed = "115200"
> Sport.PortName = "/dev/ttyUSB0"
> Sport.Parity = 0
> Sport.DataBits = "8"
> Sport.StopBits = "1"
> ' keep DTR on
> Sport.FlowControl = 0
> Sport.Open()
>
>
> PRINT Sport.DSR
> PRINT Sport.DTR
> PRINT Sport.CTS
> PRINT Sport.RTS
> PRINT Sport.DCD
> PRINT Sport.RNG
> ------------
> But, when I run it on console, all i've got is this error:
>
> silent at ...1976...:~/latihan$ gbs2 gbserial.gbs
> CComponent.CalcSortKey.175: #13: Null object
> 0: CComponent.CalcSortKey.175
> 1: CComponent.SortComponents.205
> 2: CComponent._init.124
> 3: MMain.MakeVirtualProject.151
> 4: MMain.Main.61
>
> Someone has a solution or some heads up to some resource?
> Any help appreciated,
> thank you.

Please post your script file.

Regards,

-- 
Benoit Minisini




More information about the User mailing list