Giter Club home page Giter Club logo

zimodem's Issues

Make Zimodem CommodoreServer compatible -- Was: Soft on ESP8266 MCU V2 - freezing

Hi Bo,

Thanx for the very nice software for ESP8266/C64/communitiy. I installed the soft on ESP8266 MCU V2. With Arduino. It works. But if I do BBS or downloads from Commodoreserver.com it's freezing... I know you put the soft on Adafruit module. But: is it able to run flawlessly on native ESP8266 MSU V2? Other wifi soft is running /wout problems on this module.

Any suggestions?

And: can I use V1541-38k with your soft?

BTW: Keep up the good work!
Best regards.

thE rZA

Online Update AT&U6502

The command is working bur will update to 2.8.
Is it possible to make 2.9 working or to make a selection available.

AT&W not saving baud rate

I did a
ATB115200
I then did a
AT&W
but ZiModem is not saving the baud rate value on the ESP8266.

NodeMCU V3 Lua WiFi ESP8266 32M USB CH340G TTL Internet Development Board Module

Hi I hope you can help.

I'm running Windows Arduino IDE 1.8.5 and added the json for esp8266 boards etc.

I have a NodeMCU V3 Lua WiFi ESP8266 32M USB CH340G TTL Internet Development Board Module from ebay and it compiles and flashes no problem.

But then when I run Kermit on my old dos pc I can only use a limited set of AT commands and can't setup wifi or follow your instructions. I just get "ERROR".

I can do AT and it says OK
I can do ATI01 through to ATI04 but not 05,06,07 onwards.

Is there anything I'm doing wrong or can you help at all? I'm hoping to get my old dos pc on wifi through Kermit!

Thanks for any help :)

Compile errors on ESP-32 NodeMCU board

Getting the following error when attempting a compile using ESP32 Dev Module:

C:\Users\can77\Downloads\Zimodem-master\Zimodem-master\zimodem\zimodem.ino: In function 'void changeBaudRate(int)':

zimodem:291:17: error: expected unqualified-id before '.' token

HardwareSerial.changeBaudRate(baudRate);

             ^

C:\Users\can77\Downloads\Zimodem-master\Zimodem-master\zimodem\zimodem.ino: In function 'void changeSerialConfig(uint32_t)':

zimodem:305:12: error: 'class HardwareSerial' has no member named 'changeConfig'

HWSerial.changeConfig(conf);

Uhm.How does it work?

Hi Bo.

Sorry to nag you again. But: I set the baudrate of Zimodem to 1200. Then I loaded pml64.bin. After that I started one of the PRG files. IRC for e. g. But nothing happens. It stays at initializing message.....

You wrote to reset cpu and do all again. It changes nothing.

Must I disconnect 9600 cables to make it work? BTW: in CCGMS I have to change baudrate only and it works....

'LogMode' does not name a type

Pretty sure it's not a bug but me ignoring some essentials, I just don't know about, since I'm still pretty new to the whole arduino world...
...But when trying to compile your source, I always get this Error:

'LogMode' does not name a type

Please find the debug output attached...
zimodem.log

I did follow your instructions downloading and installing/injecting the head version of the esp8266 libs and I followed instructions, I found on the internet stating I could compile using the default version from the board manager - both presenting the same error.

Please help! :)

Additional, potentially important information:
Trying to compile for a Wemos NodeMCU v3 with an ESP-12E chip. (But the same error occurs, no matter which board I choose...)
Using the latest master from your github, cloned an hour ago.
Anything missing?

edit
I first used the wrong settings for creating the debug log. I corrected them now and exchanged the attached logfile.. Yet, as told before, the error remains the same...

Trouble with Telnet connection to Linux server

Hello! Very cool project, thank you for this.

I am using a c64net device and the auto updater brought me to firmware 3.2 no problem. I am trying to telnet (atdt) to a Linux server and it looks like there is a problem with Telnet protocol negotiation. I haven't looked at the source code for Zimodem but I was wondering if the Telnet implementation is RFC based or is it more like netcat streaming without a (or with a minimal) Telnet application layer?

I have attached a network trace (Wireshark) that shows where it hangs right after connecting... the server seems to be trying to negotiate some Telnet settings.

Any help is appreciated. Thanks so much!

Pet2asc

Not really an issue as much as a question- I'm trying to use this w/ Atari and i can't quite follow in the code if it's doing the petacsii conversion by default or not. What triggers the conversion? I'm getting nothing but strange chars on my Mac as well as the atari when connected.

Basic Programs unable to connect to modem on a C128 PAL

After starting "configure" from the disk image on a C128D PAL in C64 mode I am getting after 2 minutes this error:

Intialization Failed
Is your modem set to 1200b?
break in 220

All the other programs on the disk are not working either. They either hang (Telnet) or through the same error. The modem is set to 1200 baud and works well in CCGMS in C64 mode.

I tried in the C128 mode as well and have the same issue. Besides the Basic programs not working I noticed that the transmission above 1200 baud gets quite unreliable.

Any suggestions or workarounds? Or is this related to C128 PAL timings to be different? I am more than happy to help if this is a general issue.

ATW not showing all networks

The ATW (or AT+CONFIG) command does not show all networks, just a selection of them. Is there specific types of routers or configs that the software will not work with? All routers in range are in b/g or n modes and are 2.4ghz

Strange Telnet Issue

I have built the GuruModem versions, as well as adding a small i2c monitor that shows the current baud and Wifi SSID.

However, when I connect to my local Telnet server - the connection is set to Telnet - the [enter] when I enter a command seems to get 'eaten' somehow. For instance if I type 'ls' in my remote session. It overwrites the current line.

ls [enter]

prints:
projects Downloads Documents

The 'ls' line is overwritten. It like it is receiving from the server only a cr and not a lf. I've tried different clients, different CRLF settings in ZiModem, and nothing works. I have a GuruModem and it does not do that. I am using an EPS32-Dev board.

Suggestion: Enhanced phonebook and ping functionality

I don't know if it is ok to suggest features under the 'issues' tab, but those are some features that would be nice:

  1. An enhanced phonebook with BBS names. Often I don't know which hostname belongs to which bbs.
  2. Ping functionality. To check if a IP or hostname responds. I don't know if that works, but automatic pinging all phonebook entries to check which BBSs are online would be nice, too!

I love Zimodem. Really nice to have it! Thank you.

Zimodem, ESP not responding : wifi.disconnect() and more ?

Hello Bo,
Your project seems great !

For the past few weeks, I've been trying to build the firmware part on an ESP02 on a breadboard.

Here are the versions that I tried :

  • build platform : linux
  • arduino : 1.8.5 or 1.6.7
  • ESP8266 core for Arduino : latest git from 3 weeks ago, and from today (that uses SDK v2.1.0-10-g509eae8)
  • Your zimodem code from 3 weeks ago and from today

I've followed your indications and it builds OK and uploads OK to the controller.
As indicated, I put the serial console to 1200 baud.

However :

  • using the unmodified code, all I get is the usual "non-readable boot output" from the ESP but nothing after that. And it does not respond to AT commands.
  • when adding the following line before all of the 3 occurrences of "WiFi.disconnect()" in the code, then I get the init message, and it responds to the ATI command, but it does not lists the access points and does not connect with ATW, and freeze.
if(WiFi.status() == WL_CONNECTED)
  WiFi.disconnect();

I am somewhat troubled that I have to do this modification ?! I read that people have the same freeze with WiFi.disconnect() with other projects...

About the wireless not working, to be sure that it is a power issue, it is powered using a small "lab" power supply with controlled volts and amps. And I have tested that the ESP is OK with NodeMCU/Lua. I fear it is a software problem like the previous one ?

Can you please provide the software versions that you currently use so that I try them ?

Thank you.

Sassa

Commodore server additional testing.

Hey Bo,

Not really an issue per se more so doing some testing on your latest firmware.

I noticed on your firmware for C64 server.com for loading via Device ,2

I was testing the 2400 baud upload finally got the modem to connect. For the CSLOAD38.prg I noticed he was issuing the AT*D0 > that is given an error through ccgms. Just thought you would know that I tested your FW with AT&D0 and that set the bit I assume the D is a register and the binary value of 0 turns this off is this for Flow Control.

The other fellow that was testing this with you couldn't get the 38k driver going. What I notice is if you run a directory command on the server and then try to load any of your programs, you can see the data pull through the RS232 line and on screen but after awhile it stops. So I am wondering if the site has an issue perhaps on the HTTP end of things. I thought it would be fun to play around check out that command and let me know I maybe setting an incorrect value.

Anyways your Firmware is amazing thus far and re flashed my WiModem because you have more options.

Take Care :) Thank you for your contribution to C64 man your teaching me some stuff thank you thank you.

Building with proper ESP8266 libraries.

I need help with how to get ESP8266 libraries that will build non-crashing Zimodem. The one from Boards Manager seems to have issues, and Iโ€™m unclear on how I can use the newer dev code. Or, it could be an issue with the current Arduino IDE. Any insight would be appreciated.

Hardware flow control

Hello Bo,
Excuse me if my question is dumb.

ESP8266 UART provides pins for hardware flow control : RTS is IO15 and CTS is IO13.
It is possible to enable it in arduino : http://www.esp8266.com/viewtopic.php?f=27&t=8560

Why not use it ? (or at least use these pins in order to be able to enable it later ?)

Actually I see that zimodem use pin 4 for CTS (to computer's RTS) and 5 for RTS (to computer's CTS).

Zimodem firmware on nodeMCU?

Hi everyone,
I'm interested in building a serial modem that allows me to transfer files from an old mac classic to midern conputer on my LAN.

I have a couple of questions:

A - can I load zimodem firmware on a nodeMCU device?
B - once configured can I us the modem to perform a PPP connection to a pppd daemon on a pi3? This way I'll enjoy a full tcp/ip session and trasfer files directly on the pi3 (or elsewhere on the LAN) via ftp

Thanks in advance

Marco

P.s. sorry if this sounds as a stupid question but I'm quite a newbie

NTP error by one hour.

When using 24 hour display, the time is out by one hour.
When using 12 hour time, the date doesn't roll over until 0100.
I have made two changes to rt_clock.ino

In RealTimeClock::tick()
you have
// Unix time starts on Jan 1 1970. In seconds, that's 2208988800:
const uint32_t seventyYears = 2208988800UL + 3600UL;
// subtract seventy years:

I removed the '+ 3600UL'
const uint32_t seventyYears = 2208988800UL;

That gets 24 hour time correct

To adjust 12 hour time, this is my crude change to RealTimeClock::getCurrentTimeFormatted():


  if(f.indexOf("%hh")>=0)

{
if((c.getHour() % 12)== 0){
f.replace("%hh","12");
}
else
{
sprintf(str,"%02d",(int)(c.getHour() % 12));
f.replace("%hh",str);
}
}
if(f.indexOf("%h")>=0)
{
if((c.getHour() % 12)== 0){
f.replace("%h","12");
}
else
{
sprintf(str,"%d",(int)(c.getHour() % 12));
f.replace("%h",str);
}
}

I am sure that there is a better way to handle zero hours.

Thanks for a great product.
Jim

Issues with Zimodem on wemos D1 mini Rev 2

Using Arduino 1.8.5 to build.
I'm able to build and upload the sketch to the board.
The serial monitor correctly displays the init message however most of the time it ignores any commands given. I've noticed if I connect to to using tera term the cursor flashes when I'm able to give it commands.

I've tried two different D1 mini's with the same results.

Shorting the tx and rx pins and uploading a simple sketch shows that it's transmitting and receiving data correctly.

Seems like sometimes after showing the init message it's freezing.

Manual answer with ata command doesn't raise CD line.

If the bbs host is enabled, and ats0=0 is issued, answering the call with the ata command does connect, but doesn't raise the carrier detect signal.

Enabling auto answer (i.e. ats0=0), results in the connection occurring automatically, and the carrier detect signal being asserted.

ESP8266 Issue - Disconnect only shows "NO" instead of no carrier.

Disconnecting the other side of the connection results only the first 2 bytes of the NO CARRIER string being sent to the host over serial. Changing the string in zcommand (Line 3124) results in only the first 2 bytes of the string printing to the host.

Edit...
It's a hardware bug with the 6551 of not flushing the buffer when the CTS pin is high.

Using Zimodem/c64net from cc65?

Hi!

Just dusted off my good old C64 and soldering iron, and built myself a c64net adapter (using this schematic: https://www.c64-wiki.de/wiki/Wifi-Adapter (the schematic at the bottom).

I got the demo programs included in Zimodem working, and took a look at some telnet BBSes... Yay!

Now I try to write some software to use it, using cc65, I want to interact with a service running on my PC.

I use some code found here: https://coronax.wordpress.com/2015/01/06/figuring-out-commodore-64-rs-232/ (the last comment at the bottom of the page).
Apparently the cbm_k_* functions are wrappers around the Kernal routines, essentially doing the same as OPEN 2,.., PRINT#2, GET#2 etc.

But I run in some issues: as soon as the connection to my server (simple TCP service running on my PC) is established, I sometimes receive junk characters, sometimes I see parts of the text sent by the server.
Looks like baud rate/handshake/transmission issues. (I rule out ASCII/PETSCII conversion issues, I only send the string "alive" so far, some times it is even received correctly)

Now I am confused:

  • Are the Kernal routines supposed to work at all? (I found several posts on the internet stating they are buggy). Don't the example programs use them, too?
  • Is Zimodem 3.4 with the schematic I use capable of hardware handshake? the D1/D2 pins are connected to User Port PB1/PB6. Do the Kernal routines support hardware handshake?
  • I tried both hardware and software handshake (second byte of OPEN filename both 0x00 and 0x01, and both ATF0 and ATF1) and see no real difference.
  • If someone knows cc65: How do I do non-blocking I/O? I see no means of clearing/flushing the receive buffer, If no more characters are waiting, reading from the serial port blocks...

Thanks,

Martin

Number of lines

Is it possible to change the number of lines to display? My terminal supports up to 48 and I would like to make full use of them

cts problem...

Hi I built a fresh binary in arduino following your steps for a nodemcu 12E...

I edited the firmware code slightly to use define RS232_INVERTED 0 just so I can plug it in via serial to a PC and type without using the C64 inverted signals.

I've got a strange issue though. The firmware seems to work great other than CTS...

When I type each letter takes 10 seconds to appear. So typing AT+CONFIG is really unresponsive and takes ages!! It does work though but like I say really slow.

As soon as I just unplug the CTS jumper on the board, everything springs in to life and I can type and it is all fast and punchy!

I then of course can't enable rts/cts without it crashing, but even when it is really slow with CTS plugged in I still can't enable rts/cts from at+config menu either.

Any ideas what I've done wrong or why it is running so slow with cts connected?

Thanks for any help at all :)

up9600 hack on nodemcu

Hi Bo, I wondered if you could help.

I have a NodeMCU ESP8266 flashed with zimodem hooked up to a userport on my C64.

It works great and I can use it with user port at 2400 but can't seem to get the up9600 hack working. I'm not sure how to set this up but I've tried setting the baud to 9600 first then setting the modem to UP9600.

At that point I can't type any at commands or anything in at all though so I just have to switch back to User Port on the lower baud again. Thanks for any help with this. :)

Question: Hostname

How does one change the hostname of the device? Id like something a bit more descriptive than ESP_#####.
I am using 3.4 on several esp-01's

WIFI credentials charset problem?

Hi Bo,
I've just assembled my modem (with your firmware) this weekend and had an issue to connect to my Wifi.
Lets say my SSID is "Abc2".

I've used your "CONFIGURE" tool which initilizes the modem and searches for available Wifi SSIDs.
The "CONFIGURE" tool shows my SSID as "aBC2". (the upper lower case syntax of other text is also messed up)
After providing the password, the connection attempt fails.

Afterwards I've switched to CCGMS and entered the configuration mode with "AT+CONFIG". Trying to connect via the command "WIFI" leaded to the same result.

After switching to "PETSCII translation on" the modem connected without problems and also the SSID was listed correctly as "Abc2".
Now I had to deactivate the "PETSCII translation" again cause your tools doesn't seem to initialize the modem with this option activated.

What I've tested so far: 2 different C64 (PAL) machines (with sd2iec), JIFFY, CMB, SPEEDDOS, password in different "upper-lower case" syntax.

thank you for your effort!

Cannot compile for ESP32

I'm not able to compile this for the ESP32. I've followed directions in the read me to add the lines to the base files and tried Arduino IDE's from the version suggested to current and get compile errors.

