{"id":15068784,"url":"https://github.com/kenta-shimizu/secs4java8","last_synced_at":"2025-05-12T03:25:57.735Z","repository":{"id":37352394,"uuid":"177183118","full_name":"kenta-shimizu/secs4java8","owner":"kenta-shimizu","description":"This library is SEMI-SECS-communicate implementation on Java8.","archived":false,"fork":false,"pushed_at":"2024-05-06T08:31:03.000Z","size":2327,"stargazers_count":129,"open_issues_count":2,"forks_count":65,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-31T06:11:15.087Z","etag":null,"topics":["gem","hsms","hsms-gs","hsms-ss","java","java8","secs","secs-i","secs-ii","semi","sml"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenta-shimizu.png","metadata":{"files":{"readme":"README-HSMS-GS.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-22T17:28:47.000Z","updated_at":"2025-01-21T01:54:50.000Z","dependencies_parsed_at":"2023-11-11T17:24:05.858Z","dependency_job_id":"cb5c4a05-3055-4b55-ae1a-06bc705fbee4","html_url":"https://github.com/kenta-shimizu/secs4java8","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fsecs4java8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fsecs4java8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fsecs4java8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenta-shimizu%2Fsecs4java8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenta-shimizu","download_url":"https://codeload.github.com/kenta-shimizu/secs4java8/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238053527,"owners_count":19408705,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","hsms","hsms-gs","hsms-ss","java","java8","secs","secs-i","secs-ii","semi","sml"],"created_at":"2024-09-25T01:39:17.313Z","updated_at":"2025-02-10T04:12:15.167Z","avatar_url":"https://github.com/kenta-shimizu.png","language":"Java","readme":"# secs4java8 HSMS-GS\n\n## Create HSMS-GS-Communicator instance and open\n\n- For use HSMS-GS-Passive example\n\n```java\n    /* HSMS-GS-Passive open example */\n    HsmsGsCommunicatorConfig config = new HsmsGsCommunicatorConfig();\n    config.addSessionId(100);\n    config.addSessionId(200);\n    config.addSessionId(300);\n    config.socketAddress(new InetSocketAddress(\"127.0.0.1\", 5000));\n    config.isEquip(true);\n    config.connectionMode(HsmsConnectionMode.PASSIVE);\n    config.rebindIfPassive(5.0F);\n    config.notTrySelectRequest();\n    config.timeout().t3(45.0F);\n    config.timeout().t6( 5.0F);\n    config.timeout().t8( 5.0F);\n    config.gem().mdln(\"MDLN-A\");\n    config.gem().softrev(\"000001\");\n    config.gem().clockType(ClockType.A16);\n\n    HsmsGsCommunicator passive = HsmsGsCommunicator.newInstance(config);\n    passive.open();\n```\n\n- For use HSMS-GS-Active example\n\n```java\n    /* HSMS-GS-Active open example */\n    HsmsGsCommunicatorConfig config = new HsmsGsCommunicatorConfig();\n    config.addSessionId(100);\n    config.addSessionId(200);\n    config.addSessionId(300);\n    config.socketAddress(new InetSocketAddress(\"127.0.0.1\", 5000));\n    config.isEquip(false);\n    config.connectionMode(HsmsConnectionMode.ACTIVE);\n    config.retrySelectRequestTimeout(5.0F);\n    config.timeout().t3(45.0F);\n    config.timeout().t5(10.0F);\n    config.timeout().t6( 5.0F);\n    config.timeout().t8( 5.0F);\n    config.linktest(180.0F);\n    config.gem().clockType(ClockType.A16);\n\n    HsmsGsCommunicator active = HsmsGsCommunicator.newInstance(config);\n    active.open();\n```\n\nNotice: `HsmsGsCommunicator` is **NOT** instance of `SecsCommunicator`.\n\n## Get Session instance from HsmsGsCommunicator\n\n`HsmsSession` is instance of `SecsCommunicator`. `SecsCommunicator` methods are available.\n\n```java\n    /* from Session-ID */\n    HsmsSession session100 = passive.getHsmsSession(100);\n\n    /* Session Set */\n    Set\u003cHsmsSession\u003e sessions = passive.getHsmsSessions();\n```\n\nSee also [\"/src/examples/example6\"](/src/examples/example6)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenta-shimizu%2Fsecs4java8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenta-shimizu%2Fsecs4java8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenta-shimizu%2Fsecs4java8/lists"}