ok1cdj / ic705-bt-civ Goto Github PK
View Code? Open in Web Editor NEWComunication with IC-705 over bluetooth on ESP32
License: GNU General Public License v3.0
Comunication with IC-705 over bluetooth on ESP32
License: GNU General Public License v3.0
Hi,
some issues with function "readLine()":
To overcome this, something like the following change might help:
uint8_t readLine(void)
{
uint8_t byte;
uint8_t counter = 0;
uint32_t ed = readtimeout; // not really needed here, if not initialized with a proper value
while (btConnected) // without a BT connection don't try to read from the BT serial line
{
while (!SerialBT.available()) {
if (--ed == 0 || !btConnected ) return 0; // leave the loop if BT connection is lost
}
ed = readtimeout;
byte = SerialBT.read();
if (byte == 0xFF) continue; //TODO skip to start byte instead
...
Just an idea, code not tested so far.
Regards,
Peter
First of all, thanks for the code.
Not an issue, but just a question: I observed, that the 705 does not reconnect automatically, when I switched the esp32 off and on again. (setting "auotconnect" on 705 is "on"). The 705 will only reconnect in that case, when I switch the 705 off and on or if I manually connect within the bluetooth settings. So, is this the general behavior or a bug of the 705?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.