B4J Question Test jSerial library

BogdanU

New Member
Licensed User
Longtime User
Hi,
I tested the program Chat.b4j (Erel's post Nov 21, 2013).
I used a USB/serial (FTDI) converter.
I connected the TxD and RxD lines and ran the Chat.b4j program.
The program seemed to work correctly.
Chat_13.jpg

Another USB/serial (FTDI) converter connected to a different USB port received the signal from the first converter with errors.
The logic analyzer waveforms show error bytes.
Error bytes: 0xB1, 0xB2, 0xB4, 0xB7, 0xB8 generated by Chat.b4j
Chat_13_Analyzer.jpg

The waveforms from the PC terminal were correct.
Terminal.jpg

The same errors occurred on another computer.
Best regards
Bogdan
 
Solution
Seems like the PC (Chat.b4j) is transmitting 7 bits + even parity (7E1) , so what the logic analyzer sees is correct (total number of '1's in each byte is even).
The PC terminal is configured as 8N1, so what the logic analyzer sees is also correct.

JordiCP

Expert
Licensed User
Longtime User
Seems like the PC (Chat.b4j) is transmitting 7 bits + even parity (7E1) , so what the logic analyzer sees is correct (total number of '1's in each byte is even).
The PC terminal is configured as 8N1, so what the logic analyzer sees is also correct.
 
Upvote 0
Solution

BogdanU

New Member
Licensed User
Longtime User
Thank you for the explanation.
The default baud rate is 1200.
How do I change it to something else, e.g., 9600?
best regards
Bogdan
 
Upvote 0

BogdanU

New Member
Licensed User
Longtime User
I knew the SetParams method. Unfortunately, changing the baud rate using it had no effect. This only affected the project in the attachment.
I found another example on the Chat_B4j forum where SetParams worked correctly.
best regards
Bogdan
 

Attachments

  • Chat.zip
    40.3 KB · Views: 3
Upvote 0
Top