`Arduino: 1.8.10 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 40MHz, 4MB (32Mb), 921600, None"

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1541:27: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

   lprintf(zm,LOG_INFO,"Resuming transfer from offset: %"PRIu64, *pos);

                       ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1576:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

 lprintf(zm,LOG_ERR,"ERROR %d seeking to file offset %"PRIu64

                    ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1659:28: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

   lprintf(zm,LOG_DEBUG,"send_from: end of file (or read error) reached at offset: %"PRId64, zm->current_file_pos);

                        ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1832:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

sprintf((char*)p,"%"PRId64" %"PRIoMAX" 0 0 %u %"PRId64" 0"

                ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1832:29: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

sprintf((char*)p,"%"PRId64" %"PRIoMAX" 0 0 %u %"PRId64" 0"

                         ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1832:40: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

sprintf((char*)p,"%"PRId64" %"PRIoMAX" 0 0 %u %"PRId64" 0"

                                    ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1911:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

lprintf(zm,LOG_DEBUG,"Sending %s from offset %"PRIu64, fname, pos);

                    ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1927:30: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

   lprintf(zm,LOG_WARNING,"File skipped by receiver at offset: %"PRIu64, pos + sent_bytes);

                          ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1946:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

 lprintf(zm,LOG_ERR,"Received %s at offset: %"PRId64, chr(type), zm->current_file_pos);

                    ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:1995:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

 lprintf(zm,LOG_INFO,"Downloading %s (%"PRId64" KBytes) via Zmodem", zm->current_file_name, kbytes);

                     ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2006:32: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

     lprintf(zm,LOG_WARNING,"%s already exists (%"PRId64" bytes)",fpath,l);

                            ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2008:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

       lprintf(zm,LOG_WARNING,"Local file size >= remote file size (%"PRId64")"

                              ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2081:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

       lprintf(zm,LOG_WARNING,"Incomplete download (%"PRId64" bytes received, expected %"PRId64")"

                              ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2081:64: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

       lprintf(zm,LOG_WARNING,"Incomplete download (%"PRId64" bytes received, expected %"PRId64")"

                                                            ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2089:31: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

       lprintf(zm,LOG_INFO,"Received %"PRIu64" bytes successfully (%u CPS)",b,cps);

                           ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2183:80: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

i=sscanf((char*)zm->rx_data_subpacket+strlen((char*)zm->rx_data_subpacket)+1,"%"SCNd64" %lo %o %lo %u %"SCNd64

                                                                            ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2183:89: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

i=sscanf((char*)zm->rx_data_subpacket+strlen((char*)zm->rx_data_subpacket)+1,"%"SCNd64" %lo %o %lo %u %"SCNd64

                                                                                     ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2222:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

 lprintf(zm,LOG_ERR,"ERROR %d seeking to file offset %"PRId64

                    ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2243:30: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

   lprintf(zm,LOG_WARNING,"Specified maximum file size (%"PRId64" bytes) reached at offset %"PRId64

                          ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2243:68: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

   lprintf(zm,LOG_WARNING,"Specified maximum file size (%"PRId64" bytes) reached at offset %"PRId64

                                                                ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:2327:28: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

     lprintf(zm,LOG_ERR,"ERROR %d writing %u bytes at file offset %"PRIu64

                        ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\rt_clock.ino:17:0: warning: "htonl" redefined

#define htonl(x) ( ((x)<<24 & 0xFF000000UL) | \

^

In file included from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/lwip/lwip/ip_addr.h:41:0,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/tcpip_adapter/tcpip_adapter.h:45,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/esp32/esp_event_legacy.h:23,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/esp_event/esp_event.h:26,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/esp32/esp_event_loop.h:22,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi\src/WiFiGeneric.h:27,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi\src/WiFiSTA.h:28,

             from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi\src/WiFi.h:32,

             from sketch\pet2asc.h:17,

             from C:\Users\Pete\Downloads\Zimodem-master\zimodem\zimodem.ino:125:

C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3/tools/sdk/include/lwip/lwip/def.h:110:0: note: this is the location of the previous definition

#define htonl(x) lwip_htonl(x)

^

zimodem:281:40: error: 'void changeBaudRate(int)' was declared 'extern' and later 'static' [-fpermissive]

static void changeBaudRate(int baudRate)

                                    ^

In file included from C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\cores\esp32/Arduino.h:154:0,

             from sketch\zimodem.ino.cpp:1:

C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\cores\esp32/HardwareSerial.h:102:7: note: previous declaration of 'void changeBaudRate(int)'

void changeBaudRate(int baudRate);

   ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\zimodem.ino: In function 'void changeBaudRate(int)':

zimodem:289:12: error: 'class HardwareSerial' has no member named 'ChangeBaudRate'

HWSerial.ChangeBaudRate(baudRate);

        ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\zimodem.ino: In function 'void changeSerialConfig(uint32_t)':

zimodem:303:12: error: 'class HardwareSerial' has no member named 'changeConfig'

HWSerial.changeConfig(conf);

        ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_ftp.ino: In function 'bool doFTPLS(ZSerial*, const char*, int, const char*, const char*, const char*, bool)':

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_ftp.ino:355:31: warning: NULL used in arithmetic [-Wpointer-arith]

if((req != NULL)&& (*req != NULL))

                           ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_http.ino: In function 'WiFiClient* doWebGetStream(const char*, int, const char*, bool, uint32_t*)':

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_http.ino:210:12: warning: converting 'false' to pointer type 'WiFiClient*' [-Wconversion-null]

 return false;

        ^

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino: In function 'int zmodem_send_hex(zmodem_t*, uint8_t)':

C:\Users\Pete\Downloads\Zimodem-master\zimodem\proto_zmodem.ino:363:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

char* xdigit="0123456789abcdef";

            ^

Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFiClientSecure
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\WiFi
Not used: C:\Program
Multiple libraries were found for "SPIFFS.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\SPIFFS
Multiple libraries were found for "FS.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\FS
Multiple libraries were found for "Update.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\Update
Multiple libraries were found for "SD.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\SD
Not used: C:\Program
Multiple libraries were found for "SPI.h"
Used: C:\Users\Pete\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.3\libraries\SPI
exit status 1
'void changeBaudRate(int)' was declared 'extern' and later 'static' [-fpermissive]

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`

