General Serial Plugin

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
Ceesmf
Member
Posts: 4
Joined: Fri Feb 06, 2004 7:31 pm

General Serial Plugin

Post by Ceesmf »

I want to control a serial device (the famous HCS2) with this plugin

In order to update system variables in the HCS2 I need to send a "%" or hex 25 to the HCS

I.m using the general serial pluging

The plugin however treats this character as a special character (to imbed property values in the command) and reports an error (Unknow conversion type )



Anyone with a workaround for this problem (can't change the HCS software)
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

Could you set the string type to 'hex' and just use 25 in place of the %?
Scott
Ceesmf
Member
Posts: 4
Joined: Fri Feb 06, 2004 7:31 pm

Post by Ceesmf »

Thanks for your quick reply Scott , I tried both , but with the same result



btw marvelous piece of software
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

It would be nice if you could use %%, but I didn't think of that when writing the parsing. Other than to somehow pass a '%' in as the Property Value, I don't see a way of doing this.



I'll add it to the V2.0 list, if you want to wait.
Scott
Ceesmf
Member
Posts: 4
Joined: Fri Feb 06, 2004 7:31 pm

Post by Ceesmf »

Thanks again, wonder how you find the time to answer all those questions



Of course i can add a property value to the string, but can't figure out which property value is sent ; I added a new property to the device I created, but how to determine in the string that that value has to be taken



command is invoked via a button
ScottBot
Site Admin
Posts: 2806
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Post by ScottBot »

I don't completely understand your setup to give you exact advice with this. For configuring the Property values and associating them to serial Commands, I can only refer you to the online help for the Serial Device and the Serial Hardware Interface. I've explained it better there than I will be able to here and now.



I hope to have a beta version of the next release out in a couple of weeks. You may have to wait until then. I'll implement using %% to be used for inserting a single %.
Scott
Post Reply