UART RTS signal for the CDT serial port to reset the board

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

UART RTS signal for the CDT serial port to reset the board

Kondal Kolipaka
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
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: UART RTS signal for the CDT serial port to reset the board

Jonah Graham
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 <[hidden email]> 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
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: UART RTS signal for the CDT serial port to reset the board

Kondal Kolipaka
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev