Commit graph

5 commits

Author SHA1 Message Date
Jan Dittberner
80b3309c7c Use better maintained go.bug.st/serial
This commit switches to serial port library to the better maintained
go.bug.st/serial library.
2020-04-17 19:39:06 +02:00
Jan Dittberner
42d1e6e991 Refactor client into separate files
Add a main loop, move I/O code into io.go, move configuration into config.go.
Use shared.Decode24BitLength instead of manually decoding block lengths.
Fix response block decoding and checksum validation.
Add constants for commonly used byte values and use these in the signer and
the client.
2020-04-17 19:39:01 +02:00
Jan Dittberner
65855152ce Implement first client command
The client can now talk to the old Perl signer implementation. Running
socat has been documented in README.md. Commonly used I/O code has been
moved to the shared/io.go file.
2020-04-17 19:38:54 +02:00
Jan Dittberner
5aa557c9aa Move to go modules
Go >= 1.11 has a module system, support for dep has been dropped. This
commit changes the dependency management to go modules.
2020-04-17 19:38:32 +02:00
Jan Dittberner
a89275a8e4 Initial signer rewrite in Go 2018-10-31 11:17:51 +01:00