Hi all,
I would like to write a B4A application capable of connecting to USB controllers for 3D Printers, in this regard I did some tests with the FelUsbSerial library, but I have a problem that I can not solve in any way.
My 3D Printer controller is equipped with a FTDI serial converter and Atmega2560 where the Marlin firmware runs, which by default is set with a baud rate of 250000 bps.
Connecting to the controller with OTG cable @ 250000 bps, I get strange characters, as if the baud rate was not correct, so I tried to reprogram Arduino with Marlin firmware setting 115200 bps and this works, I tried 230400 and it works too, but 250000 does not want to work and returns always strange characters.
Can anyone tell me why this happens? Is the 250000 baud rate missing in the library?
Since in the future I must also use the MIDI protocol to interface with digital musical instruments, this protocol uses 31250 bps, but it is not a standard baud rate, can you tell me if this will work?
I use B4A, B4J, B4R for many years, but I also use Jabaco to create applications that they run on Raspberry without JavaFX UI, just days ago I developed the same application for 3D printing on Jabaco, in this regard I created a class that use JSSC library and I added to the standard baudrates also 250000 (and others), this works very well and I can connect to the Atmega2560 and command the printer from my pc, even many other users have managed to make various prints.
Also I added 31250 and I can successfully connect and command various digital MIDI musical instruments.
I used JSSC because it's the one used in the B4J Serial library, so I like it because I love B4J.
The JSSC porting I wrote for Jabaco uses the following baud rates:
110, 150, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 31250, 38400, 57600, 115200,
128000, 230400, 250000, 256000, 460800, 500000, 512000, 576000, 921600, 1000000, 1152000, 1500000,
2000000, 2500000, 3000000, 3500000, 4000000.
I have not tested all them, but all those tested work successfully, even non standard baud rates.
I would like to convert this printing application to B4A using FelUsbSerial library, but I'm stuck for this problem that I can't solve in any way.
I would like to ask if it is possible to add these specified above baud rates to the FelUsbSerial library.
Many thanks.
I would like to write a B4A application capable of connecting to USB controllers for 3D Printers, in this regard I did some tests with the FelUsbSerial library, but I have a problem that I can not solve in any way.
My 3D Printer controller is equipped with a FTDI serial converter and Atmega2560 where the Marlin firmware runs, which by default is set with a baud rate of 250000 bps.
Connecting to the controller with OTG cable @ 250000 bps, I get strange characters, as if the baud rate was not correct, so I tried to reprogram Arduino with Marlin firmware setting 115200 bps and this works, I tried 230400 and it works too, but 250000 does not want to work and returns always strange characters.
Can anyone tell me why this happens? Is the 250000 baud rate missing in the library?
Since in the future I must also use the MIDI protocol to interface with digital musical instruments, this protocol uses 31250 bps, but it is not a standard baud rate, can you tell me if this will work?
I use B4A, B4J, B4R for many years, but I also use Jabaco to create applications that they run on Raspberry without JavaFX UI, just days ago I developed the same application for 3D printing on Jabaco, in this regard I created a class that use JSSC library and I added to the standard baudrates also 250000 (and others), this works very well and I can connect to the Atmega2560 and command the printer from my pc, even many other users have managed to make various prints.
Also I added 31250 and I can successfully connect and command various digital MIDI musical instruments.
I used JSSC because it's the one used in the B4J Serial library, so I like it because I love B4J.
The JSSC porting I wrote for Jabaco uses the following baud rates:
110, 150, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 31250, 38400, 57600, 115200,
128000, 230400, 250000, 256000, 460800, 500000, 512000, 576000, 921600, 1000000, 1152000, 1500000,
2000000, 2500000, 3000000, 3500000, 4000000.
I have not tested all them, but all those tested work successfully, even non standard baud rates.
I would like to convert this printing application to B4A using FelUsbSerial library, but I'm stuck for this problem that I can't solve in any way.
I would like to ask if it is possible to add these specified above baud rates to the FelUsbSerial library.
Many thanks.
Last edited: