Page 1 of 1

Hermes to Modem Question

Posted: Thu Jul 11, 2024 2:31 pm
by t0nyt
Can anyone confirm if this code (which works fine on a standard QL) should also be expected to work with a Hermes fitted please?

With Hermes I get a response in a$ containing a mix of what I sent and garbage, and then it returns "" so the rest of my code doesn't run

Code: Select all

370 OPEN #8,ser2h
380 BAUD 1200
390 PRINT #8,"AT&T" & CHR$(34) & "GMT,%yyyy%MM%dd%HH%mm%ss,0.uk.pool.ntp.org" & CHR$(34)
400 a$=GetLine$(8)
410 IF a$="" THEN GO TO 900
420 IF a$(1 TO 2)<>"OK" THEN GO TO 400
Etc. etc.
Many thanks

Re: Hermes to Modem Question

Posted: Thu Jul 11, 2024 2:54 pm
by stephen_usher
It should work the same way. BAUD sets the baud rate for both ports in that usage. Otherwise the system interacts with the IPC in the same way.

Re: Hermes to Modem Question

Posted: Thu Jul 11, 2024 3:05 pm
by t0nyt
stephen_usher wrote: Thu Jul 11, 2024 2:54 pm It should work the same way. BAUD sets the baud rate for both ports in that usage. Otherwise the system interacts with the IPC in the same way.
Thanks, looks like I have a fault somewhere then

Will have to get QTERM up and running (am in the process of re-organising my WIN1) and see if I can talk to the modem properly or not

Many thanks

Re: Hermes to Modem Question

Posted: Thu Jul 11, 2024 3:35 pm
by t0nyt
IPCVER$ returns "0.0"

So I guess it's not a Hermes!

IMG_4021.jpeg

Re: Hermes to Modem Question

Posted: Thu Jul 11, 2024 5:07 pm
by dilwyn
Classic 8749 symptons with modems! This was a replacement for the 8049 original second processor intended to cure keyboard debounce problems with replacement keyboards. Had side-effect of sabotaging modem communications!
https://qlwiki.theqlforum.com/doku.php?i ... r&s[]=8749

Re: Hermes to Modem Question

Posted: Thu Jul 11, 2024 5:43 pm
by t0nyt
dilwyn wrote: Thu Jul 11, 2024 5:07 pm Classic 8749 symptons with modems! This was a replacement for the 8049 original second processor intended to cure keyboard debounce problems with replacement keyboards. Had side-effect of sabotaging modem communications!
https://qlwiki.theqlforum.com/doku.php?i ... r&s[]=8749
Many thanks for the info Dilwyn. A bent pin also probably wasn't helping much either!

Have re-fitted my 8049 for now

Many thanks

Re: Hermes to Modem Question

Posted: Fri Jul 12, 2024 11:14 am
by BSJR
t0nyt wrote: Thu Jul 11, 2024 2:31 pm

Code: Select all

370 OPEN #8,ser2h
380 BAUD 1200
390 PRINT #8,"AT&T" & CHR$(34) & "GMT,%yyyy%MM%dd%HH%mm%ss,0.uk.pool.ntp.org" & CHR$(34)
400 a$=GetLine$(8)
410 IF a$="" THEN GO TO 900
420 IF a$(1 TO 2)<>"OK" THEN GO TO 400
Etc. etc.
Not knowing much about serial comms, I am confused by the PRINT line.
As CHR$(34) is a double quote, does this not upset the whole string when also using double quotes directly?

BSJR

Re: Hermes to Modem Question

Posted: Fri Jul 12, 2024 11:19 am
by t0nyt
BSJR wrote: Fri Jul 12, 2024 11:14 am
t0nyt wrote: Thu Jul 11, 2024 2:31 pm

Code: Select all

370 OPEN #8,ser2h
380 BAUD 1200
390 PRINT #8,"AT&T" & CHR$(34) & "GMT,%yyyy%MM%dd%HH%mm%ss,0.uk.pool.ntp.org" & CHR$(34)
400 a$=GetLine$(8)
410 IF a$="" THEN GO TO 900
420 IF a$(1 TO 2)<>"OK" THEN GO TO 400
Etc. etc.
Not knowing much about serial comms, I am confused by the PRINT line.
As CHR$(34) is a double quote, does this not upset the whole string when also using double quotes directly?

BSJR
It’s just embedding double quotes into the string so they get sent to the serial port, whereas the actual “ aren’t sent