Giter VIP home page Giter VIP logo

gdl90_2_g496's Introduction

README

This code allows a NodeMCU to log into any ADS-B out unit that supports GDL90 via. WIFI and output RS232 TIS-A information to a Garmin 396/496.

How do I get set up?

Pin D4 of NodeMCU must be connected to a RS232 level shifter (such as MAX232). The RS232 output must be connected to the Garmin RS232 input. The Garmin must be configured to accept TIS input via serial.

The wifi SSID must be configured for your ADS-B unit.

Libraries: http://arduino.esp8266.com/stable/package_esp8266com_index.json

Who do I talk to?

gdl90_2_g496

gdl90_2_g496's People

Contributors

rocketbob avatar

Stargazers

Linar Yusupov avatar  avatar

Watchers

 avatar James Cloos avatar Jo avatar

Forkers

bluefix

gdl90_2_g496's Issues

Error in code for replacing escaped characters

In the code escaped characters are properly replaced correctly, but then overwritten again by the old content.
The corrected version should be like this:
int m = 0;
for (int i = 0; i < len; i++) { // Unpack buffer. Remove extra bytes.
if (packetBuffer[i] == 0x7D) { // escape control character
i++; // look at next character
if (packetBuffer[i] == 0x5E) { // this is 0x7E ^ 0x20, which is an escaped 0x7E
messageBuffer[m] = 0x7E;
Serial.print("Replaced ");Serial.print(packetBuffer[i],HEX);Serial.print(" with ");Serial.println(messageBuffer[m],HEX);
} else if (packetBuffer[i] == 0x5D) { // this is 0x7D ^ 0x20, which is an escaped 0x7D
messageBuffer[m] = 0x7D;
Serial.print("Replaced ");Serial.print(packetBuffer[i],HEX);Serial.print(" with ");Serial.println(messageBuffer[m],HEX);
}
} else { // all OTHER characters
messageBuffer[m] = packetBuffer[i]; // copy unescaped characters
}
m++;
}
len = m; // this is the new length of the message with escape symbols (0x7D) removed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.