Author Topic: Telnet client for CPC  (Read 20687 times)

0 Members and 2 Guests are viewing this topic.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.254
  • Country: dk
    • spinpoint.org
  • Liked: 1465
  • Likes Given: 1184
Re: Telnet client for CPC
« Reply #50 on: 19:55, 23 September 18 »
hmm I might see if Prodatron / SymbiosiS can help (maybe a long shot?) but the SymbOS "SymTel" telnet client works great so they may be able to help with the negotiation?

The source code for SymTel is available here: http://www.symbos.de/apps.htm?4  -> http://www.symbos.de/download/apps/SymTel.zip

If anyone fancies to use it for inspiration for their own client or building upon the basic one I put on github.
« Last Edit: 19:57, 23 September 18 by Duke »

Offline SOS

  • Supporter
  • 464 Plus
  • *
  • Posts: 388
  • Country: de
  • Identity lost
    • index.php?action=treasury
  • Liked: 255
  • Likes Given: 276
Re: Telnet client for CPC
« Reply #51 on: 11:28, 06 February 19 »
I found two Bugs (but there are still at Minimum one open, which crashes the program):
Code: [Select]
------1st------
notescapeCode:
ld a,(isEscapeCode)
cp 0
jp z, not_in_escmode
ld hl, EscapeBuf
ld a, (EscapeCount)
inc a
ld e,a
ld d,0
add hl,de
ld (EscapeCount),a
; bugfix SOS
push af
ld a,b
ld (hl),a
pop af

cp 1
jp z, skip_check_esc_code ; we only want 0x1B,'[' ... for now
ld a,(hl)



------2nd------
recv_noblock:
push af
push bc
push de
push hl

;ld bc,2048 - to do empty entire receive buffer and use index

ld bc,1
call recv

cp $FF
;jp z, exit_close
jp z, exit_close_SP_Corr ; Bugfix SOS

cp 3
;jp z, exit_close
jp z, exit_close_SP_Corr ; Bugfix SOS


exit_close_SP_Corr ; NEW SOS
pop hl
pop hl
pop hl
pop hl

exit_close:

call disp_error
ld hl,cmdclose
call sendcmd


Offline GUNHED

  • 6128 Plus
  • ******
  • Posts: 2.706
  • Country: de
  • Reincarnation of TFM
    • FutureOS - The quickest OS for the CPC and Plus
  • Liked: 1270
  • Likes Given: 2964
Re: Telnet client for CPC
« Reply #52 on: 21:25, 06 February 19 »
This is a great project! Thanks for still working on it!  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2021.01.24)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.07.15)

Offline genesis8

  • CPC6128
  • ****
  • Posts: 254
  • Country: fr
    • Genesis8 Amstrad Page
  • Liked: 95
  • Likes Given: 67
Re: Telnet client for CPC
« Reply #53 on: 18:43, 26 March 19 »
Here is the source code for the super simple basic telnet client:
https://github.com/M4Duke/M4examples/blob/master/telnet.s

Edit:
Added some ANSI escape codes + you can press TAB to pause and  TAB again to resume.


Duke could you put the binary of v1.0.1 on spinpoint.org/telnet.bin so new readers of this thread will have the latest version and eventually on the first message ?
____________
Amstrad news site at Genesis8 Amstrad Page

Offline simulant

  • CPC664
  • ***
  • Posts: 59
  • Country: gb
    • Amstrad BBS
  • Liked: 34
  • Likes Given: 6
Re: Telnet client for CPC
« Reply #54 on: 19:04, 26 March 19 »

Duke could you put the binary of v1.0.1 on spinpoint.org/telnet.bin so new readers of this thread will have the latest version and eventually on the first message ?
That would be great, does the v1.0.1 have the SOS bugs above or are they fixed in that release? I'd also like to update the latest version on Amstrad BBS too :)

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.254
  • Country: dk
    • spinpoint.org
  • Liked: 1465
  • Likes Given: 1184
Re: Telnet client for CPC
« Reply #55 on: 04:53, 27 March 19 »

Duke could you put the binary of v1.0.1 on spinpoint.org/telnet.bin so new readers of this thread will have the latest version and eventually on the first message ?
Sure. Done.

That would be great, does the v1.0.1 have the SOS bugs above or are they fixed in that release? I'd also like to update the latest version on Amstrad BBS too :)
No, but the fixes should be included in his version here:
http://www.cpcwiki.eu/forum/programming/wifi-compatibility-between-the-m4-symbiface-3-using-telnet-as-an-example/msg170421/#msg170421

Offline SOS

  • Supporter
  • 464 Plus
  • *
  • Posts: 388
  • Country: de
  • Identity lost
    • index.php?action=treasury
  • Liked: 255
  • Likes Given: 276
Re: Telnet client for CPC
« Reply #56 on: 19:04, 27 March 19 »

Offline simulant

  • CPC664
  • ***
  • Posts: 59
  • Country: gb
    • Amstrad BBS
  • Liked: 34
  • Likes Given: 6
Re: Telnet client for CPC
« Reply #57 on: 13:32, 07 April 19 »
Hi this now resolves well but has the same bug where once it gets past the Amstrad welcome screen all the output scrunches up in the bottom right of the screen and nothing can be read...
If you log in to Amstrad BBS as username Guest you will see it works well until the Welcome screen and then the main menu won't appear. This is after selecting that the console is not ANSI or IBM extended characters compatible on the initial login selections.
Thanks for any help :)

Offline Monsieurmarc

  • CPC464
  • **
  • Posts: 7
  • Country: gb
  • Liked: 4
  • Likes Given: 1
Re: Telnet client for CPC
« Reply #58 on: 17:32, 06 August 19 »
Great thanks Duke :)

I also found a little way down this page: https://www.genesis8bit.fr/frontend/misc.php
A zip file called cpcip020.zip which might help for reference...


EMulating the rs232 interface would be amazing.  I have been watching for a real one for months to buy but they are clearly as rare as rocking horse £$%@

Offline zhulien

  • 6128 Plus
  • ******
  • Posts: 724
  • Country: au
  • aka Vorax
    • 8bitology
  • Liked: 292
  • Likes Given: 303
Re: Telnet client for CPC
« Reply #59 on: 21:14, 14 August 19 »
i think i missed this thread - i wonder what's involved in making a Gopher client for CPC?


In case you are interested to add gopher support to the telnet client or make a gopher client... I have setup a gopher server on Azure - it seems to work well, and for anyone wanting to setup one, it is fairly straight forward and you can do it for free (I am not sure how much traffic a gopher server would get these days).


To access this gopher server, http://gopher.australiaeast.cloudapp.azure.com:70


You can use chrome with the gopherspace extension: https://chrome.google.com/webstore/detail/burrow-gopherspace-explor/plhaaggiajlcjclagmjnjmaonhkdhhji?hl=en

I followed these linux instructions:  https://prgmr.com/blog/gopher/2018/11/09/setting-up-gopherserver.html

What do you think?
« Last Edit: 22:56, 14 August 19 by zhulien »

Offline VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.387
  • Country: gr
    • Parts from the past.
  • Liked: 888
  • Likes Given: 2067
Re: Telnet client for CPC
« Reply #60 on: 01:13, 12 December 19 »
Ok, I have a problem.
Version 1.0.0 works fine and connects to my BBS and on my Pi for telnet.
While the 1.0.1 and the Symbos version connects via telnet to Pi but does nothing :-/
Visit my BBS (Telnet) : flashbackbbs.sytes.net:6502
http://loaderror.eu/
Amiga 1200 Black Project

Offline dragon

  • 6128 Plus
  • ******
  • Posts: 1.540
  • Country: es
  • Liked: 689
  • Likes Given: 499
Re: Telnet client for CPC
« Reply #61 on: 19:43, 06 March 21 »
Not sure if this site can work its not telnet but it tell they have some type of telnet support.

www.Glasstty.com


(from de first article)


"
Telstar is not Telnet Whilst TELSTAR is accessed using TCP/IP it is not a Telnet Server. However, TELSTAR does include a Telnet parser which will respond to a very small subset of Telnet negotiation requests."
« Last Edit: 19:47, 06 March 21 by dragon »