-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SeaTalk 1 connection #7
Comments
Anyone here for an interrupt driven bitbangling serial 9 bit driver for core0? |
Just for fun i just asked ChatGPG https://chat.openai.com/chat this Q: program esp32 seatalk 9bit |
and got: #include <HardwareSerial.h>
#include <Seatalk.h>
#define SERIAL_RX_PIN 2
#define SERIAL_TX_PIN 3
HardwareSerial Serial9bit(1);
Seatalk seatalk;
void setup() {
Serial.begin(4800);
Serial9bit.begin(4800, SERIAL_9BIT, SERIAL_8E1, SERIAL_RX_PIN, SERIAL_TX_PIN);
}
void loop() {
if (Serial9bit.available()) {
byte data = Serial9bit.read();
if (seatalk.parse(data)) {
// Seatalk message received
switch (seatalk.getMessageId()) {
case SEATALK_DEPTH:
// Handle depth message
float depth = seatalk.getDepth();
break;
// Handle other Seatalk message types here
}
}
}
// Send Seatalk message example
uint8_t msg[5] = {SEATALK_DEPTH, 0x02, 0x3F, 0x00, 0x00};
Serial9bit.write(msg, 5);
delay(1000);
}
I will try this if i connect my old fishfinder.... |
As far as I know the ESP32 hardware uart cannot really handle 9 Bits. |
This looks really impressive. Did not know this, mabe i will find some time for an deeper Look while next Lockdown. Thanks a lot for your work in this boating community. |
One idea... But in the magic world of programming..... some projects use the RMT to make custom protocols of transmission (like the PIO of the RP2040/RPI-pico) |
yes - see my comment above. |
Hi Andreas, I have a old depth transducer ST60 Tridata from Raymarine with Seatalk1 protocol. If you want I can send you the transducer as test device. |
This guy made a port of seatalk autopilot remote for esp32 board, the project use the espsoftwareserial library for 9 bit uart coms |
Yes, looks interesting. But without a device it will be hard... |
Implementation of SeaTalk 1 for M5Stack Atom with a special driver circuit for SeaTalk with a ATOMIC DIY Proto Kit.
The text was updated successfully, but these errors were encountered: