Commit Graph

13 Commits

Author SHA1 Message Date
Oliver Schmidt
d810db6f49 Don't assert on communication error.
The serial communication is for sure to be considered an "external interface". Errors on external interfaces are not to be handled with an assert.
2018-02-14 21:30:09 +01:00
Oliver Schmidt
a97458f07c Declared missing shutdown logic as unproblematic.
The only thing a shutdown logic would do is to clean up the very resources the OS cleans up anyway when interrupting the process. So I just don't see the point in the complexity of a signal handler (and SetConsoleCtrlHandler on Windows).
2018-02-14 21:22:16 +01:00
Oliver Schmidt
beb202aeac Added baud rate option.
Interestingly libserialport doesn't complain about any weird value. So there's nothing to validate.

Surprisingly Windows doesn't complain about any weird value! So even the sp_set_config() succeeds!
2018-02-14 21:18:24 +01:00
Oliver Schmidt
610c00cd48 Fixed Linux build. 2018-02-12 23:37:58 +01:00
Oliver Schmidt
ae320c2ca4 Several minor cleanups. 2018-02-05 13:28:31 +01:00
Oliver Schmidt
65cf9087bf Refined serial port selection.
So far up to two ports with the substring "usbserial" in their name were used. This was pretty platform specific and didn't allow to use non-USB ports at all.

Now if the -p option is given its value is used as substring as "usbserial" was used before. However if no -p option is given than up to two USB-backed ports are used.
2018-02-04 23:16:11 +01:00
Oliver Schmidt
e575578fd0 Verbose output uses zero-based indices. 2018-02-04 22:35:04 +01:00
Oliver Schmidt
e281c0061b Just some source code style cleanup. 2018-02-04 20:57:30 +01:00
Oliver Schmidt
413bfd6b96 Added check for success of file operations.
Note: As the drive 2 disk image filename is optional all access to drive 2 should trigger an I/O error on the client side.
2018-02-04 20:17:23 +01:00
Oliver Schmidt
9fd4088746 Added command line parsing (incl. printing usage). 2018-02-04 18:39:55 +01:00
Oliver Schmidt
21dbb3da3d Added check for at least one valid port. 2018-02-04 17:29:51 +01:00
Oliver Schmidt
7f8f314ec6 Current xHDServer source code.
Incompatible protocol change.
2018-01-26 21:58:36 +01:00
Oliver Schmidt
ae02f720cf Initial commit of xHDServer source code.
Depends on https://sigrok.org/wiki/Libserialport
2018-01-26 21:53:37 +01:00