August 2006 MSRS Service Samples, e.g. SSC32 & Lynxarm "dsshost node" modules appear to be written only for com1, which is not usable to connect an external serial device on my PC.
How to configure the Services to use Com2? Can't do this change in the Control panel or usual Hardware Properties.
red
-
-
Yes, it seems that adding configuration options has not bubbled to the top of the priority list yet

In the meantime, you can just modify the code and re-compile.
You will find it in the SerialPortConfig class in SSC32State.cs.
Trevor -
Further to my previous posting, it seems that I was wrong. There is
support for an InitialStatePartner in most of the sample code.
What this does is read a saved state file, which is an XML file, from
the store. Unfortunately, the SDK ships without any of these files
and if the service creates one then it writes COM1 (which is the
default) into the config file so it just continues using COM1.
The service probably creates a new saved state file whenever it is
run. (I have not looked in the code you are talking about.) You
need to look in the code to find the filename that is specified in
the InitialStatePartner attribute, then edit the file and change COM1
to something else. If it does not create a state file, add a call to
SaveState(_state) in the code when it has finished initializing.
_state is the name of the service state instance -- you will have to
figure this out from the code too because there does not seem to
be a standard naming convention.
Trevor
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.