41CL Serial Communication Testing
|
09-24-2016, 02:49 AM
(This post was last modified: 09-24-2016 03:11 AM by Sylvain Cote.)
Post: #1
|
|||
|
|||
41CL Serial Communication Testing
I have been receiving question about the 41CL serial port and how to validate the serial link.
This is a small test setup to check if the serial communication between your Windows PC and the 41CL works. Note: macOS & Linux section users will come later. Load the following FOCAL program into your 41CL Code: 01♦LBL "SPTST" XEQ "SPTST" first to configure the registers and 41CL memory data LBL A -> 41CL Sending ABABABAB... to the PC at 1200 bauds LBL B -> 41CL Sending ABABABAB... to the PC at 2400 bauds LBL C -> 41CL Sending ABABABAB... to the PC at 4800 bauds LBL D -> 41CL Sending ABABABAB... to the PC at 9600 bauds LBL F -> 41CL Receiving PC pressed keys at 1200 bauds LBL G -> 41CL Receiving PC pressed keys at 2400 bauds LBL H -> 41CL Receiving PC pressed keys at 4800 bauds LBL I -> 41CL Receiving PC pressed keys at 9600 bauds Windows Users: I am using RealTerm on the PC for this demonstration. On the Windows PC a) Download & install RealTerm b) Start the Windows "Device Manager" and look under "Port (Com & LPT)" to find your serial port (COM?) c) Start RealTerm, under the "Port" tab c1) Select "Port" number found on step (b) c2) Set "Parity" to "None" c3) Set "Data Bits" to "8" c4) Set "Stop Bits" to "1" c5) Set "Hardware Flow Control" to "None" Test #1 : 41CL is sending and PC is receiving at 1200 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 1200 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) PC ---> Press the "Clear" button under the output window to erase it CL -> Press the A button (same as XEQ A) and the message "SENDING 1200" should be displayed PC -> You should see in the output window a series of "ABABAB..." on the display CL -> Press the R/S button to stop the program Test #2 : 41CL is sending and PC is receiving at 2400 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 2400 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) PC ---> Press the "Clear" button under the output window to erase it CL -> Press the B button (same as XEQ B) and the message "SENDING 2400" should be displayed PC -> You should see in the RealTerm output window a series of "ABABAB..." on the display CL -> Press the R/S button to stop the program Test #3 : 41CL is sending and PC is receiving at 4800 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 4800 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) PC ---> Press the "Clear" button under the output window to erase it CL -> Press the C button (same as XEQ C) and the message "SENDING 4800" should be displayed PC -> You should see in the RealTerm output window a series of "ABABAB..." on the display CL -> Press the R/S button to stop the program Test #4 : 41CL is sending and PC is receiving at 9600 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 9600 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) PC ---> Press the "Clear" button under the output window to erase it CL -> Press the D button (same as XEQ D) and the message "SENDING 9600" should be displayed PC -> You should see in the RealTerm output window a series of "ABABAB..." on the display CL -> Press the R/S button to stop the program Test #5 : PC is sending and 41CL is receiving at 1200 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 1200 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) CL -> Press the F button (same as XEQ F) PC -> Activate the RealTerm application PC ---> Type the letter "a" on your PC keyboard and you should see "832003-0061" on the CL display (61 = ASCII value of a) PC ---> Type the letter "A" on your PC keyboard and you should see "832003-0041" on the CL display (41 = ASCII value of A) PC ---> Type any letters on your PC keyboard and you should see "832003-00??" on the CL display (?? = ASCII value of the key pressed) CL -> Press the R/S button to stop the program CL -> if you wait more than 10 seconds before pressing a key on your PC the 41CL will show the "TIMEOUT" message, when that happen just press the R/S key to continue Test #6 : PC is sending and 41CL is receiving at 2400 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 2400 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) CL -> Press the G button (same as XEQ G) PC -> Activate the RealTerm application PC ---> Type the letter "a" on your PC keyboard and you should see "832003-0061" on the CL display (61 = ASCII value of a) PC ---> Type the letter "A" on your PC keyboard and you should see "832003-0041" on the CL display (41 = ASCII value of A) PC ---> Type any letters on your PC keyboard and you should see "832003-00??" on the CL display (?? = ASCII value of the key pressed) CL -> Press the R/S button to stop the program CL -> if you wait more than 10 seconds before pressing a key on your PC the 41CL will show the "TIMEOUT" message, when that happen just press the R/S key to continue Test #7 : PC is sending and 41CL is receiving at 4800 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 4800 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) CL -> Press the H button (same as XEQ H) PC -> Activate the RealTerm application PC ---> Type the letter "a" on your PC keyboard and you should see "832003-0061" on the CL display (61 = ASCII value of a) PC ---> Type the letter "A" on your PC keyboard and you should see "832003-0041" on the CL display (41 = ASCII value of A) PC ---> Type any letters on your PC keyboard and you should see "832003-00??" on the CL display (?? = ASCII value of the key pressed) CL -> Press the R/S button to stop the program CL -> if you wait more than 10 seconds before pressing a key on your PC the 41CL will show the "TIMEOUT" message, when that happen just press the R/S key to continue Test #8 : PC is sending and 41CL is receiving at 9600 bauds PC -> In RealTerm, under the "Port" tab PC ---> Set "Baud" to 9600 PC ---> Press the "Open" button to close the com port (button should be raised) PC ---> Press the "Open" button to open the com port (button should be depressed) CL -> Press the I button (same as XEQ I) PC -> Activate the RealTerm application PC ---> Type the letter "a" on your PC keyboard and you should see "832003-0061" on the CL display (61 = ASCII value of a) PC ---> Type the letter "A" on your PC keyboard and you should see "832003-0041" on the CL display (41 = ASCII value of A) PC ---> Type any letters on your PC keyboard and you should see "832003-00??" on the CL display (?? = ASCII value of the key pressed) CL -> Press the R/S button to stop the program CL -> if you wait more than 10 seconds before pressing a key on your PC the 41CL will show the "TIMEOUT" message, when that happen just press the R/S key to continue EDIT: typos |
|||
09-24-2016, 12:59 PM
(This post was last modified: 09-24-2016 10:15 PM by aurelio.)
Post: #2
|
|||
|
|||
RE: 41CL Serial Communication Testing
Hi Sylvain and thank-you for your help
I performed <> the 1200 BAUD test and I assume there could be a hardware problem in the serial connection on the calculator: it does not work > and < sending from CL to PC nothing is displayed in Realterm box viceversa theTIMEOUT message is displayed on the CL |
|||
11-19-2016, 01:19 PM
Post: #3
|
|||
|
|||
RE: 41CL Serial Communication Testing
Hi Sylvain, again "fighting" with my serial connection.
I have a doubt, forgive me for unskilled thoughts but if I disable MMU at line 02, proper CL commands are disabled (returned a "NONEXISTENT" message), where am I wrong? |
|||
11-19-2016, 02:31 PM
Post: #4
|
|||
|
|||
RE: 41CL Serial Communication Testing
(11-19-2016 01:19 PM)aurelio Wrote: Hi Sylvain, again "fighting" with my serial connection. When the MMU is disabled the 41CL Extra Functions are automatically mapped to page 7. |
|||
11-19-2016, 03:01 PM
(This post was last modified: 11-19-2016 06:14 PM by aurelio.)
Post: #5
|
|||
|
|||
RE: 41CL Serial Communication Testing
(11-19-2016 02:31 PM)Monte Dalrymple Wrote:thank-you Monte, I see it with CAT2.(11-19-2016 01:19 PM)aurelio Wrote: Hi Sylvain, again "fighting" with my serial connection. The program keyed now manually, works (in previous attempts the program was copied from Hepax-ram) still investigating for the connection... edit: typos.......... |
|||
11-26-2016, 02:26 PM
(This post was last modified: 11-26-2016 10:52 PM by aurelio.)
Post: #6
|
|||
|
|||
RE: 41CL Serial Communication Testing
I've changed the PC and the OS (sure to have already done it before, but now not so sure )
and it works!!! OS: XP now serial connector still the RS232 DBA9 on the MOBO.... .....but a different PC so I have to understand now, if the problem is due to the hardware or to the OS (SEVEN before) edit: typos |
|||
11-27-2016, 10:43 PM
(This post was last modified: 11-27-2016 11:08 PM by aurelio.)
Post: #7
|
|||
|
|||
RE: 41CL Serial Communication Testing
(11-26-2016 02:26 PM)aurelio Wrote: I've changed the PC and the OS (sure to have already done it before, but now not so sure ) I think it could be really a problem in rs232 port on my notebook.. on the same machine I swapped 10, seven, and XP. drivers correctly installed, it does not work HFC are disabled but when I connect the cable I must see CTS and DSR high, due to the loops on the connector, like on the other PC working..... I must say that the TOSHIBA laptop works and the HP not with CLs That's funny so that I 'll take the time to open the notebook to check what is wrong....actually I've never used the RS232with tis laptop for other purposes, just I did it to upgrade my CL |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)