{"id":25218102,"url":"https://github.com/foldl/kissuart","last_synced_at":"2026-04-29T00:35:16.126Z","repository":{"id":17670959,"uuid":"20475698","full_name":"foldl/KissUART","owner":"foldl","description":"A serial port terminal (for Windows) based on KISS principle","archived":false,"fork":false,"pushed_at":"2022-11-05T08:18:50.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T18:42:04.345Z","etag":null,"topics":["erlang","uart"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foldl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-04T08:25:22.000Z","updated_at":"2022-10-27T09:07:06.000Z","dependencies_parsed_at":"2023-01-11T20:27:04.329Z","dependency_job_id":null,"html_url":"https://github.com/foldl/KissUART","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foldl/KissUART","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foldl%2FKissUART","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foldl%2FKissUART/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foldl%2FKissUART/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foldl%2FKissUART/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foldl","download_url":"https://codeload.github.com/foldl/KissUART/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foldl%2FKissUART/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erlang","uart"],"created_at":"2025-02-10T20:53:11.695Z","updated_at":"2026-04-29T00:35:16.111Z","avatar_url":"https://github.com/foldl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KissUART\n\nA serial port utility (for Windows) based on K.I.S.S. principle.\n\nThis can be built into a command line tool, an Erlang port, or a DLL as needed.\n\n# Build\n\nBatch file using GCC is provided. It's would be simple to use another compiler\ninstead.\n\n* A stand alone executable:  `build.bat EXE`\n\n* An Erlang port: `build.bat PORT`\n\n* A DLL: `build.bat DLL`\n\n# Usage\n\n## A stand alone executable\n\n```\nUART port options:\n         -port      \u003cinteger\u003e                     (mandatory)\n         -baud      \u003cinteger\u003e\n         -databits  \u003cinteger\u003e\n         -stopbits  \u003cinteger\u003e\n         -parity    none | even | odd | mark | space\nCommon options:\n         -help/-?                                 show this\n         -hex       use hex display\n         -timestamp display time stamp for output default: OFF\n         -async_io  use win32 async IO operations default: OFF\n         -cr        cr | lf | crlf | lfcr         default: cr\n         -input     string | char\n\nNote: string: based on 'gets' (default),\n              can use UP/DOWN to access input history\n      char  : based on 'getch' (low level)\n```\n\n### A Tip on ^Z\n\nWhen string mode (default) is used, ^Z\u003cEnter\u003e could save ^Z into the output buffer, and another \u003cEnter\u003e is needed to\nwrite it to COM port.\n\n## An Erlang port\n\nThis Erlang port uses the exactly the same command line options as the stand alone executable, except that some common\noptions are obviously not avaliable.\n\n### Example: uart2tcp\n\n`socat` is powerful Linux tool, which can let other programs access an uart port\njust like a TCP port. On Windows, it is much easier to build our own wheel than\nto search a similar tool. See [`uart2tcp.erl`](uart2tcp.erl).\n\n## A DLL\n\nOnly 5 APIs are exported by this DLL. Below is Pascal (Delphi/Lazarus) code for reference.\n\n```Pascal\ntype\n\n  TUartObj = Pointer;\n  TCommCloseReason = (ccShutdown, ccError);\n  TOnCommRead = procedure (Param: Pointer; const P: PByte; const L: Integer);\n  TOnCommClose = procedure (Param: Pointer; const Reason: TCommCloseReason);\n\nfunction UartOpen(Uart: TUartObj;\n                  const PortNumber: Integer;\n                  const Baud: Integer;\n                  const Parity: PChar;\n                  const DataBits: Integer;\n                  const StopBits: Integer;\n                  OnCommRead: TOnCommRead;\n                  CommReadParam: Pointer;\n                  OnCommClose: TOnCommClose;\n                  CommCloseParam: Pointer;\n                  AsyncIO: Boolean): TUartObj; stdcall;\n                  external 'uart.dll' name 'uart_open';\n\nprocedure UartSend(Uart: TUartObj;\n                   const Buf: PByte;\n                   const L: Integer); stdcall; external 'uart.dll' name 'uart_send';\n\nprocedure UartShutdown(Uart: TUartObj); stdcall; external 'uart.dll' name 'uart_shutdown';\n\nfunction GetUartObjSize: Integer; stdcall; external 'uart.dll' name 'get_uart_obj_size';\n\nfunction UartConfig(Uart: TUartObj;\n                    const Baud: Integer;\n                    const Parity: PChar;\n                    const DataBits: Integer;\n                    const StopBits: Integer): Integer; stdcall; external 'uart.dll' name 'uart_config';\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoldl%2Fkissuart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoldl%2Fkissuart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoldl%2Fkissuart/lists"}