Post Reply 
HPBasic code for RS-232 on a 9826 with a 98626A card?
08-29-2024, 07:10 AM (This post was last modified: 08-29-2024 07:10 AM by J-F Garnier.)
Post: #2
RE: HPBasic code for RS-232 on a 9826 with a 98626A card?
(08-29-2024 06:46 AM)mrcity Wrote:  
Code:
10 LET E = 5
20 ENTER 9;E$

But then when I run this, the 9826 gives me a cursor after which I enter something, it hangs until I reset BASIC. The PuTTY window doesn't let me type anything, and then no communication works in either direction until I restart PuTTY and reset Register 12 as above.

Any advice on where I'm going wrong with the ENTER command? Or is it messing up because of flow control? Or do I somehow need a different device ID for input? Or do I need to let E$ be a string so it's the same on lines 10 & 20? It'd be really slick to get two-way communication going!

Better to ask such specialized questions on the Vintage HP Computer group.
But, some indications:
- The 9000 BASIC provides living keyboard, so you can type a command during program execution.
However, the processing of this command has to wait for the end of the current program line, which in this case is stuck in the ENTER statement. So the computer may look as hung.
- The HP ENTER statement, by default, usually waits for a CR/LF (or just LF) terminator. Try to type LF (ctrl-J) on your terminal.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HPBasic code for RS-232 on a 9826 with a 98626A card? - J-F Garnier - 08-29-2024 07:10 AM



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