New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing ESP32/RunCPM via Network WiFi using telnet #74

Open
mbramwel opened this Issue Jan 7, 2019 · 12 comments

Comments

Projects
None yet
3 participants
@mbramwel
Copy link

mbramwel commented Jan 7, 2019

I just received a TTGO board. I compiled RunCPM and it seems to work.

I created a ESP32_telnetd.h and with a small change to the arduino_abstraction, I am now able to telnet into the ESP32/RunCPM board.

Seems to work, nothing has failed yet. The EXIT (was halt the emulator) command does a network close and waits for another inbound connection.

Is there a blog somewhere that we can post code and make comments?
Github seems to be the wrong tool for that type of activity.

$telnet 192.168.31.139

Trying 192.168.31.139...
Connected to 192.168.31.139.
Escape character is '^]'.

CP/M 2.2 Emulator v3.7 by Marcelo Dantas
Arduino read/write support by Krzysztof Klis
Build Jan 6 2019 - 22:27:16
'--------------------------------------------'
CCP: INTERNAL v1.5 CCP Address: 0xe400
BOARD: TTGO_T1
Initializing SD card.

RunCPM Version 3.7 (CP/M 2.2 60K)

A0>info
RunCPM System Information v1.0

RunCPM Version 3.7 running on ESP32
CCP is Internal Version 1.5
CCP loads at address E400h
BDOS is at address EC00h
BIOS is at address FE00h
60160 bytes available for applications

RunCPM Version 3.7 (CP/M 2.2 60K)

A0>exit

Connection closed by foreign host.

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

Yayyyy... telnetting into CP/M... \o/

I created a ESP32_telnetd.h and with a small change to the arduino_abstraction, I am now able to telnet into the ESP32/RunCPM board.

Can you make a PR for this?

Is there a blog somewhere that we can post code and make comments?
Github seems to be the wrong tool for that type of activity.

I don't think fragmentation of information is a good idea. So looking for a way how to keep blogging and documentation here would be my preferred choice.

ForthHub is using the issues of an extra repository as a kind of forum.
—▷ https://github.com/ForthHub/discussion
Let's have a look how they do it.

PRs have discussions too.
Can issues and PRs be cloned like the Wikis which just are git-repos too?
If not, that'd would be a showstopper and a GitHub based Wiki would be the better choice.

Doing it with Git and keeping it clone-able is better for the survival of the information.

Summary: Probably we can discuss code and have blogging here in many ways. We just need to define how to do it.

@mbramwel

This comment has been minimized.

Copy link
Author

mbramwel commented Jan 7, 2019

@mbramwel

This comment has been minimized.

Copy link
Author

mbramwel commented Jan 7, 2019

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

I’ll give the code a check tomorrow evening to make all is good. I’ll have to figure out how to properly do github without embarrassing myself too badly.

Don't worry! I periodically screw up my own repositories and then need to pull them from GitHub/GitLab again to restart from a safe state. Shit happens! Life has too many other tasks that are far more important than becoming a never failing git expert...

If you would like to play with the code right away: http://web1.foxhollow.ca/RunCPM/

I'll look at it but maybe your polished version will be there faster than my results.
We'll see...

Stay ommmmmmPtimistic! \o/

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

I imported the ZIP as new branch into my RunCPM clone.

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

(yeti@kumari:15)~$ telnet doit-esp32-devkit-v1-1

After clearing the screen:

CP/M 2.2 Emulator v3.7 by Marcelo Dantas
Arduino read/write support by Krzysztof Klis
      Build Jan  7 2019 - 07:13:50
--------------------------------------------
CCP: INTERNAL v1.5    CCP Address: 0xe400
BOARD: DOIT ESP32 DEVKIT V1
Initializing SD card.

RunCPM Version 3.7 (CP/M 2.2 60K)

A0>info
RunCPM System Information v1.0

RunCPM Version 3.7 running on ESP32
CCP is Internal Version 1.5
CCP loads at address E400h
BDOS is at address EC00h
BIOS is at address FE00h
60160 bytes available for applications


RunCPM Version 3.7 (CP/M 2.2 60K)

A0>user 1
A1>c:
C1>do myhi
SuperSUB V1.1
Directory full error on line number: 5


RunCPM Version 3.7 (CP/M 2.2 60K)

C1>█

Ok... so far, so good.
I get some directory full errors when trying to compile stuff but I had this yesterday too without the telnetd changes. Maybe a waggly connection in the jumper wires or a bitchy µSD card or it just needs a filesystem check. Definitely not a telnetd related problem because I get this on the other ESP32 with the non-telnetd-RunCPM too.

I need to narrow that down before anything else.


Both DOIT boards have filesystem problems. One runs RunCPM with Telnetd, the other one runs the "normal" RunCPM. The filesystem problem shows up with a 2GB and a 4GB card in both boards.

So far I'm out of ideas what to look at next.

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

Changes in my branch for experimenting (local+telnetd):

I've put my WiFi config in an own header which is added to .gitignore:
https://github.com/drawkula/RunCPM/blob/local%2Btelnetd/.gitignore#L62

There is an empty example for this file instead:
https://github.com/drawkula/RunCPM/blob/local%2Btelnetd/RunCPM/esp32_wifi_config.h.example

It is included here:
https://github.com/drawkula/RunCPM/blob/local%2Btelnetd/RunCPM/ESP32_telnetd.h#L12-L20

Maybe somewhen we'll have a better idea how to set SSID and PASSWORD without fearing to publish it via git.

So far for a summary of the stuff I did before dropping the pen because of the SD card problems. I need to wait for ideas what to examine next to track that down.


Update @ 20190109-1353-UTC:

Maybe the old SD library activated internal pull-up resistors or might have been slow enough not to cause errors with missing pull-ups and therefore slower signal rising times. The now faster new library may need the external pull-ups. Adding them looks ugly on the breadboard. I'll look for Wroom32 boards with an onboard SD card slot to have a mechanically robust solution instead.

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 7, 2019

Can you please retitle this issue to include ESP32 and TELNETD?

@MockbaTheBorg

This comment has been minimized.

Copy link
Owner

MockbaTheBorg commented Jan 7, 2019

@mbramwel mbramwel changed the title Is there a blog to discuss RunCPM? Accessing ESP32/RunCPM via Network WiFi using telnet Jan 7, 2019

@MockbaTheBorg

This comment has been minimized.

Copy link
Owner

MockbaTheBorg commented Jan 31, 2019

Sorry guys I have been disconnected for some time.
You know, sometimes life gets in the way.
What did I miss?

@drawkula

This comment has been minimized.

Copy link

drawkula commented Jan 31, 2019

You know, sometimes life gets in the way.

Yes... confirmed!

What did I miss?

Telnetting to RunCPM.
It works!

I threw it in the corner because of SD card access errors. Meanwhile I have some more SD breakouts (still untested) but I'm not expecting them to behave better because I had write failures on the Wrover32 board with onboard SD slot too which should have those pullup resistors. I'm waiting for the right moment and mood to retry it but that's not a telnet related issue.

@MockbaTheBorg

This comment has been minimized.

Copy link
Owner

MockbaTheBorg commented Jan 31, 2019

Cool ... I will go read about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment