Post Reply 
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"
 02 MMUDIS
 03 TURBO50
 04 SERINI
 05 FIX 0
 06 CF 29
 07 SF 27
 08 "832"
 09 ASTO 00
 10 "001"
 11 ASTO 01
 12 "002"
 13 ASTO 02
 14 "003"
 15 ASTO 03
 16 "004"
 17 ASTO 04
 18 CLA
 19 ARCL 00
 20 ARCL 01
 21 "├-0041"
 22 YPOKE
 23 CLA
 24 ARCL 00
 25 ARCL 02
 26 "├-0042"
 27 YPOKE
 28 ARCL 00
 29 ARCL 03
 30 "├-0000"
 31 YPOKE
 32 RTN
 33♦LBL A
 34 "SENDING 1200"
 35 AVIEW
 36 SERINI
 37 BAUD12
 38 GTO 20
 39♦LBL B
 40 "SENDING 2400"
 41 AVIEW
 42 SERINI
 43 BAUD24
 44 GTO 20
 45♦LBL C
 46 "SENDING 4800"
 47 AVIEW
 48 SERINI
 49 BAUD48
 50 GTO 20
 51♦LBL D
 52 "SENDING 9600"
 53 AVIEW
 54 SERINI
 55 BAUD96
 56 GTO 20
 57♦LBL 20
 58 CLA
 59 ARCL 00
 60 ARCL 01
 61 YPUTLB
 62 CLA
 63 ARCL 00
 64 ARCL 02
 65 YPUTLB
 66 GTO 20
 67♦LBL F
 68 SERINI
 69 BAUD12
 70 GTO 30
 71♦LBL G
 72 SERINI
 73 BAUD24
 74 GTO 30
 75♦LBL H
 76 SERINI
 77 BAUD48
 78 GTO 30
 79♦LBL I
 80 SERINI
 81 BAUD96
 82 GTO 30
 83♦LBL 30
 84 CLA
 85 ARCL 00
 86 ARCL 03
 87 YGETLB
 88 "├-0000"
 89 YPEEK
 90 AVIEW
 91 GTO 30
 92 END

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
Find all posts by this user
Quote this message in a reply
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 Smile

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
Find all posts by this user
Quote this message in a reply
11-19-2016, 01:19 PM
Post: #3
RE: 41CL Serial Communication Testing
Hi Sylvain, again "fighting" with my serial connection. Smile
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?
Find all posts by this user
Quote this message in a reply
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. Smile
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?

When the MMU is disabled the 41CL Extra Functions are automatically mapped to page 7.
Visit this user's website Find all posts by this user
Quote this message in a reply
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:  
(11-19-2016 01:19 PM)aurelio Wrote:  Hi Sylvain, again "fighting" with my serial connection. Smile
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?

When the MMU is disabled the 41CL Extra Functions are automatically mapped to page 7.
thank-you Monte, I see it with CAT2.
The program keyed now manually, works (in previous attempts the program was copied from Hepax-ram)
still investigating for the connection... Smile

edit: typos.......... Smile
Find all posts by this user
Quote this message in a reply
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 Smile )

and it works!!! [Image: 41CL%20serial%20port%20test.jpg]

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
Find all posts by this user
Quote this message in a reply
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 Smile )

and it works!!! [Image: 41CL%20serial%20port%20test.jpg]

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

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 Smile Smile Smile

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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)