Hi,
I have read all info on the generic serial port in the help section, but can't get it to do anything?
As an example
-----------------
If the characters GB are received on the serial port, i then want to open NOTEPAD.exe
Any ideas? as this is all a bit confusing, BUT it looks to a very good piece of software!
Regards,
Gary
Newbie, trying to get generic serial port working?
Gary,
Here's roughly what you need to do. If you need more detail on any of the steps, let me know.
Good luck,
Scott
Here's roughly what you need to do. If you need more detail on any of the steps, let me know.
- Create a Generic Serial Hardware Interface (you've probably already done this).
- Select the COM port that the RS232 equipment is connected to.
- Create a new Hardware Definition for the equipment commands.
- Enter the Command Configuration and setup the Port settings and also any Commands that are to be sent to the equipment.
- Enable the Hardware Interface. Check the error log for any errors.
- Create a new Device Definition. The Device Definition will provide the 'Device' abstraction for the equipment that is used throughout HouseBot. Do this from the main menu (Settings/Configure Generic Serial Port Devices).
- Create a new Device and be sure to give it at least one Property. The Properties that you use depend on the features of the equipment. Essentially, you will map the various values for the Properties into serial commands setup in the Hardware Interface. If you're just interested in receiving data, add a dummy Property (this is a bug that I just fixed).
- Exit the Device Definition configuration and restart HouseBot.
- Create a new Device (File/New Device...) using the Device Definition that you just created. It will appear in the list of Devices.
- When it is added, you will see the Properties that you added, plus a Received Data Property.
- Enable the Device and make sure it is mapped to the Generic Serial Hardware Interface.
- By clicking on the Properties, you can map Property Values to any of the 'Commands' configured in the Hardware Interface. This is not really needed if you are just wanting to receive data.
- You can test the data reception by sending data from the equipment. The Received Data value should change to reflect the data that has been received.
- When that is working, you're most of the way there. All you will need to do now is to...
- Add an Execute Program Device and set it up to start NotePad. Be sure to enable the Device.
- Create a Task that has a condition on the Received Data Property where it is Equal to GB.
- Add an action to the Task to set the Execute Program property of the Execute Program Device to Yes.
Good luck,
Scott