From a2cc0ee158c78c6b2222c5c04e2a5a6e89ea0ccb Mon Sep 17 00:00:00 2001 From: "s.golasch" Date: Tue, 1 Aug 2023 14:21:39 +0200 Subject: [PATCH] first commit --- .DS_Store | Bin 0 -> 6148 bytes hello.js | 7 +++++ package-lock.json | 35 +++++++++++++++++++++ package.json | 15 +++++++++ thingie.js | 78 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 .DS_Store create mode 100644 hello.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 thingie.js diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 { + // 'connect' listener + console.log('connected to server!'); + console.log(Buffer.from(frame, 'hex')) + client.write(Buffer.from(frame, 'hex')); + //client.write(Buffer.from('fd00030001009e03', 'hex')); + //client.write(Buffer.from('fd00030002039409', 'hex')); +}); +client.on('data', (data) => { + console.log(data.toString()) +}); +client.on('end', () => { + console.log('disconnected from server'); +}) + +// C: fd00 03 0001 009e03 +// D: fd00 0e 0001 0402 436f5f4350555f417070 + +// C: fd00 03 0002 039409 +// D: fd00 04 0002 04011916 -> ? +// D: fd00 0d 000000 436f -> Co +// D: 5f4350555f417070d831 -> CPU_APP +// D: fd00 12 0100 050000 -> ? +// D 26a186701ac33300000000ef3fa001 \ No newline at end of file