openc3-cosmos-tool-docs 5.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +729 -0
- data/README.md +42 -0
- data/Rakefile +42 -0
- data/plugin.txt +7 -0
- data/tools/docs/404.html +16 -0
- data/tools/docs/CNAME +1 -0
- data/tools/docs/assets/css/styles.7bc79028.css +1 -0
- data/tools/docs/assets/images/add_packet-f318d0e92e8a13bd56331350aa341c88c8b12f2c54a4424f6e287817f22fb327.png +0 -0
- data/tools/docs/assets/images/architecture-b78f12eba076a0c07af7abdd9dd4187c59aa6b4f5c51b47ad03f73e9f98a6ed6.png +0 -0
- data/tools/docs/assets/images/autonomic-3d6d152f700c8fc1878d0f952d013ace31fccd7872d28587dc761610a0959e9c.png +0 -0
- data/tools/docs/assets/images/bucket_explorer-983c087ee3bdcf8626219e782620b6c580fd82bfe2e8b0c662a0f90cdca43838.png +0 -0
- data/tools/docs/assets/images/calendar-9fbd635cf3df1ba684bb0c1ebc4f6ad34991efc582e9fd07820c8b74cbb66aa1.png +0 -0
- data/tools/docs/assets/images/checks_rb-a6049cdd99613cea2ee12d76fcfe798ff05270e39d208e93d37da7347049b2b3.png +0 -0
- data/tools/docs/assets/images/cmd_tlm_server-313e3f64afc0e374d9d28b46364235d7b793001f84690fc0ae90e1eefdd9142d.png +0 -0
- data/tools/docs/assets/images/command_sender-a0b113b65368263529d0f8f2d93276a0a44ed81af0d0100f56379346ba592928.png +0 -0
- data/tools/docs/assets/images/commands-3608d5c856fd34e771d1f9e69f9f449f52929249bdf4f0e7feed0aa2bd2d9fd7.png +0 -0
- data/tools/docs/assets/images/connecting-6e453f3d99800d4cb8fdc78f5b8fce1e8cf1bb04840a29dec7c5caefd07c004f.png +0 -0
- data/tools/docs/assets/images/data_extractor-62c5b1743ba9dfdff2e393bcbdf863c36effc5ef5319d845cfd17186bd757bca.png +0 -0
- data/tools/docs/assets/images/data_viewer-8c547cb5ad2ebd179aac5e46c2f4c147889ebad53a5359a5e6b6c580de7184fe.png +0 -0
- data/tools/docs/assets/images/date_chooser-10f7b740b9acc76604e5dc86fe409b6b777abe0fb3fa5ebf8f47cb1ac58b9676.png +0 -0
- data/tools/docs/assets/images/debug-04088348cc04bb8e1a1063fc44920dc8e39616840ef4b09a36c823f185c28669.png +0 -0
- data/tools/docs/assets/images/delete_all_mouseover-06083f3d3d712d39f21bc5eda45adbfff449732a2061e53cb1a0baf6c5f5d4b8.png +0 -0
- data/tools/docs/assets/images/delete_modified-a7ec0ceb61c37398d57fcecf11ebe2453ebd0110be6cfc960a5073a13a557638.png +0 -0
- data/tools/docs/assets/images/edit_all_items-2c57aff19d3b1ce52149c37f50dcaad8c30baa0c9931fdc629f1d163bb56ce96.png +0 -0
- data/tools/docs/assets/images/edit_all_mouseover-f6646df5320045ee10d4c0a15d0349fed6ede075f9cea6f9e449b3785c4f4f8d.png +0 -0
- data/tools/docs/assets/images/edit_graph-4ca61635376fae26cf5eb82fb9fd803f1a51c4d3584aaf9833a270b7916bf531.png +0 -0
- data/tools/docs/assets/images/edit_screen-5724ae13958c1631b3c187cf7cdb6dc9672ecd71f8b0786ac17c0266001edac3.png +0 -0
- data/tools/docs/assets/images/edit_temp1-7446e7c5b7869ccc9ddd467779fa86f44301a5e5896751b016a527587c483cb2.png +0 -0
- data/tools/docs/assets/images/file_menu-2fe13872737c0f3fef84ba5b58b80b609082733acce536ec1f56910c36f68299.png +0 -0
- data/tools/docs/assets/images/file_open-319761fd383fc513b3689ef0a7498c73ce9459a3967c8a395cc2da07c89240d0.png +0 -0
- data/tools/docs/assets/images/file_save_as-44468ed6a48bea3bc4fdd8f50d802569e4582b453e5bf946bfdcba400030d499.png +0 -0
- data/tools/docs/assets/images/four_graphs-826cf8145338fa46e037556df94c59aeb4448330b601953daa94c89de8494cfd.png +0 -0
- data/tools/docs/assets/images/graph_min_max-80a2bd83230c71b00ba9d6da24b8c32a09e4983976cdbf32c33d2680b534b106.png +0 -0
- data/tools/docs/assets/images/graph_temp1-de937a79b314cf856b783c936d2460a6c942bdd45e4d9b3fe488957df5bfa9bc.png +0 -0
- data/tools/docs/assets/images/graph_temp1_temp2-e96370f7d73a6cb68beaa92bcaaf18b72e6619ce948fe835762cca1048efbd18.png +0 -0
- data/tools/docs/assets/images/graph_temp1_time-fec5e99e3cc05ea87208abe9c4b66b63b7497bbefee55f65d034417e966b1c46.png +0 -0
- data/tools/docs/assets/images/handbooks-1d301c83c80a7cb96c548006f5139fe8ec967ed10a49df0142b37328cd987f33.png +0 -0
- data/tools/docs/assets/images/ignored-1e20d4ffe7fd88ffab610340957b1176294269f985e8fdb20a9af07d7a78215f.png +0 -0
- data/tools/docs/assets/images/inst_clear-5ecb859f06f14d91d2ebba27e5a7848d6393db5ad2357f95c12e776c45f6bc64.png +0 -0
- data/tools/docs/assets/images/inst_collect-4f4e453a6521b779e10c4d2be6a8b1acf15fcb083af0164b0df1de27ca250132.png +0 -0
- data/tools/docs/assets/images/inst_collect_hazardous-3aeabedb96bf114b4eb56b6b2ee7bcc601302ec8905a82a16c47ae7870f97978.png +0 -0
- data/tools/docs/assets/images/inst_collect_hazardous_history-952a6e6ff2fb1b5fdf2c6b3d84a3ccf9e303eeb310f35514dc4a6e95f2a7420e.png +0 -0
- data/tools/docs/assets/images/inst_collect_sent-0de429f724264ce8c52a6cb22d4bbb96f14e22b559c091ff4375bb59f124a7a2.png +0 -0
- data/tools/docs/assets/images/inst_collect_sent_3-91cf4e053d246917964330ab93534a0a5eb878b652e7ea879effca7c4eaefbea.png +0 -0
- data/tools/docs/assets/images/interface_read_logic-0deef27c1d2fec9de2a3720a3c9ecedb21a00dca7aabd13da0b8815c037e4c26.png +0 -0
- data/tools/docs/assets/images/interface_write_logic-3360afe1b4af20b10dafba848a21e09baccaacc06e2ec8b6c132ac7a3c99e994.png +0 -0
- data/tools/docs/assets/images/interfaces-5622abf50e3df63980661a48216bf71187f38cb636bd512f48917ca4a425f083.png +0 -0
- data/tools/docs/assets/images/items_table-2fc1bb4d03a2348c4af7df442e13cee2f310cf455228005d76cbfda7a706aa53.png +0 -0
- data/tools/docs/assets/images/items_table_raw-c4d454679c4503ec35710dcee6be5cd1940984595145b333d8604bc505dfe291.png +0 -0
- data/tools/docs/assets/images/items_table_temp1-ea091eaf8005cea839800f4514f72f94e9664993111b935f33e7c5aa3061ca64.png +0 -0
- data/tools/docs/assets/images/limits_monitor-c58d70daea7586b93d5069b9df068a90cea5f7cf2e51a445f3162bf3f66db3d0.png +0 -0
- data/tools/docs/assets/images/list_view-926f42bc1e43283c61616b0cd8fd630cad8e15c9b7298acd98536842472e673b.png +0 -0
- data/tools/docs/assets/images/log-ba64fd307e53adafae55fcea7eb31829ee1aacdf4aafe8b40b270b793be3aa27.png +0 -0
- data/tools/docs/assets/images/log_messages-19c3ce9c7ff86e43d459cb6591df8c05d25e1390d857728cb462a57b9d3ccc69.png +0 -0
- data/tools/docs/assets/images/log_messages-2cfad0fd6f6f980f69b5564a4b7ecfecf3331c6256c78bcfb2b084970db305ca.png +0 -0
- data/tools/docs/assets/images/minimized-59d0d8d8a179ff0475787e87237b77b24d59d78826d43dbc1a554a51380eb37f.png +0 -0
- data/tools/docs/assets/images/minimized-a658bd8f2115d3f9a386844e886de770b23bbf9c0c8c55a4ca587cea67ec320e.png +0 -0
- data/tools/docs/assets/images/minio-150460ac77a50711835de6f0150d019000e5515afae0f3adfcdda8e891484f47.png +0 -0
- data/tools/docs/assets/images/mouseover-95b774047b3c2ca23a3bc645caf75d90511c378729dd9cfb781510a1452e09fe.png +0 -0
- data/tools/docs/assets/images/new_screen-295720ec60219194c8c8dd64c755e8a188cc4a68c2b6cf66197b54514644d52a.png +0 -0
- data/tools/docs/assets/images/notifications-5b32d6619542431027ddd67491eb445469fa2d16fa8352a2b0917b9298b7bbb2.png +0 -0
- data/tools/docs/assets/images/open_config-2e61415a3c2d7a4ce427cf325f3708dd4a761092b7dd0c869279c4354dc34ae4.png +0 -0
- data/tools/docs/assets/images/open_config-3cd3be1ce4560d9e72bb37b83dc830149091dec9a088c36187e0e72660c6ec34.png +0 -0
- data/tools/docs/assets/images/open_config-55ef2f241d02047b252bb8201742f99cffed5680d0e9eb46b3cb53a644ca3dc9.png +0 -0
- data/tools/docs/assets/images/open_config-f848a8b371ae0ec31776834148e9f978d9be94efef03534e5ca3a59c0ae3847f.png +0 -0
- data/tools/docs/assets/images/packet_viewer-19c1015cc704a98d1f6d90dd0dadc13188d25f1d5d2e838b7cfb226e8c173c7b.png +0 -0
- data/tools/docs/assets/images/plugin-variables-5bc00c744182c9a9591e84cb3bbb1c4deb53ff22e05f62ce1b807c26bed782e5.png +0 -0
- data/tools/docs/assets/images/processing-b0c50908284739a76e1bbcfcb3eb34dc9446f8716117cb0e9089ad9df53ebed6.png +0 -0
- data/tools/docs/assets/images/project-fe7ac90f3e45971fca8f1be94be9dbabe494bafe705e7f8f485676e9d96e47ea.png +0 -0
- data/tools/docs/assets/images/project_update-8e7de3b0658b95d4d9931eb52ff8bf339d633cbdc273ce096eb11ceb357c009e.png +0 -0
- data/tools/docs/assets/images/raw_command-759d93759a73a6a3dd7e30f89fc4d1a544dfb6f7355abfed03897d404279161d.png +0 -0
- data/tools/docs/assets/images/raw_telemetry-ffeb6b603f9a9abbe0cb77afaaeb4b4f07dfee479682a5c9661f85589a679049.png +0 -0
- data/tools/docs/assets/images/raw_tlm_logs-8dcba4f020b36f8efbb793271b70d40d9cad627196afaeb5bf6f3931ed53fa52.png +0 -0
- data/tools/docs/assets/images/reactions-dd4a8ebf22eed921a82a5478d23178c62e2cf944d295c2b9e3f4d7ce555b0fcc.png +0 -0
- data/tools/docs/assets/images/reload_file-8e26cd3e1bc1eab7bb6c046d9a6a8231fcd76e56682d819b1e549182890c6486.png +0 -0
- data/tools/docs/assets/images/reloaded-9effa15527244928ee503eb0c3a48cc5e82c07cfb5d5c4300eacfcab913069d1.png +0 -0
- data/tools/docs/assets/images/running_scripts-78bfd36a6c8c7167234e03bd188e974927c2beea1f730498583169a81639e7a3.png +0 -0
- data/tools/docs/assets/images/save_config-0ae36ac1f8114665f2558e936ba3b30e5cba2a16cc01d3494e14ed689b4637f7.png +0 -0
- data/tools/docs/assets/images/save_config-8b028134b07c70d6de019825cbb328623fc485d72aad9ba5b1980246b316fec2.png +0 -0
- data/tools/docs/assets/images/save_config-e4ed80276ebdc2c4eaf9aaeb859cff8aecb380b22da8c659741c31ca66914098.png +0 -0
- data/tools/docs/assets/images/save_config-e748a338526ffd8f9e49def5c0d15f8a80cd987f40d210ff6c6d4b61b713555c.png +0 -0
- data/tools/docs/assets/images/script_error-ce060b3086e7b466e51a276fb6b27245b4d042f07a60fe121b0071dd65a42075.png +0 -0
- data/tools/docs/assets/images/script_runner-7d7f01b90be962b4de46c20568727c55488eec5d9844823b53a262c9cfc470fa.png +0 -0
- data/tools/docs/assets/images/script_suite-42832d936f91417740b76a39841996c8e4a7cf5391dbb19abe9d7b31ab07dd7d.png +0 -0
- data/tools/docs/assets/images/select_item-f063106a8d836656496ba81e7e7428f51bd8ab95aebab0aa4eb6ad41ed42e026.png +0 -0
- data/tools/docs/assets/images/select_packet-0b6d5a2b012445ab2bf0fd3e1545f015cd7787280d05d2bccb0a9c9220102529.png +0 -0
- data/tools/docs/assets/images/select_packet-be9d63c49f898cccb73f9e4b2b39c4b5879cead34a8ab2ede0bb08e953498e95.png +0 -0
- data/tools/docs/assets/images/select_target-71ebcab6cbefafd8958939130861a75f7544e99a043d90fa0734ec2f983d835f.png +0 -0
- data/tools/docs/assets/images/simple_screen-3c9d6d2366c716c03a301396a4ce0ea418532890f349d9bc9ebb8be90983a6e6.png +0 -0
- data/tools/docs/assets/images/status-80010882300d2f1c453fbc4cb35bdb1f06d3db578266dda95c56ea7ec230ac72.png +0 -0
- data/tools/docs/assets/images/table_manager-9a5357ce536102bc1bb0c859be552f4ac82f62e538935a3c45a8e76d4f9744db.png +0 -0
- data/tools/docs/assets/images/targets-d15296b133787be4997c3d5e7d43eec9030831f1758508a8f6a71d40d04478ce.png +0 -0
- data/tools/docs/assets/images/telemetry-3f1169fc67b3d2427047ba66a9b2f3ddf71f61edf498ee70d14e78f0ef3c1e3c.png +0 -0
- data/tools/docs/assets/images/telemetry_grapher-a96b7e0101f5e377a73a186683e967e79d748c5dff2dfed6ec0afcea5694d7c8.png +0 -0
- data/tools/docs/assets/images/telemetry_viewer-be6ee576f1efceb39c2f744889deb4c18f571c4922c69d5d0e5f49a653776a46.png +0 -0
- data/tools/docs/assets/images/temp1_details-f0b6e62bc28da18febacc936112735e1dbd5718ef675668f04d8b3e060d7f87a.png +0 -0
- data/tools/docs/assets/images/time_chooser-e4ca0705d5b97c3056b0de3ab7f71f8091482b9b2e8904e69866a43ce4e616f2.png +0 -0
- data/tools/docs/assets/images/timeline_lifecycle-0bd916dee06bf67936b043abfdbc4d5fdec7cc5a32a889ee6c05e9faf74f4c6a.png +0 -0
- data/tools/docs/assets/images/triggers-0b0b3f9cc2850c1b83b9a7aab6f8a936626fd847c3158e993e4baa0e64b38096.png +0 -0
- data/tools/docs/assets/images/two_full_height-7cf9d0bbdf0269ad85e312f6dcb77930e1e3c4319f9750968a9347fafcf26084.png +0 -0
- data/tools/docs/assets/images/two_full_width-db2d88c0e2e6fc417016f47e3bac0bf68374957d8fc014220f53870429ea1ef3.png +0 -0
- data/tools/docs/assets/images/view_portal-b2e5fef00be80f1551b965d170fc3cd8ed95597f0a1e475a8177ab2d306215f5.png +0 -0
- data/tools/docs/assets/images/view_portal_add-56f06135fc56f1fa85cbc22ea3b7ad52f311641aad25df08b6f4a6f979b30e3f.png +0 -0
- data/tools/docs/assets/js/019369f3.bb600de8.js +1 -0
- data/tools/docs/assets/js/058ffc22.ce27f074.js +1 -0
- data/tools/docs/assets/js/0686a885.5fe3bfd4.js +1 -0
- data/tools/docs/assets/js/078dbab0.0a98e0c9.js +1 -0
- data/tools/docs/assets/js/0f5d161c.3a7b00e4.js +1 -0
- data/tools/docs/assets/js/0ff569c9.930bab08.js +1 -0
- data/tools/docs/assets/js/103cc3be.451dd416.js +1 -0
- data/tools/docs/assets/js/1131.f9e1547d.js +1 -0
- data/tools/docs/assets/js/13196248.1be5ac81.js +1 -0
- data/tools/docs/assets/js/13c1b4e4.ad24c4f6.js +1 -0
- data/tools/docs/assets/js/15a39a64.4138456c.js +1 -0
- data/tools/docs/assets/js/2029.9e268a82.js +1 -0
- data/tools/docs/assets/js/2047b354.7995865f.js +1 -0
- data/tools/docs/assets/js/22b3ac48.73a6c979.js +1 -0
- data/tools/docs/assets/js/2846.a87f3fc4.js +1 -0
- data/tools/docs/assets/js/2923e883.0cbdcbc5.js +1 -0
- data/tools/docs/assets/js/3477.783e2e37.js +2 -0
- data/tools/docs/assets/js/3477.783e2e37.js.LICENSE.txt +61 -0
- data/tools/docs/assets/js/3dd7ef3b.8f77876c.js +1 -0
- data/tools/docs/assets/js/3df159b4.dded3e78.js +1 -0
- data/tools/docs/assets/js/40365d27.9322abd8.js +1 -0
- data/tools/docs/assets/js/411898ad.a1d949a2.js +1 -0
- data/tools/docs/assets/js/42170351.46c774f8.js +1 -0
- data/tools/docs/assets/js/43652efd.cbac4bc0.js +1 -0
- data/tools/docs/assets/js/5109.6a372217.js +1 -0
- data/tools/docs/assets/js/54d0d530.e9c8193b.js +1 -0
- data/tools/docs/assets/js/5bc719f6.fce76244.js +1 -0
- data/tools/docs/assets/js/5c6ce5ec.f909714f.js +1 -0
- data/tools/docs/assets/js/5e3ed378.cdfe0362.js +1 -0
- data/tools/docs/assets/js/5fe211ef.809c3f96.js +1 -0
- data/tools/docs/assets/js/6831b732.735c11e9.js +1 -0
- data/tools/docs/assets/js/696b4199.ff9185d0.js +1 -0
- data/tools/docs/assets/js/6b210247.248680ef.js +1 -0
- data/tools/docs/assets/js/6b65133b.2144fb1b.js +1 -0
- data/tools/docs/assets/js/6f92e431.608f28e7.js +1 -0
- data/tools/docs/assets/js/72c6d8a8.062b7650.js +1 -0
- data/tools/docs/assets/js/75e64983.d42f03f8.js +1 -0
- data/tools/docs/assets/js/7efc9fb0.6164fbad.js +1 -0
- data/tools/docs/assets/js/867640d5.28196e2c.js +1 -0
- data/tools/docs/assets/js/89e76475.5131b624.js +1 -0
- data/tools/docs/assets/js/8f7843ee.69e537b0.js +1 -0
- data/tools/docs/assets/js/9424f0b3.73086bed.js +1 -0
- data/tools/docs/assets/js/97535711.c7556831.js +1 -0
- data/tools/docs/assets/js/99581c43.30aef54d.js +1 -0
- data/tools/docs/assets/js/9d6e81d0.84fe3bb3.js +1 -0
- data/tools/docs/assets/js/9fb6059a.dc4760ab.js +1 -0
- data/tools/docs/assets/js/a182b3b3.25afec82.js +1 -0
- data/tools/docs/assets/js/a507c363.71a89240.js +1 -0
- data/tools/docs/assets/js/a677c089.2ec103f7.js +1 -0
- data/tools/docs/assets/js/a9987364.de63d165.js +1 -0
- data/tools/docs/assets/js/aa6b6c1b.6b24256f.js +1 -0
- data/tools/docs/assets/js/ada50b5c.1c75d3de.js +1 -0
- data/tools/docs/assets/js/b4596165.ab1c689f.js +1 -0
- data/tools/docs/assets/js/b6d70f94.ec27318b.js +1 -0
- data/tools/docs/assets/js/b9f60ba6.bb514133.js +1 -0
- data/tools/docs/assets/js/bd0034eb.0c60929d.js +1 -0
- data/tools/docs/assets/js/c24eae19.12176204.js +1 -0
- data/tools/docs/assets/js/cb8c3f08.762bb287.js +1 -0
- data/tools/docs/assets/js/cd879be4.3641a5cb.js +1 -0
- data/tools/docs/assets/js/d1b923aa.bf4b0c9e.js +1 -0
- data/tools/docs/assets/js/d24bf9b6.6ed3b576.js +1 -0
- data/tools/docs/assets/js/d370d7a7.28ef1aad.js +1 -0
- data/tools/docs/assets/js/d57a4b5d.017675ee.js +1 -0
- data/tools/docs/assets/js/d5d77c37.f472b18b.js +1 -0
- data/tools/docs/assets/js/d5f295fb.e008c3ec.js +1 -0
- data/tools/docs/assets/js/d797a795.9243eac2.js +1 -0
- data/tools/docs/assets/js/d7c988eb.2670948e.js +1 -0
- data/tools/docs/assets/js/d8ca4191.717db664.js +1 -0
- data/tools/docs/assets/js/d9b92eba.5eff70b2.js +1 -0
- data/tools/docs/assets/js/db8fa1d0.85784608.js +1 -0
- data/tools/docs/assets/js/dc5f7beb.120c148d.js +1 -0
- data/tools/docs/assets/js/e501b0d1.ae564e73.js +1 -0
- data/tools/docs/assets/js/f15615f1.3126a842.js +1 -0
- data/tools/docs/assets/js/fd886806.d2d0bdf4.js +1 -0
- data/tools/docs/assets/js/main.b5a535c2.js +2 -0
- data/tools/docs/assets/js/main.b5a535c2.js.LICENSE.txt +70 -0
- data/tools/docs/assets/js/runtime~main.e3a6c705.js +1 -0
- data/tools/docs/docs/configuration/command.html +40 -0
- data/tools/docs/docs/configuration/format.html +16 -0
- data/tools/docs/docs/configuration/interfaces.html +16 -0
- data/tools/docs/docs/configuration/plugins.html +17 -0
- data/tools/docs/docs/configuration/protocols.html +23 -0
- data/tools/docs/docs/configuration/ssl-tls.html +17 -0
- data/tools/docs/docs/configuration/table.html +30 -0
- data/tools/docs/docs/configuration/target.html +16 -0
- data/tools/docs/docs/configuration/telemetry-screens.html +36 -0
- data/tools/docs/docs/configuration/telemetry.html +16 -0
- data/tools/docs/docs/configuration.html +16 -0
- data/tools/docs/docs/development/curl.html +16 -0
- data/tools/docs/docs/development/developing.html +19 -0
- data/tools/docs/docs/development/host-install.html +16 -0
- data/tools/docs/docs/development/json-api.html +16 -0
- data/tools/docs/docs/development/log-structure.html +17 -0
- data/tools/docs/docs/development/roadmap.html +16 -0
- data/tools/docs/docs/development/streaming-api.html +18 -0
- data/tools/docs/docs/development/testing.html +16 -0
- data/tools/docs/docs/development.html +16 -0
- data/tools/docs/docs/getting-started/gettingstarted.html +16 -0
- data/tools/docs/docs/getting-started/installation.html +18 -0
- data/tools/docs/docs/getting-started/podman.html +18 -0
- data/tools/docs/docs/getting-started/requirements.html +16 -0
- data/tools/docs/docs/getting-started/upgrading.html +16 -0
- data/tools/docs/docs/getting-started.html +16 -0
- data/tools/docs/docs/guides/bridges.html +23 -0
- data/tools/docs/docs/guides/cfs.html +46 -0
- data/tools/docs/docs/guides/custom-widgets.html +16 -0
- data/tools/docs/docs/guides/little-endian-bitfields.html +16 -0
- data/tools/docs/docs/guides/local-mode.html +16 -0
- data/tools/docs/docs/guides/logging.html +16 -0
- data/tools/docs/docs/guides/monitoring.html +16 -0
- data/tools/docs/docs/guides/performance.html +16 -0
- data/tools/docs/docs/guides/raspberrypi.html +16 -0
- data/tools/docs/docs/guides/script-writing.html +18 -0
- data/tools/docs/docs/guides/scripting-api.html +17 -0
- data/tools/docs/docs/guides.html +16 -0
- data/tools/docs/docs/meta/contributing.html +20 -0
- data/tools/docs/docs/meta/philosophy.html +16 -0
- data/tools/docs/docs/meta/xtce.html +16 -0
- data/tools/docs/docs/meta.html +16 -0
- data/tools/docs/docs/privacy.html +23 -0
- data/tools/docs/docs/tools/autonomic.html +16 -0
- data/tools/docs/docs/tools/bucket-explorer.html +16 -0
- data/tools/docs/docs/tools/calendar.html +16 -0
- data/tools/docs/docs/tools/cmd-sender.html +16 -0
- data/tools/docs/docs/tools/cmd-tlm-server.html +17 -0
- data/tools/docs/docs/tools/data-extractor.html +16 -0
- data/tools/docs/docs/tools/data-viewer.html +16 -0
- data/tools/docs/docs/tools/handbooks.html +16 -0
- data/tools/docs/docs/tools/limits-monitor.html +16 -0
- data/tools/docs/docs/tools/packet-viewer.html +16 -0
- data/tools/docs/docs/tools/script-runner.html +16 -0
- data/tools/docs/docs/tools/table-manager.html +16 -0
- data/tools/docs/docs/tools/tlm-grapher.html +16 -0
- data/tools/docs/docs/tools/tlm-viewer.html +17 -0
- data/tools/docs/docs/tools.html +16 -0
- data/tools/docs/docs/v5/bridges/index.html +11 -0
- data/tools/docs/docs/v5/bucket-explorer/index.html +11 -0
- data/tools/docs/docs/v5/calendar/index.html +11 -0
- data/tools/docs/docs/v5/cfs/index.html +11 -0
- data/tools/docs/docs/v5/cmd-sender/index.html +11 -0
- data/tools/docs/docs/v5/cmd-tlm-server/index.html +11 -0
- data/tools/docs/docs/v5/command/index.html +11 -0
- data/tools/docs/docs/v5/contributing/index.html +11 -0
- data/tools/docs/docs/v5/custom-widgets/index.html +11 -0
- data/tools/docs/docs/v5/data-extractor/index.html +11 -0
- data/tools/docs/docs/v5/data-viewer/index.html +11 -0
- data/tools/docs/docs/v5/development/index.html +11 -0
- data/tools/docs/docs/v5/format/index.html +11 -0
- data/tools/docs/docs/v5/gettingstarted/index.html +11 -0
- data/tools/docs/docs/v5/handbooks/index.html +11 -0
- data/tools/docs/docs/v5/host-install/index.html +11 -0
- data/tools/docs/docs/v5/index.html +11 -0
- data/tools/docs/docs/v5/installation/index.html +11 -0
- data/tools/docs/docs/v5/interfaces/index.html +11 -0
- data/tools/docs/docs/v5/json-api/index.html +11 -0
- data/tools/docs/docs/v5/limits-monitor/index.html +11 -0
- data/tools/docs/docs/v5/little-endian-bitfields/index.html +11 -0
- data/tools/docs/docs/v5/local-mode/index.html +11 -0
- data/tools/docs/docs/v5/log-structure/index.html +11 -0
- data/tools/docs/docs/v5/logging/index.html +11 -0
- data/tools/docs/docs/v5/monitoring/index.html +11 -0
- data/tools/docs/docs/v5/packet-viewer/index.html +11 -0
- data/tools/docs/docs/v5/performance/index.html +11 -0
- data/tools/docs/docs/v5/philosophy/index.html +11 -0
- data/tools/docs/docs/v5/plugins/index.html +11 -0
- data/tools/docs/docs/v5/podman/index.html +11 -0
- data/tools/docs/docs/v5/protocols/index.html +11 -0
- data/tools/docs/docs/v5/raspberrypi/index.html +11 -0
- data/tools/docs/docs/v5/requirements/index.html +11 -0
- data/tools/docs/docs/v5/roadmap/index.html +11 -0
- data/tools/docs/docs/v5/script-runner/index.html +11 -0
- data/tools/docs/docs/v5/script-writing/index.html +11 -0
- data/tools/docs/docs/v5/scripting-api/index.html +11 -0
- data/tools/docs/docs/v5/ssl-tls/index.html +11 -0
- data/tools/docs/docs/v5/streaming-api/index.html +11 -0
- data/tools/docs/docs/v5/table/index.html +11 -0
- data/tools/docs/docs/v5/table-manager/index.html +11 -0
- data/tools/docs/docs/v5/target/index.html +11 -0
- data/tools/docs/docs/v5/telemetry/index.html +11 -0
- data/tools/docs/docs/v5/telemetry-screens/index.html +11 -0
- data/tools/docs/docs/v5/testing/index.html +11 -0
- data/tools/docs/docs/v5/tlm-grapher/index.html +11 -0
- data/tools/docs/docs/v5/tlm-viewer/index.html +11 -0
- data/tools/docs/docs/v5/tools/index.html +11 -0
- data/tools/docs/docs/v5/upgrading/index.html +11 -0
- data/tools/docs/docs/v5/xtce/index.html +11 -0
- data/tools/docs/docs.html +25 -0
- data/tools/docs/img/BCT.png +0 -0
- data/tools/docs/img/OpenC3.png +0 -0
- data/tools/docs/img/article-footer.png +0 -0
- data/tools/docs/img/ball.jpg +0 -0
- data/tools/docs/img/black_logo.svg +25 -0
- data/tools/docs/img/captech.gif +0 -0
- data/tools/docs/img/docusaurus-social-card.jpg +0 -0
- data/tools/docs/img/docusaurus.png +0 -0
- data/tools/docs/img/favicon.png +0 -0
- data/tools/docs/img/footer-logo.png +0 -0
- data/tools/docs/img/interface_read_logic.png +0 -0
- data/tools/docs/img/interface_write_logic.png +0 -0
- data/tools/docs/img/johnh.gif +0 -0
- data/tools/docs/img/lockheed.png +0 -0
- data/tools/docs/img/logo.svg +7 -0
- data/tools/docs/img/nasa.gif +0 -0
- data/tools/docs/img/sdlusu.gif +0 -0
- data/tools/docs/img/v5/architecture.png +0 -0
- data/tools/docs/img/v5/autonomic/autonomic.png +0 -0
- data/tools/docs/img/v5/autonomic/reactions.png +0 -0
- data/tools/docs/img/v5/autonomic/triggers.png +0 -0
- data/tools/docs/img/v5/bucket_explorer/bucket_explorer.png +0 -0
- data/tools/docs/img/v5/calendar/calendar.png +0 -0
- data/tools/docs/img/v5/calendar/list_view.png +0 -0
- data/tools/docs/img/v5/calendar/timeline_lifecycle.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/cmd_tlm_server.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/commands.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/file_menu.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/interfaces.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/log_messages.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/raw_command.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/raw_telemetry.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/routers.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/status.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/targets.png +0 -0
- data/tools/docs/img/v5/cmd_tlm_server/telemetry.png +0 -0
- data/tools/docs/img/v5/command_sender/command_sender.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_clear.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_collect.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_collect_hazardous.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_collect_hazardous_history.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_collect_sent.png +0 -0
- data/tools/docs/img/v5/command_sender/inst_collect_sent_3.png +0 -0
- data/tools/docs/img/v5/command_sender/mode_menu.png +0 -0
- data/tools/docs/img/v5/contact/jason.png +0 -0
- data/tools/docs/img/v5/contact/ryan.jpeg +0 -0
- data/tools/docs/img/v5/data_extractor/data_extractor.png +0 -0
- data/tools/docs/img/v5/data_extractor/date_chooser.png +0 -0
- data/tools/docs/img/v5/data_extractor/delete_all_mouseover.png +0 -0
- data/tools/docs/img/v5/data_extractor/download.png +0 -0
- data/tools/docs/img/v5/data_extractor/edit_all_items.png +0 -0
- data/tools/docs/img/v5/data_extractor/edit_all_mouseover.png +0 -0
- data/tools/docs/img/v5/data_extractor/edit_temp1.png +0 -0
- data/tools/docs/img/v5/data_extractor/file_menu.png +0 -0
- data/tools/docs/img/v5/data_extractor/items_table.png +0 -0
- data/tools/docs/img/v5/data_extractor/items_table_raw.png +0 -0
- data/tools/docs/img/v5/data_extractor/items_table_temp1.png +0 -0
- data/tools/docs/img/v5/data_extractor/mode_menu.png +0 -0
- data/tools/docs/img/v5/data_extractor/open_config.png +0 -0
- data/tools/docs/img/v5/data_extractor/processing.png +0 -0
- data/tools/docs/img/v5/data_extractor/save_config.png +0 -0
- data/tools/docs/img/v5/data_extractor/select_item.png +0 -0
- data/tools/docs/img/v5/data_extractor/select_packet.png +0 -0
- data/tools/docs/img/v5/data_extractor/select_target.png +0 -0
- data/tools/docs/img/v5/data_extractor/time_chooser.png +0 -0
- data/tools/docs/img/v5/data_viewer/add_packet.png +0 -0
- data/tools/docs/img/v5/data_viewer/data_viewer.png +0 -0
- data/tools/docs/img/v5/data_viewer/file_menu.png +0 -0
- data/tools/docs/img/v5/data_viewer/open_config.png +0 -0
- data/tools/docs/img/v5/data_viewer/rename_tab.png +0 -0
- data/tools/docs/img/v5/data_viewer/save_config.png +0 -0
- data/tools/docs/img/v5/data_viewer/tab_right_click.png +0 -0
- data/tools/docs/img/v5/data_viewer/view_portal.png +0 -0
- data/tools/docs/img/v5/data_viewer/view_portal_add.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/delete_modified.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/minio.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/project.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/project_update.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/reload_file.png +0 -0
- data/tools/docs/img/v5/guides/local_mode/reloaded.png +0 -0
- data/tools/docs/img/v5/guides/logging/browser.png +0 -0
- data/tools/docs/img/v5/guides/logging/log_messages.png +0 -0
- data/tools/docs/img/v5/guides/logging/notifications.png +0 -0
- data/tools/docs/img/v5/guides/logging/raw_tlm_logs.png +0 -0
- data/tools/docs/img/v5/guides/plugin-variables.png +0 -0
- data/tools/docs/img/v5/guides/simple_screen.png +0 -0
- data/tools/docs/img/v5/handbooks/handbooks.png +0 -0
- data/tools/docs/img/v5/limits_monitor/ignored.png +0 -0
- data/tools/docs/img/v5/limits_monitor/limits_monitor.png +0 -0
- data/tools/docs/img/v5/limits_monitor/log.png +0 -0
- data/tools/docs/img/v5/limits_monitor/mouseover.png +0 -0
- data/tools/docs/img/v5/navigation.png +0 -0
- data/tools/docs/img/v5/packet_viewer/file_menu.png +0 -0
- data/tools/docs/img/v5/packet_viewer/packet_viewer.png +0 -0
- data/tools/docs/img/v5/packet_viewer/select_packet.png +0 -0
- data/tools/docs/img/v5/packet_viewer/temp1_details.png +0 -0
- data/tools/docs/img/v5/packet_viewer/view_menu.png +0 -0
- data/tools/docs/img/v5/script_runner/checks_rb.png +0 -0
- data/tools/docs/img/v5/script_runner/connecting.png +0 -0
- data/tools/docs/img/v5/script_runner/debug.png +0 -0
- data/tools/docs/img/v5/script_runner/file_menu.png +0 -0
- data/tools/docs/img/v5/script_runner/file_open.png +0 -0
- data/tools/docs/img/v5/script_runner/file_save_as.png +0 -0
- data/tools/docs/img/v5/script_runner/running_scripts.png +0 -0
- data/tools/docs/img/v5/script_runner/script_error.png +0 -0
- data/tools/docs/img/v5/script_runner/script_menu.png +0 -0
- data/tools/docs/img/v5/script_runner/script_runner.png +0 -0
- data/tools/docs/img/v5/script_runner/script_suite.png +0 -0
- data/tools/docs/img/v5/table_manager/file_menu.png +0 -0
- data/tools/docs/img/v5/table_manager/table_manager.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/edit_graph.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/file_menu.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/four_graphs.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/graph_menu.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/graph_min_max.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/graph_temp1.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/graph_temp1_temp2.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/graph_temp1_time.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/grapher_controls.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/minimized.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/open_config.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/save_config.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/stop_start.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/telemetry_grapher.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/two_full_height.png +0 -0
- data/tools/docs/img/v5/telemetry_grapher/two_full_width.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/edit_screen.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/file_menu.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/minimized.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/new_screen.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/open_config.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/save_config.png +0 -0
- data/tools/docs/img/v5/telemetry_viewer/telemetry_viewer.png +0 -0
- data/tools/docs/index.html +16 -0
- data/tools/docs/lunr-index-1699630949575.json +1 -0
- data/tools/docs/lunr-index.json +1 -0
- data/tools/docs/markdown-page.html +16 -0
- data/tools/docs/search-doc-1699630949575.json +1 -0
- data/tools/docs/search-doc.json +1 -0
- data/tools/docs/sitemap.xml +1 -0
- metadata +477 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-configuration/protocols" data-has-hydrated="false">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="generator" content="Docusaurus v2.4.3">
|
6
|
+
<title data-rh="true">Protocols | OpenC3 Docs</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://docs.openc3.com/tools/docs/docs/configuration/protocols"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Protocols | OpenC3 Docs"><meta data-rh="true" name="description" content="Protocols process data on behalf of an Interface. They can modify the data being written, data being read, or both. Protocols can also mark a packet as stored instead of real-time which means COSMOS will not update the current value table with the packet data. Protocols can be layered and will be processed in order. For example, if you have a low-level encryption layer that must be first removed before processing a higher level buffer length protocol."><meta data-rh="true" property="og:description" content="Protocols process data on behalf of an Interface. They can modify the data being written, data being read, or both. Protocols can also mark a packet as stored instead of real-time which means COSMOS will not update the current value table with the packet data. Protocols can be layered and will be processed in order. For example, if you have a low-level encryption layer that must be first removed before processing a higher level buffer length protocol."><link data-rh="true" rel="icon" href="/tools/docs/img/favicon.png"><link data-rh="true" rel="canonical" href="https://docs.openc3.com/tools/docs/docs/configuration/protocols"><link data-rh="true" rel="alternate" href="https://docs.openc3.com/tools/docs/docs/configuration/protocols" hreflang="en"><link data-rh="true" rel="alternate" href="https://docs.openc3.com/tools/docs/docs/configuration/protocols" hreflang="x-default"><link rel="stylesheet" href="/tools/docs/assets/css/styles.7bc79028.css">
|
7
|
+
<link rel="preload" href="/tools/docs/assets/js/runtime~main.e3a6c705.js" as="script">
|
8
|
+
<link rel="preload" href="/tools/docs/assets/js/main.b5a535c2.js" as="script">
|
9
|
+
</head>
|
10
|
+
<body class="navigation-with-keyboard">
|
11
|
+
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}return t}()||function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
12
|
+
<div role="region" aria-label="Skip to main content"><a class="skipToContent_G6ar" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/tools/docs/"><div class="navbar__logo"><img src="/tools/docs/img/logo.svg" alt="OpenC3 Logo" class="themedImage_RWGG themedImage--light_riBm"><img src="/tools/docs/img/logo.svg" alt="OpenC3 Logo" class="themedImage_RWGG themedImage--dark_Dsi0"></div><b class="navbar__title text--truncate">OpenC3 Docs</b></a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/tools/docs/docs">Documentation</a><a href="https://openc3.com/enterprise/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Enterprise</a></div><div class="navbar__items navbar__items--right"><div class="searchBox_xrOJ"><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Loading..." aria-label="Search" class="navbar__search-input search-bar" disabled=""></div></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_UyTV docsWrapper_BqXd"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_z1FD" type="button"></button><div class="docPage_pOTq"><aside class="theme-doc-sidebar-container docSidebarContainer_aIKW"><div class="sidebarViewport_DwR9"><div class="sidebar_vJCc"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_qiME"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/tools/docs/docs">Introduction</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/getting-started">Getting Started</a><button aria-label="Toggle the collapsible sidebar category 'Getting Started'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--active" aria-expanded="true" href="/tools/docs/docs/configuration">Configuration</a><button aria-label="Toggle the collapsible sidebar category 'Configuration'" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/format">File Format</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/plugins">Plugins</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/target">Targets</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/command">Commands</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/telemetry">Telemetry</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/interfaces">Interfaces</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/tools/docs/docs/configuration/protocols">Protocols</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/table">Tables</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/telemetry-screens">Screens</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/ssl-tls">SSL-TLS</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/tools">Tools</a><button aria-label="Toggle the collapsible sidebar category 'Tools'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/guides">Guides</a><button aria-label="Toggle the collapsible sidebar category 'Guides'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/development">Development</a><button aria-label="Toggle the collapsible sidebar category 'Development'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/meta">Meta</a><button aria-label="Toggle the collapsible sidebar category 'Meta'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/tools/docs/docs/privacy">OpenC3, Inc. Privacy Policy</a></li></ul></nav></div></div></aside><main class="docMainContainer_fv3b"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_YAwJ"><div class="docItemContainer_Rv5Z"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_zCmv" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/tools/docs/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_JFrk"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item"><a class="breadcrumbs__link" itemprop="item" href="/tools/docs/docs/configuration"><span itemprop="name">Configuration</span></a><meta itemprop="position" content="1"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">Protocols</span><meta itemprop="position" content="2"></li></ul></nav><div class="tocCollapsible_O_Qc theme-doc-toc-mobile tocMobile_tjDr"><button type="button" class="clean-btn tocCollapsibleButton_htYj">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Protocols</h1></header><p>Protocols process data on behalf of an Interface. They can modify the data being written, data being read, or both. Protocols can also mark a packet as stored instead of real-time which means COSMOS will not update the current value table with the packet data. Protocols can be layered and will be processed in order. For example, if you have a low-level encryption layer that must be first removed before processing a higher level buffer length protocol.</p><div class="theme-admonition theme-admonition-info alert alert--info admonition_qNG0"><div class="admonitionHeading_l909"><span class="admonitionIcon_UNbs"><svg viewBox="0 0 14 16"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg></span>Protocol Run Order</div><div class="admonitionContent_oUmQ"><p>Read protocols execute in the order specified (First specified runs first). Write protocols execute in the reverse order (Last specified executes first).</p></div></div><p>Protocols are typically used to define the logic to delineate packets and manipulate data as it written to and read from Interfaces. COSMOS includes Interfaces for TCP/IP Client, TCP/IP Server, Udp Client / Server, and Serial connections. For 99% of use cases these Interfaces should not require any changes as they universally handle the low-level details of reading and writing from these types of connections. All unique behavior should now be defined in Protocols.</p><p>At a minimum, any byte stream based Interface will require a Protocol to delineate packets. TCP/IP and Serial are examples of byte stream based Interfaces. A byte stream is just a simple stream of bytes and thus you need some way to know where packets begin and end within the stream.</p><p>TCP/IP is a friendly byte stream. Unless you are dealing with a very poorly written system, the first byte received on a TCP/IP connection will always be the start of a packet. Also, TCP/IP is a reliable connection in that it ensures that all data is received in the correct order, that no data is lost, and that the data is not corrupted (TCP/IP is protected by a CRC32 which is pretty good for avoiding unrecognized data corruption).</p><p>Serial is a much less friendly byte stream. With serial connections, it is very likely that when you open a serial port and start receiving data you will receive the middle of a message. (This problem is only avoided when interfacing with a system that only writes to the serial port in response to a command). For this reason, sync patterns are highly beneficial for serial interfaces. Additionally, serial interfaces may use some method to protect against unrecognized data corruption (Checksums, CRCs, etc.)</p><p>UDP is an inherently packet based connection. If you read from a UDP socket, you will always receive back an entire packet. The best UDP based Protocols take advantage of this fact. Some implementations try to make UDP act like a byte stream, but this is a misuse of the protocol because it is highly likely that you will lose data and have no way to recover.</p><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="packet-delineation-protocols">Packet Delineation Protocols<a href="#packet-delineation-protocols" class="hash-link" aria-label="Direct link to Packet Delineation Protocols" title="Direct link to Packet Delineation Protocols"></a></h2><p>COSMOS provides the following packet delineation protocols: Burst, Fixed, Length, Template, Terminated and Preidentified. Each of these protocols has the primary purpose of separating out packets from a byte stream.</p><p>Note that all protocols take a final parameter called "Allow Empty Data". This indicates whether the protocol will allow an empty string to be passed down to later Protocols (instead of returning :STOP). Can be true, false, or nil, where nil is interpreted as true unless the Protocol is the last Protocol of the chain. End users of a protocol will almost always simply leave off this parameter. For more information read the <a href="/tools/docs/docs/configuration/protocols#custom-protocols">Custom Protocols</a> documentation.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="burst-protocol">Burst Protocol<a href="#burst-protocol" class="hash-link" aria-label="Direct link to Burst Protocol" title="Direct link to Burst Protocol"></a></h3><p>The Burst Protocol simply reads as much data as it can from the interface before returning the data as a COSMOS Packet (It returns a packet for each burst of data read). This Protocol relies on regular bursts of data delimited by time and thus is not very robust. However, it can utilize a sync pattern which does allow it to re-sync if necessary. It can also discard bytes from the incoming data to remove the sync pattern. Finally, it can add sync patterns to data being written out of the Interface.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Discard Leading Bytes</td><td>The number of bytes to discard from the binary data after reading. Note that this applies to bytes starting with the sync pattern if the sync pattern is being used.</td><td>No</td><td>0 (do not discard bytes)</td></tr><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found including the sync pattern will be returned</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Fill Fields</td><td>Whether to fill in the sync pattern on outgoing packets</td><td>No</td><td>false</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="fixed-protocol">Fixed Protocol<a href="#fixed-protocol" class="hash-link" aria-label="Direct link to Fixed Protocol" title="Direct link to Fixed Protocol"></a></h3><p>The Fixed Protocol reads a preset minimum amount of data which is necessary to properly identify all the defined packets using the interface. It then identifies the packet and proceeds to read as much data from the interface as necessary to create the packet which it then returns. This protocol relies on all the packets on the interface being fixed in length. For example, all the packets using the interface are a fixed size and contain a simple header with a 32-bit sync pattern followed by a 16 bit ID. The Fixed Protocol would elegantly handle this case with a minimum read size of 6 bytes. The Fixed Protocol also supports a sync pattern, discarding leading bytes, and filling the sync pattern similar to the Burst Protocol.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Minimum ID Size</td><td>The minimum number of bytes needed to identify a packet. All the packet definitions must declare their ID_ITEM(s) within this given number of bytes.</td><td>Yes</td><td></td></tr><tr><td>Discard Leading Bytes</td><td>The number of bytes to discard from the binary data after reading. Note that this applies to bytes starting with the sync pattern if the sync pattern is being used.</td><td>No</td><td>0 (do not discard bytes)</td></tr><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found including the sync pattern will be returned.</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Telemetry</td><td>Whether the data is telemetry</td><td>No</td><td>true (false means command)</td></tr><tr><td>Fill Fields</td><td>Whether to fill in the sync pattern on outgoing packets</td><td>No</td><td>false</td></tr><tr><td>Unknown Raise</td><td>Whether to raise an exception for an unknown packet</td><td>No</td><td>false</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="length-protocol">Length Protocol<a href="#length-protocol" class="hash-link" aria-label="Direct link to Length Protocol" title="Direct link to Length Protocol"></a></h3><p>The Length Protocol depends on a length field at a fixed location in the defined packets using the interface. It then reads enough data to grab the length field, decodes it, and reads the remaining length of the packet. For example, all the packets using the interface contain a CCSDS header with a length field. The Length Protocol can be set up to handle the length field and even the length offset CCSDS uses. The Length Protocol also supports a sync pattern, discarding leading bytes, and filling the length and sync pattern similar to the Burst Protocol.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Length Bit Offset</td><td>The bit offset from the start of the packet to the length field. Every packet using this interface must have the same structure such that the length field is the same size at the same location. Be sure to account for the length of the Sync Pattern in this value (if present).</td><td>No</td><td>0 bits</td></tr><tr><td>Length Bit Size</td><td>The size in bits of the length field</td><td>No</td><td>16 bits</td></tr><tr><td>Length Value Offset</td><td>The offset to apply to the length field value. The actual value of the length field plus this offset should equal the exact number of bytes required to read all data for the packet (including the length field itself, sync pattern, etc). For example, if the length field indicates packet length minus one, this value should be one. Be sure to account for the length of the Sync Pattern in this value (if present).</td><td>No</td><td>0</td></tr><tr><td>Bytes per Count</td><td>The number of bytes per each length field 'count'. This is used if the units of the length field is something other than bytes, e.g. if the length field count is in words.</td><td>No</td><td>1 byte</td></tr><tr><td>Length Endianness</td><td>The endianness of the length field. Must be either 'BIG_ENDIAN' or 'LITTLE_ENDIAN'.</td><td>No</td><td>'BIG_ENDIAN'</td></tr><tr><td>Discard Leading Bytes</td><td>The number of bytes to discard from the binary data after reading. Note that this applies to bytes including the sync pattern if the sync pattern is being used. Discarding is one of the very last steps so any size and offsets above need to account for all the data before discarding.</td><td>No</td><td>0 (do not discard bytes)</td></tr><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found including the sync pattern will be returned.</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Max Length</td><td>The maximum allowed value in the length field</td><td>No</td><td>nil (no maximum length)</td></tr><tr><td>Fill Length and Sync Pattern</td><td>Setting this flag to true causes the length field and sync pattern (if present) to be filled automatically on outgoing packets.</td><td>No</td><td>false</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="terminated-protocol">Terminated Protocol<a href="#terminated-protocol" class="hash-link" aria-label="Direct link to Terminated Protocol" title="Direct link to Terminated Protocol"></a></h3><p>The Terminated Protocol delineates packets using termination characters found at the end of every packet. It continuously reads data until the termination characters are found at which point it returns the packet data. For example, all the packets using the interface are followed by 0xABCD. This data can either be a part of each packet that is kept or something which is known only by the Terminated Protocol and simply thrown away.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Write Termination Characters</td><td>The data to write after writing a command packet. Given as a hex string such as 0xABCD.</td><td>Yes</td><td></td></tr><tr><td>Read Termination Characters</td><td>The characters which delineate the end of a telemetry packet. Given as a hex string such as 0xABCD.</td><td>Yes</td><td></td></tr><tr><td>Strip Read Termination</td><td>Whether to remove the read termination characters before returning the telemetry packet</td><td>No</td><td>true</td></tr><tr><td>Discard Leading Bytes</td><td>The number of bytes to discard from the binary data after reading. Note that this applies to bytes including the sync pattern if the sync pattern is being used.</td><td>No</td><td>0 (do not discard bytes)</td></tr><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found including the sync pattern will be returned.</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Fill Fields</td><td>Whether to fill in the sync pattern on outgoing packets</td><td>No</td><td>false</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="template-protocol">Template Protocol<a href="#template-protocol" class="hash-link" aria-label="Direct link to Template Protocol" title="Direct link to Template Protocol"></a></h3><p>The Template Protocol works much like the Terminated Protocol except it is designed for text-based command and response type interfaces such as SCPI (Standard Commands for Programmable Instruments). It delineates packets in the same way as the Terminated Protocol except each packet is referred to as a line (because each usually contains a line of text). For outgoing packets, a CMD_TEMPLATE field is expected to exist in the packet. This field contains a template string with items to be filled in delineated within HTML tag style brackets <code>"<EXAMPLE>"</code>. The Template Protocol will read the named items from within the packet and fill in the CMD_TEMPLATE. This filled in string is then sent out rather than the originally passed in packet. Correspondingly, if a response is expected the outgoing packet should include a RSP_TEMPLATE and RSP_PACKET field. The RSP_TEMPLATE is used to extract data from the response string and build a corresponding RSP_PACKET. See the TEMPLATE target within the COSMOS Demo configuration for an example of usage.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Write Termination Characters</td><td>The data to write after writing a command packet. Given as a hex string such as 0xABCD.</td><td>Yes</td><td></td></tr><tr><td>Read Termination Characters</td><td>The characters which delineate the end of a telemetry packet. Given as a hex string such as 0xABCD.</td><td>Yes</td><td></td></tr><tr><td>Ignore Lines</td><td>Number of response lines to ignore (completely drop)</td><td>No</td><td>0 lines</td></tr><tr><td>Initial Read Delay</td><td>An initial delay after connecting after which the interface will be read till empty and data dropped. Useful for discarding connect headers and initial prompts.</td><td>No</td><td>nil (no initial read)</td></tr><tr><td>Response Lines</td><td>The number of lines that make up expected responses</td><td>No</td><td>1 line</td></tr><tr><td>Strip Read Termination</td><td>Whether to remove the read termination characters before returning the telemetry packet</td><td>No</td><td>true</td></tr><tr><td>Discard Leading Bytes</td><td>The number of bytes to discard from the binary data after reading. Note that this applies to bytes including the sync pattern if the sync pattern is being used.</td><td>No</td><td>0 (do not discard bytes)</td></tr><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found including the sync pattern will be returned.</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Fill Fields</td><td>Whether to fill in the sync pattern on outgoing packets</td><td>No</td><td>false</td></tr><tr><td>Response Timeout</td><td>Number of seconds to wait for a response before timing out</td><td>No</td><td>5.0</td></tr><tr><td>Response Polling Period</td><td>Number of seconds to wait between polling for a response</td><td>No</td><td>0.02</td></tr><tr><td>Raise Exceptions</td><td>Whether to raise exceptions when errors occur like timeouts or unexpected responses</td><td>No</td><td>false</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="preidentified-protocol">Preidentified Protocol<a href="#preidentified-protocol" class="hash-link" aria-label="Direct link to Preidentified Protocol" title="Direct link to Preidentified Protocol"></a></h3><p>The Preidentified Protocol delineates packets using a custom COSMOS header. This Protocol is created to allow tools to connect and receive the entire packet stream. It can also be used to chain COSMOS instances together although that should rarely be needed with the new web native implementation.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Sync Pattern</td><td>Hex string representing a byte pattern that will be searched for in the raw data. This pattern represents a packet delimiter and all data found AFTER the sync pattern will be returned. The sync pattern itself is discarded.</td><td>No</td><td>nil (no sync pattern)</td></tr><tr><td>Max Length</td><td>The maximum allowed value in the length field</td><td>No</td><td>nil (no maximum length)</td></tr><tr><td>Mode</td><td>The Version of the preidentified protocol to support (2 or 4).3</td><td>No</td><td>4</td></tr></tbody></table><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="helper-protocols">Helper Protocols<a href="#helper-protocols" class="hash-link" aria-label="Direct link to Helper Protocols" title="Direct link to Helper Protocols"></a></h2><p>COSMOS provides the following helper protocols: Crc & Ignore. These protocols provide helper functionality to Interfaces.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="crc-protocol">CRC Protocol<a href="#crc-protocol" class="hash-link" aria-label="Direct link to CRC Protocol" title="Direct link to CRC Protocol"></a></h3><p>The CRC protocol can add CRCs to outgoing commands and verify CRCs on incoming telemetry packets.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Write Item Name</td><td>Item to fill with calculated CRC value for outgoing packets (nil = don't fill)</td><td>No</td><td>nil</td></tr><tr><td>Strip CRC</td><td>Whether to remove the CRC from incoming packets</td><td>No</td><td>false</td></tr><tr><td>Bad Strategy</td><td>How to handle CRC errors on incoming packets. ERROR = Just log the error, DISCONNECT = Disconnect interface</td><td>No</td><td>"ERROR"</td></tr><tr><td>Bit Offset</td><td>Bit offset of the CRC in the data. Can be negative to indicate distance from end of packet</td><td>No</td><td>-32</td></tr><tr><td>Bit Size</td><td>Bit size of the CRC - Must be 16, 32, or 64</td><td>No</td><td>32</td></tr><tr><td>Endianness</td><td>Endianness of the CRC (BIG_ENDIAN/LITTLE_ENDIAN)</td><td>No</td><td>"BIG_ENDIAN"</td></tr><tr><td>Poly</td><td>Polynomial to use when calculating the CRC expressed as an integer</td><td>No</td><td>nil (use default polynomial - 16-bit=0x1021, 32-bit=0x04C11DB7, 64-bit=0x42F0E1EBA9EA3693)</td></tr><tr><td>Seed</td><td>Seed value to start the calculation</td><td>No</td><td>nil (use default seed - 16-bit=0xFFFF, 32-bit=0xFFFFFFFF, 64-bit=0xFFFFFFFFFFFFFFFF)</td></tr><tr><td>Xor</td><td>Whether to XOR the CRC result with 0xFFFF</td><td>No</td><td>nil (use default value - 16-bit=false, 32-bit=true, 64-bit=true)</td></tr><tr><td>Reflect</td><td>Whether to bit reverse each byte of data before calculating the CRC</td><td>No</td><td>nil (use default value - 16-bit=false, 32-bit=true, 64-bit=true)</td></tr></tbody></table><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="ignore-packet-protocol">Ignore Packet Protocol<a href="#ignore-packet-protocol" class="hash-link" aria-label="Direct link to Ignore Packet Protocol" title="Direct link to Ignore Packet Protocol"></a></h3><p>The Ignore Packet protocol drops specified command packets sent by COSMOS or drops incoming telemetry packets.</p><table><thead><tr><th>Parameter</th><th>Description</th><th>Required</th><th>Default</th></tr></thead><tbody><tr><td>Target Name</td><td>Target name of the packet to ignore</td><td>Yes</td><td>nil</td></tr><tr><td>Packet Name</td><td>Packet name of the packet to ignore</td><td>Yes</td><td>nil</td></tr></tbody></table><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="custom-protocols">Custom Protocols<a href="#custom-protocols" class="hash-link" aria-label="Direct link to Custom Protocols" title="Direct link to Custom Protocols"></a></h2><p>Creating a custom protocol is easy and should be the default solution for customizing COSMOS Interfaces (rather than creating a new Interface class). However, creating custom Interfaces is still useful for defaulting parameters to values that always are fixed for your target and for including the necessary Protocols. The base COSMOS Interfaces take a lot of parameters that can be confusing to your end users. Thus you may want to create a custom Interface just to hard coded these values and cut the available parameters down to something like the hostname and port to connect to.</p><p>All custom Protocols should derive from the Protocol class found in the COSMOS gem at <a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/protocol.rb</a>. This class defines the 9 methods that are relevant to writing your own protocol. The base class implementation for each method is included below as well as a discussion as to how the methods should be overridden and used in your own Protocols.</p><p>To really understand how Protocols work, you first must understand the logic within the base Interface class read and write methods.</p><p>Let's first discuss the read method.</p><p><img loading="lazy" alt="Interface Read Logic" src="/tools/docs/assets/images/interface_read_logic-0deef27c1d2fec9de2a3720a3c9ecedb21a00dca7aabd13da0b8815c037e4c26.png" width="1063" height="542" class="img__Ss2"></p><p>On EVERY call to read, an empty Ruby string "" is first passed down to each of the read Protocol's read_data() method BEFORE new raw data is attempted to be read using the Interface's read_interface() method. This is a signal to Protocols that have cached up more than one packet worth of data to output those cached packets before any new data is read from the Interface. Typically no data will be cached up and one of the Protocols read_data() methods will return :STOP in response to the empty string, indicating that more data is required to generate a packet. Each Protocol's read_data() method can return one of three things: data that will be passed down to any additional Protocols or turned into a Packet, :STOP which means more data is required from the Interface for the Protocol to continue, or :DISCONNECT which means that something has happened that requires disconnecting the Interface (and by default trying to reconnect). Each Protocol's read_data method is passed the data that will eventually be turned into a packet and returns a possibly modified set of data. If the data passes through all Protocol's read_data() methods it is then converted into a COSMOS packet using the Interface's convert_data_to_packet() method. This packet is then run in a similar fashion through each Read Protocol's read_packet() method. This method has essentially the same return possibilities: a Packet (instead of data as in read_data()), :STOP, or :DISCONNECT. If the Packet makes it through all read_packet() methods then the Interface packet read counter is incremented and the Packet is returned to the Interface.</p><p><img loading="lazy" alt="Interface Write Logic" src="/tools/docs/assets/images/interface_write_logic-3360afe1b4af20b10dafba848a21e09baccaacc06e2ec8b6c132ac7a3c99e994.png" width="931" height="944" class="img__Ss2"></p><p>The Interface write() method works very similarly to read. (It should be mentioned that by default write protocols run in the reverse order of read protocols. This makes sense because when reading you're typically stripping layers of data and when writing you're typically adding on layers in reverse order.)</p><p>First, the packet write counter is incremented. Then each write Protocol is given a chance to modify the packet by its write_packet() method being called. This method can either return a potentially modified packet, :STOP, or :DISCONNECT. If a write Protocol returns :STOP no data will be written out the Interface and it is assumed that more packets are necessary before a final packet can be output. :DISCONNECT will disconnect the Interface. If the packet makes it through all the write Protocol's write_packet() methods, then it is converted to binary data using the Interface's convert_packet_to_data() method. Next the write_data() method is called for each write Protocol giving it a chance to modify the lower level data. The same return options are available except a Ruby string of data is returned instead of a COSMOS packet. If the data makes it through all write_data() methods, then it is written out on the Interface using the write_interface() method. Afterwards, each Protocol's post_write_interface() method is called with both the final modified Packet, and the actual data written out to the Interface. This method allows follow-up such as waiting for a response after writing out a message.</p><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="method-discussions">Method discussions<a href="#method-discussions" class="hash-link" aria-label="Direct link to Method discussions" title="Direct link to Method discussions"></a></h2><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="initialize">initialize<a href="#initialize" class="hash-link" aria-label="Direct link to initialize" title="Direct link to initialize"></a></h3><p>This is the constructor for your custom Protocol. It should always call super(allow_empty_data) to initialize the base Protocol class.</p><p>Base class implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic"># @param allow_empty_data [true/false] Whether STOP should be returned on empty data</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">initialize</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">allow_empty_data </span><span class="token operator" style="color:rgb(127, 219, 202)">=</span><span class="token plain"> </span><span class="token boolean" style="color:rgb(255, 88, 116)">false</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token variable" style="color:rgb(214, 222, 235)">@interface</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">=</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">nil</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token variable" style="color:rgb(214, 222, 235)">@allow_empty_data</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">=</span><span class="token plain"> ConfigParser</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">handle_true_false</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">allow_empty_data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> reset</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>As you can see, every Protocol maintains state on at least two items. @interface holds the Interface class instance that the protocol is associated with. This is sometimes necessary to introspect details that only the Interface knows. @allow_empty_data is a flag used by the read_data(data) method that is discussed later in this document.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="reset">reset<a href="#reset" class="hash-link" aria-label="Direct link to reset" title="Direct link to reset"></a></h3><p>The reset method is used to reset internal protocol state when the Interface is connected and/or disconnected. This method should be used for common resetting logic. Connect and Disconnect specific logic are handled in the next two methods.</p><p>Base class implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">reset</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>As you can see, the base class reset implementation doesn't do anything.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="connect_reset">connect_reset<a href="#connect_reset" class="hash-link" aria-label="Direct link to connect_reset" title="Direct link to connect_reset"></a></h3><p>The connect_reset method is used to reset internal Protocol state each time the Interface is connected.</p><p>Base class implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">connect_reset</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> reset</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class connect_reset implementation just calls the reset method to ensure common reset logic is run.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="disconnect_reset">disconnect_reset<a href="#disconnect_reset" class="hash-link" aria-label="Direct link to disconnect_reset" title="Direct link to disconnect_reset"></a></h3><p>The disconnect_reset method is used to reset internal Protocol state each time the Interface is disconnected.</p><p>Base class implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">disconnect_reset</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> reset</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class disconnect_reset implementation just calls the reset method to ensure common reset logic is run.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="read_data">read_data<a href="#read_data" class="hash-link" aria-label="Direct link to read_data" title="Direct link to read_data"></a></h3><p>The read_data method is used to analyze and potentially modify any raw data read by an Interface. It takes one parameter as the current state of the data to be analyzed. It can return either a Ruby string of data, :STOP, or :DISCONNECT. If it returns a Ruby string, then it believes that data may be ready to be a full packet, and is ready for processing by any following Protocols. If :STOP is returned then the Protocol believes it needs more data to complete a full packet. If :DISCONNECT is returned then the Protocol believes the Interface should be disconnected (and typically automatically reconnected).</p><p>Base Class Implemenation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">read_data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">if</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">length </span><span class="token operator" style="color:rgb(127, 219, 202)"><=</span><span class="token plain"> </span><span class="token number" style="color:rgb(247, 140, 108)">0</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">if</span><span class="token plain"> </span><span class="token variable" style="color:rgb(214, 222, 235)">@allow_empty_data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token keyword" style="color:rgb(127, 219, 202)">nil</span><span class="token operator" style="color:rgb(127, 219, 202)">?</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">if</span><span class="token plain"> </span><span class="token variable" style="color:rgb(214, 222, 235)">@interface</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">and</span><span class="token plain"> </span><span class="token variable" style="color:rgb(214, 222, 235)">@interface</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token plain">read_protocols</span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token operator" style="color:rgb(127, 219, 202)">-</span><span class="token number" style="color:rgb(247, 140, 108)">1</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">==</span><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">self</span><span class="token plain"> </span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic"># Last read interface in chain with auto @allow_empty_data</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> </span><span class="token symbol">:STOP</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">elsif</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">!</span><span class="token variable" style="color:rgb(214, 222, 235)">@allow_empty_data</span><span class="token plain"> </span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic"># Don't @allow_empty_data means STOP</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> </span><span class="token symbol">:STOP</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> data</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class implementation does nothing except return the data it was given. The only exception to this is when handling an empty string. If the allow_empty_data flag is false or if it nil and the Protocol is the last in the chain, then the base implementation will return :STOP data to indicate that it is time to call the Interface read_interface() method to get more data. Blank strings are used to signal Protocols that they have an opportunity to return a cached packet.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="read_packet">read_packet<a href="#read_packet" class="hash-link" aria-label="Direct link to read_packet" title="Direct link to read_packet"></a></h3><p>The read_packet method is used to analyze and potentially modify a COSMOS packet before it is returned by the Interface. It takes one parameter as the current state of the packet to be analyzed. It can return either a COSMOS packet, :STOP, or :DISCONNECT. If it returns a COSMOS packet, then it believes that the packet is valid, should be returned, and is ready for processing by any following Protocols. If :STOP is returned then the Protocol believes the packet should be silently dropped. If :DISCONNECT is returned then the Protocol believes the Interface should be disconnected (and typically automatically reconnected). This method is where a Protocol would set the stored flag on a packet if it determines that the packet is stored telemetry instead of real-time telemetry.</p><p>Base Class Implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">read_packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> packet</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class always just returns the packet given.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="write_packet">write_packet<a href="#write_packet" class="hash-link" aria-label="Direct link to write_packet" title="Direct link to write_packet"></a></h3><p>The write_packet method is used to analyze and potentially modify a COSMOS packet before it is output by the Interface. It takes one parameter as the current state of the packet to be analyzed. It can return either a COSMOS packet, :STOP, or :DISCONNECT. If it returns a COSMOS packet, then it believes that the packet is valid, should be written out the Interface, and is ready for processing by any following Protocols. If :STOP is returned then the Protocol believes the packet should be silently dropped. If :DISCONNECT is returned then the Protocol believes the Interface should be disconnected (and typically automatically reconnected).</p><p>Base Class Implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">write_packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> packet</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class always just returns the packet given.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="write_data">write_data<a href="#write_data" class="hash-link" aria-label="Direct link to write_data" title="Direct link to write_data"></a></h3><p>The write_data method is used to analyze and potentially modify data before it is written out by the Interface. It takes one parameter as the current state of the data to be analyzed and sent. It can return either a Ruby String of data, :STOP, or :DISCONNECT. If it returns a Ruby string of data, then it believes that the data is valid, should be written out the Interface, and is ready for processing by any following Protocols. If :STOP is returned then the Protocol believes the data should be silently dropped. If :DISCONNECT is returned then the Protocol believes the Interface should be disconnected (and typically automatically reconnected).</p><p>Base Class Implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">write_data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> data</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class always just returns the data given.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="post_write_interface">post_write_interface<a href="#post_write_interface" class="hash-link" aria-label="Direct link to post_write_interface" title="Direct link to post_write_interface"></a></h3><p>The post_write_interface method is called after data has been written out the Interface. The typical use of this method is to provide a hook to implement command/response type interfaces where a response is always immediately expected in response to a command. It takes two parameters, the packet after all modifications by write_packet() and the data that was actually written out the Interface. It can return either the same pair of packet/data, :STOP, or :DISCONNECT. If it returns a packet/data pair then they are passed on to any other Protocols. If :STOP is returned then the Interface write() call completes and no further Protocols post_write_interface() methods are called. If :DISCONNECT is returned then the Protocol believes the Interface should be disconnected (and typically automatically reconnected). Note that only the first parameter "packet", is checked to be :STOP, or :DISCONNECT on the return.</p><p>Base Class Implementation:</p><div class="language-ruby codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-ruby codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">def</span><span class="token plain"> </span><span class="token method-definition function" style="color:rgb(130, 170, 255)">post_write_interface</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> data</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token keyword" style="color:rgb(127, 219, 202)">return</span><span class="token plain"> packet</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"> data</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">end</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>The base class always just returns the packet/data given.</p><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="examples">Examples<a href="#examples" class="hash-link" aria-label="Direct link to Examples" title="Direct link to Examples"></a></h2><p>Please see the included COSMOS protocol code for examples of the above methods in action.</p><p><a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/protocol.rb</a>
|
13
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/burst_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/burst_protocol.rb</a>
|
14
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/fixed_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/fixed_protocol.rb</a>
|
15
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/length_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/length_protocol.rb</a>
|
16
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/terminated_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/terminated_protocol.rb</a>
|
17
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/template_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/template_protocol.rb</a>
|
18
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/crc_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/crc_protocol.rb</a>
|
19
|
+
<a href="https://github.com/OpenC3/cosmos/blob/main/openc3/lib/openc3/interfaces/protocols/preidentified_protocol.rb" target="_blank" rel="noopener noreferrer">lib/openc3/interfaces/protocols/preidentified_protocol.rb</a></p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/OpenC3/cosmos/tree/main/docs.openc3.com/docs/configuration/protocols.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_UohW" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_T23F"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/tools/docs/docs/configuration/interfaces"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Interfaces</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/tools/docs/docs/configuration/table"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Tables</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_TN1Q thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#packet-delineation-protocols" class="table-of-contents__link toc-highlight">Packet Delineation Protocols</a><ul><li><a href="#burst-protocol" class="table-of-contents__link toc-highlight">Burst Protocol</a></li><li><a href="#fixed-protocol" class="table-of-contents__link toc-highlight">Fixed Protocol</a></li><li><a href="#length-protocol" class="table-of-contents__link toc-highlight">Length Protocol</a></li><li><a href="#terminated-protocol" class="table-of-contents__link toc-highlight">Terminated Protocol</a></li><li><a href="#template-protocol" class="table-of-contents__link toc-highlight">Template Protocol</a></li><li><a href="#preidentified-protocol" class="table-of-contents__link toc-highlight">Preidentified Protocol</a></li></ul></li><li><a href="#helper-protocols" class="table-of-contents__link toc-highlight">Helper Protocols</a><ul><li><a href="#crc-protocol" class="table-of-contents__link toc-highlight">CRC Protocol</a></li><li><a href="#ignore-packet-protocol" class="table-of-contents__link toc-highlight">Ignore Packet Protocol</a></li></ul></li><li><a href="#custom-protocols" class="table-of-contents__link toc-highlight">Custom Protocols</a></li><li><a href="#method-discussions" class="table-of-contents__link toc-highlight">Method discussions</a><ul><li><a href="#initialize" class="table-of-contents__link toc-highlight">initialize</a></li><li><a href="#reset" class="table-of-contents__link toc-highlight">reset</a></li><li><a href="#connect_reset" class="table-of-contents__link toc-highlight">connect_reset</a></li><li><a href="#disconnect_reset" class="table-of-contents__link toc-highlight">disconnect_reset</a></li><li><a href="#read_data" class="table-of-contents__link toc-highlight">read_data</a></li><li><a href="#read_packet" class="table-of-contents__link toc-highlight">read_packet</a></li><li><a href="#write_packet" class="table-of-contents__link toc-highlight">write_packet</a></li><li><a href="#write_data" class="table-of-contents__link toc-highlight">write_data</a></li><li><a href="#post_write_interface" class="table-of-contents__link toc-highlight">post_write_interface</a></li></ul></li><li><a href="#examples" class="table-of-contents__link toc-highlight">Examples</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Homepage</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://openc3.com" target="_blank" rel="noopener noreferrer" class="footer__link-item">Home</a></li></ul></div><div class="col footer__col"><div class="footer__title">Docs</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/tools/docs/docs">Documentation</a></li></ul></div><div class="col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://www.linkedin.com/company/openc3" target="_blank" rel="noopener noreferrer" class="footer__link-item">LinkedIn<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_awgD"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://github.com/OpenC3/cosmos" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_awgD"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a class="footer__link-item" href="/tools/docs/docs/privacy">Privacy</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2023 OpenC3, Inc.</div></div></div></footer></div>
|
20
|
+
<script src="/tools/docs/assets/js/runtime~main.e3a6c705.js"></script>
|
21
|
+
<script src="/tools/docs/assets/js/main.b5a535c2.js"></script>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en" dir="ltr" class="docs-wrapper docs-doc-page docs-version-current plugin-docs plugin-id-default docs-doc-id-configuration/ssl-tls" data-has-hydrated="false">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="generator" content="Docusaurus v2.4.3">
|
6
|
+
<title data-rh="true">SSL-TLS | OpenC3 Docs</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://docs.openc3.com/tools/docs/docs/configuration/ssl-tls"><meta data-rh="true" name="docusaurus_locale" content="en"><meta data-rh="true" name="docsearch:language" content="en"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="SSL-TLS | OpenC3 Docs"><meta data-rh="true" name="description" content="COSMOS 5 is a container based service which does not use SSL/TLS out of the box. This guide will help you configure SSL and TLS. Learn more at the Traefik docs."><meta data-rh="true" property="og:description" content="COSMOS 5 is a container based service which does not use SSL/TLS out of the box. This guide will help you configure SSL and TLS. Learn more at the Traefik docs."><link data-rh="true" rel="icon" href="/tools/docs/img/favicon.png"><link data-rh="true" rel="canonical" href="https://docs.openc3.com/tools/docs/docs/configuration/ssl-tls"><link data-rh="true" rel="alternate" href="https://docs.openc3.com/tools/docs/docs/configuration/ssl-tls" hreflang="en"><link data-rh="true" rel="alternate" href="https://docs.openc3.com/tools/docs/docs/configuration/ssl-tls" hreflang="x-default"><link rel="stylesheet" href="/tools/docs/assets/css/styles.7bc79028.css">
|
7
|
+
<link rel="preload" href="/tools/docs/assets/js/runtime~main.e3a6c705.js" as="script">
|
8
|
+
<link rel="preload" href="/tools/docs/assets/js/main.b5a535c2.js" as="script">
|
9
|
+
</head>
|
10
|
+
<body class="navigation-with-keyboard">
|
11
|
+
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}return t}()||function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"dark")}()</script><div id="__docusaurus">
|
12
|
+
<div role="region" aria-label="Skip to main content"><a class="skipToContent_G6ar" href="#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/tools/docs/"><div class="navbar__logo"><img src="/tools/docs/img/logo.svg" alt="OpenC3 Logo" class="themedImage_RWGG themedImage--light_riBm"><img src="/tools/docs/img/logo.svg" alt="OpenC3 Logo" class="themedImage_RWGG themedImage--dark_Dsi0"></div><b class="navbar__title text--truncate">OpenC3 Docs</b></a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="/tools/docs/docs">Documentation</a><a href="https://openc3.com/enterprise/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Enterprise</a></div><div class="navbar__items navbar__items--right"><div class="searchBox_xrOJ"><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Loading..." aria-label="Search" class="navbar__search-input search-bar" disabled=""></div></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_UyTV docsWrapper_BqXd"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_z1FD" type="button"></button><div class="docPage_pOTq"><aside class="theme-doc-sidebar-container docSidebarContainer_aIKW"><div class="sidebarViewport_DwR9"><div class="sidebar_vJCc"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_qiME"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/tools/docs/docs">Introduction</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/getting-started">Getting Started</a><button aria-label="Toggle the collapsible sidebar category 'Getting Started'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist menu__link--active" aria-expanded="true" href="/tools/docs/docs/configuration">Configuration</a><button aria-label="Toggle the collapsible sidebar category 'Configuration'" type="button" class="clean-btn menu__caret"></button></div><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/format">File Format</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/plugins">Plugins</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/target">Targets</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/command">Commands</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/telemetry">Telemetry</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/interfaces">Interfaces</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/protocols">Protocols</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/table">Tables</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/tools/docs/docs/configuration/telemetry-screens">Screens</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" tabindex="0" href="/tools/docs/docs/configuration/ssl-tls">SSL-TLS</a></li></ul></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/tools">Tools</a><button aria-label="Toggle the collapsible sidebar category 'Tools'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/guides">Guides</a><button aria-label="Toggle the collapsible sidebar category 'Guides'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/development">Development</a><button aria-label="Toggle the collapsible sidebar category 'Development'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" aria-expanded="false" href="/tools/docs/docs/meta">Meta</a><button aria-label="Toggle the collapsible sidebar category 'Meta'" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/tools/docs/docs/privacy">OpenC3, Inc. Privacy Policy</a></li></ul></nav></div></div></aside><main class="docMainContainer_fv3b"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_YAwJ"><div class="docItemContainer_Rv5Z"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_zCmv" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="/tools/docs/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_JFrk"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item"><a class="breadcrumbs__link" itemprop="item" href="/tools/docs/docs/configuration"><span itemprop="name">Configuration</span></a><meta itemprop="position" content="1"></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">SSL-TLS</span><meta itemprop="position" content="2"></li></ul></nav><div class="tocCollapsible_O_Qc theme-doc-toc-mobile tocMobile_tjDr"><button type="button" class="clean-btn tocCollapsibleButton_htYj">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>SSL-TLS</h1></header><p>COSMOS 5 is a container based service which does not use SSL/TLS out of the box. This guide will help you configure SSL and TLS. Learn more at the Traefik <a href="https://doc.traefik.io/traefik/routing/entrypoints/#tls" target="_blank" rel="noopener noreferrer">docs</a>.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="generate-the-certificate">Generate the certificate<a href="#generate-the-certificate" class="hash-link" aria-label="Direct link to Generate the certificate" title="Direct link to Generate the certificate"></a></h3><blockquote><p>Note: Self-signed certificates are considered insecure for the Internet. Firefox will treat the site as having an invalid certificate, while Chrome will act as if the connection was plain HTTP.</p></blockquote><p>To create a new Self-Signed SSL Certificate, use the openssl req command (run on linux from the cosmos-project root):</p><div class="language-bash codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-bash codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl req -newkey rsa:4096 </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -x509 </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -sha256 </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -days </span><span class="token number" style="color:rgb(247, 140, 108)">3650</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -nodes </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -out ./openc3-traefik/cert.crt </span><span class="token punctuation" style="color:rgb(199, 146, 234)">\</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> -keyout ./openc3-traefik/cert.key</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain" style="display:inline-block"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Country Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token number" style="color:rgb(247, 140, 108)">2</span><span class="token plain"> letter code</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">XX</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:.</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">State or Province Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">full name</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:.</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Locality Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">eg, city</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">Default City</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:.</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Organization Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">eg, company</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token plain">Default Company Ltd</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:.</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Organizational Unit Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">eg, section</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:.</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Common Name </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token plain">eg, your name or your server </span><span class="token function" style="color:rgb(130, 170, 255)">hostname</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">: </span><span class="token operator" style="color:rgb(127, 219, 202)"><</span><span class="token operator" style="color:rgb(127, 219, 202)">!</span><span class="token plain">-- UPDATE WITH YOUR </span><span class="token environment constant" style="color:rgb(130, 170, 255)">HOSTNAME</span><span class="token plain"> HERE --</span><span class="token operator" style="color:rgb(127, 219, 202)">></span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">Email Address </span><span class="token punctuation" style="color:rgb(199, 146, 234)">[</span><span class="token punctuation" style="color:rgb(199, 146, 234)">]</span><span class="token plain">:</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>Let's breakdown the command and understand what each option means:</p><ul><li><code>newkey rsa:4096</code> - Creates a new certificate request and 4096 bit RSA key. The default one is 2048 bits.</li><li><code>x509</code> - Creates a X.509 Certificate.</li><li><code>sha256</code> - Use 265-bit SHA (Secure Hash Algorithm).</li><li><code>days 3650</code> - The number of days to certify the certificate for. 3650 is ten years. You can use any positive integer.</li><li><code>nodes</code> - Creates a key without a passphrase.</li><li><code>out ./openc3-traefik/cert.crt</code> - Specifies the filename to write the newly created certificate to. You can specify any file name.</li><li><code>keyout ./openc3-traefik/cert.key</code> - Specifies the filename to write the newly created private key to. You can specify any file name.</li></ul><p>For more information about the <code>openssl req</code> command options, visit the <a href="https://www.openssl.org/docs/man1.0.2/man1/openssl-req.html" target="_blank" rel="noopener noreferrer">OpenSSL req documentation page</a>.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="updating-the-openc3-traefik-dockerfile">Updating the openc3-traefik Dockerfile<a href="#updating-the-openc3-traefik-dockerfile" class="hash-link" aria-label="Direct link to Updating the openc3-traefik Dockerfile" title="Direct link to Updating the openc3-traefik Dockerfile"></a></h3><p>Add the new cert to the traefik Docker container.</p><div class="language-diff codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-diff codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token coord">--- a/openc3-traefik/Dockerfile</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token coord">+++ b/openc3-traefik/Dockerfile</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token coord">@@ -1,3 +1,4 @@</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line">FROM traefik:2.4</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line">COPY ./traefik.yaml /etc/traefik/traefik.yaml</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic">COPY ./cert.crt ./cert.key /etc/certs/</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line">EXPOSE 80</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="updating-the-traefik-config">Updating the Traefik config<a href="#updating-the-traefik-config" class="hash-link" aria-label="Direct link to Updating the Traefik config" title="Direct link to Updating the Traefik config"></a></h3><p>Configure Traefik to use the new cert file.</p><p>openc3-traefik/traefik.yaml</p><div class="language-diff codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-diff codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token coord">--- a/openc3-traefik/traefik.yaml</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token coord">+++ b/openc3-traefik/traefik.yaml</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token coord">@@ -3,6 +3,17 @@</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic">tls:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> certificates:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> - certFile: "/etc/certs/cert.crt"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> keyFile: "/etc/certs/cert.key"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token plain"># Listen for everything coming in on the standard HTTP port</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain">entrypoints:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> web:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> address: ":80"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> http:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> redirections:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> entryPoint:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> to: websecure</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> scheme: https</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> websecure:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> address: ":443"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> http:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> tls:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> domains:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> - main: "<!-- UPDATE WITH YOUR HOSTNAME HERE -->"</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="update-docker-composeyaml">Update docker-compose.yaml<a href="#update-docker-composeyaml" class="hash-link" aria-label="Direct link to Update docker-compose.yaml" title="Direct link to Update docker-compose.yaml"></a></h3><p>Update traefik to use secure port 443 instead of port 80.</p><div class="language-diff codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-diff codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token coord">--- a/compose.yaml</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token coord">+++ b/compose.yaml</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line">services:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> openc3-minio:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token plain">@@ -70,7 +70,7 @@ services:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> openc3-traefik:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> image: "ballaerospace/openc3-traefik:${OPENC3_TAG}"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> ports:</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token deleted-sign deleted prefix deleted" style="color:rgba(239, 83, 80, 0.56);font-style:italic">-</span><span class="token deleted-sign deleted line" style="color:rgba(239, 83, 80, 0.56);font-style:italic"> - "2900:80"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token deleted-sign deleted line" style="color:rgba(239, 83, 80, 0.56);font-style:italic"></span><span class="token inserted-sign inserted prefix inserted" style="color:rgb(173, 219, 103);font-style:italic">+</span><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"> - "443:443"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token inserted-sign inserted line" style="color:rgb(173, 219, 103);font-style:italic"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> restart: "unless-stopped"</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token unchanged line"></span><span class="token unchanged prefix unchanged"> </span><span class="token unchanged line"> depends_on:</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>Now you can run <code>./openc3.sh start</code> to rebuild the Traefik container and it should include your new cert file.</p><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="lets-encrypt">Let's Encrypt<a href="#lets-encrypt" class="hash-link" aria-label="Direct link to Let's Encrypt" title="Direct link to Let's Encrypt"></a></h2><h4 class="anchor anchorWithStickyNavbar_fF9Z" id="key">KEY<a href="#key" class="hash-link" aria-label="Direct link to KEY" title="Direct link to KEY"></a></h4><p>privkey.pem is the "key" file</p><p>Sometimes it is named as cert.key or example.com.key.</p><h4 class="anchor anchorWithStickyNavbar_fF9Z" id="crt">CRT<a href="#crt" class="hash-link" aria-label="Direct link to CRT" title="Direct link to CRT"></a></h4><p>fullchain.pem is your "crt" file.</p><p>Sometimes it is named as example.com.crt.</p><h4 class="anchor anchorWithStickyNavbar_fF9Z" id="crtkey-bundle">CRT/KEY Bundle<a href="#crtkey-bundle" class="hash-link" aria-label="Direct link to CRT/KEY Bundle" title="Direct link to CRT/KEY Bundle"></a></h4><p>bundle.pem would be made like so: cat fullchain.pem privkey.pem > bundle.pem</p><p>HAProxy is the only server that I know of that uses bundle.pem.</p><h4 class="anchor anchorWithStickyNavbar_fF9Z" id="certpem">cert.pem<a href="#certpem" class="hash-link" aria-label="Direct link to cert.pem" title="Direct link to cert.pem"></a></h4><p>cert.pem contains ONLY your certificate, which can only be used by itself if the browser already has the certificate which signed it, which may work in testing (which makes it seem like it may be the right file), but will actually fail for many of your users in production with a security error of untrusted certificate.</p><p>However, you don't generally use the cert.pem by itself. It's almost always coupled with chain.pem as fullchain.pem.</p><h4 class="anchor anchorWithStickyNavbar_fF9Z" id="chainpem">chain.pem<a href="#chainpem" class="hash-link" aria-label="Direct link to chain.pem" title="Direct link to chain.pem"></a></h4><p>chain.pem is the intermediary signed authority, signed by the root authority - which is what all browsers are guaranteed to have in their pre-built cache.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="checking-certs">Checking certs<a href="#checking-certs" class="hash-link" aria-label="Direct link to Checking certs" title="Direct link to Checking certs"></a></h3><p>You can inspect the cert like so:</p><div class="codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-text codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl x509 -in cert.pem -text -noout</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="extracting-the-certificate-and-keys-from-a-pfx-file">Extracting the certificate and keys from a .pfx file<a href="#extracting-the-certificate-and-keys-from-a-pfx-file" class="hash-link" aria-label="Direct link to Extracting the certificate and keys from a .pfx file" title="Direct link to Extracting the certificate and keys from a .pfx file"></a></h2><p>The .pfx file, which is in a PKCS#12 format, contains the SSL certificate (public keys) and the corresponding private keys. You might have to import the certificate and private keys separately in an unencrypted plain text format to use it on another system. This topic provides instructions on how to convert the .pfx file to .crt and .key files.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="extract-crt-and-key-files-from-pfx-file">Extract .crt and .key files from .pfx file<a href="#extract-crt-and-key-files-from-pfx-file" class="hash-link" aria-label="Direct link to Extract .crt and .key files from .pfx file" title="Direct link to Extract .crt and .key files from .pfx file"></a></h3><blockquote><p>PREREQUISITE: Ensure OpenSSL is installed in the server that contains the SSL certificate.</p></blockquote><ol><li><p>Start OpenSSL from the OpenSSL\bin folder.</p></li><li><p>Open the command prompt and go to the folder that contains your .pfx file.</p></li><li><p>Run the following command to extract the private key:</p></li></ol><div class="codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-text codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl pkcs12 -in [yourfile.pfx] -nocerts -out [drlive.key]</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>You will be prompted to type the import password. Type the password that you used to protect your keypair when you created the .pfx file. You will be prompted again to provide a new password to protect the .key file that you are creating. Store the password to your key file in a secure place to avoid misuse.</p><ol><li>Run the following command to extract the certificate:</li></ol><div class="codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-text codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [drlive.crt]</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><ol><li>Run the following command to decrypt the private key:</li></ol><div class="codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-text codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl rsa -in [drlive.key] -out [drlive-decrypted.key]</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p>Type the password that you created to protect the private key file in the previous step.
|
13
|
+
The .crt file and the decrypted and encrypted .key files are available in the path, where you started OpenSSL.</p><h3 class="anchor anchorWithStickyNavbar_fF9Z" id="convert-pfx-file-to-pem-format">Convert .pfx file to .pem format<a href="#convert-pfx-file-to-pem-format" class="hash-link" aria-label="Direct link to Convert .pfx file to .pem format" title="Direct link to Convert .pfx file to .pem format"></a></h3><p>There might be instances where you might have to convert the .pfx file into .pem format. Run the following command to convert it into PEM format.</p><div class="codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-text codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token plain">openssl rsa -in [keyfile-encrypted.key] -outform PEM -out [keyfile-encrypted-pem.key]</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h2 class="anchor anchorWithStickyNavbar_fF9Z" id="tls12-inadequate_security-errors">TLS1.2 INADEQUATE_SECURITY Errors<a href="#tls12-inadequate_security-errors" class="hash-link" aria-label="Direct link to TLS1.2 INADEQUATE_SECURITY Errors" title="Direct link to TLS1.2 INADEQUATE_SECURITY Errors"></a></h2><ul><li><a href="https://doc.traefik.io/traefik/https/tls/#cipher-suites" target="_blank" rel="noopener noreferrer">https://doc.traefik.io/traefik/https/tls/#cipher-suites</a></li><li><a href="https://pkg.go.dev/crypto/tls#pkg-constants" target="_blank" rel="noopener noreferrer">https://pkg.go.dev/crypto/tls#pkg-constants</a></li></ul><div class="language-yaml codeBlockContainer_ZGJx theme-code-block" style="--prism-color:#d6deeb;--prism-background-color:#011627"><div class="codeBlockContent_qZBB"><pre tabindex="0" class="prism-code language-yaml codeBlock_TAPP thin-scrollbar"><code class="codeBlockLines_AdAo"><span class="token-line" style="color:#d6deeb"><span class="token key atrule">tls</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token key atrule">options</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token key atrule">default</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token key atrule">cipherSuites</span><span class="token punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token plain"></span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256</span><br></span><span class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">-</span><span class="token plain"> TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256</span><br></span></code></pre><div class="buttonGroup_TNwR"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_MVhB" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_yxgH"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_QJLJ"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-edit-meta-row row"><div class="col"><a href="https://github.com/OpenC3/cosmos/tree/main/docs.openc3.com/docs/configuration/ssl-tls.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" class="iconEdit_UohW" aria-hidden="true"><g><path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"></path></g></svg>Edit this page</a></div><div class="col lastUpdated_T23F"></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/tools/docs/docs/configuration/telemetry-screens"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Screens</div></a><a class="pagination-nav__link pagination-nav__link--next" href="/tools/docs/docs/tools"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Tools</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_TN1Q thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#generate-the-certificate" class="table-of-contents__link toc-highlight">Generate the certificate</a></li><li><a href="#updating-the-openc3-traefik-dockerfile" class="table-of-contents__link toc-highlight">Updating the openc3-traefik Dockerfile</a></li><li><a href="#updating-the-traefik-config" class="table-of-contents__link toc-highlight">Updating the Traefik config</a></li><li><a href="#update-docker-composeyaml" class="table-of-contents__link toc-highlight">Update docker-compose.yaml</a></li><li><a href="#lets-encrypt" class="table-of-contents__link toc-highlight">Let's Encrypt</a><ul><li><a href="#checking-certs" class="table-of-contents__link toc-highlight">Checking certs</a></li></ul></li><li><a href="#extracting-the-certificate-and-keys-from-a-pfx-file" class="table-of-contents__link toc-highlight">Extracting the certificate and keys from a .pfx file</a><ul><li><a href="#extract-crt-and-key-files-from-pfx-file" class="table-of-contents__link toc-highlight">Extract .crt and .key files from .pfx file</a></li><li><a href="#convert-pfx-file-to-pem-format" class="table-of-contents__link toc-highlight">Convert .pfx file to .pem format</a></li></ul></li><li><a href="#tls12-inadequate_security-errors" class="table-of-contents__link toc-highlight">TLS1.2 INADEQUATE_SECURITY Errors</a></li></ul></div></div></div></div></main></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Homepage</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://openc3.com" target="_blank" rel="noopener noreferrer" class="footer__link-item">Home</a></li></ul></div><div class="col footer__col"><div class="footer__title">Docs</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="/tools/docs/docs">Documentation</a></li></ul></div><div class="col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://www.linkedin.com/company/openc3" target="_blank" rel="noopener noreferrer" class="footer__link-item">LinkedIn<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_awgD"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div><div class="col footer__col"><div class="footer__title">More</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://github.com/OpenC3/cosmos" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_awgD"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a class="footer__link-item" href="/tools/docs/docs/privacy">Privacy</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2023 OpenC3, Inc.</div></div></div></footer></div>
|
14
|
+
<script src="/tools/docs/assets/js/runtime~main.e3a6c705.js"></script>
|
15
|
+
<script src="/tools/docs/assets/js/main.b5a535c2.js"></script>
|
16
|
+
</body>
|
17
|
+
</html>
|