Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:timingunits:tcpimporter [2024/08/09 11:41] – henrik | software:timingunits:tcpimporter [2024/10/02 07:47] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | === Generic TCP importer === | + | {{indexmenu_n> |
+ | |||
+ | ====== Generic TCP importer | ||
Using a very simple text-based TCP protocol, you can have your own devices or integration component connect into BBT, and import raw time records this way, just like any natively supported box. | Using a very simple text-based TCP protocol, you can have your own devices or integration component connect into BBT, and import raw time records this way, just like any natively supported box. | ||
Line 5: | Line 7: | ||
You can connect as many devices as you like, with each connection representing a device with an identifier of your choice. | You can connect as many devices as you like, with each connection representing a device with an identifier of your choice. | ||
The default port is 12368, but this can be changed via the advanced event setting // | The default port is 12368, but this can be changed via the advanced event setting // | ||
+ | |||
+ | {{: | ||
== Protocol format == | == Protocol format == | ||
Line 17: | Line 21: | ||
The first command sent must be " | The first command sent must be " | ||
- | Example command: | + | Example command:\\ |
hello; | hello; | ||
- | Response: | + | Response:\\ |
hello; | hello; | ||
== Sending records == | == Sending records == | ||
- | A timing record can be sent to the software using the record.add command. | + | A timing record can be sent to the software using the record.add command.\\ |
- | Arguments are //tag// (chip code, rfid tag id, race number or similar), //time// (timestamp of the record)//, id//, //antenna// and // | + | Arguments are //tag// (chip code, rfid tag id, race number or similar), //time// (timestamp of the record)//, id//, //antenna// and //signal//.\\ |
- | Only // | + | Only // |
- | //id// is a unique 64-bit integer for this record if you wish to update it later, and is optional. | + | //id// is a unique 64-bit integer for this record if you wish to update it later, and is optional.\\ |
//time// should be in the format yyyy-mm-ddTHH: | //time// should be in the format yyyy-mm-ddTHH: | ||
- | Example commands: | + | Example commands:\\ |
+ | record.add; | ||
+ | record.add; | ||
- | record.add;tag=ABC12345;time=2024-08-15T23: | + | Responses: |
+ | record.add;ok\\ | ||
+ | record.add; | ||
- | record.add; | + | Records can be updated using the record.update command. The arguments are the exact same as for record.add, but id is required. |
+ | If a record with the provided | ||
- | Responses: | + | == Device status == |
+ | It is possible to send periodic device status information, | ||
- | record.add;ok | + | Example command: |
+ | status; | ||
- | record.add;ok;id=42 | + | Responses: |
+ | record.status;ok | ||
- | Records can be updated using the record.update command. The arguments are the exact same as for record.add, but id is optional. | ||
- | If a record with the provided id does not exist, it might be created. | ||
== Inactivity == | == Inactivity == | ||
Line 51: | Line 59: | ||
You can send the " | You can send the " | ||
- | Example command: | + | Example command:\\ |
ping | ping | ||
- | Response: | + | Response:\\ |
+ | ping;ok | ||
- | ping;ok |