HP-41C HP-IL REMOTE & LOCAL commands
|
06-03-2018, 07:55 PM
(This post was last modified: 06-03-2018 09:14 PM by Sylvain Cote.)
Post: #1
|
|||
|
|||
HP-41C HP-IL REMOTE & LOCAL commands
Hello,
I just spend several hours trying to understand why I was not able to successfully configure a HP-82164A RS-232 interface with a HP-41C while it was a walk in the park with a HP-71B. The default configuration of the interface is: 9600 bauds, 8 bits, no parity, 1 stop bit, no protocol, no hardware handshake My new configuration for the interface is: 4800 bauds, 8 bits, no parity, 1 stop bit, no protocol, no hardware handshake In my test programs, I could have chosen to change the baud rate only, but I decided to set all the parameters just in case, anyway as you will see, that is not the issue here. My HP-IL setup is: IL-Controller (71B/41C) <-> HP-82164A <-> back-to-IL-Controller My RS232 setup is: HP-82164A <-> DB25-to-DB9-adapter <-> NULL-modem-adapter <-> DB9-to-USB-dongle <-> MacBookPro <-> Serial-macOS-Program (cfg: 4800,8,n,1) The following three blocks was my starting point ... HP-82164A remote commands subset (82164A OM Rem Cmd P.37 to P.40) Code: SB8; // 1200 bauds HP-71B program (working) Code: 10 RESTORE IO HP-41C program (<' means append) (not working) Code: 01 LBL "CFG232" When I ran the HP-71B program I saw the expected "HELLO WORLD" message on the terminal application but not so for the HP-41C. I tried several configuration changes but to no avail, in the end I had no choice but to go into the low level stuff, the RAW HP-IL messages. 8-) I changed my physical setup to a debugging one: HP-IL setup: IL-Controller <-> PILBox#1 [pyilper --instance one with Scope] <-> HP-82164A <-> PILBox#2 [pyilper --instance two with Scope] <-> IL-Controller RS232 setup: HP-82164A <-> DB25-to-DB9-adapter <-> NULL-modem-adapter <-> DB9-to-USB-dongle <-> MacBookPro <-> Serial-macOS-Program (cfg: 4800,8,n,1) Then I traced the HP-IL messages and manually mapped them to their high level commands for both IL-Controllers (71B & 41C) After that I compared both logs taking into account the small IL management differences between both IL-Controler and found why it was not working with the HP-41C. This is what I have found: HP-71B REMOTE command issue a HP-IL REN (Remote Enable) message (as expected) HP-41C REMOTE command issue a HP-IL REN (Remote Enable) message (as expected) HP-71B LOCAL command issue a HP-IL NRE (Not Remote Enable) message (as expected) HP-41C LOCAL command issue a HP-IL GTL (Go To Local) message (totally unexpected for me) I then checked the 82160A manual and it is correctly specified that the LOCAL command issue a GTL message, so the command works as specified. After that I checked the 82164A manual and this is what I found: Code: There are two command messages that set the interface back into Local mode: Go To Local and Not Remote Enable. Ha! Ha! This is why it was not working with the HP-41C. Because the LOCAL command was not putting the interface in local mode for good (NRE) but only temporary (GTL), the next time it will receive data in listening mode, the interface will go back into remote mode and try to interpret the data as instructions instead of passing it through. Here is the proof ... LOCAL Code: AAU RFC AAD 1 // reconfiguring the loop 'HELLO WORLD' OUTA Code: AAU RFC AAD 1 // reconfiguring the loop The only way I found to solve the issue is to use the NOTREM (Not Remote Enable) command from the 82183A Ext.I/O ROM module. NOTREM Code: AAU RFC AAD 1 // reconfiguring the loop HP-41C program (<' means append) (working) Code: 01 LBL "CFG232" Sylvain Edit: changed the faulty 71B program from "40 LOCAL :RS232" to "40 LOCAL" (see the next post from Jean-François) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
HP-41C HP-IL REMOTE & LOCAL commands - Sylvain Cote - 06-03-2018 07:55 PM
RE: HP-41C HP-IL REMOTE & LOCAL commands - J-F Garnier - 06-03-2018, 08:32 PM
RE: HP-41C HP-IL REMOTE & LOCAL commands - Sylvain Cote - 06-03-2018, 09:22 PM
RE: HP-41C HP-IL REMOTE & LOCAL commands - Garth Wilson - 06-05-2018, 08:42 AM
RE: HP-41C HP-IL REMOTE & LOCAL commands - Sylvain Cote - 06-06-2018, 12:28 AM
RE: HP-41C HP-IL REMOTE & LOCAL commands - rprosperi - 06-06-2018, 02:08 AM
RE: HP-41C HP-IL REMOTE & LOCAL commands - Sylvain Cote - 06-06-2018, 03:01 AM
RE: HP-41C HP-IL REMOTE & LOCAL commands - J-F Garnier - 06-06-2018, 07:43 AM
RE: HP-41C HP-IL REMOTE & LOCAL commands - rprosperi - 06-06-2018, 01:04 PM
RE: HP-41C HP-IL REMOTE & LOCAL commands - J-F Garnier - 06-07-2018, 12:40 PM
|
User(s) browsing this thread: 1 Guest(s)