Telnet problem with atari server

Is there any chance do bigger debug to Serial console? I have problem with telnet--IRC bridge provided on ##atari channel irc.atarinet.com:800 When using RAW mode, it only print some telnet control codes and does not continue, if I will use telnet mode ON then it connect and disconnect imidiatelly (NO CARRIER).

I turn on Core debug and there is only this [D][WiFiClient.cpp:509] connected(): Disconnected: RES: 0, ERR: 128

Platform: ESP32
Build: latest master (in time writing issue)
SDK: 1.0.4

Regads Petr

Unable to build version 3.1

I downloaded the source for version 2.0 back in March and successfully built it with Arduino 1.8.1 with the 2.3 version of the esp8266 board code (appears to be current version from their GitHub). However, attempting to build the 3.1 version results in compile errors. The first was in wificlientnode.ino when the following code was used:
int WiFiClientNode::flushOverflowBuffer()
{
if(overflowBufLen > 0)
{
int bufWrite=client.write(overflowBuf,overflowBufLen);

Use of the unsigned char array in client.write causes the following errors:
Arduino: 1.8.3 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DOUT, 115200, 1M (64K SPIFFS), ck, Disabled, None"

Build options changed, rebuilding all
In file included from C:\Users\Gene Toye\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:39:0,

             from sketch\pet2asc.h:16,

             from C:\Users\Gene Toye\Documents\Arduino\Zimodem-master\zimodem\zimodem.ino:41:

C:\Users\Gene Toye\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h: In instantiation of 'size_t WiFiClient::write(T&, size_t) [with T = unsigned char [256]; size_t = unsigned int]':

C:\Users\Gene Toye\Documents\Arduino\Zimodem-master\zimodem\wificlientnode.ino:195:57: required from here

C:\Users\Gene Toye\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:123:36: error: request for member 'available' in 'source', which is of non-class type 'unsigned char [256]'

 size_t left = source.available();

                                ^

C:\Users\Gene Toye\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClient.h:127:5: error: request for member 'read' in 'source', which is of non-class type 'unsigned char [256]'

 source.read(buffer.get(), will_send);

 ^

exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Commenting out the code except the return in flushOverflowBuffer function will resolve this error but new ones occur.

What version of the board support is required for successful compilation of the 3.1 version?

Thanks for a wonderful project.
Gene

Stack-error dump with comma/exclamation mark in wifi SSID or keyphrase?

Hi, I hope you can help!

Is there anyway to recover a nodemcu unit from a massive stack error and continuous dump as this screenshot:

image

Everything works great accessing a strangely name wifi access point called "Fritz!Box 6490 Cable (AGL,n)"

Possibly it doesn't like the comma or the Brackets - or even the keyphrase has an exclamation mark in it!

But then when a AT&W or AT+config save takes place it just stack overflow dumps out that like and won't stop. Unplugging doesn't help as on plugging it in again the stack dump just continues...

Thanks for any help. I can get the wifi name and codes changed if I can recover my nodemcu unit somehow... But it would be even better if I could recover it AND keep the credentials as of course in future it would be useful to not have it crash if it does't like a particular access point.

Thanks once again :)

Will not connect to WPA-Enterprise wifi

Using this software embedded in a Retro Wifi SI, it is not possible to connect to Enterprise-WPA wifi with 802.1x RADIUS authentication using username and password. It would be a useful feature if it could.

Thanks

No output on serial console

Hi,
I'm trying to get zimodem to work on a esp32 (i'm trying both a TTGO-TS and a normal ESP32 dev board with a ESP32-WROOM-32 module soldered on it) but on the serial monitor i get only the debug info, if switch to 1200 baud and write "AT" or "AT+CONFIG" i get nothing.

