p3libdeprecated

AMB MyLaps converter from P3 binary native format to/from JSON. The P3 protocol is used in timing HW devices like AMBrc Decoder, MYLAPS RC4 Decoder, AMBmx3 Decoder, TranX3 Decoder, ChipX/ProChip Decoder or BIB Decoder.

Usage no npm install needed!

<script type="module">
  import p3lib from 'https://cdn.skypack.dev/p3lib';
</script>

README

DEPRECATED use https://www.npmjs.com/package/ammc-wasm

AMB MyLaps converter from P3 binary native format to/from JSON. The P3 protocol is used in timing HW devices like AMBrc Decoder, MYLAPS RC4 Decoder, AMBmx3 Decoder, TranX3 Decoder, ChipX/ProChip Decoder or BIB Decoder.

Code examples

  • converting JSON string to binary data for decoder
var str = '{"passingNumber":122,"transponder":5625887,"RTC_Time":"1363721793607000","strength":109,"hits":80,"recordType":"Passing","VERSION":2,"decoderId":"50130400"}'
var encoded = ParserJs.encode(str);
  • decoding binary data from decoder JSON
var decoded = ParserJs.decode("8e023300e5630000010001047a00000003041fd855000408589514394cd8040005026d0006025000080200008104501304008f");
  • list all supported messages
console.log(ParserJs.messages())