View Full Version : IP Event plugin payload?
Ron
October 13th, 2002, 12:55 PM
This would be possible if I had though of this before, the current ieventc plugin doesn't parse the payload data, if it did you could simple enter [pld#] ( or whatever variable you like) into the plugin payload data box and it would be replaced by actuall contents of the that variable. This would then be placed into [pld2] variable on the receiving computer. ( [pld1] is the ip address of the connecting computer )
Because it is sooo simple to modify the ieventclient to do this here is the updated ieventc.dll plus an example on how to use it
http://www.girder.nl/temp/ieventc.zip
-Ron
Ron
October 13th, 2002, 12:55 PM
In addition to Mark's remarks here is the example file
http://www.girder.nl/temp/Internet_Payload_forwarding.zip
-Ron
Mark F
October 13th, 2002, 12:55 PM
Hi Rick.
Place the file from the .zip above into the plugins\software directory on both machines (HTPC and your machine upstairs (YMU)).
In the HTPC, set up an IEventClient command that is triggered by receiving data from the Theta. In the command, the event string should be a constant (we'll say "Theta Data" for this example) and the payload should be [pld1]. This will pass the serial data to the other machine as the payload data variable [pld2].
On YMU, setup an event triggered by "Theta Data". This will parse the stuff in [pld2] since it is exactly the stuff from the serial plugin's [pld1].
Once the data is parsed, you probably want to send back a command or status or something.
I hope this helps. :)
rickd
October 13th, 2002, 12:55 PM
Ron with the new 3.1.2 with a payload capability on the ip event server/client I was wondering if I could receive the data on my HTPC via the new serial port plugin 3.01 and take pld1 (returned string from a device which is 250 odd bytes long in hex) and make that the payload or simply make variable the payload?
This would enable me to do the manipulation on the received data on my machine upstairs which has a keyboard and montior on it. ie I can do the GMVS stuff and programming on this machine and based on the results pass back an ip event to the machine with the serial devices connected downstairs.
if this is possible an example is nice thanks Rick
rickd
October 13th, 2002, 12:55 PM
Thanks Ron but I don't see the example in there?
Rick
rickd
October 13th, 2002, 12:55 PM
Thanks guys it works a treat cheers rick
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.