Skip to content

Commit

Permalink
Merge pull request #1 from docbender/net6
Browse files Browse the repository at this point in the history
Net6
  • Loading branch information
docbender authored Mar 20, 2022
2 parents 5c7ce69 + d6e29be commit a22ecca
Show file tree
Hide file tree
Showing 13 changed files with 2,091 additions and 1,982 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
/SerialMonitor.suo
/SerialMonitor/bin/Release
/SerialMonitor/obj/Release
.vs
bin
obj
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# SerialMonitor
Program is simple piece of software designed for serial port data monitoring together with the possibility to automatically reply to sender.

[![Version](https://img.shields.io/github/v/release/docbender/SerialMonitor?include_prereleases)](https://github.com/docbender/SerialMonitor/releases)
[![Download](https://img.shields.io/github/downloads/docbender/SerialMonitor/total.svg)](https://github.com/docbender/SerialMonitor/releases)
[![Issues](https://img.shields.io/github/issues/docbender/SerialMonitor)](https://github.com/docbender/SerialMonitor/issues)

Time between received data messages is displayed (in miliseconds). In addition to the printing on the screen it allows write everything (or just communication) to a specified file.

Windows and also Linux are supported. Program isn't serial port sniffer so can't monitor port that is already open by another program. Program is written in C# so .NET (version 2.0) or Mono is necessary.
Program requires .NET6. Program is running under Windows and Linux. Program isn't serial port sniffer so can't monitor port that is already open by another program.

![](https://github.com/docbender/SerialMonitor/blob/master/img/SM1.png)
![](https://github.com/docbender/SerialMonitor/blob/master/img/SM3.png)

Program has also feature that allows answer to sender for specific message. This could be used for simple simulation of some device. To use this feature it is necessary to prepare file with pairs ask/answer. In file first(odd) line represent ask and second(even) line answer. File can contain several pairs ask/answer which can be separated by empty lines (not necessary). File example:

Expand All @@ -30,10 +34,13 @@ Switches:
* -parity {used parity}: set used port parity. Default none. Available parameters odd, even, mark and space.
* -databits {used databits}: set data bits count. Default 8 data bits.
* -stopbits {used stopbits}: set stop bits count. Default 1 stop bit. Available parameters 0, 1, 1.5 and 2.
* -repeatfile {file name}: enable repeat mode with protocol specified in file
* -logfile {file name}: set file name for log into that file
* -logincomingonly: log into file would be only incoming data
* -showascii: communication would be show in ASCII format (otherwise HEX is used)
* -repeatfile {file name}: enable repeat mode with protocol specified in file.
* -logfile {file name}: set file name for log into that file.
* -logincomingonly: log into file would be only incoming data.
* -showascii: communication would be show in ASCII format (otherwise HEX is used).
* -notime: time information about incoming data would not be printed.
* -gaptolerance {time gap in ms}: messages received within specified time gap will be printed together.
* -nogui: start program in normal console mode (scrolling list). Not with text GUI.

Example:

Expand All @@ -43,6 +50,5 @@ Example:
serialmonitor COM83 -baudrate 19200 -repeatfile protocol.txt

In program commands can be typed:
* exit or ^C: program exit
* exit: program exit
* send {data to send}: send specified data (in HEX format if data start with 0x otherwise ASCII is send)

11 changes: 8 additions & 3 deletions SerialMonitor.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SerialMonitor", "SerialMonitor\SerialMonitor.csproj", "{019A06E0-C535-488C-AACF-E2A0E1A26861}"
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32112.339
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SerialMonitor", "SerialMonitor\SerialMonitor.csproj", "{019A06E0-C535-488C-AACF-E2A0E1A26861}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -17,4 +19,7 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0EB2695A-E2CB-4290-9B63-F93C61AA527E}
EndGlobalSection
EndGlobal
Loading

0 comments on commit a22ecca

Please sign in to comment.