Author Topic: Comms program funny.....  (Read 23613 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Comms program funny.....
« on: March 25, 2011, 05:38:01 am »
Hi All,

I have written a comms program using C# and modded it for a new board the company I work for has produced I did notice an oddity (the incoming message light flashed on the board) I then ran AGG soft's Advanced Serial Port Monitor and found the character 16C was being sent when the port was closed and to top it all my PC did a proper power off reset which was logged in Event Viewer as a System Error.  I am wondering if this could be due to the board or the comm port on my (elderly) PC.  I dont think its the comm software as I have used this program I wrote with multiple PC in multiple envoirments.  Has anyone ever experienced something similar using AGG Advance Serial Port Monitor 3.85 Build 25?? 

Glenn

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: Comms program funny.....
« Reply #1 on: March 25, 2011, 07:30:22 am »
Update been to http://msdn.microsoft.com/en-us/library/ms681382.aspx to look up error code, now "semaphore is &set cannot be closed"  ??? urm any ideas anyone I always though semaphore went out with radio? anything to do with the handshake lines....
Glenn

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: Comms program funny.....
« Reply #2 on: March 25, 2011, 11:12:22 am »
Mmmm, just had another power/crash it appears as though if you open ASP in spy mode without any other code running it gives the following
#16C [len=2]
<20110325 15:09.14:501 SYS>
Baud rate 9600
<20110325 15:09.14:501 SYS>
RTS on
<20110325 15:09.14:516 SYS>
DTR on
<20110325 15:09.14:516 SYS>
Data bits=8, Stop bits=1, Parity=None
<20110325 15:09.14:532 SYS>
Set chars: Eof=0x00, Error=0x00, Break=0x00, Event=0x00, Xon=0x11, Xoff=0x13
<20110325 15:09.14:532 SYS>
Handflow: ControlHandShake=1, FlowReplace=64, XonLimit=2048, XoffLimit=512
<20110325 15:09.14:548 TX>
#16C [len=2]
<20110325 15:09.14:548 SYS>
COM port is closed

starting at 115200 running down to 9600 it just repeats  help!!
Glenn

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Comms program funny.....
« Reply #3 on: March 25, 2011, 11:48:04 am »
No help from aggsoft?

Jan

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: Comms program funny.....
« Reply #4 on: March 25, 2011, 12:10:48 pm »
Non Yet,  must be a puzzler as I have always found them to quick!

Glenn,
(Yes I did post there incase you were wondering!)

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Comms program funny.....
« Reply #5 on: March 26, 2011, 09:50:20 am »
I have no experience with that monitor, so no suggestions.

Jan