Skip to content
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

Proposal: CAT serial/USB interface #30

Open
gpanico opened this issue Sep 22, 2023 · 2 comments
Open

Proposal: CAT serial/USB interface #30

gpanico opened this issue Sep 22, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@gpanico
Copy link

gpanico commented Sep 22, 2023

Hi guys,

I was wondering if it would be possible to implement a CAT interface via USB or UART (in such case via a MAX232 adapter) to pilot the radio from a PC.

I don't know if the Arduino while running the radio-code can also "listen" to the USB or to the UART and run some function, like on old microcomputers the UART I/O was triggering an interrupt that could be trapped.
Or maybe in the main loop we still have some milliseconds to spare?

Would that be technically feasible?

@gpanico gpanico added the bug Something isn't working label Sep 22, 2023
@pu2clr
Copy link
Owner

pu2clr commented Sep 22, 2023

Yes, it is technically feasible to implement a CAT interface via USB or UART to control the radio from a PC while using Arduino. The Arduino can run the radio code and also listen to the USB or UART for incoming commands. Arduino has two pins (0 and 1) that can be used as UART. You can have your Arduino code run in a main loop where it listens for incoming Serial commands and also manages the radio, for example with the SI4732. If you have a device that supports UART but not USB, you can indeed use a MAX232 adapter to interface it with the Arduino. The Arduino can then listen for incoming commands on its UART pins.

@gpanico
Copy link
Author

gpanico commented Sep 22, 2023

Thanks for your reply!
In such case I'll start working on adding a MAX232 to the Arduino nano of my ATS-20+, and write just enough code to read the frequency and write it to the UART...

My idea would be to re-implement a well known CAT protocol (e.g. Yaesu FT-857D?) so we can reuse tools like flrig without having to change much.

PU2CLR TNX, ES 73 de M0HHE, AR K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants