![]() ![]() My WeightMachine(Kern & Sohn FCB Version 1.1) has a baud rate of 9600 bauds, 8bit rate, 1 stop bit and no parity bitĬode: Select all import java.io. As I write this article, RxTx supports physical serial connections well, but shows some exceptions for virtual serial ports. ![]() Tragically, JavaComm has not gotten a lot of consideration. All things considered, the execution of the Programming interface must be downloaded independently. This Programming interface isn't essential for the standard Java 2 variant. To use RxTx on Java I downloaded the library rxtx on java (sudo apt-get install librxtx-java) The authority Programming interface for serial communication in Java is the JavaComm Programming interface. I've gone in : sudo nano /boot/config.txt and added : dtoverlay=pi3-disable-btĪnd then i've gone in : sudo nano /boot/cmdline.txt and changed the file like this :ĭwc_otg.lpm_enable=0 console=tty1 console=ttyAMA0,9600 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwaitĪnd then I used Java to use the serial connection, for this I downloaded the JAVA IDE : Eclipse (sudo apt-get install eclipse) and also the jdk (sudo apt-get install oracle-java8-jdk) Let me explain you all I did until now on my Raspberry : I understood that I have to use the /dev/ttyAMA0 because it is the RxTx port but there is also ppl saying that it is the port for bluetooth if anyone can clarify me this please. I am actually on a project, and to start I have to send a "t" in ASCII to the weight machine from my Raspberry.Īctually I wired my raspberry using RxTx with RS232 linked to the weight machine but now I don't really know what to do on my raspberry, I followed some tutorials to use the ports.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |