From 703c8ce8ac728ba5b66aeb5f88b0c811ae67c499 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Sat, 17 Oct 2020 12:16:24 +0200 Subject: [PATCH] Add serial and audio request packet send, not used yet --- main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/main.go b/main.go index 99f1ff6..6da8d56 100644 --- a/main.go +++ b/main.go @@ -164,6 +164,27 @@ func sendDisconnect() { byte(remoteSID >> 24), byte(remoteSID >> 16), byte(remoteSID >> 8), byte(remoteSID)}) } +func sendRequestSerialAndAudio() { + send([]byte{0x90, 0x00, 0x00, 0x00, 0x00, 0x00, byte(sendSeq), byte(sendSeq >> 8), + byte(localSID >> 24), byte(localSID >> 16), byte(localSID >> 8), byte(localSID), byte(remoteSID >> 24), byte(remoteSID >> 16), byte(remoteSID >> 8), byte(remoteSID), + 0x00, 0x00, 0x00, 0x80, 0x01, 0x03, 0x00, byte(authSendSeq), + byte(authSendSeq >> 8), 0x00, authID[0], authID[1], authID[2], authID[3], authID[4], authID[5], + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, + 0x80, 0x00, 0x00, 0x90, 0xc7, 0x0e, 0x86, 0x01, // The last 5 bytes from this row can be acquired from a reply starting with 0xa8 pr 0x90 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x49, 0x43, 0x2d, 0x37, 0x30, 0x35, 0x00, 0x00, // IC-705 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x2b, 0x3f, 0x55, 0x5c, 0x00, 0x00, 0x00, 0x00, // username: beer + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x01, 0x01, 0x04, 0x04, 0x00, 0x00, 0xbb, 0x80, + 0x00, 0x00, 0xbb, 0x80, 0x00, 0x00, 0xc3, 0x52, + 0x00, 0x00, 0xc3, 0x53, 0x00, 0x00, 0x00, 0x64, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}) +} + func main() { log.Init() parseArgs()