https://github.com/kenta-shimizu/secs-simulator
This is SEMI SECS-Simulator Java application
https://github.com/kenta-shimizu/secs-simulator
hsms hsms-ss secs secs-i secs-ii semi sml
Last synced: 6 months ago
JSON representation
This is SEMI SECS-Simulator Java application
- Host: GitHub
- URL: https://github.com/kenta-shimizu/secs-simulator
- Owner: kenta-shimizu
- License: apache-2.0
- Created: 2019-08-28T12:10:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-14T13:39:14.000Z (over 4 years ago)
- Last Synced: 2025-03-24T15:41:34.181Z (7 months ago)
- Topics: hsms, hsms-ss, secs, secs-i, secs-ii, semi, sml
- Language: Java
- Homepage:
- Size: 8.82 MB
- Stars: 30
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# secs-simulator

This is SEMI-SECS-Simulator Java application.
## Get Application, How to use
[github.io](https://kenta-shimizu.github.io/secs-simulator/index.html).
This application is free of charge.## Related repositories
- [secs4java8](https://github.com/kenta-shimizu/secs4java8)
- [json4java8](https://github.com/kenta-shimizu/json4java8)## Extend SML
SML is from [PEER Group](https://www.peergroup.com/expertise/resources/secs-message-language/)
### Now
- <NOW[16]>
```java
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("uuuuMMddHHmmssSS");
LocalDateTime.now().format(dtf);
```- <NOW[12]>
```java
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("uuMMddHHmmss");
LocalDateTime.now().format(dtf);
```See also [s2f18.sml](/src/sml-template/host/s2f18.sml), [s2f31.sml](/src/sml-template/host/s2f31.sml)
### Auto number
Using `AtomicLong#incrementAndGet`
- <U4AUTO>
- <U8AUTO>
- <I4AUTO>
- <I8AUTO>See also [s2f33-delete-all.sml](/src/sml-template/host/s2f33-delete-all.sml), [s2f35-example.sml](/src/sml-template/host/s2f35-example.sml)
## Auto-replies
### Auto-reply
Auto-reply conditions.
- `AbstractSecsSimulatorConfig#autoReply#booleanValue == true`
- Received primary message has wbit.
- Received primary message Function-number is odd number.
- Has only ONE added SML to reply.### Auto-reply-S9Fy
Auto-Reply-S9Fy conditions.
- `AbstractSecsSimulatorConfig#autoReplyS9Fy#booleanValue == true`
#### Auto-Reply-S9F1
Reply if received message device-id is not valid.
#### Auto-Reply-S9F3
Reply if has no added SML to reply Stream-number.
#### Auto-Reply-S9F5
Reply if has no added SML to reply Function-number.
#### Auto-Reply-S9F9
Reply if T3-Timeout.
### Auto-reply-SxF0
Auto-Reply-SxF0 conditions.
- `AbstractSecsSimulatorConfig#autoReplySxF0#booleanValue == true`
- Received primary message has wbit.
- Has no added SML to reply (e.g. if received "S1F1 W", not added "S1F2")