Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-07-01 Thread Robert Heller
If you want to use the UART, then you should config the pins as uart pins and use the /dev/ttyS? devices. At Thu, 1 Jul 2021 06:51:09 -0700 (PDT) beagleboard@googlegroups.com wrote: > > I would like to trasmit data via UART4_TXD and receive viac UART4_RXD. > > Btw, I try to write to gpio30

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-07-01 Thread Gwen Stouthuysen
Then Linux and Java have other ways to deal with this. The uart is known (should be) as a serial port in the OS, this is something you can instruct the OS to do. Check out serial communication in Java and connect through the OS with the right port. Gwen Op do 1 jul. 2021 om 15:51 schreef

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-07-01 Thread Radovan Chovan
I would like to trasmit data via UART4_TXD and receive viac UART4_RXD. Btw, I try to write to gpio30 and I think I figured out finally how it use. Export -> Set Direction -> Read / Write -> Unexport. Dátum: štvrtok 1. júla 2021, čas: 12:51:05 UTC+2, odosielateľ: hel...@deepsoft.com > At Wed,

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-07-01 Thread Robert Heller
At Wed, 30 Jun 2021 23:25:19 -0700 (PDT) beagleboard@googlegroups.com wrote: > > config-pin P9_26 gpio > ERROR: open() for /sys/devices/platform/ocp/ocp:P9_26_pinmux/state failed, > No such file or directory > > > write "in" to /sys/class/gpio/gpio14/direction (for input) > write "out" to

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-07-01 Thread Radovan Chovan
config-pin P9_26 gpio ERROR: open() for /sys/devices/platform/ocp/ocp:P9_26_pinmux/state failed, No such file or directory write "in" to /sys/class/gpio/gpio14/direction (for input) write "out" to /sys/class/gpio/gpio14/direction (for output) ... Did you mean gpio15 (not gpio14)? gpio15 ...

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-06-30 Thread Robert Heller
At Wed, 30 Jun 2021 07:03:38 -0700 (PDT) beagleboard@googlegroups.com wrote: > > I tried to use write operation on /sys/class/gpio/gpio14 (gpio15)/value, > but nothing happens (from > https://github.com/RobertPHeller/JAVALinuxGPIO/blob/main/LinuxGPIO.java ) > I figured out that PrintStream

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-06-29 Thread Robert Heller
At Tue, 29 Jun 2021 07:02:06 -0700 (PDT) beagleboard@googlegroups.com wrote: > > Thanks for all your comments. > > Is there any mapping between /sys/class/gpio and schematic diagram of > Beaglebone Black board? No. /sys/class/gpio just uses the GPIO numbers. The mapping of GPIO N.M is:

Re: [beagleboard] Re: GPIO JAVA library for Beaglebone Black

2021-06-29 Thread Robert Nelson
On Tue, Jun 29, 2021 at 9:02 AM Radovan Chovan wrote: > > Thanks for all your comments. > > Is there any mapping between /sys/class/gpio and schematic diagram of > Beaglebone Black board? > > I want to use pin P9_24 (UART1_TXD) and P9_26 (UART1_RXD). >