I am using arduino studio 1.8.10 in "portable mode" (so I don't mix up the libraries between projects) with the 1.0.0 libraries that i found linked in the readme (I didn't make the changes described because i noted that they were already applied).
I also tried modifying the 1.0.4 library appending all the changes at the end of the files (have no idea if it's "the right way) but with no luck.

compilation log with 1.0.4 edited library

zimodem:284:40: error: 'void changeBaudRate(int)' was declared 'extern' and later 'static' [-fpermissive]

static void changeBaudRate(int baudRate)

                                    ^

In file included from sketch\pet2asc.h:19:0,

             from C:\Users\Sonno\Documents\arduino-zimodem\portable\sketchbook\zimodem\zimodem.ino:125:

C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\cores\esp32/HardwareSerial.h:107:6: note: previous declaration of 'void changeBaudRate(int)'

void changeBaudRate(int baudRate);

  ^

C:\Users\Sonno\Documents\arduino-zimodem\portable\sketchbook\zimodem\zimodem.ino: In function 'void changeBaudRate(int)':

zimodem:293:12: error: 'class HardwareSerial' has no member named 'changeBaudRate'

HWSerial.changeBaudRate(baudRate);

        ^

C:\Users\Sonno\Documents\arduino-zimodem\portable\sketchbook\zimodem\zimodem.ino: In function 'void changeSerialConfig(uint32_t)':

zimodem:307:12: error: 'class HardwareSerial' has no member named 'changeConfig'

HWSerial.changeConfig(conf);

        ^

Multiple libraries were found for "Update.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\Update
Multiple libraries were found for "SD.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Users\Sonno\Documents\arduino-zimodem\libraries\SD
Multiple libraries were found for "SPI.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SPI
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\Sonno\Documents\arduino-zimodem\libraries\WiFi
Multiple libraries were found for "SPIFFS.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SPIFFS
Multiple libraries were found for "FS.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\FS
exit status 1
'void changeBaudRate(int)' was declared 'extern' and later 'static' [-fpermissive]

also i noted that in the HardwareSerial.cpp there's no
_uart = uartBegin(_uart_nr, baud, config, rxPin, txPin, 256, invert);
but there is something similar
_uart = uartBegin(_uart_nr, baud ? baud : 9600, config, rxPin, txPin, 256, invert);

Hope to be able to navigate on my i386 by 2021, have a happy new year :P

P.S. this is what happens if i don't modify the libraries C:\Users\Sonno\Documents\arduino-zimodem\portable\sketchbook\zimodem\zimodem.ino: In function 'void changeBaudRate(int)':

zimodem:293:12: error: 'class HardwareSerial' has no member named 'changeBaudRate'

HWSerial.changeBaudRate(baudRate);

        ^

C:\Users\Sonno\Documents\arduino-zimodem\portable\sketchbook\zimodem\zimodem.ino: In function 'void changeSerialConfig(uint32_t)':

zimodem:307:12: error: 'class HardwareSerial' has no member named 'changeConfig'

HWSerial.changeConfig(conf);

        ^

Multiple libraries were found for "SPIFFS.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SPIFFS
Multiple libraries were found for "FS.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\FS
Multiple libraries were found for "Update.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\Update
Multiple libraries were found for "SD.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SD
Not used: C:\Users\Sonno\Documents\arduino-zimodem\libraries\SD
Multiple libraries were found for "SPI.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\SPI
Multiple libraries were found for "WiFiClientSecure.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WiFiClientSecure
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Sonno\Documents\arduino-zimodem\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
Not used: C:\Users\Sonno\Documents\arduino-zimodem\libraries\WiFi
exit status 1
'class HardwareSerial' has no member named 'changeBaudRate'

Carrier Detect line not being activated on manual answer ESP8266. (Again)

Ok, I got around to testing your new version after the pull, but cd is still not activated on connect in the following scenario.

Device is a ESP8266 on a wemos d1-mini clone board.
Serial side is connected to a full (10 wire), ttl to serial adapter board. This is attached to my quad port rs232 card on a windows 10 system.

The only change to the source is commenting out line 78 //# define RS232_INVERTED 1 because it's a non inverted device.

Flashed the unit with the latest pull as of this post time, joined my wifi network, enabled cts/rts flow control, on the main menu and in the bbs host menu.

Saved these settings, and exited back to command mode.

Called the zimodem using putty with a raw port. This results in a connection and the Carrier Detect line becoming active and the led on the wifi module to light, along with the led I've added to my breadboard.

Just closing putty results in a NO CARRIER (what ever number) and the LEDs going out.

Now, type ats0=0, this disables autoanswer on incoming connections, and results in the modem reporting RING.

Starting the putty connection again, results in a RING on the serial terminal side, and when I make the connection with the ATA command, I am connected, but no LEDs, i.e. DCD is not being changed to reflect the current connected state.

up9600 cc65 ser driver?

Hi Bo,

Have you by any chance created a ser driver for cc65 that uses up9600? I tried it, the driver loads ok and detects the hardware in INSTALL routine, but then hangs when trying to do RSOUT (cc64 PUT). Debugging it is a major PITA and I lost my hope already. But maybe you've already have such ser driver on hand?

Escape Sequences for Arrow Keys

I'm using this firmware on an ESP8266 connected to a CoCo3's serial port. Any reason why the arrow keys wouldn't send the proper escape sequence to move the cursor? Instead I see "[A", "[B", "[C", or "[D" appear on the screen whenever I strike those keys, as if ASCII character 27 is being omitted from the start of the sequence. Maybe there's a config setting I'm overlooking?

EDIT: I should add that the arrow keys work fine to move the cursor around the terminal while in command mode. It's when a connection is established they stop working.

Everything else is working great -- love the firmware.

Connecting to wifi fails first time

When I try to connect to my wifi it always fail the first time. Second time it works. I tried some modifications of the code. After changing the connectWifi function a bit it works for me. Not sure why... this is my working code:

static bool connectWifi(const char* ssid, const char* password)
{
int WiFiCounter = 0;
//if(WiFi.status() == WL_CONNECTED)
// WiFi.disconnect();
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
boolean amConnected = false;
//delay(1000);
while ((!amConnected) && (WiFiCounter < 10))
{
WiFiCounter++;
amConnected = (WiFi.status() == WL_CONNECTED) && (strcmp(WiFi.localIP().toString().c_str(), "0.0.0.0")!=0);
if(!amConnected)
{
delay(500);
}
}
wifiConnected = amConnected;
if (!amConnected)
{
WiFi.disconnect();
}
return wifiConnected;
}

Linux Telnet Upload Problem

esp8266(rx tx gnd vcc) pin connected.(baud-rate 38400)

File Upload Fails or Very Slow Speed(command: rz -e) When Connected to Linux Telnet.

But Download is Good.(Command: sz -e)

How to Fix?

Wemos Nodemcu bugs

Hi I hope you can help. I've flashed a few NodeMCU LUA type wemos dev boards and most work ok but I seem to have a few bugs.

One board works but when I type it repeats characters and double echos the commands back to me. Or inserts strange characters amongst the legit ones. When I hit enter the at commands work the same, just it is hard to see what I've typed correctly or what input I've done.

On this particular board it only seems to have this issue when set to the default 1200 baud. If I ATB57600 or some other board it inputs and types fine...

Do you know of anything that may cause this or how I can fix it? Or is the dev board just messed up (though seems odd it works ok at other bauds).

I tried doing the over the air firmware update too but that hasn't helped either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.