PDA

View Full Version : Log serial receive



Matthew Evans
October 8th, 2012, 05:56 AM
Hi
I am trying to automate conference system using girder.
I have a Life size conference system and its controlled using a rs232 serial connection.
I am sending ascii commands to the life size no problem using the simple send and receive transport component and a Global Cache box.
How can I log the commands that the Life Size is sending back as I need to be able to trigger specific events from the ascii responses.

Ron
October 8th, 2012, 07:23 AM
Have a look at the file called "SimpleSendAndReceive.lua" in the <girder>\luascript\transport\devices directory. It has a function called "OnReceiveData".

If you change


gir.TriggerEvent(Event:GetData(),18)

to


print(Event:GetData())

You should see the replies show up in the Lua Console.

edit: Make sure you then also use the Simple Serial Send and REceive device not the global cache one!