Hello All,
I am having difficulty using Windows 10 and B4J to communicate with a FTDI Chip based General Purpose Interface Bus otherwise known as a GPIB-USB Controller. I can use Windows 10 HyperTerminal to talk to it with no problem.
Just a bit of background … The Win10 Hyperterm combination only requires me to open the Virtual Serial Port without specifying the parameters of (baudrate, databits, parity, and stop bit) etc., which is pretty convenient and apparently a feature of virtual comm ports. I do have to select the options to both “echo typed characters locally” and “send line-ends with line-feeds”in order to see my typed commands and to see the response on a new line. After this minimal configuration, I can (from HyperTerminal) …
send a “++ver” string and receive a string like “Prologix GPIB-USB Controller version 6.107”
Now I wish to use a B4J project, however, when I use Erel’s B4J_Chat example here…
https://www.b4x.com/android/forum/threads/jserial-library.34762/
I do not receive anything ... I have tried both Prefix …
astream.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "astream")
and no-prefix methods…
astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream")
Somehow I got the idea that the Jserial lib under Windows10 with the latest version of Java has problems with the FTDI usb serial chip. If so, is there a work around?
Other relevant threads include ...
https://www.b4x.com/android/forum/threads/getbytes-encoding.64604/#post-605995
https://www.b4x.com/android/forum/threads/jserial-and-java-9.89325/#content
Any Ideas?
Thanks KLJ
I am having difficulty using Windows 10 and B4J to communicate with a FTDI Chip based General Purpose Interface Bus otherwise known as a GPIB-USB Controller. I can use Windows 10 HyperTerminal to talk to it with no problem.
Just a bit of background … The Win10 Hyperterm combination only requires me to open the Virtual Serial Port without specifying the parameters of (baudrate, databits, parity, and stop bit) etc., which is pretty convenient and apparently a feature of virtual comm ports. I do have to select the options to both “echo typed characters locally” and “send line-ends with line-feeds”in order to see my typed commands and to see the response on a new line. After this minimal configuration, I can (from HyperTerminal) …
send a “++ver” string and receive a string like “Prologix GPIB-USB Controller version 6.107”
Now I wish to use a B4J project, however, when I use Erel’s B4J_Chat example here…
https://www.b4x.com/android/forum/threads/jserial-library.34762/
I do not receive anything ... I have tried both Prefix …
astream.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "astream")
and no-prefix methods…
astream.Initialize(sp.GetInputStream, sp.GetOutputStream, "astream")
Somehow I got the idea that the Jserial lib under Windows10 with the latest version of Java has problems with the FTDI usb serial chip. If so, is there a work around?
Other relevant threads include ...
https://www.b4x.com/android/forum/threads/getbytes-encoding.64604/#post-605995
https://www.b4x.com/android/forum/threads/jserial-and-java-9.89325/#content
Any Ideas?
Thanks KLJ