Psi2Win Beta 3 printing a box with each LPRINT

Be clear with the topic titles to help members find the answers
Post Reply
1333david
Posts: 45
Joined: Wed Jan 04, 2023 2:08 pm

Psi2Win Beta 3 printing a box with each LPRINT

Post by 1333david »

Hi,
I've been using Psi2Win Beta3 with the print mode to print out my diary (using an updated version of Pdiary).
I have noticed that the output is displaying a box each time the LPRINT command is used. See example.
output.JPG
I'm not sure what I need to change in settings to remove these boxes. The rest of the output is fine. The Comms link is set to Protocol Psion.
If anyone is able to share the solution it would be much appreciated. PS I have printed to Microsoft Print to PDF and also a real printer so I don't think it's at the printer end.
Kind Regards,
David
You do not have the required permissions to view the files attached to this post.
User avatar
Martin
Global Admin
Posts: 401
Joined: Mon Jan 02, 2023 5:18 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by Martin »

Hi Dave

Yes I get similar, although I don't get the same characters as you. I get a 'back-pointing triangle'. It is not Psi2Win related as you will find you get the same with ORG-Link File Relay. For my printouts I now use ORG-Link with File relay pointing to Windows Notepad (set to Courier New). I then use search and replace to clear them all out before cutting an pasting the whole lot into my document.

Is this any help?
Martin
.
Psy2Win_issues.jpg
You do not have the required permissions to view the files attached to this post.
amenjet
Posts: 393
Joined: Tue Jan 03, 2023 7:54 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by amenjet »

Do you have any idea what the character code is?
User avatar
Martin
Global Admin
Posts: 401
Joined: Mon Jan 02, 2023 5:18 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by Martin »

Hi Chaps

I've used an Organiser II XP and printed the character set with/via

(a) Original Comms Link via hard wired COM1
(a1) with Psi2Win Print Mode
(a2) with ORG-Link File relay
and
(b) USB Comms Link (on port 12)
(b1) with Psi2Win Print Mode
(b2) with ORG-Link File relay

The image shows the results where CHR$(17) looks the same, whatever 17 means to the system?

All results are the same so I would suggest it is not USB or SERIAL lead specific It doesn't look like a server issue. Although they both send different EOF signals Psi2Win at CHR$(12) and ORG-Link at CHR$(1) as shown in the image.

I've never managed to get to the bottom of it. It has been there since Boris included the Print Mode for me and very sadly was part the conversation we were having when he passed.

Of course I'd be interested to know what it is. Even though now with Org-Link File Relay it is not too much of a problem
.
OddCharacter.png
.
Sincerely and in good faith
Martin
You do not have the required permissions to view the files attached to this post.
1333david
Posts: 45
Joined: Wed Jan 04, 2023 2:08 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by 1333david »

I ran the following:
do
lprint chr$(x%);" hello";x%
x%=x%+1 : until x%=255

with the results
resultJPG.JPG
So, from lprint chr$(28)'" hello"' x% there was no box. I thought, great just add chr$(28) to my lprint. But, when used with a single lprint (not in a loop) the box remains.....
You do not have the required permissions to view the files attached to this post.
User avatar
Zenerdiode
Posts: 81
Joined: Wed Jan 04, 2023 12:45 am
Location: Newcastle, England

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by Zenerdiode »

Character 0x11 or 17 is DC1 - better known as XON. Have you got software control XON/XOFF handshaking switched on by any chance?
Christopher. - Check out my TRAP message, it’s not difficult to decode and is sometimes uttered under the breath when said message appears… :|
1333david
Posts: 45
Joined: Wed Jan 04, 2023 2:08 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by 1333david »

Brilliant, thanks Christopher!

I changed the handshake in the Comms settings to None and those pesky box characters have gone. Nice clean output and no need to resort to Martin's workaround.

Thank you everyone for your help.
Dave
User avatar
Martin
Global Admin
Posts: 401
Joined: Mon Jan 02, 2023 5:18 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by Martin »

Yes... works for me Chris... where were you twenty years ago when we were printing student projects?

It's interesting on two counts..

(1) I thought PSION protocol overwrote all the other settings! But obviously not!
(2) I would like to understand why Dave and I got different 'characters' - what Organiser version were you using Dave because I've always had the back pointing triangle on all mine.

Thanks again Chris, that was well spotted.
Sincerely Martin
1333david
Posts: 45
Joined: Wed Jan 04, 2023 2:08 pm

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by 1333david »

I was also wondering why I saw different characters to you Martin. I tried different handshake options to see if I could re-produce the "back pointing triangle", but just received boxes.

I am using a Psion XP Model LA Rom 32 ver 36. Same results using USB comms link and original Comms link (with Serial to USB adaptor). Also, the same output with Org-Link file relay. I guess it we've solved the main problem thanks to Chris, so I'm happy.

All the best,
Dave
User avatar
Zenerdiode
Posts: 81
Joined: Wed Jan 04, 2023 12:45 am
Location: Newcastle, England

Re: Psi2Win Beta 3 printing a box with each LPRINT

Post by Zenerdiode »

It will depend on the font selected on the receiving/display program.
Christopher. - Check out my TRAP message, it’s not difficult to decode and is sometimes uttered under the breath when said message appears… :|
Post Reply