[Gambas-user] Gambas Scripting Problem

Arief Bayu Purwanto ariefbayu at ...626...
Tue Sep 16 10:04:50 CEST 2008


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.
-- 
Arief Bayu Purwanto
About : http://about.freelancer.web.id/
Blog : http://bayu.freelancer.web.id/



More information about the User mailing list