From 0572f167f681a851a37df51389b6064501998a6e Mon Sep 17 00:00:00 2001 From: Atten Date: Wed, 19 Jan 2022 17:34:29 +0700 Subject: [PATCH] Edit and clean txt --- README.md | 5 +++- src/main.cpp | 82 ---------------------------------------------------- 2 files changed, 4 insertions(+), 83 deletions(-) diff --git a/README.md b/README.md index c4cc348..da7e24e 100644 --- a/README.md +++ b/README.md @@ -81,12 +81,15 @@ Solder jumper is needed depending on a transceiver. |HT Mic Cable|-|SPK|PTT|GND|MIC|-| for Alinco DR-135(DB9) + ![Alinco](image/Alinco_Pinout.png) for ICOM IC2200(RJ45) + ![IC2200](image/IC2200_Pinout.png) for Yaesu FT-2800(RJ11) + ![FT2800](image/FT2800_Pinout.png) for Handheld @@ -100,7 +103,7 @@ for Handheld - 2.Download firmware and open the program ESP32 DOWNLOAD TOOL, set it in the firmware upload program, set the firmware to ESP32IGate_Vxx.bin, location 0x10000 and partitions.bin at 0x8000 and bootloader.bin at 0x1000 and boot.bin at 0xe000, if not loaded, connect GPIO0 cable to GND, press START button finished, press power button or reset (red) again. - 3.Then go to WiFi AP SSID: ESP32IGate and open a browser to the website. http://192.168.4.1 password: aprsthnetwork Can be fixed Or turn on your Wi-Fi router. -![ESP32Tool(image/ESP32Tool.png) +![ESP32Tool](image/ESP32Tool.png) ## ESP32 Flash Download Tools https://www.espressif.com/en/support/download/other-tools diff --git a/src/main.cpp b/src/main.cpp index c74620f..d657fa7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -290,74 +290,6 @@ void aprs_msg_callback(struct AX25Msg *msg) PacketBuffer.push(&pkg); //ใส่แพ็จเก็จจาก TNC ลงคิวบัพเฟอร์ } -// char *srccall; -// char *dstcall; -// char *datapayload; -// char packetchar[500]; - -// void TNC2Raw() -// { -// boolean tcpippacket = false; -// srccall = incomingPacket.src.call; -// dstcall = incomingPacket.dst.call; -// char *datastr = (char *)incomingPacket.info; -// datastr[incomingPacket.len] = 0; -// if (datastr[0] != 0) -// { -// // Fix for digirepeated TCPIP APRS.IS Packets -// if (datastr[0] == '}') -// { -// tcpippacket = true; -// } -// datapayload = datastr; -// char sssid[10]; -// itoa(incomingPacket.src.ssid, sssid, 10); -// char dssid[10]; -// itoa(incomingPacket.dst.ssid, dssid, 10); -// memset(packetchar, 0, sizeof(packetchar)); -// packetchar[0] = 0; -// strcat(packetchar, srccall); -// strcat(packetchar, "-"); -// strcat(packetchar, sssid); -// strcat(packetchar, ">"); -// strcat(packetchar, dstcall); -// strcat(packetchar, "-"); -// strcat(packetchar, dssid); -// for (int i = 0; i < incomingPacket.rpt_count; i++) -// { -// strcat(packetchar, ","); -// char *rptcall = incomingPacket.rpt_list[i].call; -// strcat(packetchar, rptcall); -// strcat(packetchar, "-"); -// char rssid[10]; -// itoa(incomingPacket.rpt_list[i].ssid, rssid, 10); -// strcat(packetchar, rssid); -// } -// strcat(packetchar, ",qAR,NOCALL-1:"); /// Your call and SSID -// /* BUG #3 here: string function stops copying on the first NUL byte */ -// strcat(packetchar, datastr); -// // strcat (packetchar, lf); - -// /* BUG #3: println stops writing on the first NUL byte */ -// #ifdef DEBUG_TNC -// Serial.printf("[%d] ", ++pkgTNC_count); -// #endif -// Serial.println(packetchar); - -// // Don't IGATE TCPIP repeaded packets -// if (0 && !tcpippacket) -// { -// /* BUG #3 present here too: println stops writing on the first -// * NUL byte. Do not run this before fixing and testing on packets -// * with NUL bytes. They exist and this code corrupts the packets -// * further. -// */ -// // client.println(packetchar); -// // client.println(); -// } -// } -// } - void printTime() { Serial.print("["); @@ -817,8 +749,6 @@ void taskAPRS(void *pvParameters) int mqttRetry = 0; long wifiTTL = 0; -// char raw[350]; -// char str[350]; void taskNetwork(void *pvParameters) { @@ -999,18 +929,6 @@ void taskNetwork(void *pvParameters) } } } - - // if (aprsUpdate) - // { - // aprsUpdate = false; - // String tnc2Raw = send_fix_location(); - // aprsClient.println(tnc2Raw); - // // Serial.println("WX Send to APRS-IS: " + raw); - // if (config.tnc) - // { - // APRS_sendTNC2Pkt(tnc2Raw); - // } - // } } if (millis() > pingTimeout)