The com port problem isn't my code. After making some changes on my end the com module in flowstone only seems to support up to com 10. We're looking into getting this fixed.
Flowstone has no way of polling the system for a list of active com ports so the only way of do this kind of operation is to check every com in a certain range. Because of this lack of function there is no way, other than sending ver to the SSC-32, to make sure the board hasn't been disconnected after the com had been opened. I however can add a function that displays all available ports much like lynxterm does in addition to the auto connect feature by recording the ports that actually open during the polling process.
I think what you are saying is that Flowstone does not export any way for you as the user of flowstone to get to the underlying system comm objects. There are system APIs that would allow Flowstone to do this. As I mentioned earlier it is easy to do in VB. Here is some code I have in my SimpleTerm VB app that is called when the user clicks on the Comm port drop down list:
Private Sub ComLB_DropDown(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComLB.DropDown
' Show all available COM ports.
For Each sp As String In My.Computer.Ports.SerialPortNames
If Not ComLB.Items.Contains(sp) Then
I do this each time it drops down as there may be new comm ports that are created since the last time... Hopefully maybe you can get the Flowstone developers to add some additional support.
Now if I start up your program and no SSC-32s are currently connected and then I turn it on, does it then find it? Also if I have two SSC-32s connected can I choose which one to talk to?
So if you can not reliably disable the buttons for example to read registers, then the code should be setup to have all reads timeout after some short period of time.
I guess what I am expecting when you say this is a Lynxterm replacement is that it will have all of the functionality of the original Lynxterm plus ...
: OK, I hook up an SSC-32 to my comm port 4 and start up the program and it still shows not connected. I am from time to time seeing the LED on the SSC-32 blinking, so not sure what is happening. Note: I do have a comm3 device that may not work well, so not sure if it is interfering. Also have SSC-32 configured for 115200