Originally Posted by JOJO888
Thanks for your help. I was told to use the Generic Serial Device driver to add support for any RS-232 device.You know,by this way,it is one-way control work.If I need get what feed back from serial port how can I make it? Such as a projector,or a Daikin air-condition.thx
If the device sends a fixed string of characters something like OK, READY, etc you can detect that with a Generic Serial Device (GSD).
If the device sends a variable string of characters like VOL=## (where ## could be from 00 to 99) then you could only detect the VOL= part or a specifc value like VOL=00.
To detect a string you first define the same string as you would for sending it.
Then you define a "Code Received" event for that string - you are of course limited to the normal set of actions for such an event.
One thing to point out (at least with the older HomeLogic) if you have, lets say, three different GSDs and each one has, say, a POWER_ON command then when trying to select that string for the event you will see
in the list of strings to choose from. You need of course to select the correct one. To do that you can temporarily change the name (in the GSD of interest) to something else to determine which one to choose.
Or you can give all of the strings for a given device a prefix like TV_ or DVD_ or SAT_. So now you would have:
Perhaps in the newer version the have improved the user interface for this sort of selection.