Hello
Im looking to control the SSC-32 remotely over a network connection and the web based stuff out there is not as powerful as I need and I dont have time to learn a new programming language. I know Girder somewhat and started messing around with the Serial send scripting. Has anyone used Girder to contrl a ssc-32 board? Thanks!
I got it to work for those who care…
Set new device in plugins to serial. Made a lua file with the following settings now Im off to work with Netremote to send variables to Girder to control the servos.
local Super = serial.Classes.Simple
local device = Super:New({
Name = “SSC32”,
GlobalName = “ssc-32”,
Description = “Lynxmotion SSC-32”,
LogLevel = false,-- change this to false when the device is working
BaudRate = 115200,
Parity = N,
DataBits = 8,
StopBits = 1,
FlowControl = ‘N’,
CallbackType = serial.CB_TERMINATED,
ReceiveTerminator = ‘\r’,
SendStartByte = ‘’,
SendTerminator = ‘\r’,
IncompleteResponseTimeout = 100,
NoResponseTimeout = 1000,
Initialize = function(self)
if Super.Initialize(self) then
– add your own initializations here
self.Status = ‘Initialized’
return true
end
end,
ReceiveResponse = function(self, data, code)
if math.band(code, serial.RXCHAR) then
– add code here to process the data parameter
end
Super.ReceiveResponse(self, data, code) – must call the parent’s ReceiveResponse
end,
})
serial.AddDevice(device)