Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Napoleon Commander for CMM2
Page 3 of 5 | |||||
Author | Message | ||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Thanks Ruben! Did you try also the server from PC? That's for me one of the most useful things of NC... Right now I'm trying to make possible to use it either through serial line or WiFi (first ESP in CMM2 deluxe version, then ESP on any CMM2, maybe not on serial but SPI line). I was also thinking to integrate your LZ77 compression, but I'm still not sure, how to do it properly from NC point of view: 1. I would like to stay with ARC format, just add LZ77 as next compression kind (so to have RLE, HUF and LZ7) 2. I know that CSUB is for speed, but when I was adding Huffman compression, I finally decided to do it in pure MMBasic, so everybody can reuse the code (I know it's not so fast, but I took just basic algorithm and found own way how to do it). But here is maybe the speed really mode important... Maybe I will move MAR/MAC part to external INC (see ACTION.INC), so it's possible to change it as you are improving it without core changes in NC... And your's apps are perfect too Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
epsilon Senior Member Joined: 30/07/2020 Location: BelgiumPosts: 255 |
I gave it a try but I got this error on the Python side: C:\cmm2\NC-master>python ncserver.py Napoleon Server connected to: COM6 Traceback (most recent call last): File "ncserver.py", line 47, in <module> ch = ser.read_until().decode('ASCII')[:-1] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 0: ordinal not in range(128) This is on Windows 10. I also had to install pyserial: pip install pyserial That's maybe something to add to the documenation. Cheers, Ruben/Epsilon. Epsilon CMM2 projects |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Hi Ruben, it's pitty, I didn't know that Windows are so much different from normal systems. I did few tests on my virtualisation (I have just W8) and it worked for me. The problem with ASCII could be some Unicode characters in BASEDIR or file names, could you try it with some "cleaner" BASEDIR and without non standard characters in file/dir names? CMM2 would anyway have problem with it... (I will later try to add into python script some mapping to ASCII chars). I needed also go lower with speed in NCserver line 18 (230400) and NC F11 unmark line 6 (with key 6), but I think it was because the virtualisation speed... I will also try later this month to bring some W10 notebook and test it more... With pyserial are you right, I'm using so often serial port, that I'm getting it for obviousness. Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
New version of NC.BAS (0.93) and NCserver.py (0.03): * fixed bug in serial server part (dimensioning of array with just 1 member is not allowed) * first try to modify NCserver.py, so it will not crash on Unicode (or non-ASCII) names here will be work much more complicated (I need use mapping dictionary with both ASCII and non-ASCII names and still will be problem when 2 non-ASCII name swill have same ASCII equivalent...) As Ruben/epsilon said, it needs to be installed pyserial for proper working of NCserver.py: pip install pyserial Please, if somebody has problem with NCserver.py, let me know, so I can investigate the issue. Right now I suggest: * not use any non-ASCII characters in BASEDIR (line 27) * not use any non-ASCII characters in names of files and dirs inside of this directory (this could be done just from Mac/Linux/Windows... side, CMM2 side is OK) Enjoy! Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
New version of NC.BAS (0.95) and NCserver.py (0.04) * use LONGSTRING in serial transfer FROM SERVER, big speedup (400 MHz CMM2 without WS board, 66/31 kB/s to/from server, 480 Mhz CMM2 Deluxe 66/14 kB/s, why?) * command line arguments for NCserver.py, any combination of: NCserver.py -s <serverdir> -p <portname> -b <baudrate> <serverdir> base directory for NCserver, Napoleon Commander on CMM2 see just inside of this <portname> serial port used for communication with Napoleon Commander on CMM2 <baudrate> speed of serial port, need to be the same as set in Napoleon Commander (F11, option 6 checked=691200, unchecked=230400) NCserver.py -h for help. * on NCserver.py start check for non-ASCII characters in file/dir names (inside of serverdir) Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
New version 0.98 with some big improvements: * added support for PgUp and PgDown * ALT+Home, ALT+End jumps to total begin and end of DIR listing * support for NC UDP server (included) on CMM2 Deluxe (or any other with ESP8266 connected through serial) * added Arduino file for ESP8266 on CMM2 Deluxe with OTA, so just first time is neede serial connection right now ESP can just few commands (communication is over serial port with speed 691200 baud) @ver version of ESP code @mac MAC address of ESP @netinfo SSID, BSSID and RSI of connected network (or "" when not connected) @datetime SQL datetime of ESP (NTP is used when connected to the network) @scan scans WiFi networks @connect(SSID, password) connects to WiFi (returns SSID, BSSID and RSI) @disconnect disconnects @reboot reboots ESP @speedtest test speed between CMM2 and ESP8266 then some @nc_ commands for Napoleon Commander I have added also simple TEST.BAS for testing of communication with ESP8266 from BASIC (SSID and PASSWORD need to be entered in line 24 and 37) Communication is ongoing through UDP on port 34701, speed is about 65/45 kB/s (server write/read). Now I will concentrate to adding commands for UDP and TCP communication... Enjoy! Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Tested on MacOS and Windows (there need to be deleted line 282 in NCudpServer.py, I don't know why...) Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Napoleon Commander jumped to version 1.04 with following improvements and changes: * added SEARCH to ALT+F12 (inclusive wildcards '?' and '*'), lists all found FILEs and DIRs, then jumps to first one * added GRF.INC library (link in description), now just with few functions: screenshot saves BMP either in 8bpp or 16bpp (smaller files) preview of GIF, BMP and PNG in window and size + bpp informations preview of some C64 picure files: HiEddie (.hed), Doodle (.dd), Koala (.koa), HIRES (.hbm) preview of SPRITE file * bugfixes in TUI.INC GRF.INC is in own repository, it can be used in own programs. Small changes were done also in TUI.INC. Please if you find this program useful, test as many functions as possible, also put here requests for improvements. If use it somebody with CMM2 Deluxe WiFi (or other ESP attached), I'm interested for experiences with NCudpServer.py. I'm also preparing (finally) the TCP and UDP extension for CMM2ESP.ino, so it can be used for more things then NC... Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
NC version 1.11 * finally finished basic HEX editor on F4 key, it can just overwrite, not to make file longer or shorter * modified MANUAL.TXT to comply with changes * new icons for WiFi, HIDDEN items and SORT in left bottom corner, keys changed to CTRL+H and CTRL+H * clock in right bottom corner * more informations in ABOUT dialog * WiFi functions on ALT+F12 (searh moved to more standard CTRL+F): enabled just when ESP8266 module switched ON in CONFIG (key 7) and present (tested) first time needed SSID and PASSWORD to network, later stored into NC.CFG file * bugfixes Some screenshots Main screen with icons and clock About informations BMP viewer C64 images viewer Config screen HEX editor with cursor Search dialog and results (NC after closing of this dialog jumps to first item), this file is available as FOUND.TXT Shortcuts New WiFi connection ZX Spectrum images viewer Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 450 |
I loved your github repo recognizing the Basic inc file as C++ Congrats for this amazing software. It's becoming even better with the new features. |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Thanks Leo, I tried somehow 'explain' to GitHub about INC files and BASIC, but I have lost... Right now I think NC has enough features and I wouldn't like to let it grow too much. But for example GRF library has big potential to be used in some CMM2 Swiss knife for many graphic formats in separate application... And I still have to continue on MM64 simulator, life is simply too short Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
thwill Guru Joined: 16/09/2019 Location: United KingdomPosts: 3865 |
You need a .gitattributes file, see https://github.com/thwill1000/sptools/blob/master/.gitattributes Best wishes, Tom Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Thanks Tom, I will try it! Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 450 |
Cool Tom I didn't know about this config file. |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3678 |
Tom - thanks from me too! John |
||||
Rado Regular Member Joined: 27/11/2020 Location: CroatiaPosts: 59 |
this looks amazing! maybe just change "search what" to "search for:" ? :) |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
Yeah, I have there many smaller and bigger errors/mistakes/not nice things because of my English... I will try to fix it (soon ?). But thanks for the first sentence Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 504 |
Like it . Thx Plasma |
||||
jirsoft Guru Joined: 18/09/2020 Location: Czech RepublicPosts: 532 |
New version of NC is here (v1.13): * Atari ST DEGAS graphic formats in GRF.INC (.PI1-3, .PC1-3) * fixed stupid bug in HEX editor (it couldn't be entered 00) * progress bar in graphic viewers * About dialog includes versions of TUI.INC and GRF.INC * some speed improvements Enjoy! Jiri Napoleon Commander and SimplEd for CMM2 (GitHub), CMM2.fun |
||||
elk1984 Senior Member Joined: 11/07/2020 Location: United KingdomPosts: 227 |
* Atari ST DEGAS graphic formats in GRF.INC (.PI1-3, .PC1-3) Degas Elite. Now that takes me back! |
||||
Page 3 of 5 |
Print this page |