Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] UART RTS signal for the CDT serial port to reset the board

Hi Jonah,

Thanks for your inputs.
I've created a Bugzilla to track this https://bugs.eclipse.org/bugs/show_bug.cgi?id=562541

Best Regards,
Kondal

On Tue, Apr 28, 2020 at 1:03 AM Jonah Graham <jonah@xxxxxxxxxxxxxxxx> wrote:
Hi Kondal,

The org.eclipse.cdt.native.serial is a nice little stand-alone bundle (in that it has no dependencies). What it provides is the class you mention that wraps a JNI serial port implementation. Therefore if you can do it with C you can expose that up to Java by adding to this bundle. The Java coding should be straightforward, building the native libraries is a bit more challenging. Late last year I started automating these builds so they build using Docker, this prevents you needing any other tools (other than docker :-) setup to build the native libraries. See the "native" section of  https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/tree/README.md for details, and/or come back here for any followup questions.

I don't know anything about javax.comm.SerialPort and the CDT Serial port was written by Doug many years ago.

PS You can start by creating a bug to track the work.

Jonah


 
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Mon, 27 Apr 2020 at 15:20, Kondal Kolipaka <kondal.kolipaka@xxxxxxxxx> wrote:
Hi All,

Could someone help me with this - I want to send the UART RTS signal for the CDT serial monitor port to reset the board? But I couldn't find any call in the org.eclipse.cdt.serial.SerialPort API class.

javax.comm.SerialPort is having a method setRTS(boolean) to do that. But it looks like CDT having its own native serial native API.

If I want to implement this functionality - how do I do that? Any pointers would be appreciated. 

Thanks.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

Back to the top