Serial QPC to QL

Helpful tips and guides, also new users can ask for help here.
User avatar
tofro
Font of All Knowledge
Posts: 2702
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Serial QPC to QL

Post by tofro »

I think "terminal program" is a good keyword here. And preferably something that uses checksumed blocks for data transfer, like X-Modem or Kermit. Standard QL serial comms is so unreliable that without that you'll likely become desparate.


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Jbizzel
Chuggy Microdrive
Posts: 67
Joined: Mon Jun 19, 2023 9:56 pm
Contact:

Re: Serial QPC to QL

Post by Jbizzel »

Thank you guys,

Further notes...

I have no Hermes, only mod is tk2 Minerva

I have no way to put a program on the QL except serial.

Both mdvs work, and I have some blank carts.

You have given me somethings to try. Will report later.


__________________


And beyond it, the deep blue air, that shows
Nothing, and is nowhere, and is endless.

https://jbizzel.itch.io/
martyn_hill
Aurora
Posts: 933
Joined: Sat Oct 25, 2014 9:53 am

Re: Serial QPC to QL

Post by martyn_hill »

Hi

Just start with Martin's suggestion below - copy directly with COPY 'ser1hz' to 'con_' on the QL to avoid latency waiting for tokenisation - and get a clearer idea of precisely how many characters arrive successfully before things 'hang' (and the

I might suspect your USB to Serial adapter on the host PC were it not for the fact that you've been successful connecting to the Z88 in the past - I myself have had trouble with a number of such adapters in the past which just didn't sufficiently meet the RS232 standards.

If you're likely to need this sort of PC/Emulator to QL connection more in the future, I'd really suggest you take the plunge and build a QLUB Adapter :-)


Martin_Head
Aurora
Posts: 853
Joined: Tue Dec 17, 2013 1:17 pm

Re: Serial QPC to QL

Post by Martin_Head »

I'm not too sure about this. But I think when the QL goes busy, It expects the sender to stop immediately. If any more data arrives, you get problems.

I don't know if your USB to serial adaptor has any kind of congifuration program. But if it does, look for something that stops transmission as soon as the receiver goes busy. I don't know what it might be called.


User avatar
Jbizzel
Chuggy Microdrive
Posts: 67
Joined: Mon Jun 19, 2023 9:56 pm
Contact:

Re: Serial QPC to QL

Post by Jbizzel »

Using the copy to CON idea, it seems that it is getting stuck at the buffer.

Which is about line 88 in the original code I was trying to copy

The buffering appears to be pretty visible using this method, even when copying a file on the harddrive to CON.

(I have just received a qubide, which opens up my options considerably.)


__________________


And beyond it, the deep blue air, that shows
Nothing, and is nowhere, and is endless.

https://jbizzel.itch.io/
User avatar
janbredenbeek
Super Gold Card
Posts: 633
Joined: Wed Jan 21, 2015 4:54 pm
Location: Hilversum, The Netherlands

Re: Serial QPC to QL

Post by janbredenbeek »

Hi Jbizzel,

It's best to install the RAM disk driver and copy to ram1_ first, then to storage media.
The QL cannot handle serial and storage I/O at the same time, and serial buffering is limited to just 81 bytes. The con_ driver is also quite slow.
For reliable transfers you can use SERnet or QTPI terminal emulator with Zmodem transfer.


martyn_hill
Aurora
Posts: 933
Joined: Sat Oct 25, 2014 9:53 am

Re: Serial QPC to QL

Post by martyn_hill »

Hi again Jbizzel!
Jbizzel wrote: Fri Mar 01, 2024 8:59 pm Using the copy to CON idea, it seems that it is getting stuck at the buffer.
Which is about line 88 in the original code I was trying to copy
And how many characters would you say those 88 lines represent?


User avatar
Jbizzel
Chuggy Microdrive
Posts: 67
Joined: Mon Jun 19, 2023 9:56 pm
Contact:

Re: Serial QPC to QL

Post by Jbizzel »

Hi Martin,


it happens to be....

1986.


__________________


And beyond it, the deep blue air, that shows
Nothing, and is nowhere, and is endless.

https://jbizzel.itch.io/
Post Reply