HP41CL Serial Com Port Failure
|
08-27-2022, 11:04 PM
Post: #1
|
|||
|
|||
HP41CL Serial Com Port Failure
Greetings everyone,
A few weeks ago I updated my HP41CL’s with the latest rom 220722.zip. Today I wanted to check something. I plugged in one of the CL’s to the serial cable, as I normally do to update it with Sylvain’s Java program on my Mac. When prompted with «Waiting for 41CL commands», I EXQ CMOPEN on the 41. Except that now it doesn’t link, and I get a timing error. I tried another CL, and I get the same thing…. No connection to the Mac. My serial to USB is good and recognized by the à Mac as /dev/ttyusbserial, as it always has… I don’t understand what’s wrong. Was a bug inadvertently introduced with the latest rom mentioned above? Thank you for any help anyone can provide. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-28-2022, 10:25 PM
(This post was last modified: 08-28-2022 10:26 PM by Sylvain Cote.)
Post: #2
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Hello Neve,
With the HHC conference coming soon, meaning I need to finish my presentation ASAP, I am fully booked. I will send you a PM as soon as I have enough free time to investigate/solve the issue. Sorry about that. Regards, Sylvain PS: in the mean time, if you could post the something similar to the following that would help, thanks. From System Information application Code: Hardware Overview: Java Version (from command line) Code: java -version |
|||
08-29-2022, 11:30 AM
Post: #3
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
The tail end of the log file might also provide a clue.
Remember kids, "In a democracy, you get the government you deserve." |
|||
08-29-2022, 09:03 PM
Post: #4
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Thank you Sylvain,
Here’s what I got, and it has been working just fine since 2017. JAVA VERSION java --version java 9.0.1 Java(TM) SE Runtime Environment (build 9.0.1+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode) It has always worked until now. Système Information Hardware Overview: Model Name: iMac Model Identifier: iMac14,2 Processor Name: Quad-Core Intel Core i5 Processor Speed: 3,2 GHz Number of Processors: 1 Total Number of Cores: 4 L2 Cache (per Core): 256 KB L3 Cache: 6 MB Memory: 32 GB System Software Overview: System Version: macOS 10.15.7 (19H2026) Kernel Version: Darwin 19.6.0 USB-Serial Controller D: Product ID: 0x2303 Vendor ID: 0x067b (Prolific Technology, Inc.) Version: 4.00 Speed: Up to 12 Mb/s Manufacturer: Prolific Technology Inc. Location ID: 0x14330000 / 19 Current Available (mA): 500 Current Required (mA): 100 Extra Operating Current (mA): 0 Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-29-2022, 09:04 PM
Post: #5
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(08-29-2022 11:30 AM)mfleming Wrote: The tail end of the log file might also provide a clue. Hi, Which log file? Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-29-2022, 10:14 PM
Post: #6
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Sorry for the incomplete answer, but I was sitting around waiting for the Artemis I launch - sadly, didn't happen. I had a similar problem some years back and Sylvain provided an XML file that enables debug logging. Download and unzip the attached file and put it in the same directory as the clupdate jar file. After running the program you should see a clupdate.log file in your directory.
Hope it helps, ~Mark Remember kids, "In a democracy, you get the government you deserve." |
|||
08-29-2022, 11:03 PM
(This post was last modified: 08-30-2022 02:40 PM by Neve.)
Post: #7
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Thanks Mark,
I actually have a log file (clupdate.log) in that folder, that was generated yesterday, but it’s empty. Is this supposed to generate a different log file? Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-30-2022, 11:25 AM
Post: #8
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
I believe it actually enables debug output. Give it a try!
Remember kids, "In a democracy, you get the government you deserve." |
|||
08-30-2022, 11:49 AM
Post: #9
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(08-30-2022 11:25 AM)mfleming Wrote: I believe it actually enables debug output. Give it a try! Thank you Mark, will do, and report back when I do. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-30-2022, 02:24 PM
Post: #10
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Neve,
In the file Mark gave you, you will find the log4j2.xml file. Put that file in the same folder as the clupdate java archive file (.jar). This specific file is configured to generate a lot of logs. (trace level) You can change that by modifying the xml file. Debug level, what it does and available monitoring packages are all described in the xml file. Sylvain |
|||
08-30-2022, 02:49 PM
Post: #11
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(08-30-2022 02:24 PM)Sylvain Cote Wrote: Neve, Sylvain, I did it. I have the log file, but it’s kind of big at 116Mb… What do you need? Stephen. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-30-2022, 08:59 PM
Post: #12
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Greetings,
Here are the last lines of the very long log. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-31-2022, 02:23 PM
(This post was last modified: 08-31-2022 02:24 PM by Sylvain Cote.)
Post: #13
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Hello Stephen,
Again, sorry for not being very responsive. Yeah, lots of packages are in trace mode so the log is expected to be big. From what I see, the clupdate program is able to open up and configure the serial port Code: clupdate.serial.SerialPortJSerialCommImpl.ctor:parameter(s) [portName: /dev/tty.usbserial] [baudRate: 4800] but is not receiving anything from it (looping on this) Code: clupdate.serial.SerialPortJSerialCommImpl.readByte:enter Then at some point you pressed Control-C to exit the program. Code: clupdate.tools.ExitRequestHandler.run abort requested, waiting for resources to be released. It is looking like nothing is coming out of the 41CL or the serial driver is having some issue or we have defective cables. I will need to do some investigation on my side, but as I said before, this will have to be postponed. Sylvain edit: typos |
|||
08-31-2022, 02:41 PM
Post: #14
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Hi Sylvain,
I understand you’re busy, don’t worry. And yes, I finally hit the CTRL C keys. I would understand if one CL had a defective serial port…. But both at the same time? This is highly unlikely, although not impossible. It could be the serial cable…. I’ll try to use it with something else and see how it goes. The only thing I see on the CL side is « COMM », and then « TIME ERR ». At that point I just hit CTRL C. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-31-2022, 04:14 PM
Post: #15
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(08-27-2022 11:04 PM)Neve Wrote: I don’t understand what’s wrong. Was a bug inadvertently introduced with the latest rom mentioned above? As a sanity check, I tried updating a 41CL that had already been updated to the latest 220722 and it connected and responded as expected. Quote:12:01:23 Report Outdated ROM images [BoardGeneration: second] It seems the rom update itself isn't the source of the problem. If two 41CL's behave the same, I'd think the problem lies with the serial cable. The clupdate program would have errored out if it tried to open a nonexistent serial port. The only other possibility - a mismatched baud rate? ~Mark Remember kids, "In a democracy, you get the government you deserve." |
|||
08-31-2022, 06:00 PM
(This post was last modified: 08-31-2022 07:58 PM by Neve.)
Post: #16
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(08-31-2022 04:14 PM)mfleming Wrote: It seems the rom update itself isn't the source of the problem. If two 41CL's behave the same, I'd think the problem lies with the serial cable. The clupdate program would have errored out if it tried to open a nonexistent serial port. The only other possibility - a mismatched baud rate? Mark, Yes, the 2 CL’s behave exactly the same. I have 2 serial cables that go from the CL to the UART serial to USB cable. I’ve tried the 2 cables and had the exact same results. The only culprit could be the UART serial to USB cable, or as Sylvain suggested, maybe the driver. That would be weird as it’s been working for ages, up until a month ago when I did the last update. Baud rate has always been the same since day one: 4800. I have another application on Linux that needs that UART cable to receive screen dumps from a Tektronix 1GHz Digital Signal Analyser. I’ll try that later on. If that works, that would mean that the whole signal chain (cable wise) is good. That would also mean that the MacOS driver “might” have an issue. Linux uses a different one, so it won’t be affected…. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
08-31-2022, 07:14 PM
Post: #17
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
I’ve just checked, and the serial to USB cable works great on Linux when running the Tektronix Signal Analyser. So it’s definitely not any of the 3 cables.
I don’t think it’s the driver either, because, come to think of it, I believe my Linux system is using the MacOs Driver through VMWare… Could it be that the last time I used VMWare, it didn’t properly release the driver?… Hmmmm… Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
10-05-2022, 07:19 PM
(This post was last modified: 10-05-2022 07:19 PM by Neve.)
Post: #18
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
Hello everyone,
I tried again updating all my CL’s, this time with the new 220923 rom file, and I still can’t do it the way I used to. I’m getting the exact same result as mentioned above. This is starting to scare me… Anyone else has had that problem before? Regards. Engineer & Senior IT Executive 2x HP41CL, HP41CX, HP48GX, HP50g, 2x82162A Printer, 2x82143A Printer, 2x HP-IL, 2x Card-Readers, PIL-BOX. |
|||
10-05-2022, 07:37 PM
Post: #19
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(10-05-2022 07:19 PM)Neve Wrote: Hello everyone,Yes, I have a similar issue, the update works but when I try to manually transfer a single ROM it fails. (both are running the same part of code) It seems related to the Apple FTDI serial driver on macOS Monterey, I need to investigate further. On the same machine, the update and single ROM file transfer works inside Windows running under Parallels VM using the same adapter, go figure. It is on my todo list, sorry about that. Sylvain |
|||
10-05-2022, 07:47 PM
Post: #20
|
|||
|
|||
RE: HP41CL Serial Com Port Failure
(10-05-2022 07:37 PM)Sylvain Cote Wrote: It seems related to the Apple FTDI serial driver on macOS Monterey, I need to investigate further. I will (mostly) avoid making a crass anti-macOS comment here, just for overall pleasantness and decorum. --Bob Prosperi |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)