CPCWiki forum

General Category => Amstrad CPC hardware => Topic started by: Duke on 07:36, 07 May 16

Title: Amstrad CPC WiFi
Post by: Duke on 07:36, 07 May 16
Hi guys,

I have hacked together an expansion board for the CPC, letting it connect to your home router/accesspoint via WiFi.
It also features a romboard and sd card for file access.

It's a bit rough at the moment, but the basics do work.

Please check it out at:
http://www.spinpoint.org/2016/05/06/m4-board-retrofun-8-bit-amstrad-cpc-wifi/ (http://www.spinpoint.org/)

https://www.youtube.com/watch?v=YqouZCVMMwg (https://www.youtube.com/watch?v=YqouZCVMMwg)
Let me know what you think - Any use, or plain madness :) - It was fun doing atleast.

Works on entire CPC range (from 464 to 6128+)

Regards,
Duke

Update!

Prices:

M4 Board with MX4 (IDC) connector price   40 euro
M4 Board with Edge connector price   43.5 euro
Adapter PCB unassembled/assembled (See picture below) 6/7 euro
Centronics to MX4 (IDC) cable, 8 euro  (for CPC+ and Schneider CPC6128)

Unregistered shipping cost to most of europe <100g 4 euro
Unregistered shipping cost to most of europe <250g 8 euro

2 boards is possible with <100 gram

About connectors:
Regular CPC has edge connector. CPC+ and Schneider CPC6128 have centronics connector.

Documentation:
Instructions on usage (and a bit of developer information, WIP).
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Need a board, then send me a private message (with your email address), and let me know which connector you need on it.
Leed time is usually about 4-5 weeks after ordering.

Yes still in production, 2021!

Title: Re: Amstrad CPC WiFi
Post by: Joseman on 09:26, 07 May 16
But but but.... where this treasure come from???? and why we didn't know nothing!!!!  ;D


And the SD loading!! with the native run command!!!! what rom make this possible???? the DSK navigation!! OMFG!

not to say the wifi itself!!!, and the rom commands!

Please tell us more! infact ALL the information right now!!!  :laugh:







Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:58, 07 May 16

Well I didn't tell about it, because I wasn't sure if it was going to be possible (getting rom mapping to work was horror!) or if I would give up on it :)

The rom that makes it possible is one I wrote, it's loaded into the RAM of the MCU and currently mapped as rom7 to replace AMSDOS (more game compatiblity, when loaders disable other roms and re-enable only rom7). It's just a tiny hook of the CAS_ routines and some code to communicate with the M4, of course some RSX commands too.
However it can run as another rom as well (ie. rom6), as it doesn't have any real disc routines yet, that is needed if one wants to access real discs.

Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 11:35, 07 May 16
I'll never get tired of seeing things, that most people said was impossible, suddenly become a reality.  :)
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 11:51, 07 May 16
this sounds great,  proably will need some kind of browser?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 12:38, 07 May 16
Quote from: Joseman on 09:26, 07 May 16
But but but.... where this treasure come from???? and why we didn't know nothing!!!!  ;D

Because you not read the chat i put the link here yesterday  :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 12:52, 07 May 16
This is all kinds of awesome!! Depending on cost I'd be interested in buying one!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:43, 07 May 16
I haven't done a strict cost calculation, but I think it would be about 40 euro + shipping, so a bit high, but I have to pay 25% vat of the amount.
This is without cable, the connectors are pricey, but I could make a version with edge connector on the pcb, so it plugs directly into the CPC (none plus and schneider with centronics).
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:00, 07 May 16
Quote from: Duke on 13:43, 07 May 16
I haven't done a strict cost calculation, but I think it would be about 40 euro + shipping, so a bit high, but I have to pay 25% vat of the amount.
This is without cable, the connectors are pricey, but I could make a version with edge connector on the pcb, so it plugs directly into the CPC (none plus and schneider with centronics).
Have you thought about using the MX4 connectors that Toto established? For those that don't have an MX4 a cable can easily be made with edge or d connector.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 14:02, 07 May 16
I'd suggest a way compatible with the MX4 cable, brcause that way anyone can acquire or make the cable needed, or even use the MX4 cable.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:42, 07 May 16
Yeah I am fairly sure it will work with the MX4, that's the kind of connector on it now. I'll have to double check of course.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 15:08, 07 May 16
This is totally crazy  :o
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
Quoted from your page :"If enough are interested, I will run a batch + it'll motivate me to finish and polish things up."
I'm interested in 1, you can count me in.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:26, 07 May 16
Quote from: dirtybb on 15:08, 07 May 16
This is totally crazy  :o
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
Quoted from your page :"If enough are interested, I will run a batch + it'll motivate me to finish and polish things up."
I'm interested in 1, you can count me in.
Thanks, if I get a feeling that atleast 10 people are interested, I'll source the components for those and see how it goes.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 16:57, 07 May 16
Quote from: Duke on 09:58, 07 May 16
Well I didn't tell about it, because I wasn't sure if it was going to be possible (getting rom mapping to work was horror!) or if I would give up on it :)

The rom that makes it possible is one I wrote, it's loaded into the RAM of the MCU and currently mapped as rom7 to replace AMSDOS (more game compatiblity, when loaders disable other roms and re-enable only rom7). It's just a tiny hook of the CAS_ routines and some code to communicate with the M4, of course some RSX commands too.
However it can run as another rom as well (ie. rom6), as it doesn't have any real disc routines yet, that is needed if one wants to access real discs.
About the sd card, what is the file system ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:00, 07 May 16
It's FAT32 or less. Using FATFS on the Cortex M4, with SDIO.
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 17:53, 07 May 16
I'am also interested in one!  :D
Title: Re: Amstrad CPC WiFi
Post by: 1024MAK on 18:48, 07 May 16
Oh wow!  :o  Nice work  :D  8)

Please add me to the list of "I want one!".

Mark







Title: Re: Amstrad CPC WiFi
Post by: reidrac on 18:51, 07 May 16
Yes, I'd love one if that's possible.

If it works in a 464 without an extra ROM, that's a "killer board" IMHO.

"ARM MCU running at 168MHz" -- hah, oh yes!
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 19:23, 07 May 16
Awesome work and definitely interested in one!!  :D
Title: Re: Amstrad CPC WiFi
Post by: SRS on 21:39, 07 May 16
Sounds to cool to be real :)

IF it works on a CPC464 (Schneider ;) ) - I'd be interested, too.
Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 22:40, 07 May 16
This is awesome! Would also definitely like one if you do a production run!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:52, 07 May 16
Thanks guys.

Yes it should work on a real CPC464, as it can live completely without the AMSDOS rom. You can of course add it too on the emulated rom board.

However I don't have a CPC464 to test, so I think it would be wisest if the first one I send out, will be to a CPC464 owner, preferably somone who has a MX4 cable/board already.
It'll be free of charge if it doesn't work. I should have parts to make 1 or 2 samples atm.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 23:09, 07 May 16
 :o Excelent work
Please add me to the list.
And i have also a 464 for testing without m4 cables.
Find me a way to connect it and i take it today !
or with cable on the right can work?
MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:24, 07 May 16
Quote from: anyf33 on 23:09, 07 May 16
:o Excelent work
Please add me to the list.
And i have also a 464 for testing without m4 cables.
Find me a way to connect it and i take it today !
or with cable on the right can work?
MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html)
Yes that cable will do, atleast as far as I can tell. The pinout order of M4 board matches the PlayCity board picture I just looked at in the wiki, that is designed for MotherX4.
I might do a version, with a Card Edge connector directly on the PCB, so it's direct plugin without cables.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 00:24, 08 May 16
I am also Interested.


Thanks


Ray
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 01:54, 08 May 16
I'll take one at that price if a production run happens.
Title: Re: Amstrad CPC WiFi
Post by: archcosmo on 05:03, 08 May 16
count me down for one unit too please!  :)
Title: Re: Amstrad CPC WiFi
Post by: trocoloco on 05:36, 08 May 16
This is wonderful, I'd love to have one too
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 07:19, 08 May 16
Quote from: Duke on 23:24, 07 May 16
Yes that cable will do, atleast as far as I can tell. The pinout order of M4 board matches the PlayCity board picture I just looked at in the wiki, that is designed for MotherX4.
I might do a version, with a Card Edge connector directly on the PCB, so it's direct plugin without cables.
Yes but with the edge connector directly on the PCB it will work on 6128 and maybe on 464. What about 6128 plus i also have? Maybe it came as it is and i will buy 2 cables from cent pour cent, one for 6128/464 and one with centronics for 6128 plus.
Title: Re: Amstrad CPC WiFi
Post by: Cpcmaniaco on 09:23, 08 May 16
I am interested in one more too.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 09:46, 08 May 16
 I want 1 too Of course  :P
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 10:19, 08 May 16
...and how could I not say I want one as well? :)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 11:23, 08 May 16
Another one interested!!
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 15:17, 08 May 16
me too
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 17:02, 08 May 16
I think we need a production run of these.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 18:27, 08 May 16
I would be interested in one. Would there be any software with it though and an idiots guide on how to use it? I only ask, as unfortunately I never got round to learning how to program/write software on my 46 or 6128  :doh:  :-[  :(  Also would it be possible to make it MX-4 board compatible at all?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:37, 08 May 16
Quote from: CraigsBar on 17:02, 08 May 16
I think we need a production run of these.
Yes, I'll order components soon to build up enough boards for those interested. It'll take some weeks (china!) for all parts to arrive before I can start assembling boards.
Should give me enough time to fix some remaining issues and features, I hope.
Title: Re: Amstrad CPC WiFi
Post by: fgbrain on 18:42, 08 May 16
This looks very promising! Well done..

Is it possible to use wifi card for other uses -like use a wifi printer or connect to my dsl router??

Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:44, 08 May 16
Quote from: CPC_Fan on 18:27, 08 May 16
I would be interested in one. Would there be any software with it though and an idiots guide on how to use it? I only ask, as unfortunately I never got round to learning how to program/write software on my 46 or 6128  :doh: :-[ :(  Also would it be possible to make it MX-4 board compatible at all?
I'll document the commands, when they are final for release version. No need to be a programmer to use it. Just check the video, normal basic commands and some RSX commands.
Needed software embedded in to the flash memory of the board. You shouldn't need anything else.
It should work with MX-4 Board. If it'll work with other expansions plugged, I don't know, it might not.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:49, 08 May 16
Quote from: fgbrain on 18:42, 08 May 16
This looks very promising! Well done..

Is it possible to use wifi card for other uses -like use a wifi printer or connect to my dsl router??

Thanks.

Technically it could be done, some API would need to be provided to the user via the rom to achieve this. If there's interest for certain functions I'll consider adding them.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 19:12, 08 May 16
Quote from: Duke on 18:44, 08 May 16
I'll document the commands, when they are final for release version. No need to be a programmer to use it. Just check the video, normal basic commands and some RSX commands.
Needed software embedded in to the flash memory of the board. You shouldn't need anything else.
It should work with MX-4 Board. If it'll work with other expansions plugged, I don't know, it might not.

Thanks for the reply Duke. Sounds easy enough for me to use then... lol. What software would I need to flash the memory of the board and how would I flash it there? I have a X-Mem board if that's any help?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:31, 08 May 16
Quote from: CPC_Fan on 19:12, 08 May 16
Thanks for the reply Duke. Sounds easy enough for me to use then... lol. What software would I need to flash the memory of the board and how would I flash it there? I have a X-Mem board if that's any help?

Nothing extra is needed, you just setup the board to connect to your local wifi (router or app) via a basic RSX command or you can copy a config file to your microSD card and insert it to the slot on the board (microSD card is required).
After that you can either upload games/files/roms via the web interface. The M4 board will host a small web server, you just type the netbios name or ip number into your browser.
Of course you can also just put the microSD card into your PC and drag .DSK files etc to it and pop it back into the M4, reboot it... Cat, Run etc..

Edit: to upgrade the board itself, when newer firmwares are released, there's also an upload function for that, or you simply copy it manually to the sd card, reboot and it'll upgrade.
Here's the current config file, it's stored as m4/config.txt:
ssid=dd-wrt
pw=hackaway
name=CPC6128
dhcp=1
ip=0.0.0.0
nm=0.0.0.0
gw=0.0.0.0
dns1=8.8.8.8
dns2=8.8.4.4

Set dhcp = 0 to use manual IP config. The same settings are changed/made when you use the rsx command from basic |netset,"ssid=xxxx, pw=yyyy  etc..".
More stuff wil go into this config file, like m4board rom number.
Roms have seperate files, which aren't easily editable (but possible) from PC, they are meant to be uploaded via the web interface, possibly I'll add an RSX command for it aswell.
They will be flashed into the flashram of the Cortex M4 MCU. It has 1 MB flash, so plenty of space. It could easily have 32 roms, may expand it later if desired.
Title: Re: Amstrad CPC WiFi
Post by: Morri on 20:09, 08 May 16
+1 please.
Title: Re: Amstrad CPC WiFi
Post by: Singaja on 20:34, 08 May 16
+1 for me too  :o
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 20:39, 08 May 16
Quote from: Duke on 19:31, 08 May 16
Nothing extra is needed, you just setup the board to connect to your local wifi (router or app) via a basic RSX command or you can copy a config file to your microSD card and insert it to the slot on the board (microSD card is required).
After that you can either upload games/files/roms via the web interface. The M4 board will host a small web server, you just type the netbios name or ip number into your browser.
Of course you can also just put the microSD card into your PC and drag .DSK files etc to it and pop it back into the M4, reboot it... Cat, Run etc..

Edit: to upgrade the board itself, when newer firmwares are released, there's also an upload function for that, or you simply copy it manually to the sd card, reboot and it'll upgrade.
Here's the current config file, it's stored as m4/config.txt:
ssid=dd-wrt
pw=hackaway
name=CPC6128
dhcp=1
ip=0.0.0.0
nm=0.0.0.0
gw=0.0.0.0
dns1=8.8.8.8
dns2=8.8.4.4

Set dhcp = 0 to use manual IP config. The same settings are changed/made when you use the rsx command from basic |netset,"ssid=xxxx, pw=yyyy  etc..".
More stuff wil go into this config file, like m4board rom number.
Roms have seperate files, which aren't easily editable (but possible) from PC, they are meant to be uploaded via the web interface, possibly I'll add an RSX command for it aswell.
They will be flashed into the flashram of the Cortex M4 MCU. It has 1 MB flash, so plenty of space. It could easily have 32 roms, may expand it later if desired.


Thanks for your comprehensive reply Duke. I am definitely interested now if you decide to go ahead with a production run of the boards.
Title: Re: Amstrad CPC WiFi
Post by: CloudStrife on 22:22, 08 May 16
Well... I had a project to connect an STM32 an CPC expansion bus for some usage (but not WiFi), this board can probably do the trick on the hardware side :P (Less work for me ! Nice !)

I will take more time to analyze the thing but for the moment just some few thing:

First thing first, i don't really like your routing but, well "artistic" divergence :)

But I am really concerned about the crystal, I think they are far from the MCU (I already had some problem with crystal on other MCU of the STM32F familly).
And I really don't see a lot of decoupling cap around the MCU and the ESP8266, and you said you have component on one side only ?
(And the whole card really missing a "big" cap of ~100µF)

And last thing. The F405VG is cheaper than the 407 (~2$ less) and compatible and a pure drop-in replacement. The two thing missing are just the Ethernet MAC and the Camera interface, both unused for this application.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:44, 08 May 16
Quote from: CloudStrife on 22:22, 08 May 16
Well... I had a project to connect an STM32 an CPC expansion bus for some usage (but not WiFi), this board can probably do the trick on the hardware side :P (Less work for me ! Nice !)

I will take more time to analyze the thing but for the moment just some few thing:

First thing first, i don't really like your routing but, well "artistic" divergence :)

But I am really concerned about the crystal, I think they are far from the MCU (I already had some problem with crystal on other MCU of the STM32F familly).
And I really don't see a lot of decoupling cap around the MCU and the ESP8266, and you said you have component on one side only ?
(And the whole card really missing a "big" cap of ~100µF)

And last thing. The F405VG is cheaper than the 407 (~2$ less) and compatible and a pure drop-in replacement. The two thing missing are just the Ethernet MAC and the Camera interface, both unused for this application.

Thanks for your feedback.
Actually, revision 2 has most decoupling on the 2nd side, rev.1 was one side only (see pic below).
About the F405VG, the 407VGT where I search is actually cheaper, maybe because it is more used and big quantities are sliced by chinese brokers. But yeah directly from digikey etc its probably cheaper.
Main clock is about as close as it can get to the mcu. Not decided yet if I'll fit the 32k RTC clock for final version, since it could just use ntp.
Title: Re: Amstrad CPC WiFi
Post by: villain on 07:43, 09 May 16
I'm also interested.
Title: Re: Amstrad CPC WiFi
Post by: dodogildo on 20:00, 09 May 16
Awesome gadget. Also interested in one.
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 00:21, 10 May 16
Quote from: Duke on 23:44, 08 May 16
Not decided yet if I'll fit the 32k RTC clock for final version, since it could just use ntp.

What is the 32k RTC? Does it have 32K of static memory attached?
Title: Re: Amstrad CPC WiFi
Post by: Grim on 04:05, 10 May 16
+1

Also:
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 04:18, 10 May 16
Quote from: Executioner on 00:21, 10 May 16
What is the 32k RTC? Does it have 32K of static memory attached?


32k as in 32767Hz crystal clock.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:54, 10 May 16
Quote from: Grim on 04:05, 10 May 16
+1

Also:

       
  • What's up with this double CPC reset? (As seen in the YT video) Is it temporary or does the final board will do that as-well?
  • Could it be possible to configure the integrated ROM-board to use a different mapping range (eg. slots 32-47, 48-63 or whatever, instead of 0-15) in order to play nice with existing ROM-Boards? (esp. the X-MEM)
The double reset is because when the board is powered (by the cpc), the cortex needs a little bootup time, to read config from microSD, init the ESP8266 etc.

Its possible to move the range of the slots, however for first version I just want the basics to work. I have no idea if it will be possible to run it along with other expansions, I do tap into every signal of exp. port, except LPEN and sound AFAIR. and there is also the power consumption issue.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:59, 10 May 16
Quote from: Executioner on 00:21, 10 May 16
What is the 32k RTC? Does it have 32K of static memory attached?

As pelrun said its the 32768 Hz clock for the internal RTC in the Cortex MCU, reason I may not attach this nor the battery backup, is that with internet it could just do ntp time lookup and retrieve the clock from there. I haven't looked into this yet, but I think it should be easy enough.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 08:28, 10 May 16
Would be interested in one as well :)

Title: Re: Amstrad CPC WiFi
Post by: skywalky on 09:53, 10 May 16
+1 for me please  :D
Title: Re: Amstrad CPC WiFi
Post by: khaz on 10:16, 10 May 16
for fun: screenshot of Lynx in 40*25 showing cpcwiki.eu

[attachimg=1]

for real, I'd be happy with a simple wget implementation. Like this

[attach=3]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:46, 10 May 16
Yes it should be possible with a textbased browser :)   - Perhaps not https though.

Right now I am having a problem when testing on CPC6128 PLUS, appearently I cannot put my rom as number 7, replacing AMSDOS.
I am pulling ROMDIS high when sending the rom data and as far as I can understand from:
Arnold V specs - CPCWiki (http://cpcwiki.eu/index.php/Arnold_V_specs#Enhanced_ROM_cartridge_support)

ROMDIS should still work.

Anyone here with a CPC6128 PLUS and a romboard, that can confirm its possible to replace AMSDOS ?


Nevermind tested with parados_1.2+, and that worked, so its something else then :)

EDIT: Ok, wasn't aware that it had the selection screen init jp vector at 0xC072. Works now.
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 16:30, 10 May 16
I would buy one board ;)
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 16:36, 10 May 16
It would be ridiculously great to have a cool IRC client for the Amstrad that works straight from BASIC  :D
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 16:44, 10 May 16
Great news!

I am interested in 2 boards as well!
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 17:04, 10 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): Just two questions regarding driver development on CPC side:
- is it possible to low level access the SD card (reading and writing sectors directlly)?
- is it possible to access the ESP8266 in a way, that the CPC can send and receive TCP and UDP packages (multiple sockets/connections)? Are there any buffers for incoming and outgoing data on hardware side?

CU,
Prodatron
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:30, 10 May 16
For both your questions it's possible yes, as it just about adding more ipc commands from the cpc to the m4 and the m4 to the esp.
But neither is possible yet. To be honest the source  is a big mess at the moment :) for initial release I just want the basic operations to work relieable and on all cpc's.
Maybe I'll release the source at some point or if I fell like it improve and add features myself.
As for buffers, the cpc receive buffer is in the M4 ROM area, the send buffer has to be in RAM.

This is a flow of a simple command from CPC (|netstat no params) to display current status of the WiFi connection.
//////////////////
// On the cpc side


rom_reponse            .equ    0xD000
C_NETSTAT                .equ    0x4323
; ------------------------- get network status
netstat:
        call    get_iy_workspace
        ld    (iy),#2
        ld    1(iy),#C_NETSTAT
        ld    2(iy),#C_NETSTAT>>8
        push    iy
        pop    hl
        call    send_command
       
        ld    hl,#rom_reponse+3
        call    show_message
        ret
       
; HL contains packet to be send
send_command:
        ld    bc,#0xFE00            ; data out port
        ld    d,(hl)                ; size
        out    (c),d
sendloop:   
        inc    hl
        ld    a,(hl)
        out    (c),a
        dec    d
        ld    a,d
        cp    #0
        jr nz, sendloop
       
        ; tell M4 that command has been send
        ld    bc,#0xFF00
        out (c),c
        ret       
///////////////////
// On the Cortex M4
case C_NETSTAT:
        netstat_send_esp(&rcv->data[0]);
        switch ( rcv->data[0] )
        {
            case 0:
            rsp->size = 3+sprintf(&rsp->data[0], "Idle.\r\n");
            break;
           
            case 1:
            rsp->size = 3+sprintf(&rsp->data[0], "Connecting.\r\n");
            break;
           
        .... etc
//////////////////////
// on the ESP8266
void m4_ipc_handler(void)
{
    volatile unsigned int cmdid;
    volatile unsigned int cmdsize;
   
    if ( spiWrite(0) == 0x55 )    // initiate transfer?
    {
        spiRead(&cmdid, 4);
        spiRead(&cmdsize, 4);
       
        spiRead(&m4data, cmdsize);
  ...etc

responds with:

void netstat(void)
{
    m4data[0] = wifi_station_get_connect_status();
    if ( m4data[0] == 5 )    // Got IP
    {
        wifi_get_ip_info(0, &netConfig.ip);
        os_memcpy(&m4data[1], &netConfig.ip, 4);
    }
    spiCommandNoResp(M4CMD_NETSTAT, 5, m4data);
   
}

So it's quite a pipeline, maybe it can be simplefied somewhat, but basically all commands can be added with enough effort :)

I also have a config area in the rom, where I from the cpc can ask the cortex m4 to write to this area, so this could be used as an outgoing buffer.

Hope it makes sense.

Quote from: Prodatron on 17:04, 10 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): Just two questions regarding driver development on CPC side:
- is it possible to low level access the SD card (reading and writing sectors directlly)?
- is it possible to access the ESP8266 in a way, that the CPC can send and receive TCP and UDP packages (multiple sockets/connections)? Are there any buffers for incoming and outgoing data on hardware side?

CU,
Prodatron
Title: Re: Amstrad CPC WiFi
Post by: Grim on 20:28, 10 May 16
Two quick remarks. In your sendloop code, you can safely remove the ld a,d:cp #0 and you might want to check the outi instruction too. Also, the I/O address #FFxx is already used by the CPC-Booster (http://www.cpcwiki.eu/index.php/CPC_Booster) but this shouldn't be much of a problem imo, since your WiFi card will most likely supersede it anyway :)

If several revisions of the M4 firmware are made, is there any way the CPC can detect which version is currently available? (eg. to avoid invoking unavailable commands). Oh, and Hurray! for open-sourcing everything too! (yes, you will open-source everything [calm voice and Jedi hand trick]).
Title: Re: Amstrad CPC WiFi
Post by: dxs on 22:38, 10 May 16
Sounds like a great board.
I'm also in for one!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:52, 11 May 16
Quote from: Grim on 20:28, 10 May 16
Two quick remarks. In your sendloop code, you can safely remove the ld a,d:cp #0 and you might want to check the outi instruction too. Also, the I/O address #FFxx is already used by the CPC-Booster (http://www.cpcwiki.eu/index.php/CPC_Booster) but this shouldn't be much of a problem imo, since your WiFi card will most likely supersede it anyway :)

If several revisions of the M4 firmware are made, is there any way the CPC can detect which version is currently available? (eg. to avoid invoking unavailable commands). Oh, and Hurray! for open-sourcing everything too! (yes, you will open-source everything [calm voice and Jedi hand trick]).
Thanks - My z80 skills are rusty, not having used it since 1991 :) - For the ports, they may not be final choice yet.
It's a good idea to include a version command from the first release atleast and maybe checkupgrade. And I will make no promise about opensourcing it yet 8)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 06:06, 11 May 16
Ever since I saw the SD2IEC device for the C64, I've longed for something similar for the CPC.
But every time someone asked about such a device on this forum, the replies were mostly that it couldn't be done.
So in the end I reluctantly settled for HxC devices.

I'd love to have one of these devices plugged into my CPC464 the same way a DDI adapter is connected. I..e. in a box and hanging on the back of the CPC, rather than lying on the table behind the CPC.
If there'll be versions of this device like that, then I'd like one too. But I understand such a version is probably not top priority.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:18, 11 May 16
@mr_lou (http://www.cpcwiki.eu/forum/index.php?action=profile;u=96)
I have ordered some right angle pcb edge connectors. I'll have to see them before I am sure if they can be used for the cpc.
The idea was to make a mini pcb (ie. expansion port length x 2 cm) with edge connector for the cpc expansion port in one side and a idc connector in the other side, this could then be either right angle to lay flat with the table or non angled, so it will standup like ie. ddi interface.
This way users can have their own choice, use motherX4 or cable or use the edge connector to idc connector pcb if they have non centronics cpc.
Lets see how it goes.
About the HxC, this device cannot replace it, as it cannot act as FDC controller, so all games that use custom disc loading (most copy protected discs) talking directly to the FDC will not work. A proper cracked version is needed if it can be found and I have tested quite a few cracks that still have direct FDC loading code.
Title: Re: Amstrad CPC WiFi
Post by: Dubliner on 09:37, 11 May 16
I hope i am not too late, but i would love one of these as well. So count me in :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 09:48, 11 May 16
Quote from: Duke on 09:18, 11 May 16
@mr_lou (http://www.cpcwiki.eu/forum/index.php?action=profile;u=96)
I have ordered some right angle pcb edge connectors. I'll have to see them before I am sure if they can be used for the cpc.
The idea was to make a mini pcb (ie. expansion port length x 2 cm) with edge connector for the cpc expansion port in one side and a idc connector in the other side, this could then be either right angle to lay flat with the table or non angled, so it will standup like ie. ddi interface.
This way users can have their own choice, use motherX4 or cable or use the edge connector to idc connector pcb if they have non centronics cpc.
Lets see how it goes.
About the HxC, this device cannot replace it, as it cannot act as FDC controller, so all games that use custom disc loading (most copy protected discs) talking directly to the FDC will not work. A proper cracked version is needed if it can be found and I have tested quite a few cracks that still have direct FDC loading code.

That is awesome Duke!

Please add me to the waiting list of buyers.  :)
Title: Re: Amstrad CPC WiFi
Post by: tonio8bits on 12:03, 11 May 16
Hello,

Very interesting board. Would like to have one also.

can you add me to the list please.

Tonio8bits :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:24, 11 May 16
Quote from: Dubliner on 09:37, 11 May 16
I hope i am not too late, but i would love one of these as well. So count me in :)

You are not too late, but be prepared it may be a long process, I don't know how long it will take to assemble all these boards... I am the pick and place machine and manually soldering connectors, correcting shorts on the chips etc. And parts are still many weeks away.
Anyway when I am a little further with things I'll update on the process.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 12:29, 11 May 16
Quote from: Duke on 12:24, 11 May 16
You are not too late, but be prepared it may be a long process, I don't know how long it will take to assemble all these boards... I am the pick and place machine and manually soldering connectors, correcting shorts on the chips etc. And parts are still many weeks away.
Anyway when I am a little further with things I'll update on the process.


If possible then propose you card as "DIY kit"; some of us are able to assemble & sold all the component ;)

Title: Re: Amstrad CPC WiFi
Post by: Dubliner on 13:44, 11 May 16
Quote from: Duke on 12:24, 11 May 16
You are not too late, but be prepared it may be a long process, I don't know how long it will take to assemble all these boards...

As long as it needs. I am in no hurry at all :)
Title: Re: Amstrad CPC WiFi
Post by: Phantomz on 14:00, 11 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) Great little board you've got there.  8)

I'd be interested in one, if they become available later.  :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:07, 11 May 16
Quote from: ||C|-|E|| on 16:36, 10 May 16
It would be ridiculously great to have a cool IRC client for the Amstrad that works straight from BASIC  :D


Would actually be pretty functional in mode 2...
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 15:31, 11 May 16
In mode 2 it would be as great as the old mIRC client regarding chat functionality  :D
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:32, 11 May 16
PiRCH FTW!
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 16:17, 11 May 16
Now that you mention it... I moved to PiRCH at some point, but I did not remember it at all   :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Manu on 18:23, 11 May 16
Nice project!

I'm interested in one board :D
Title: Re: Amstrad CPC WiFi
Post by: ronaldo on 18:54, 11 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), really nice work. I'd also be interested in 2 cards. There are many development projects waiting for this kind of card :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 19:35, 11 May 16
[ot]
Quote from: ||C|-|E|| on 16:17, 11 May 16
Now that you mention it... I moved to PiRCH at some point, but I did not remember it at all   :laugh:


That was the geek choice, actually :) [/ot]
Title: Re: Amstrad CPC WiFi
Post by: Lazy Dude on 21:44, 11 May 16
It's an exiting 'must have for 2016' fashion accessory for the CPC  8)
Yeh I'll be interested in one.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 22:07, 11 May 16
Quote from: Duke on 09:18, 11 May 16
@mr_lou (http://www.cpcwiki.eu/forum/index.php?action=profile;u=96)
I have ordered some right angle pcb edge connectors. I'll have to see them before I am sure if they can be used for the cpc.
The idea was to make a mini pcb (ie. expansion port length x 2 cm) with edge connector for the cpc expansion port in one side and a idc connector in the other side, this could then be either right angle to lay flat with the table or non angled, so it will standup like ie. ddi interface.
This way users can have their own choice, use motherX4 or cable or use the edge connector to idc connector pcb if they have non centronics cpc.
Lets see how it goes.
About the HxC, this device cannot replace it, as it cannot act as FDC controller, so all games that use custom disc loading (most copy protected discs) talking directly to the FDC will not work. A proper cracked version is needed if it can be found and I have tested quite a few cracks that still have direct FDC loading code.
About fdc loading can be byapassed through cpc compactages versions but he dont have all games of course
Title: Re: Amstrad CPC WiFi
Post by: Jomicamp on 00:27, 12 May 16
This advancement places the cpc range in the XXI century finally... Connectivity is what better defines a modern computer... This is an important to re-establish its functionality and leave temporary the computer museum...

No doubt that I am also interested in one board Duke! Congratulations!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:55, 12 May 16
Quote from: anyf33 on 22:07, 11 May 16
About fdc loading can be byapassed through cpc compactages versions but he dont have all games of course
Yes, also back in the day there were many cracks of the same games, some better than other, but I think they are hard to find nowadays.

Edit: Actually there is a good collection here : cpccrackers.free.fr
Just managed to find a version of robocop that didn't use direct fdc loading.
Title: Re: Amstrad CPC WiFi
Post by: hsimpson on 14:27, 12 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): excelent work  :o .

+1 for me please  :) .
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 12:29, 13 May 16
Quote from: Jomicamp on 00:27, 12 May 16
This advancement places the cpc range in the XXI century finally... Connectivity is what better defines a modern computer... This is an important to re-establish its functionality and leave temporary the computer museum...

No doubt that I am also interested in one board Duke! Congratulations!


I don't think requests from non-members can be taken into account man...
Title: Re: Amstrad CPC WiFi
Post by: villain on 13:49, 13 May 16
Quote from: Duke on 09:18, 11 May 16
About the HxC, this device cannot replace it, as it cannot act as FDC controller, so all games that use custom disc loading (most copy protected discs) talking directly to the FDC will not work. A proper cracked version is needed if it can be found and I have tested quite a few cracks that still have direct FDC loading code.

Probably a silly question but I don't mind... I'm quite well known for being clueless. :-) Wouldn't it be possible to mount a .dsk on the PC, emulate the FDC also on the PC side and send the "read" data via Wifi to the CPC? Ok, going back to my abacus now. :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:55, 13 May 16
Quote from: villain on 13:49, 13 May 16
Probably a silly question but I don't mind... I'm quite well known for being clueless. :-) Wouldn't it be possible to mount a .dsk on the PC, emulate the FDC also on the PC side and send the "read" data via Wifi to the CPC? Ok, going back to my abacus now. :-)
In theory it's possible to emulate the FDC directly on the M4, not the PC as there is too much latency for that going via wifi.
The problem is that 664's & 6128's already have a FDC on board, so it would be a conflict with the real fdc.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:58, 13 May 16
Quote from: Gryzor on 12:29, 13 May 16

I don't think requests from non-members can be taken into account man...
Yes I will need a way to get in touch, once the boards start shipping. So Jomicamp (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg126358/#msg126358) please sign up in here or leave a message on my site with your email.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:35, 13 May 16
Speaking of PC, I just made this simple tool today: GitHub - M4Duke/cpcxfer: Cmd line tool to transfer files to and from M4 board (https://github.com/M4Duke/cpcxfer)

With it you can upload and download files from the M4 board(CPC) from command line on your pc.
Quite handy for crossdevelopment, you can put it into your makefile.

Still needs a bit of work, as I just added header support for ascii files (protext). It can transfer files like DSK images just fine (no header addition/removal needed).
Title: Re: Amstrad CPC WiFi
Post by: Eduard on 21:21, 13 May 16
+1 board, Duke. Great job !!!
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 23:44, 13 May 16
Find it trough Octoates News Site...
Will definitly buy one if possible. So please, one Board for me.
Thanks so much for the cool work
Bye
Tolkin
Title: Re: Amstrad CPC WiFi
Post by: yannis_uno on 00:11, 14 May 16
I am also interested!


Thanks very much!  :)
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 02:37, 14 May 16
Hi again!

Now I am registered. Please, Duke count with me for one of those boards!

This will be a must have for the cpc

Regards to all members of the forum
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:33, 14 May 16
Just been improving game compatiblity quite a bit for M4 board.
However I have one issue left (I think).
That is the init message of my ROM, as sometimes there is loaders in the screen ram (&c000) which will be corrupted by it when they re-init the discrom (amsdos is silent).
Of course when I disable the init message they work, however I would like a method where I can detect if it was a common reset (some var in ram) or just re-init rom, so I would only display the message on cold boot (easy) and reset. Alternative is |m4msgoff or not display the message at all. The later I don't like that as you would like to know if its there or not.

Anyone have an idea for a detection mechanism?

EDIT: I just had an idea, I could checksum a certain part of the "(c)1984 Amstrad Consumer Electronics plc" in screen memory to detect if it was a reset, not ideal. But should work assuming some part is always the same regardless of model/language.
Title: Re: Amstrad CPC WiFi
Post by: Etegar on 06:17, 15 May 16
+1 Board, please !
Many thanks for this new CPC's device, Duke.
Title: Re: Amstrad CPC WiFi
Post by: Grim on 18:20, 15 May 16
Quote from: Duke on 19:33, 14 May 16Anyone have an idea for a detection mechanism?
Well, you could use the system's TIME value which is zeroed when the Firmware initializes itself. And its value when the Firmware begins to walk through all the ROMs is still somewhat "little". I think it might be better than some sort of checksum, but still is a fuzzy detection mechanism.

The detection routine would be something like this:
; Get TIME pointer depending on the Firmware version
ld hl,&B8B4+3 ; v2+
ld de,&B184+3 ; v1
ld a,(&BC1E)
cp 169
jr nz,$+3
ex de,hl

; Check the TIME value
ld a,(hl)
dec l
or (hl)
jr nz,quiet
dec l
ld a,(hl)
cp 2
jr nc,quiet
; TIME < &00000200
; Assume we've been called during system initialization
; Display some fancy boot message here
; ...

quiet
; TIME >= &00000200
; Assume we've been called manually by some program
; Do not print anything to screen
; ...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:49, 15 May 16
Cool!  Thanks a lot, seems a much better solution.
I will try it out.

EDIT:
Tested it. Unfortunately it fails to work with some of the "problem" games, as they appearently re-init more than rom7.
Also at the time of the rom walk the time value is 0, which of course was fine.
Eitherway for now I just check if the COPYRIGHT character is on the screen, line 4, column 2 and it seems to do the job.

Quote from: Grim on 18:20, 15 May 16
Well, you could use the system's TIME value which is zeroed when the Firmware initializes itself. And its value when the Firmware begins to walk through all the ROMs is still somewhat "little". I think it might be better than some sort of checksum, but still is a fuzzy detection mechanism.

The detection routine would be something like this:
   ; Get TIME pointer depending on the Firmware version
   ld hl,&B8B4+3 ; v2+
   ld de,&B184+3 ; v1
   ld a,(&BC1E)
   cp 169
   jr nz,$+3
    ex de,hl

   ; Check the TIME value
   ld a,(hl)
   dec l
   or (hl)
   jr nz,quiet
   dec l
   ld a,(hl)
   cp 2
   jr nc,quiet
   ; TIME < &00000200
   ; Assume we've been called during system initialization
   ; Display some fancy boot message here
   ; ...

quiet
   ; TIME >= &00000200
   ; Assume we've been called manually by some program
   ; Do not print anything to screen
   ; ...

Title: Re: Amstrad CPC WiFi
Post by: pelrun on 07:19, 16 May 16
You can add me to the list as well  ;D
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 14:39, 16 May 16
The code ParaDOS uses to enable/disable the message is:


push hl
ld hl,16
add hl,sp
ld a,(hl)
cp #2e
jr z,ok464
cp #2b
jr nz,nosign
.ok464
inc hl
ld a,(hl)
cp 3
call z,signon

.nosign
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:27, 16 May 16
Thanks, I'll look into it, see what it checks for on the stack.

Quote from: Executioner on 14:39, 16 May 16
The code ParaDOS uses to enable/disable the message is:


push hl
ld hl,16
add hl,sp
ld a,(hl)
cp #2e
jr z,ok464
cp #2b
jr nz,nosign
.ok464
inc hl
ld a,(hl)
cp 3
call z,signon

.nosign

Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:28, 19 May 16
Got some edge connectors now and they fit perfect on the cpc664 and cpc6128 (very tight)  I have.
Although they weren't meant to fit the standard idc header, it was no problem to solder it on.  This will be an option if anyone wants it on their board, the price is +3.5 euro though (sorry! they are expensive).
Also it's been decided not to mount the 32k clock and battery mount as I've implemented ntp time lookup over the internet instead, so I see no need for it.

I need a volunteer for testing this board that has a CPC464 and want edge connector. Think I can ship it out after the weekend.

EDIT: added screenshots of current web interface changes.

Title: Re: Amstrad CPC WiFi
Post by: robcfg on 13:37, 19 May 16
I can do it  ;D


I'll send you a PM with details.


Cheers,
Rob
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 14:45, 19 May 16
Can do it too, got a Schneider or two somewhere, though @robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) was quicker :)


Damn, how luxurious is it to say you don't need the battery because you do NTP lookups :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:17, 19 May 16
Quote from: Gryzor on 14:45, 19 May 16
Can do it too, got a Schneider or two somewhere, though @robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) was quicker :)


Damn, how luxurious is it to say you don't need the battery because you do NTP lookups :D
Thanks, yeah @robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) is getting the one in the picture.

I have another board almost ready (maybe one more over the weekend), but only have the card edge connectors right now (schneider is centronics only, isn't it?).
I don't have shrouded idc connectors needed for mx4 / cable yet.
If you want the second board let me know, but if you prefer shrouded idc connector for mx4 / cable wait for that instead. Since robcfg will verify if it's good on cpc464.
Prices are 40 euro for the board + 3.5 euro for card edge connector and 3.5 euro for shipping to most of europe.

Title: Re: Amstrad CPC WiFi
Post by: khaz on 21:45, 19 May 16
Can it be made MX4 compatible?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:33, 19 May 16
Quote from: khaz on 21:45, 19 May 16
Can it be made MX4 compatible?

Yes it should be, when a male shrouded idc pinheader is mounted. I am awaiting a MX4 board from Toto, so I can verify it.
Card Edge connector mounted is just an extra option if you want to use it with CPC none plus and don't have cable or mx4.
Title: Re: Amstrad CPC WiFi
Post by: khaz on 23:11, 19 May 16
Cool. My opinion is that having a cable instead of the board connected directly helps keeping the connection tight and not breaking stuff. So even without an MX4, being MX4 compatible would be preferable, which is why I asked.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 04:08, 20 May 16
I need a volunteer for testing this board that has a CPC464 and want edge connector. Think I can ship it out after the weekend.

i have a Amstrad CPC464 also and i can test it. PM me for the second board.  ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:01, 20 May 16
Quote from: anyf33 on 04:08, 20 May 16
I need a volunteer for testing this board that has a CPC464 and want edge connector. Think I can ship it out after the weekend.

i have a Amstrad CPC464 also and i can test it. PM me for the second board.  ;D
Thanks, if Gryzor doesn't want it, I'll pm you.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 11:25, 20 May 16
Quote from: Duke on 16:17, 19 May 16
Thanks, yeah @robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) is getting the one in the picture.

I have another board almost ready (maybe one more over the weekend), but only have the card edge connectors right now (schneider is centronics only, isn't it?).
I don't have shrouded idc connectors needed for mx4 / cable yet.
If you want the second board let me know, but if you prefer shrouded idc connector for mx4 / cable wait for that instead. Since robcfg will verify if it's good on cpc464.
Prices are 40 euro for the board + 3.5 euro for card edge connector and 3.5 euro for shipping to most of europe.


Ah, I'd prefer the shrouded connector or the mx4 version (just read your previous post) so better it went to someone else. Of course if no one wants it then sure, I'll take it and test it!
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 09:24, 21 May 16
Quote from: Duke on 08:01, 20 May 16
Thanks, if Gryzor doesn't want it, I'll pm you.
i will take it  :D
a question for everyone please. I have a cpc plus. but with no cartridge. Can this board work without cartridge on plus (first of cource i need adapter) to load basic etc ??
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 10:14, 21 May 16
Quote from: anyf33 on 09:24, 21 May 16
i will take it  :D
a question for everyone please. I have a cpc plus. but with no cartridge. Can this board work without cartridge on plus (first of cource i need adapter) to load basic etc ??


No, You still need an ASID chip for the plus to work. I have one Plus with the ACID mounted internally (on the back of the cartridge riser) and on that machine it will run wothoug a cartridge so long as I use my X-MEM to provide the FW rom and Basic.


However in General you still need the ACID, so therefore you still need a cartridge. If you don't have one then you realy should see if @Gerald has any of his excellent C4CPC MicroSD based flash carts left, then you can have all the games and multiple system carts available at the touch of a button..
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 11:23, 21 May 16
I also have a (danish) CPC464.

But, does there exists an edge connector with a 90 degree turn so that the board doesn't stick out that much to the back but rather sticks upwards instead?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:30, 21 May 16
@mr_lou (http://www.cpcwiki.eu/forum/index.php?action=profile;u=96)
I have designed an adapter pcb for that. I'll update on that when I receive it.

The M4 pcb is 76,5 mm x 61 mm btw.

Quote from: mr_lou on 11:23, 21 May 16
I also have a (danish) CPC464.

But, does there exists an edge connector with a 90 degree turn so that the board doesn't stick out that much to the back but rather sticks upwards instead?
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 17:09, 22 May 16
 Converter Centronics to Card for CPC series, 16,95 € (http://www.spielquader.de/Converter-Centronics-to-Card-for-CPC-series)

one question, this adapter works for plus?
and the centronics of schneider and plus is the same?
if i buy this i can connect wifi modem? to my plus?
Title: Re: Amstrad CPC WiFi
Post by: TotO on 18:02, 22 May 16
Quote from: anyf33 on 17:09, 22 May 16
Converter Centronics to Card for CPC series, 16,95 € (http://www.spielquader.de/Converter-Centronics-to-Card-for-CPC-series)

one question, this adapter works for plus? and the centronics of schneider and plus is the same?
if i buy this i can connect wifi modem? to my plus?
Yes the Centronics expansion ports are the same on Scheineder CPC and Amstrad PLUS.
This adapter is soldout (and expensive). By the way, I don't think that you will require it to use the Wifi board on your computer.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 21:52, 22 May 16
Toto how i can connect without adapter? Also the adapter seems availiable on the site.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 05:53, 23 May 16
Quote from: anyf33 on 21:52, 22 May 16
Toto how i can connect without adapter? Also the adapter seems availiable on the site.
If you are speaking about an existing board with an edge connector, yes you need an adapter.
I can take a look to my stock. (cost less than 5€ if you already own a centronic to 50 pins ribbon cable...)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:01, 23 May 16

Here is the preliminary instructions on using the board:
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

I guess this is release 1.0.0 (unless testers find a major flaw).
There is still plenty of features I will implement later, but for now I have to focus on "real life" work for a bit.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 08:08, 23 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


What have you named the Board / Project ??
M4  or something else.


Or perhaps  "" The Ultimate ""


Thanks   Ray



Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:48, 23 May 16
Very uncreative I just call it M4 board :) -At the time I thought I could use it for something else if the CPC part didn't work out, so guess I am stuck with M4 !

Quote from: Audronic on 08:08, 23 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


What have you named the Board / Project ??
M4  or something else.


Or perhaps  "" The Ultimate ""


Thanks   Ray
Title: Re: Amstrad CPC WiFi
Post by: Singaja on 12:19, 23 May 16
Quote from: Duke on 08:48, 23 May 16
Very uncreative I just call it M4 board :) -At the time I thought I could use it for something else if the CPC part didn't work out, so guess I am stuck with M4 !

How about a community poll to choose a cool name? This expansion is really a big deal :o
Title: Re: Amstrad CPC WiFi
Post by: TotO on 13:15, 23 May 16
M4 sound good. It is MPU related.
Who was not happy this their R4 cartridge?  ;D
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 13:52, 23 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)



I really was asking as i was about to make a "" Folder to put the information in "" and i was looking for something more descriptive.
Thats all.

Good Project M4.

With tongue in cheek "" M4 "" sounds like a Freeway or a main road somewhere.   

Thanks   Ray
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:00, 23 May 16
Now.. One question. When can we order the boards? I'll take 2 please.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:28, 23 May 16
Quote from: Singaja on 12:19, 23 May 16
 
How about a community poll to choose a cool name? This expansion is really a big deal :o
Nah I think it's too late for name change, besides it is printed on the PCB and they are ordered :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:42, 23 May 16
Quote from: CraigsBar on 15:00, 23 May 16
Now.. One question. When can we order the boards? I'll take 2 please.
I already have you down for 1 board :) - Changed to 2 now.

Summary:
I have ordered components for 58 boards, and there is "orders" for 53. So if I don't ruin too many building them, there is still room for a few orders or maybe some get cold feet.
Once I get components, I'll go down the list in the order people acknowledged they wanted one or two. And ship them out as I progress.
I'll probably put together a "order page" where you can fill in details or something. For now I just keep a list of people in this thread and people who emailed/pm'ed me.
Lastly two boards have been sent out today (robcfg and anyf33) so I can get it tested on CPC464 which I don't have and also CPC6128 regular which I fried last week (but it worked fine on it up to that point :) ), so this need to be confirmed before I send out anymore boards.
Also Toto has kindly send me a MX4 board and cable, so I can test if it works out in that configuration.
There will be option for MX4-Type connector, Edge connector and I made a converter PCB, which lets you plug into the edge connector and have the board at a 90 deg angle (for mr. lou).
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:47, 23 May 16
;)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 17:29, 23 May 16
Excellent work! Congratulations!

One question: Do you need a PC to run this board? Or can it be used independent of the PC?


And I would buy two of this nice boards too please. Add me to the list.  :)

Quote from: Duke on 07:36, 07 May 16
Hi guys,
I have hacked together an expansion board for the CPC, letting it connect to your home router/accesspoint via WiFi.
It also features a romboard and sd card for file access.
It's a bit rough at the moment, but the basics do work.
Please check it out (video included) at:
spinpoint.org – Duke's tech ramblings... (http://www.spinpoint.org/)
Let me know what you think - Any use, or plain madness :) - It was fun doing atleast.
Oh yes I've only tested on CPC6128. And briefly on a CPC6128+ (it works on the plus, but burning rubber fails to launch, probably sortable romconflict).
It should work on 464 and 664 too, but not tested yet.
Regards,
Duke
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:48, 23 May 16
Quote from: TFM on 17:29, 23 May 16
Excellent work! Congratulations!

One question: Do you need a PC to run this board? Or can it be used independent of the PC?


And I would buy two of this nice boards too please. Add me to the list.  :)
Thanks :)
Long answer:
You only need a CPC & microSD for the plain board to work.
For internet you will obviously need a AP/WiFi router.
For uploading ROMS to the board you will at this point need a PC (webbrowser), but later I will just add a |setrom,"romname",slot (trivial issue). Someone could already modify the "romconfig.bin" and "romslots.bin" from the cpc to enable a new rom.
Short answer:
No PC or external software is needed to run the board.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 17:50, 23 May 16
Quote from: Duke on 07:59, 10 May 16
As pelrun said its the 32768 Hz clock for the internal RTC in the Cortex MCU, reason I may not attach this nor the battery backup, is that with internet it could just do ntp time lookup and retrieve the clock from there. I haven't looked into this yet, but I think it should be easy enough.


A real RTC would be great especially if the network connection can not be established. Don't know how much hassle it would be to add it. But if it's doable without a problem if would be nice to have it.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:57, 23 May 16
Quote from: TFM on 17:50, 23 May 16

A real RTC would be great especially if the network connection can not be established. Don't know how much hassle it would be to add it. But if it's doable without a problem if would be nice to have it.  :)
It's fully possible, but the battery slot I used CR1220 is hella expensive, and the batteries too(+3 euro). However if anyone want to add it, board is ready for it so just solder it on (clock, two caps, 1 resistor and battery slot). I'll add auto detection for it,  in the m4 software if desired :)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:20, 23 May 16
Quote from: Duke on 17:48, 23 May 16
Thanks :)
Long answer:
You only need a CPC & microSD for the plain board to work.
For internet you will obviously need a AP/WiFi router.
For uploading ROMS to the board you will at this point need a PC (webbrowser), but later I will just add a |setrom,"romname",slot (trivial issue). Someone could already modify the "romconfig.bin" and "romslots.bin" from the cpc to enable a new rom.
Short answer:
No PC or external software is needed to run the board.

Thanks  for your long answer.  :)  If there is a way to update / flash ROMs from the CPC side then please let me know (pm me if you like), so I can add this functionality to my ROManager application which does already support MegaFlash, FlashGordon, Symbiface2 and X-MEM. Would be my pleasure to help.  :)

Oh, and regarding I/O ports it would ne neat if the card can use unused ports or ports which are only used by expansions which are not widely spread. You can look it up here:

I/O Port Summary - CPCWiki (http://cpcwiki.eu/index.php/I/O_Port_Summary)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:35, 23 May 16
Quote from: TFM on 18:20, 23 May 16

Thanks  for your long answer.  :)  If there is a way to update / flash ROMs from the CPC side then please let me know (pm me if you like), so I can add this functionality to my ROManager application which does already support MegaFlash, FlashGordon, Symbiface2 and X-MEM. Would be my pleasure to help.  :)
This is on my todo list to add a simple RSX for it, eitherway as it is now under folder m4 directory there is two files present.
romconfig.bin
->

int    totalRoms;   // currently 16, maybe later expanded to 32 or 48
int    m4RomNum; // m4 rom
int    m4RomEnable;// m4 rom enabled (if disabled other rom at that pos is active, either romboard or basic/amsdos)
unsigned int reserved[5];
then for each 16 roms (later more maybe)
char updateflag; // 0 = no rom present, 1 = rom present, 2= new rom (flash into M4 flashram), 3 = remove/delete current rom
char    name[32]; // name to be displayed for rom in web ui.

Then there is m4/romslots.bin
16x16k page contains a rom or 0xFF (if not mapped)

When the board is rebooted this file will be read and flashed into the M4 flashram, according to status in romconfig.bin
Reason for this is the flashram sectors of M4 are 128KB, so to keep it easy a mirror is kept in this file, when only exchanging 16KB at a time.

To quickly access above files, its probably best to use the fopen, fread, fwrite, fclose functions I put in to the embedded M4 rom, those are easily disassembled or wait for DEV documentation.

Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:38, 23 May 16
Ah, I got it. You keep the ROMs in a file on the SD card. And as soon as the M4 boots up this file will be flashed temporarily to the Flash on the M4 card.


EDIT: 32 ROMs would be IMHO really needed. 48 even a big gain.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:41, 23 May 16
Quote from: TFM on 18:38, 23 May 16
Ah, I got it. You keep the ROMs in a file on the SD card. And as soon as the M4 boots up this file will be flashed temporarily to the Flash on the M4 card.
Yep almost, it will not be flashed temporarily but permanently, until there is a change of status in romconfig.bin. Flashram will keep the contents until erased and/or replaced.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:44, 23 May 16
Quote from: TFM on 18:38, 23 May 16
EDIT: 32 ROMs would be IMHO really needed. 48 even a big gain.  :)

Maybe, I haven't seen a whole lot of use for it, but as it is the STM32F407VGT I am using, has 1MB flashram, and currently I use less than 128KB for code, so 768KB left / 16KB = 48 roms possible, but then again a little space for future features is nice, so probably 32 roms is more safe.
Title: Re: Amstrad CPC WiFi
Post by: khaz on 19:15, 23 May 16
M4? Why M, why 4?

'Cause we already got the MX4, it might be confusing.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:18, 23 May 16
Because the heart of the board is a Cortex M4 mcu ;)
Quote from: khaz on 19:15, 23 May 16
M4? Why M, why 4?

'Cause we already got the MX4, it might be confusing.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:57, 23 May 16
Quote from: TFM on 18:20, 23 May 16
Oh, and regarding I/O ports it would ne neat if the card can use unused ports or ports which are only used by expansions which are not widely spread. You can look it up here:

I/O Port Summary - CPCWiki (http://cpcwiki.eu/index.php/I/O_Port_Summary)
Missed that, yes for release 1.0.0 I picked:
DATAPORT                        .equ 0xFE00
ACKPORT                        .equ 0xFC00

Only used by CPCISA (as far as I  can tell), with 4 in existance. I needed the straight ports for arm assembly optimization.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 20:16, 23 May 16
Quote from: Duke on 18:44, 23 May 16
Maybe, I haven't seen a whole lot of use for it, but as it is the STM32F407VGT I am using, has 1MB flashram, and currently I use less than 128KB for code, so 768KB left / 16KB = 48 roms possible, but then again a little space for future features is nice, so probably 32 roms is more safe.
Yeah, 32 is totally fine.  :) :) :)  (16 are filled up sooo quick).

Quote from: Duke on 19:57, 23 May 16
DATAPORT     .equ 0xFE00
ACKPORT      .equ 0xFC00
Only used by CPCISA (as far as I  can tell), with 4 in existance. I needed the straight ports for arm assembly optimization.
Good pick! I guess the four owners of the CPC-ISA will forgive us for this choice!  ;)  I also looked up my documentation and can confirm that there is only CPC-ISA (DMA port).
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 21:43, 23 May 16
Just to confirm I would like one of these please!
Title: Re: Amstrad CPC WiFi
Post by: Singaja on 07:25, 24 May 16
Quote from: TFM on 17:50, 23 May 16

A real RTC would be great especially if the network connection can not be established. Don't know how much hassle it would be to add it. But if it's doable without a problem if would be nice to have it.  :)
With some rom magic wouldn't it be possible to use dxs's real time clock board for this purpose? Apologies if my question doesn't make sense.
Title: Re: Amstrad CPC WiFi
Post by: khaz on 15:54, 24 May 16
Quote from: Duke on 19:18, 23 May 16
Because the heart of the board is a Cortex M4 mcu ;)

Uh.

You sure you don't want to think about it again?
Title: Re: Amstrad CPC WiFi
Post by: TotO on 16:19, 24 May 16
Quote from: khaz on 15:54, 24 May 16You sure you don't want to think about it again?
Call it "Cortex" if you want...  ;D
Title: Re: Amstrad CPC WiFi
Post by: khaz on 16:26, 24 May 16
I just think it may not be the brightest idea to name a product based solely on the commercial denomination of its processor. Imagine if all the Cortex M4-based boards did the same?
Title: Re: Amstrad CPC WiFi
Post by: TotO on 16:52, 24 May 16
X68000 ?  :D
Title: Re: Amstrad CPC WiFi
Post by: khaz on 17:09, 24 May 16
X68000
Title: Re: Amstrad CPC WiFi
Post by: TotO on 17:29, 24 May 16
Quote from: khaz on 17:09, 24 May 16
X68000
:picard2:
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 18:28, 24 May 16
I'd love to add one to my CPC :D
Title: Re: Amstrad CPC WiFi
Post by: TFM on 21:15, 24 May 16
Quote from: Singaja on 07:25, 24 May 16
With some rom magic wouldn't it be possible to use dxs's real time clock board for this purpose? Apologies if my question doesn't make sense.


Both RTCs are different, but as Duke pointed out before, just add a couple of capacitors and a battery and you got it. Supporting software is another topic.


BTW: Just a question... IMHO it would be great if the M4 board could be bought with RTC installed as option. I wouldn't mind to pay more for it. (That way I could also easily add support for FutureOS I guess). However depends what others think.  :)
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 21:26, 24 May 16
Quote from: TFM on 21:15, 24 May 16

Both RTCs are different, but as Duke pointed out before, just add a couple of capacitors and a battery and you got it. Supporting software is another topic.


BTW: Just a question... IMHO it would be great if the M4 board could be bought with RTC installed as option. I wouldn't mind to pay more for it. (That way I could also easily add support for FutureOS I guess). However depends what others think.  :)


I Could too. If M4 could be bought with RTC installed, i would.
Title: Re: Amstrad CPC WiFi
Post by: Singaja on 10:05, 25 May 16
I'd want the rtc extended version too if possible. I don't trust my soldering skills and wouldn't want to hurt the poor board.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:56, 25 May 16
Today I received the very nice MX4 mainboard + cable from Toto (thanks a ton!). See MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html)

I can confirm the cable works with M4 board.
It also works in the MX4 mainboard, but only properly when fitted with external power supply.

Probably it's best to use external power supply, I had noticed on CPC6128 and CPC6128+ that when pumping up the volume you could hear small sound artifacts when the WiFi transmits, however the problem disappear when using external psu. It also isn't present on CPC664 (guess it uses less power?).

So I definitely recommend using MX4 + external 5V 2A power supply.
Maybe a better PSU for cpc will do the trick too. - That's why I fried my CPC6128 last week, in a quick rush to plug in a bigger power supply that I remembered being 5V (I am idiot!) - it was 12V.
Alternatively use cable / edge connector (on PCB) and be prepared to use some USB psu with mini usb socket fed directly to the board.

RTC
I will consider offering the parts mounted, just be aware it's not supported in current software, so that's something I will need to add.
Generally I was thinking most people have net connection 99% of the time, so ntp lookup should be excellent. Maybe it's not the case all over europe, so I guess it makes sense for traditional battery backup.

Name
To be honest, I don't really care a lot about the name, if it's an issue sure, do a poll and find a new name, I only request it starts with "M4" :) - so board printing etc. still makes sense.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 13:12, 25 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


No Leave it as it is.
I Cant "" M4size " that enough.
I Think its "" aM4zing ""

Ray
Title: Re: Amstrad CPC WiFi
Post by: TotO on 13:56, 25 May 16
Quote from: Duke on 12:56, 25 May 16Today I received the very nice MX4 mainboard + cable from Toto (thanks a ton!)
Great!  8)

Please, is the final board should be 8x5cm sized to perfectly match with the others?  ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:25, 25 May 16
Quote from: TotO on 13:56, 25 May 16
Great!  8)

Please, is the final board should be 8x5cm sized to perfectly match with the others?  ;D
M4 is a nice code name. X-CORE should be a nice product name.  :-\

I didn't make any changes to the PCB when I ordered 50 more pcs. Learned from past experince, there is good chance I'd screw something up (and I'd have to get new stencils) :) -Although it was tempting to remove some of the debug stuff and clean it up a bit.
So it's still ~ 76,5 mm x 61 mm
Title: Re: Amstrad CPC WiFi
Post by: TotO on 14:26, 25 May 16
No problem, I don't know that you already had ordered them.  :-\
Title: Re: Amstrad CPC WiFi
Post by: CloudStrife on 17:35, 25 May 16
(By the I don't remember if I say I want one when we discuss by mail... Even just the PCB unsold we just the GTL2000 and the .hex firmware it's ok for me :P)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:51, 25 May 16
Quote from: CloudStrife on 17:35, 25 May 16
(By the I don't remember if I say I want one when we discuss by mail... Even just the PCB unsold we just the GTL2000 and the .hex firmware it's ok for me :P )

I have added you now (with aes encrypted firmware and read out protection :P  - nah just kidding), that makes 58.
If anymore orders, you have to rely on someone on the list to not want one anyway or wait until there is 10 more so I can order new batch of pcb etc.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:53, 25 May 16
Quote from: Duke on 12:56, 25 May 16
RTC
I will consider offering the parts mounted, just be aware it's not supported in current software, so that's something I will need to add.
Generally I was thinking most people have net connection 99% of the time, so ntp lookup should be excellent. Maybe it's not the case all over europe, so I guess it makes sense for traditional battery backup.


Well, I sit in USA, not network at my home (residency of my CPC), so RTC would be nice. In case I find out how to read it I will of course share routines for it. But I guess you will be more quick.  :)


Oh, and for buying the M4 board, I guess you will PM us, right?

Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 19:11, 25 May 16
Has anyone started working on an IRC client yet?  :)

Does this mean the CPC IRC channels will finally get more visitors now?  8)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:28, 25 May 16
Quote from: mr_lou on 19:11, 25 May 16
Has anyone started working on an IRC client yet?  :)

Does this mean the CPC IRC channels will finally get more visitors now?  8)
Oh i'd love to be back in the CPC irc, oh and how about a newsgroup client lol ;)
Title: Re: Amstrad CPC WiFi
Post by: talrek on 09:57, 26 May 16
Ohhh please count me one !!!!!!!!!  :o :o
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 10:44, 26 May 16
News and IRC software would be actually fantastic for the CPC, that is for sure!  :D
Title: Re: Amstrad CPC WiFi
Post by: TFM on 19:29, 27 May 16
Well, I think about a Hacker-Boy like shown in Orion Prime.  :P
Title: Re: Amstrad CPC WiFi
Post by: Grim on 21:42, 27 May 16
Quote from: Audronic on 13:52, 23 May 16With tongue in cheek "" M4 "" sounds like a Freeway or a main road somewhere.
To me it sounded more like a reference from the Messier catalogue (https://en.wikipedia.org/wiki/Messier_4) or ... to a tank :)
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 00:15, 28 May 16
Quote from: Grim on 21:42, 27 May 16
To me it sounded more like a reference from the Messier catalogue (https://en.wikipedia.org/wiki/Messier_4) or ... to a tank :)
With a smile on the Face---
I just plugged it in and get this on the screen.

Ahhhhem   Ray


Title: Re: Amstrad CPC WiFi
Post by: gerald on 08:02, 28 May 16
Quote from: Grim on 21:42, 27 May 16
To me it sounded more like a reference from the Messier catalogue (https://en.wikipedia.org/wiki/Messier_4) or ... to a tank :)
Spoiler: ShowHide
[attach=2]
  ;D
Title: Re: Amstrad CPC WiFi
Post by: Vandalsk on 22:22, 28 May 16
I am interested in 2 boards!
Title: Re: Amstrad CPC WiFi
Post by: Scarlettkitten on 00:34, 29 May 16
Count me in for 1 please :)
Title: Re: Amstrad CPC WiFi
Post by: Cpcmaniaco on 11:21, 29 May 16
Please, count me six more boards in addition to that I asked for before -if it is still possible:


- One for me (MX4 connector)
- One for José Leandro (standard CPC connector)
- One for Ángel (standard CPC connector)
- One for rockersuke (standard CPC connector)
- One for deepfb (standard CPC connector)
- One for Nandove (standard CPC connector)
- One for jltursan (MX4 connector)



So I would need a total of seven boards, if possible.


We are now in a meeting in Madrid, Robcfg is showing us his board, and it works flawlessly! It is great! Everybody wants one here! :-D


We are testing the board on some CPCs, and it works on a CPC 472 with 1.1 Basic  :o
Title: Re: Amstrad CPC WiFi
Post by: Cpcmaniaco on 11:27, 29 May 16
It also works on an Amstrad CPC 464 with Basic 1.0 :-)


(https://c7.staticflickr.com/8/7050/27226371902_343d0155c5_z.jpg) (https://flic.kr/p/HtUgPd)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:43, 29 May 16
Sounds great! - Thanks all for testing.

Yes will run another order for more pcb's we've reached 10 more now.
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 12:08, 29 May 16
Count me in for 1 please ;)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 12:25, 29 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): have you made a list?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:05, 29 May 16
Quote from: MiguelSky on 12:25, 29 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): have you made a list?

Yes, and you are on it (no. 18).
Title: Re: Amstrad CPC WiFi
Post by: dxs on 13:10, 29 May 16
Hi Duke,
Maybe would you post the list so that everyone knows he has been taken into account, and what is it's rank ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:14, 29 May 16
Sure, here is the current list, but only from this thread, besides this there is also, emails, pm's and my website, so sort order is not 100% but pretty close:
EDIT:
Orderlist moved to first post:
Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/)

If anybody want's off the list let me know, or if I missed anyone.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 16:02, 29 May 16
Thanks for the list! Glad I asked you missed me, regarding rank I requested in a message page 5 of this topic ;-)
Title: Re: Amstrad CPC WiFi
Post by: remax on 17:31, 29 May 16
Count me for one... (MotherX4 connector, rts if possible).
Title: Re: Amstrad CPC WiFi
Post by: Poliander on 17:49, 29 May 16
I would like to have one, too!
Title: Re: Amstrad CPC WiFi
Post by: ronaldo on 19:09, 29 May 16
I would also like mines with MX4 connector. Thanks for your effort, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  :D
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:55, 29 May 16
+1 with MX4 connector.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 23:02, 29 May 16
Could mine please have the MX4 connector? Thanks @Duke
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 23:35, 29 May 16
I would be great if mine had an MX4 connector too, although is not a big deal to add it myself  :) .
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 02:32, 30 May 16
I would like 2 of them with MX4 connectors, how do we order?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:41, 30 May 16
Currently this is the way. Once I assemble boards I will pm/email you details as I progress.

Quote from: zhulien on 02:32, 30 May 16
I would like 2 of them with MX4 connectors, how do we order?
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 05:06, 30 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


MX4 Connector Please.
Thanks    Ray
Title: Re: Amstrad CPC WiFi
Post by: hsimpson on 08:53, 30 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): MX4 connector version for me, please.

Thanks :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:08, 30 May 16
Here's the adapter pcb I made for edge connector to mx4 type at a 90 deg angle with classic passthrough.

I think I was a bit too generous with space on the pcb  - it leaves room for a case though.
Anyway there's 9 of those (I'll keep one myself). If anyone wants one with their board it's 7 euro assembled, and 6 if you solder the connectors on yourself.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 09:46, 30 May 16

I should be wrong, but except if I'm blind, I don't see anywhere the final price. ???
Just in case... Is it OK for you to reorder PCB/parts for peoples that are "interrested" but should be disengaged if not OK?
Title: Re: Amstrad CPC WiFi
Post by: Cpcmaniaco on 10:08, 30 May 16
1 adapter assembled for me please.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:35, 30 May 16
The price has been stated a few times, but yeah this thread is getting long  and information is hard to find, I will try updating the first post with this info:

M4 Board with MX4 connector price   40 euro
M4 Board with Edge connector price   43.5 euro
Adapter PCB unassembled/assembled 6/7 euro
Shipping cost to most of europe <100g 3.5 euro
Shipping cost to most of europe <250g 7 euro

2 boards is possible with <100 gram

Shipping is unregistered but fairly quick, took 3 days to Spain.
Registered shipping is about as much as the board :/

And obviously if anyone on the list do not want a board anyway, please send a message and I'll remove you from the list.
Orderlist is maintained here: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg127340/#msg127340)

Quote from: TotO on 09:46, 30 May 16
I should be wrong, but except if I'm blind, I don't see anywhere the final price. ???
Just in case... Is it OK for you to reorder PCB/parts for peoples that are "interrested" but should be disengaged if not OK?
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 11:26, 30 May 16
Quote from: Duke on 09:08, 30 May 16
Here's the adapter pcb I made for edge connector to mx4 type at a 90 deg angle with classic passthrough.
If anyone wants one with their board it's 7 euro assembled, and 6 if you solder the connectors on yourself.
Looks Good
I would like 2 of the adapters completely assembled. Please.
add them to my account.


Thanks     Ray
Title: Re: Amstrad CPC WiFi
Post by: talrek on 13:30, 30 May 16
Hi, great i'm on the list, i should have specified i'm interested in a MX4 format.

Also, is it possible to have i Build-It-Yourself kit ? i like to build thibngs myself, and also it will save you time (and maybe i will receive it sooner  ;D)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:54, 30 May 16
Problem with that is, I would have to sit a mark and sort tiny strips of 0603 caps & resistors, have a proper way to pack very fragile components as the st32f407 and gtl2000 (legs bend easy). So I don't think it's worth the trouble, sorry.

Quote from: talrek on 13:30, 30 May 16
Hi, great i'm on the list, i should have specified i'm interested in a MX4 format.

Also, is it possible to have i Build-It-Yourself kit ? i like to build thibngs myself, and also it will save you time (and maybe i will receive it sooner  ;D )
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 16:24, 30 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) - Could I have mine fully assembled with a MX4 (Mother x4) connector please, as I want to use it with the Mother x4 board that I brought from Tot0. Thank you.
Title: Re: Amstrad CPC WiFi
Post by: skywalky on 16:56, 30 May 16
Mine in MX4 format, please.
Thank you
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 18:28, 30 May 16
Hi,

@Duke, same thing, please concider MX4 connector for mine.
Many Thanks.


Envoyé de mon iPhone en utilisant Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 20:14, 30 May 16
Hi Duke, please change my order from Post #59. I need a MX4 connector. Thx.
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 20:16, 30 May 16
;)
Title: Re: Amstrad CPC WiFi
Post by: Etegar on 05:58, 31 May 16
Duke, i want a M4 Board with Edge connector plus Adapter PCB assembled. Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Scarlettkitten on 11:31, 31 May 16
MX4 connector for mine please, thanks Duke.
Title: Re: Amstrad CPC WiFi
Post by: Vandalsk on 13:44, 31 May 16
Great, i'm on the list  :) .
Please change my order in MX4 connector too.
Thanks a lot.
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 16:56, 31 May 16

Hi Duke,


Tamas here, I am glad that I am on the list! :-)
Please make a board for me with the M4 connector please.
(Since I own a Schneider CPC6128, I am unable to use of the edge adapter.)


Thanks a lot,


Tamas






Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 17:14, 31 May 16
Hi, here the same: #3 on the List ;-)
Because of CPC6128 please with MX4 for me - thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:54, 31 May 16
Just to avoid any misunderstandings:

Regular CPC has edge connector. CPC+ and Schneider CPC have centronics connector.

If you have a regular CPC (not plus or schneider) you will need M4 with Edge connector.
Unless you have or buy:
MotherX4 board+cable (from Toto @ MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html))
or a "Edge cable for MotherX4" (from Toto @ MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html))
or you order adapter PCB (which has 1 MX4 slot and edge connector).

If you have a CPC+ or Schneider with centronics connector, you will need M4 with MX4 connector and:
MotherX4 board+cable (from Toto @ MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html))
or a " Centronic cable for MotherX4" (from Toto @ MotherX4 Main Board (http://www.centpourcent.net/store/p1/MotherX4_Main_Board.html))


Quote from: Etegar on 05:58, 31 May 16
Duke, i want a M4 Board with Edge connector plus Adapter PCB assembled. Thanks.

Quote from: Jungsi on 17:14, 31 May 16
Hi, here the same: #3 on the List ;-)
Because of CPC6128 please with MX4 for me - thanks!
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 18:00, 31 May 16
Quote from: Duke on 17:54, 31 May 16
Just to avoid any misunderstandings:

Regular CPC has edge connector. CPC+ and Schneider CPC have centronics connector.

If you have a regular CPC (not plus or schneider) you will need Edge connector.

I have a regular Amstrad CPC 464 without add-ons.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:04, 31 May 16
In that case you will need M4 with edge connector, unless you want to buy Edge cable/mx4/adapter pcb.

Quote from: reidrac on 18:00, 31 May 16
I have a regular Amstrad CPC 464 without add-ons.
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 18:52, 31 May 16
Quote from: Duke on 18:04, 31 May 16
In that case you will need M4 with edge connector, unless you want to buy Edge cable/mx4/adapter pcb.

I was confused by the terminology. Thanks for the clarification!

M4 with edge connector then.
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 19:04, 31 May 16
M4 with MX4 connector for me please.
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 19:35, 31 May 16
Quote from: Jungsi on 17:14, 31 May 16
Hi, here the same: #3 on the List ;-)
Because of CPC6128 please with MX4 for me - thanks!

Then this is the right one (for my CPC6128 with Mother X4): :-)
M4 with MX4 connector
Title: Re: Amstrad CPC WiFi
Post by: TFM on 19:39, 31 May 16
Also for me please the MX4 connector: M4 Board with MX4 connector

Thank you!  :)

EDIT: Oh and if this is possible, please add the real RTC to the board, so I can support it with FutureOS.




btw: Would be nice if everybody gets one first, and then after that, everybody get's the 2nd board. So in my case I ordered two, I'm fine with getting one first, and after everybody has one I take the 2nd. So nobody needs to wait too long.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:41, 31 May 16
Yes suspected that was case because of a missing comma possible I was in doubt :)

Quote from: Jungsi on 19:35, 31 May 16
Then this is the right one (for my CPC6128 with Mother X4): :-)
M4 with MX4 connector
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:47, 31 May 16
Technically that's how it should be, but sensible lets save the shipping cost, the biggest hurdle for me right now is I don't have all the components (30+ packets on its way from china).
Once they start pouring in 1 or 2 boards wont matter much timewise anyway.

Quote from: TFM on 19:39, 31 May 16

btw: Would be nice if everybody gets one first, and then after that, everybody get's the 2nd board. So in my case I ordered two, I'm fine with getting one first, and after everybody has one I take the 2nd. So nobody needs to wait too long.  (http://www.cpcwiki.eu/forum/Smileys/SoLoSMiLeYS1/smiley.gif)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 19:52, 31 May 16
Oh, yes, forgot about that. Good point :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 20:22, 31 May 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) M4 with MX4 connector for me too!  ;)
Title: Re: Amstrad CPC WiFi
Post by: archcosmo on 06:11, 01 June 16
@Duke (http://www.cpcwiki.eu/forum/profile/?u=1624) please update my order to be: an M4 board with MX4 connector.
I have an MX4 board, so would prefer to connect it to my CPC through that.

thanks
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 06:30, 01 June 16
Hi @Duke (http://www.cpcwiki.eu/forum/profile/?u=1624), thank you for your post about the connectors!
I would like an M4 with MX4 connector then.


Thanks a lot,


Tamas




Title: Re: Amstrad CPC WiFi
Post by: AlexD on 08:38, 01 June 16
Hi,
would it still be possible to get one with MX4 connector ?


Thanks !
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:30, 01 June 16
Yes, but be aware the list is very long now, so it may take significant amount of time before its ready.

Quote from: AlexD on 08:38, 01 June 16
Hi,
would it still be possible to get one with MX4 connector ?


Thanks !
Title: Re: Amstrad CPC WiFi
Post by: Etegar on 04:16, 02 June 16
Duke, i change my previous choice then, i want a M4 board with MX4 connector plus a pcb adapter, because I own a standard cpc6128 without motherX4 board.
Many thanks for your explanation.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 06:37, 02 June 16
I want my M4 with adapter PCB assembled, please :)
Title: Re: Amstrad CPC WiFi
Post by: AlexD on 08:13, 02 June 16
No problem about the delay, I have been waiting for this card for 15 years.... thanks for making it true ! :)
Title: Re: Amstrad CPC WiFi
Post by: Lazy Dude on 17:35, 02 June 16
woo hoo, I am not last on the list!

one M4 Board with Edge connector for me please
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:40, 04 June 16
Some bad news :/
Today I received a Schneider CPC464 I bought over Ebay.
First I would like to correct what I wrote earlier that Schneider CPC uses Centronics connector, appearently this is only for CPC6128 model, but please someone correct if I am wrong.
Atleast this Schnieder CPC464 is regular Card Edge.

The board is V1, with MC0001A code and Gate Array 40007.

It does not work with M4 Board right now.

As far as I managed to find for now, is the timing of the ROMEN (was a sligth bit earlier than _RD before) signal is different to what I have tested on so far, and probably due to the 40007 gate array.

I haven't put on the logic analyser yet, but I am fairly sure this is the problem. I can get M4 board to work by overclocking the cortex M4.
Hopefully I can figure something out, but I don't know yet.

I'll update you when I know more, but at this time be preparred it may not work with GA 40007 cpc's (and you can of course cancel your order).
Title: Re: Amstrad CPC WiFi
Post by: yannis_uno on 19:06, 04 June 16
Duke,


MX4 connector + adapter to my current 1 piece order, if possible, please. Thanks!

Title: Re: Amstrad CPC WiFi
Post by: gerald on 19:14, 04 June 16
Quote from: Duke on 18:40, 04 June 16
As far as I managed to find for now, is the timing of the ROMEN (was a sligth bit earlier than _RD before) signal is different to what I have tested on so far, and probably due to the 40007 gate array.
I am a bit surprised that ROMEN could be earlier than RDn since ROMEN is a generated from RDn / MREQn / A14 / A15 (according to my in-progress 40010 analysis)
My archived LA trace of both 40010 and 40007 does not show a big difference either : the 40007 seems a bit slower than the 40010 (50ns instead of 30ns)

Curious to see your findings  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:54, 04 June 16
@gerald (http://www.cpcwiki.eu/forum/index.php?action=profile;u=250) :

You are completely right, I was going by memory (been some months since I had the LA connected to the CPC bus).
[attach=2]
It's RD that's 30 ns prior to ROMEN on a CPC6128 with 40010 GA.
Still this is what throws my timing off (I think), triggering for ROMEN then executing ARM instructions (check if rom mapped, turn bus direction) if 40007 is 20 ns longer (slower) into the RD
I'll have a look on GA 40007 tomorrow with the LA and re-think if I can do my timings differently.

Regards,
Duke
Quote from: gerald on 19:14, 04 June 16
I am a bit surprised that ROMEN could be earlier than RDn since ROMEN is a generated from RDn / MREQn / A14 / A15 (according to my in-progress 40010 analysis)
My archived LA trace of both 40010 and 40007 does not show a big difference either : the 40007 seems a bit slower than the 40010 (50ns instead of 30ns)

Curious to see your findings  :)
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 20:04, 04 June 16
Interesting, indeed.

I thought that my 464s had dirty contacts, but one is a schneider and the other one a MC0001A.

Gerald, how are you progressing with the 40010?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:20, 04 June 16
Bingo, re-arranged my arm assembly code case check (with first check on ROMEN) and it works on normal clock speed.  - There's still an issue with the ESP8266 signal checking (it's hit and miss right now), but that'll be solveable. Phew :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:26, 04 June 16
I was relieved when Cpcmaniaco and the others got it working on basic 1.0 and 1.1 CPC464's and thought yours might have been bad contacts too :)
Glad I got this CPC anyway then. The problem will be solved.
Quote from: robcfg on 20:04, 04 June 16
Interesting, indeed.

I thought that my 464s had dirty contacts, but one is a schneider and the other one a MC0001A.

Gerald, how are you progressing with the 40010?
Title: Re: Amstrad CPC WiFi
Post by: gerald on 20:27, 04 June 16
Quote from: robcfg on 20:04, 04 June 16
Interesting, indeed.

I thought that my 464s had dirty contacts, but one is a schneider and the other one a MC0001A.

Gerald, how are you progressing with the 40010?
Something like 90% of the netlist done.
Next step would be to have working VHDL model
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:39, 04 June 16
And there should be a file commander/navigator of some kind for basic 1.0 atleast, the :
a$="subdirectory": |cd,@a$
etc.
Is really annoying...
Title: Re: Amstrad CPC WiFi
Post by: SRS on 21:15, 04 June 16
Quote from: Duke on 20:39, 04 June 16
And there should be a file commander/navigator of some kind for basic 1.0 atleast, the :
a$="subdirectory": |cd,@a$
etc.
Is really annoying...

Feel free to use/modify my "$" (basic 1.0)  -> run"$ - or another disc directory tool (http://www.cpcwiki.eu/forum/programming/run'$-or-another-disc-directory-tool/msg59670/#msg59670)
or the parallel (in old time) (baisc 1.1)  Interesting Type-Ins. (http://www.cpcwiki.eu/forum/programming/interesting-type-ins/msg63972/#msg63972)
Title: Re: Amstrad CPC WiFi
Post by: Tai on 22:03, 04 June 16
OMFG! How could I've missed this thread!  :picard2:

Is it too late to order this awesomeness? If not, I would like to order two M4 Boards with MX4 connector, pleease!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:07, 05 June 16
Cool thanks. Exactly what I had in mind, just needs to support changing directories.

Quote from: SRS on 21:15, 04 June 16
Feel free to use/modify my "$" (basic 1.0)  -> run"$ - or another disc directory tool (http://www.cpcwiki.eu/forum/programming/run'$-or-another-disc-directory-tool/msg59670/#msg59670)
or the parallel (in old time) (baisc 1.1)  Interesting Type-Ins. (http://www.cpcwiki.eu/forum/programming/interesting-type-ins/msg63972/#msg63972)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:07, 05 June 16
You have been added to the list :)
Quote from: Tai on 22:03, 04 June 16
OMFG! How could I've missed this thread!  :picard2:

Is it too late to order this awesomeness? If not, I would like to order two M4 Boards with MX4 connector, pleease!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:10, 05 June 16
Looks like everything is back on track.
All works on CPC464 GA 40007, CPC 664 GA 40010 and CPC 6128+ with latest changes.
Title: Re: Amstrad CPC WiFi
Post by: Tai on 10:45, 05 June 16
Quote from: Duke on 01:07, 05 June 16
You have been added to the list :)

8)

Thank you so much... can't wait  ;)
Title: Re: Amstrad CPC WiFi
Post by: Dubliner on 16:06, 06 June 16
I would like mine to have edge conector. Thanks :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 16:59, 06 June 16
Quote from: Duke on 02:10, 05 June 16
Looks like everything is back on track.
All works on CPC464 GA 40007, CPC 664 GA 40010 and CPC 6128+ with latest changes.

Sorry if this is covered elsewhere in the thread but will the device support updates for things like this please?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:19, 06 June 16
Quote from: Maniac on 16:59, 06 June 16
Sorry if this is covered elsewhere in the thread but will the device support updates for things like this please?

Yes it will. In the future you can just use |upgrade command.
But for now the boards I shipped contains v1.0.0, if you cannot configure it because:
1) Your cpc does not support overriding rom7
2) Your cpc has GA 40007

You can download M4 firmware v1.0.1 here:
http://www.spinpoint.org/cpc/M4FIRM_v101.zip (http://www.spinpoint.org/cpc/M4FIRM_v101.zip)

Copy it to your microSD from the PC.
Insert it to M4 board and power On (red led will be on for a few seconds while it upgrades)
When done it will reset and it should be ok.
Default ROM mapping in v1.0.0. was 7, but in v1.0.1 it's 6, since I learned not all CPC6128's will allow you to override internal rom 7 (amsdos).

Afterwards you can from the web interface (under Roms) select rom map 7 for M4, which is best compatiblity with games etc. If your CPC runs a reset loop after this, go back into the web interface again and set it to 6 (or 1 to 5). If you set it above 7, basic file I/O commands will not be re-directed to microSD card.

And for those that are shipped and may receive it the coming days, be sure to check out (and refresh):
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

It contains basic information for first time use (not quite finished, but enough to get your started hopefully).
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 18:28, 06 June 16

Hi

Got it tonight, tested it, works like a charm :)


Thanks a lot
Title: Re: Amstrad CPC WiFi
Post by: Grim on 18:40, 06 June 16
MX4 connector for me too. Thanks!
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 18:47, 06 June 16
Quote from: Duke on 17:19, 06 June 16
Yes it will. In the future you can just use |upgrade command.
But for now the boards I shipped contains v1.0.0, if you cannot configure it because:
1) Your cpc does not support overriding rom7
2) Your cpc has GA 40007

You can download M4 firmware v1.0.1 here:
http://www.spinpoint.org/cpc/M4FIRM_v101.zip (http://www.spinpoint.org/cpc/M4FIRM_v101.zip)

Copy it to your microSD from the PC.
Insert it to M4 board and power On (red led will be on for a few seconds while it upgrades)
When done it will reset and it should be ok.
Default ROM mapping in v1.0.0. was 7, but in v1.0.1 it's 6, since I learned not all CPC6128's will allow you to override internal rom 7 (amsdos).

Afterwards you can from the web interface (under Roms) select rom map 7 for M4, which is best compatiblity with games etc. If your CPC runs a reset loop after this, go back into the web interface again and set it to 6 (or 1 to 5). If you set it above 7, basic file I/O commands will not be re-directed to microSD card.

And for those that are shipped and may receive it the coming days, be sure to check out (and refresh):
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

It contains basic information for first time use (not quite finished, but enough to get your started hopefully).
That's great Duke! Thanks for the extra info! Just waiting for the board to arrive!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:52, 06 June 16
Cool that's good to hear. What CPC do you use btw.?

Quote from: dirtybb on 18:28, 06 June 16
Hi

Got it tonight, tested it, works like a charm :)


Thanks a lot
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 19:05, 06 June 16
Quote from: Duke on 18:52, 06 June 16
Cool that's good to hear. What CPC do you use btw.?


Amstrad CPC 6128
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 21:21, 06 June 16

Hi Duke,

Also wanted 1x M4 board with edge connector for my CPC6128 .


Is it possible or it's too late?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:54, 06 June 16
Hi

You are not too late for second batch, I've added you. But please have patience list is long. Made some progress today, 5 more boards almost ready, but parts are coming in too slow atm. Probably it will change in a couple of days and I have more parts than I can manage to build boards.
Regards,

Duke
Quote from: rcmolina on 21:21, 06 June 16
Hi Duke,

Also wanted 1x M4 board with edge connector for my CPC6128 .


Is it possible or it's too late?
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 20:38, 07 June 16
I got mine! So far, very impressed. Excellent hw!

I can't seem to be able to make CD to work, I always get "Type mismatch" error.

This is a CPC 464 with no expansions.

EDIT: also tried run"file.bin" and I get "Line too long" error. Forget about this one, I'm stupid and the binary didn't have the appropriate header.

Still can't make the CD command work. Wireless works perfect, though.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 22:51, 07 June 16
i also got mine !!!
and finaly works !!!  ;D ;D ;D ;D ;D ;D
HINT To other users:dont forget to set an ip from your router. to work . otherwise with http://10.0.0.37 (http://10.0.0.37) will not work!!

Thank you Duke again for your excelent support
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 22:55, 07 June 16
Reidrac, on basic 1.0 the syntax of the CD command is:

A$="name":|CD,@A$
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 06:01, 08 June 16
Quote from: robcfg on 22:55, 07 June 16
Reidrac, on basic 1.0 the syntax of the CD command is:

A$="name":|CD,@A$

I'll try that, thanks!

EDIT: works perfect! This is an amazing card for the CPC, thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) !
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 06:15, 08 June 16
Noob question.

Is there any way a ROM can create KEY DEF's?

If yes, then maybe one could do

KEY DEF 0,"a$="+chr$(34)
KEY DEF 1,"|cd,@a$"+chr$(13)
KEY DEF 2,"|cd,@a$"+chr$(13)+"cat"+chr$(13)
and so forth

to speed up the process.
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 06:16, 08 June 16
Quote from: mr_lou on 06:15, 08 June 16
Noob question.

Is there any way a ROM can create KEY DEF's?

If yes, then maybe one could do

KEY DEF 0,"a$="+chr$(34)
KEY DEF 1,"|cd,@a$"+chr$(13)
KEY DEF 2,"|cd,@a$"+chr$(13)+"cat"+chr$(13)
and so forth

to speed up the process.

Well, is not that bad. Definitely faster than using tape :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 06:22, 08 June 16
Quote from: reidrac on 06:16, 08 June 16
Well, is not that bad. Definitely faster than using tape :)

True, but if it's not a problem, then why not use the F-keys for various commands like this?
F0 = Set a$
F1 = CD a$
F2 = CD a$ and CAT
F3 = DELETE a$
F4 = RENAME a$ to b$
F9 = Set b$
and so forth.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:26, 08 June 16
It's a good idea. I don't know how to do that from assembler though. Even better would be I think, if you just typed ie |cd [return] it would write a ? and you could type dirname or use shift+curser keys and copy, it's definately possible but a bit of work :) -Maybe if someone is bored? I would add it to the rom.
Quote from: mr_lou on 06:22, 08 June 16
True, but if it's not a problem, then why not use the F-keys for various commands like this?
F0 = Set a$
F1 = CD a$
F2 = CD a$ and CAT
F3 = DELETE a$
F4 = RENAME a$ to b$
F9 = Set b$
and so forth.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:15, 08 June 16
Glad to hear you like it :)

- Don't forget to try the cpcxfer program, if you want to quickly move files for testing from pc to cpc.

xfer -u <cpc ip> FILE.BIN / 0   
( '/' indicating the file should be stored in root, '0' assuming the file has prebuild amsdos header. )

Quote from: reidrac on 06:01, 08 June 16
I'll try that, thanks!

EDIT: works perfect! This is an amazing card for the CPC, thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) !
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 20:18, 08 June 16
Quote from: Duke on 20:15, 08 June 16
Glad to hear you like it :)

- Don't forget to try the cpcxfer program, if you want to quickly move files for testing from pc to cpc.

xfer -u <cpc ip> FILE.BIN / 0   
( '/' indicating the file should be stored in root, '0' assuming the file has prebuild amsdos header. )

I can start a simple HTTP server in my laptop and download things too.  I love this a lot!

I was wondering if there would be a way of getting a socket interface so we can implement things like telnet on the CPC (just daydreaming).
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 20:19, 08 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): you let us know when we should send you the money ?  ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:26, 08 June 16
Not yet, but it's on the to do list.
Quote from: reidrac on 20:18, 08 June 16
I was wondering if there would be a way of getting a socket interface so we can implement things like telnet on the CPC (just daydreaming).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:27, 08 June 16
Yes, I will pm each one of you with details, when your board is ready.

Quote from: radu14m on 20:19, 08 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): you let us know when we should send you the money ?  ;)
Title: Re: Amstrad CPC WiFi
Post by: SRS on 22:23, 08 June 16
Quote from: Duke on 20:27, 08 June 16
Yes, I will pm each one of you with details, when your board is ready.

I can confirm that. Undusting my 464 tomorrow :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 11:28, 09 June 16
Hmmm looks like I missed quite a few posts in this thread... hope I didn't lose my position in the queue :D
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:21, 09 June 16
A technical question: Reading the docs it seems like that the M4 hast two ports. Now one sends a command (and maybe data bytes) to one port and then the command is 'ended' by sending a byte to the other port. That's a fine way to do it.  :)

Now, to get the result data, one will read values out or ROM 7 (or 6, depending on CPC model). This is fine for any application residing in RAM. And since this is kind of memory mapped I/O it's probably super fast.  :)

Now my question: Instead of reading data from the ROM, is there a possibility to read it from I/O ports instead?

The reason for asking is that a ROM program can't directly access another ROM without a routine to read, previously put into RAM.

It's not a problem, I'm just curious.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:42, 09 June 16
Actually it could be any rom (6 and 7 are just default choices, it can be set in the config which rom it maps), so it's best to lookup the rom some way.
Currently it is not possible to read data back via I/O ports.
- Not sure if it ever will be, the timing in the ARM handler loop is very tight, a instruction in the wrong place could break it all :)
I see what you mean though, but again a small handler put into ram could do the trick from rom to rom (as you said).

Quote from: TFM on 16:21, 09 June 16
A technical question: Reading the docs it seems like that the M4 hast two ports. Now one sends a command (and maybe data bytes) to one port and then the command is 'ended' by sending a byte to the other port. That's a fine way to do it.  :)

Now, to get the result data, one will read values out or ROM 7 (or 6, depending on CPC model). This is fine for any application residing in RAM. And since this is kind of memory mapped I/O it's probably super fast.  :)

Now my question: Instead of reading data from the ROM, is there a possibility to read it from I/O ports instead?

The reason for asking is that a ROM program can't directly access another ROM without a routine to read, previously put into RAM.

It's not a problem, I'm just curious.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:24, 09 June 16
@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179)

I may make it possible to replace M4 rom in a coming upgrade if there's interest for that, this way you could have the receive buffer in your own rom.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:04, 09 June 16
It's a shocking cool system you are applying here.  :)  A MPU feeding the CPC in realtime data by simulating a ROM.  :)  Never thought that this one day will happen.  :)


To be able to 'choose' another ROM would be interesting indeed. Well, I'm really looking forward to use the M4 expansion card. That's IMHO the biggest quantum jump forward in the history of the CPC.  :o
Title: Re: Amstrad CPC WiFi
Post by: SRS on 20:57, 09 June 16
So, the access to SD-Card on a Schneider CPC464 with nothing else connected (like DDI) ....

WORKS !

ha[attachimg=1]

And @EgoTrip (http://www.cpcwiki.eu/forum/index.php?action=profile;u=337) : Amy works , too :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:33, 09 June 16
One question.. If the m4 ROM is moved to slot 6 with amsdos (or parados in 7) are the floppies and the sdcard accessible, and if so which drive letter does the SD card use? |S maybe or |M for SD or Mass Storage accordingly? If this works then this will be perfect.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:47, 09 June 16
It wont, if M4 rom is mapped before amsdos/parados it will catch all the file I/O. It currently will not work with other drives.
If you map it after amsdos/parados, cas_* hooks will not be active and file I/O will go to disc.

Quote from: CraigsBar on 21:33, 09 June 16
One question.. If the m4 ROM is moved to slot 6 with amsdos (or parados in 7) are the floppies and the sdcard accessible, and if so which drive letter does the SD card use? |S maybe or |M for SD or Mass Storage accordingly? If this works then this will be perfect.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:00, 09 June 16
Mine just arrived yesterday and I need some time to play properly but I have a few questions.

If I connect the M4 board directly to my 6128 plus it all works great.

However it doesn't seem to work with my C4CPC cart plugged in using a custom cart image containing Parados replacing the normal AMSDOS ROM so switched back to original Burnin Rubber cart.

Also doesn't seem to work if plugged in to my MX4 board even if it's the only board connected in slot 1. I just get random graphics or lines on the screen.

As such I can't use my X-Mem with its memory expansion capability.

Is there any way to resolve the above please? Does it need external power when connected anything other than directly? Is it a power consumption issue if I have all the above connected?

Sorry for all the questions, don't to seem like I'm moaning as this is such an awesome board and idea.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 22:09, 09 June 16
Could be a weak power supply, try to provide external power. Also put M4 properly in MX4 board. Sorry, that's all coming up in brief.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:53, 10 June 16
Did you upgrade the M4 to v1.0.1 (Do a |version and if still at 1.0.0 |upgrade).
If C4CPC maps amsdos/parados and M4 runs at rom 7 there will be a conflict, so you need to set M4 to ie. rom6. I don't know if that will solve the C4CPC problem, as I haven't got one.

Yes you probably need an external power supply connected to the MotherX4 board, that's what I found when testing it (I used a 5V 2A).

Let me know how it goes when you try with an external PSU.

Quote from: Maniac on 22:00, 09 June 16
Mine just arrived yesterday and I need some time to play properly but I have a few questions.

If I connect the M4 board directly to my 6128 plus it all works great.

However it doesn't seem to work with my C4CPC cart plugged in using a custom cart image containing Parados replacing the normal AMSDOS ROM so switched back to original Burnin Rubber cart.

Also doesn't seem to work if plugged in to my MX4 board even if it's the only board connected in slot 1. I just get random graphics or lines on the screen.

As such I can't use my X-Mem with its memory expansion capability.

Is there any way to resolve the above please? Does it need external power when connected anything other than directly? Is it a power consumption issue if I have all the above connected?

Sorry for all the questions, don't to seem like I'm moaning as this is such an awesome board and idea.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:17, 10 June 16
As far as I know, the MX4 has a diode that's dropping the voltage from 5V to around 4.3V. If the M4 is using a 5V to 3.3V regulator then it probably isn't getting enough voltage to power up.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:24, 10 June 16
Ah, thanks for the input, that makes sense. Yes its using a ams1117-3.3V regulator.
Quote from: Bryce on 07:17, 10 June 16
As far as I know, the MX4 has a diode that's dropping the voltage from 5V to around 4.3V. If the M4 is using a 5V to 3.3V regulator then it probably isn't getting enough voltage to power up.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:44, 10 June 16
Quote from: Duke on 07:24, 10 June 16
Ah, thanks for the input, that makes sense. Yes its using a ams1117-3.3V regulator.

A good choice, but unfortunately the ams1117-3.3 has a dropout voltage of 1.1V, so the M4 won't work reliably (if at all) on an MX4.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:51, 10 June 16
Unless you use external power supply. You can also plug a USB psu directly to the M4 board (just change the jumper).
Title: Amstrad CPC WiFi
Post by: Maniac on 08:35, 10 June 16
Quote from: Duke on 07:51, 10 June 16
Unless you use external power supply. You can also plug a USB psu directly to the M4 board (just change the jumper).
What amp rating does the USB psu have to have please? Will an iPhone charger using a USB cable do the job please?

Sorry one further question; what wifi standards does the board support please? I.e WPA, WPA2 with a pre-shared key. Also can the MAC address be found via the CPC?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:46, 10 June 16
5V 1A should do, though I used a 5V 2A samsung usb charger. I guess an iPhone USB charger is fine (5V 2A too, isn't it?).
WPA/WPA2 PSK is fine.
MAC is only displayed in the webinterface.

Quote from: Maniac on 08:35, 10 June 16
What amp rating does the USB psu have to have please? Will an iPhone charger using a USB cable do the job please?

Sorry one further question; what wifi standards does the board support please? I.e WPA, WPA2 with a pre-shared key. Also can the MAC address be found via the CPC?
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:52, 10 June 16
Unless you've really messed up big time, I doubt your M4 uses more than 500mA, so any USB charger should work. Current iPhone chargers are 1A.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:01, 10 June 16
Yup, but not many phone charges below 1A  I think :)
Quote from: Bryce on 08:52, 10 June 16
Unless you've really messed up big time, I doubt your M4 uses more than 500mA, so any USB charger should work. Current iPhone chargers are 1A.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:04, 10 June 16
Older chargers were all only 500mA! Which is why it took so much longer to charge phones back then. Some modern ones are still only 500mA (I have a relatively new HTC 500mA one here).

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 09:07, 10 June 16
500mA is huge. I doubt too... All my boards together use half of that.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:14, 10 June 16
I agree. The ESP8266 is a power hungry chip with peak up to ~300mA.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:21, 10 June 16
I did a quick "back of an envelope" calculation (no schematics, just using the picture of the card) and I estimate that the current consumption could have an absolute max peak of about 430mA, but that would mean that the M4 was running full speed with all GPIO on, the WiFi was transmitting at full power (+17dbm is its limit as far as I know) and the SD card was being written to, all at the same time. As this scenario is extremely unlikely, the average current is probably half that.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:27, 10 June 16
Thanks, yes in worst case 500mA is plenty.
Quote from: Bryce on 09:21, 10 June 16
I did a quick "back of an envelope" calculation (no schematics, just using the picture of the card) and I estimate that the current consumption could have an absolute max peak of about 430mA, but that would mean that the M4 was running full speed with all GPIO on, the WiFi was transmitting at full power (+17dbm is its limit as far as I know) and the SD card was being written to, all at the same time. As this scenario is extremely unlikely, the average current is probably half that.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: SRS on 11:25, 10 June 16
As loading a program I could run easily yesterday today resets my 464, I will try to clean expansion port and use external power (the green monitor is not my old own one but some picked up from the bay, so maye power regulation isn't that stable anymore).

And a noob question: I managed to connect to my wifi, device is getting IP and router shows it is is connected (not under its "name", but as "ESP_833AE7")

BUT i can't connect from my WIN10 PC to it.

Not with http://CPC464 (http://cpc464) and also not with http://198.xxx.xxx.xxxxxx (http://198.xxx.xxx.xxxxxx)

So ... any ideas ? Did someone suceed with similar configuration ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:34, 10 June 16
Try typing |netstat and see what it says about connection status.

And try a ping to your ip number

Also with 464 w/o mx4 you shouldnt need external power, I bet its the connector that needs cleaning.

EDIT: if you changed the M4 rom from 7 to 6, that could explain the game reset also, since some games needs it at 7.
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 12:56, 10 June 16
Mine arrived today! I will try to test it tonight!  :D
Title: Re: Amstrad CPC WiFi
Post by: SRS on 19:48, 10 June 16
Quote from: Duke on 11:34, 10 June 16
Try typing |netstat and see what it says about connection status.

And try a ping to your ip number

Also with 464 w/o mx4 you shouldnt need external power, I bet its the connector that needs cleaning.

EDIT: if you changed the M4 rom from 7 to 6, that could explain the game reset also, since some games needs it at 7.

Netstat says: Got IP xxx.xxx.xx

ping to this IP says: Zielhost nicht erreichbar. (host unreachable)

I didn't change any of the config of M$, it is version 1.0.1 (esp is 1.0.0)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:55, 10 June 16
Weird.. Could it be some firewall issue in Win10?

Dunno if you used manual ip config, if so maybe try to use DHCP and see how that goes.
|netset,"ssid=..., pw=..., dhcp = 1"

|netstat
got ip x....

C:>ping x...

Btw. when you access / ping the board, your CPC should be on, even if it uses external power.

Quote from: SRS on 19:48, 10 June 16
Netstat says: Got IP xxx.xxx.xx

ping to this IP says: Zielhost nicht erreichbar. (host unreachable)

I didn't change any of the config of M$, it is version 1.0.1 (esp is 1.0.0)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:59, 10 June 16
Also in current config, if not too late, try to use the |time function.
If it reports correct time (you may do it twice). It's gotta be a firewall issue of win10
Title: Re: Amstrad CPC WiFi
Post by: SRS on 20:13, 10 June 16
TIME gives correct time (dhcp=1).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:17, 10 June 16
Ok, that's a clear indication imo. that WiFi can talk to router (and further to the ntp server), but not to PC, so something on the PC side is blocking communications. I just quickly tried from my win10 laptop and had no issues, so maybe if you have some 3rd party antivirus/firewall, I think that's the likely cause.

Quote from: SRS on 20:13, 10 June 16
TIME gives correct time (dhcp=1).
Title: Re: Amstrad CPC WiFi
Post by: SRS on 21:04, 10 June 16
Now this was crazy. Did deactivate firewall - not working. Restart PC, log in as admin, check firewall deactivated  - not working
Deactivating antivir - not working.

Then went to Router, where the MAC of M4 was hardwired to its IP (so it would get always same ip). Changed that, restarted router - and it worked !

Now in non-admin user with firewall up and still works. This is just very very weired ...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:39, 11 June 16
@SRS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=805) Well good you got it working, whatever the issues was :)

V1.0.2
I put a small upgrade online, primarily for users with BASIC 1.0, I changed the |CD command.
If you just type |CD followed by enter/return, you will see a cursor display below the line, now you can use SHIFT + CURSOR keys and COPY key. When done press enter/return again.
I was fed up with the A$="...":|cd,@A$
Will add it to the other commands too later maybe... (|CD was most annoying as you use it all the time).

Use |upgrade or download v1.0.2 here: http://www.spinpoint.org/cpc/M4FIRM_v102.zip (http://www.spinpoint.org/cpc/M4FIRM_v102.zip)   (unpack to root of microSD and reboot M4)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:07, 11 June 16
I've now had time to play with the M4 board and work out what does and doesn't work with my 6128 Plus and other hardware. These are my findings. Apologies for the angle of the photos but I was trying to avoid reflections!



Directly connected
Original Burnin' Rubber Cart with or without external power:


C4CPC Cart with or without external power:


Connected via Mother MX4 board with no external power


Connected via Mother MX4 board with external power to M4 only and no other MX4 boards


Connected via Mother MX4 board with external power to M4 and with or without external power to Mother MX4 with X-Mem MX4 board also attached
I'm more than happy to try and help with resolving what can be resolved. This isn't a moan at all as I think the board is such a great idea and I love the way I can control my 6128 Plus from a browser. It's all very clever stuff! I am genuinely trying to help.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:45, 11 June 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
Thanks for the comprehensive tests.

It'll be hard for me to debug since I don't have C4CPC nor XMEM.
When M4 rom is disabled in config, all the running code is exactly the same on the M4 board(ie. you would still be able to use the rom board function) except it doesn't try to map the rom containg M4 z80 part (and thus not driving the datalines).
I'll have a think about your post.
If you have the time, it would be useful if you put a regular rom like maxam at ie. pos 14 on the M4 board (and no other rom at that pos in xmem) and disable the M4 rom itself.
Does it boot and will maxam work?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:02, 11 June 16
Also for now it may good to take C4CPC out of the equation and check with only XMEM, since afaik. the CPC+ cartridges maps multiple roms and I don't really how it works.
So if you try with XMEM first and we can figure out what's going on then I can read up on the CPC+ cartridge mapping.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 15:54, 11 June 16
If the X-MEM conflict is related to the ROM part, you should try to set the jumper to NO for disabling them.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 16:00, 11 June 16
Quote from: TotO on 15:54, 11 June 16
If the X-MEM conflict is related to the ROM part, you should try to set the jumper to NO for disabling them.


I tried here but it doesn't work.
When M4 and XMEM both plugged, with XMEM rom jumper set to "No", CPC (6128) reset in loops.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:11, 11 June 16
Is this with external power supply  connected to either M4 or MX4, or using internal power supply ? (just in case)

Quote from: dirtybb on 16:00, 11 June 16

I tried here but it doesn't work.
When M4 and XMEM both plugged, with XMEM rom jumper set to "No", CPC (6128) reset in loops.
Title: Re: Amstrad CPC WiFi
Post by: 1024MAK on 16:11, 11 June 16
Mine arrived today  ;D

Thank you Duke  :D

Alas, I'm busy with real life, so won't have time to test it yet  :(

Mark
Title: Re: Amstrad CPC WiFi
Post by: gerald on 16:15, 11 June 16
Quote from: Duke on 14:45, 11 June 16
If you have the time, it would be useful if you put a regular rom like maxam at ie. pos 14 on the M4 board (and no other rom at that pos in xmem) and disable the M4 rom itself.
Does it boot and will maxam work?
The XMEM (like most oster ROM extension), when connected will drive the bus during access to ROM in they slot range.
ROM access is indicated by ROMEN low and the ROM selection in range 1-6,8-31 (0-6,8-31 in boot mode to override the basic/system ones)
This will happen whatever the content of the ROM is, be it 'empty' or valid.
So when using the M4 with an XMEM the only available slots are slot 7(that you cannot override on a 6128), and slot after 32(not initialised).

The only way to make this work would be :
- remove the ROM device from the xmem so it cannot drive the data bus and create a data contention. The xmem will be act as a RAM extension only.
- or use a MotherX4 like card that chain the ROMEN/ROMDIS so the order of the connector decide the priority of the ROM extension.



About C4CPC and plus ROM mapping  :
- after booting, the C4CPC will behave like a regular cartridge, unless you knock at the uC door via strict order reading within the ROM.
- 32 ROM in a cartridge are mapped from upper ROM slot 128 to slot 160, with slot 128 mirrored as lower ROM, slot 129 as upper ROM 0 and slot 130 as upper slot 7 (or 0, if EXT signal is grounded)
- the cartridge will obey the ROMDIS signal for every slot, so you can mask any ROM with an external interface.

A problem may happen if :
- you unintentionally knock at the C4CPC uC door (4 consecutive read in specific upper rom slot), and try to read/execute from a ROM within the cartridge
- the RAMDIS signal you send is too short and the C4CPC is corrupting the data you send. The ROMDIS sould be as long as the ROMEN, which is as long a the MREQn/RDn signal from the Z80 + the combinatorial delay.


Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 16:16, 11 June 16
Quote from: Duke on 16:11, 11 June 16
Is this with external power supply  connected to either M4 or MX4, or using internal power supply ? (just in case)
With external power supply connected to MX4.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 16:21, 11 June 16
To keep the X-MEM features, it should be fine to be able to set the M4 ROM range at 32-63.
So you not conflict and got 1MB ROM available. 8)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 16:28, 11 June 16

Ok, we have progress! Thanks to Toto I have now disabled the ROM part of the X-Mem and both devices are now plugged in and working as expected. Initially I had the M4 ROM disabled with ROM slot 15 populated with Maxam and it worked. I then enabled the M4 ROM and it continued to work.


Something odd is happening with my Mother X4 though as slot 1 doesn't always seen to work and I end up with a corrupted screen at start-up. After that I can often move things down by 1 slot so slot 1 is used and all if fine again!


Just out of curiosity, and I acknowledge you said to rule this out for the moment, I put the C4CPC back in but the same reboot loop occurred!


Thanks Duke and Toto for the suggestions. If we can now get the C4CPC to work it would be perfect!


Also just a quick note to say that the ROM upload doesn't work properly in Chrome. Even if you slot a particular ROM slot upload button it always puts it in slot 0! Had to switch to IE11 and it worked as expected.

Quote from: Duke on 14:45, 11 June 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
Thanks for the comprehensive tests.

It'll be hard for me to debug since I don't have C4CPC nor XMEM.
When M4 rom is disabled in config, all the running code is exactly the same on the M4 board(ie. you would still be able to use the rom board function) except it doesn't try to map the rom containg M4 z80 part (and thus not driving the datalines).
I'll have a think about your post.
If you have the time, it would be useful if you put a regular rom like maxam at ie. pos 14 on the M4 board (and no other rom at that pos in xmem) and disable the M4 rom itself.
Does it boot and will maxam work?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:55, 11 June 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
Excellent.
I will look into the chrome issue, I only tested with firefox myself.

I think with C4CPC, as far as I managed to understand with an image it will use roms 0-7, so if you try putting M4 after that it may work (although not ideally, but it would prove it's a rom clash with C4CPC).

@Dirtybb
Not sure what the problem is, since we now have two conflicting tests, what CPC you use for the test? (also a CPC+?)

and @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290)
I can easily move the rom range, but all cas_* hooks (for native file I/O) would be overwritten by AMSDOS/PARADOS if not lower, unless there is a method to disable rom 7 in XMEM. Heck I could do an RSX to install the hooks, but something else needs to do the rom walk for roms >7 >15.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 17:02, 11 June 16

Quote from: Duke on 16:55, 11 June 16I can easily move the rom range, but all cas_* hooks (for native file I/O) would be overwritten by AMSDOS/PARADOS if not lower, unless there is a method to disable rom 7 in XMEM.
The X-MEM is always disabled when ROM7 is set. (physicaly used for the alternate FW)
But, you should install a ROM into the X-MEM lower range for doing your CAS_* hooks, ... (lost one and won 32)
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 17:07, 11 June 16
Quote from: Duke on 16:55, 11 June 16

@Dirtybb
Not sure what the problem is, since we now have two conflicting tests, what CPC you use for the test? (also a CPC+?)

CPC 6128 Old
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:38, 11 June 16
@gerald (http://www.cpcwiki.eu/forum/index.php?action=profile;u=250)
Thanks for this very useful post (I missed it earlier).

I'll take the things into consideration and probably make some config changes for users of C4CPC and XMEM, if people want to use it all at the same time.


Quote from: gerald on 16:15, 11 June 16
The XMEM (like most oster ROM extension), when connected will drive the bus during access to ROM in they slot range.
ROM access is indicated by ROMEN low and the ROM selection in range 1-6,8-31 (0-6,8-31 in boot mode to override the basic/system ones)
This will happen whatever the content of the ROM is, be it 'empty' or valid.
So when using the M4 with an XMEM the only available slots are slot 7(that you cannot override on a 6128), and slot after 32(not initialised).

The only way to make this work would be :
- remove the ROM device from the xmem so it cannot drive the data bus and create a data contention. The xmem will be act as a RAM extension only.
- or use a MotherX4 like card that chain the ROMEN/ROMDIS so the order of the connector decide the priority of the ROM extension.



About C4CPC and plus ROM mapping  :
- after booting, the C4CPC will behave like a regular cartridge, unless you knock at the uC door via strict order reading within the ROM.
- 32 ROM in a cartridge are mapped from upper ROM slot 128 to slot 160, with slot 128 mirrored as lower ROM, slot 129 as upper ROM 0 and slot 130 as upper slot 7 (or 0, if EXT signal is grounded)
- the cartridge will obey the ROMDIS signal for every slot, so you can mask any ROM with an external interface.

A problem may happen if :
- you unintentionally knock at the C4CPC uC door (4 consecutive read in specific upper rom slot), and try to read/execute from a ROM within the cartridge
- the RAMDIS signal you send is too short and the C4CPC is corrupting the data you send. The ROMDIS sould be as long as the ROMEN, which is as long a the MREQn/RDn signal from the Z80 + the combinatorial delay.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:39, 11 June 16
Yes, thanks. I will try to figure something out, now I know the issues :)

Quote from: TotO on 17:02, 11 June 16
The X-MEM is always disabled when ROM7 is set. (physicaly used for the alternate FW)
But, you should install a ROM into the X-MEM lower range for doing your CAS_* hooks, ... (lost one and won 32)
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 23:29, 11 June 16
I was doing some tests with my Plus as well  :) First, the good news: I have the board inserted in a MX4 with X-MEM, X-MASS and Albireo and with my current PSU everything works fine  (I am powering both the computer and the MX4). The other good news is that if I use one of these carts that have the Basic 1.1 and ParaDOS 1.1 (it came with the computer) the board is detected and works well. As discussed in before, when using the C4CPC I do not manage to have it detected. However, power-wise I have no problems at all  :D

P.D: I forgot to tell that, when it works, you obviously lose ParaDOS...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:15, 12 June 16
@||C|-|E|| (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1447)

You have plenty of mass storage on that computer :)  and yes M4 will not work together with other dos roms currently.


Update v1.0.3 (beta maybe, I have not put it online for |upgrade yet, I would appreciate if someone other than me, tests it).

- Romboard part now supports 32 roms.
- You can set romboard start position. Ie. set it 32 and all roms starts from 32, ie. romslot 0 becomes 32, romslot 1 33 etc..
- M4Rom can be set to any rom in position 1-127 (effectively it's now a 33 rom slots )
- Possible fix for C4CPC and X-MEM.

Important before upgrading.
Delete your romconfig.bin and romslots.bin from M4 directory. Keep your config.txt though.

Download:
http://www.spinpoint.org/cpc/M4FIRM_v103.zip (http://www.spinpoint.org/cpc/M4FIRM_v103.zip)   (unpack both files to root of microSD, as both M4 and ESP needs to be upgraded).

When moving M4rom out of position 1-7 / 1-16 it will no longer be initialized, therefore I made a M4 bootrom, which should be placed at rom7 or lower.
This is if you want to use 32 roms of XMEM and map M4 romboard after it. You should program the XMEM or other romboard with M4 bootrom in pos 1-7, it will look for M4 rom from 1-127 and initialize it + pass commands through to it.
Download:
http://www.spinpoint.org/cpc/m4boot.zip (http://www.spinpoint.org/cpc/m4boot.zip)



Title: Amstrad CPC WiFi
Post by: Maniac on 19:31, 12 June 16
I'll try and test this later but I have limited time today due to real life otherwise will take a look tomorrow after work! Thanks for your continued efforts to make it as compatible as possible.

One nice feature I'd quite like to see in the web interface would be the ability to enable/disable ROM slots. Would that be possible please?
Title: Re: Amstrad CPC WiFi
Post by: SRS on 20:28, 12 June 16
Now just speculating:

could this board be used as mega-copro ? calculation sprites/grafix/mandelbrot and giving cpc access to the results ? If, how so ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:44, 12 June 16
It's fully possible, but at this point only I can add commands to the cortex m4 side, but say you wanted some command to do a specific calculation I could add it.
Just give it to me in ARM assembler or C code :)

Quote from: SRS on 20:28, 12 June 16
Now just speculating:

could this board be used as mega-copro ? calculation sprites/grafix/mandelbrot and giving cpc access to the results ? If, how so ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:46, 12 June 16
Thanks Maniac, I appreciate your testing.
And yes it's possible to add a checkbox enable/disable next to each rom, maybe not on top of the list, but a fairly trivial implementation.

Quote from: Maniac on 19:31, 12 June 16
I'll try and test this later but I have limited time today due to real life otherwise will take a look tomorrow after work! Thanks for your continued efforts to make it as compatible as possible.

One nice feature I'd quite like to see in the web interface would be the ability to enable/disable ROM slots. Would that be possible please?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:57, 12 June 16
Also about latest upgrade v1.0.3.
To use roms 8-32 or 16-32 (if mapped at range 0-31) as they will not be initialized by the system, which only initializes 0-7 on cpc464 and 0-15 on cpc664/6128.
There is a booster rom which you can add in the initialized roms (0-7 or 0-15), which will initialize roms 16-32.
For roms above area 0-31 I don't know of any software enabling this for normal system initialization (it may exist?).
You would have to write your own code to make use roms 32+.
Normal rom select will obviously work (sending rom number to 0xDF00 and enabling upper rom in the GA with something like 0x7F86).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:09, 12 June 16
If there's really intest for something like this, I figure a ARM code upload function and execute would be the way to go.
Quote from: Duke on 20:44, 12 June 16
It's fully possible, but at this point only I can add commands to the cortex m4 side, but say you wanted some command to do a specific calculation I could add it.
Just give it to me in ARM assembler or C code :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:43, 12 June 16

Duke, you are a genius!


I've now tested the M4 with both the X-Mem with ROM support enabled and the C4CPC and all works as expected! Works like a dream!


In this config I can easily switch between the SD Card in the M4 and using ParaDOS with floppies/HxC using the |M4ROMOFF command. You just need to be careful with ROM slot numbers like this as they obviously clash but will need more time to work out the best config.


Thank you for sorting this out.


I'm afraid that the ROM slot bug for uploading ROM images still stands though but that's minor!

Quote from: Duke on 17:15, 12 June 16
@||C|-|E|| (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1447)

You have plenty of mass storage on that computer :)  and yes M4 will not work together with other dos roms currently.


Update v1.0.3 (beta maybe, I have not put it online for |upgrade yet, I would appreciate if someone other than me, tests it).

- Romboard part now supports 32 roms.
- You can set romboard start position. Ie. set it 32 and all roms starts from 32, ie. romslot 0 becomes 32, romslot 1 33 etc..
- M4Rom can be set to any rom in position 1-127 (effectively it's now a 33 rom slots )
- Possible fix for C4CPC and X-MEM.

Important before upgrading.
Delete your romconfig.bin and romslots.bin from M4 directory. Keep your config.txt though.

Download:
http://www.spinpoint.org/cpc/M4FIRM_v103.zip (http://www.spinpoint.org/cpc/M4FIRM_v103.zip)   (unpack both files to root of microSD, as both M4 and ESP needs to be upgraded).

When moving M4rom out of position 1-7 / 1-16 it will no longer be initialized, therefore I made a M4 bootrom, which should be placed at rom7 or lower.
This is if you want to use 32 roms of XMEM and map M4 romboard after it. You should program the XMEM or other romboard with M4 bootrom in pos 1-7, it will look for M4 rom from 1-127 and initialize it + pass commands through to it.
Download:
http://www.spinpoint.org/cpc/m4boot.zip (http://www.spinpoint.org/cpc/m4boot.zip)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:40, 13 June 16
Quote from: Duke on 21:09, 12 June 16
If there's really intest for something like this, I figure a ARM code upload function and execute would be the way to go.

I'd be very cautious about how you implement something like this. It would be too easy for the user to brick his device if it's not done properly.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:14, 13 June 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
That's good news. Thanks a lot for running the tests.
- And yes I haven't looked at the chrome issue yet, so please all use firefox or whatever else for now :)

@Bryce (http://www.cpcwiki.eu/forum/index.php?action=profile;u=225)
Good point, I didn't think about that. The device itself contains a write protected bootloader (can only be removed via jtag/swd) so it should always be able to recover from microSD. But signals could be affected in a crash.

EDIT: Don't think anything fatal will happen or it probably would have happened to me already...
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 11:36, 13 June 16
Yes, but the more low level access you give to the end user, the more endless support you're going to have to deal with.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:44, 13 June 16
Quote from: Bryce on 11:36, 13 June 16
Yes, but the more low level access you give to the end user, the more endless support you're going to have to deal with.

Bryce.


That should be left to the user. Why to take away potential features of a device? That's like to kick the spare wheel out of a car (or the turbo loader in this case). If somebody screws up then it's their problem, and with a protected loader it can't be that bad - just switch it on and off.  :)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 20:17, 13 June 16
Quote from: TFM on 16:44, 13 June 16

That should be left to the user. Why to take away potential features of a device? That's like to kick the spare wheel out of a car (or the turbo loader in this case). If somebody screws up then it's their problem, and with a protected loader it can't be that bad - just switch it on and off.  :)

It's not that simple. The bootloader will only reload the source code from a correctly named file on a correctly formatted SD card. It's not just a simple turn it off and on. And believe me, the easier you make it possible for a user to break, the more support you need to give. This isn't a "leaving out the spare wheel", it's closer to "Let the owner decide the cylinder timing".

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:55, 13 June 16
Bryce does have a point, I really don't like the "endless support" thing :)
There's many other things to be added/fixed/improved before I decide if this goes in anyway.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 21:14, 13 June 16
But who would actually use such an option? 2 or 3 guys here. Anybody else waits for somebody else doing software for new hardware. Just think how much guys did actually so something for cards like CPC Booster, MegaFlash (and clones), PlayCity or Albireo. That was ... very very few. So imho there is no such an endless support thing. But ok, talked enough, back to topic.  :)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 21:16, 13 June 16
It's not the intentional ones I'd be worried about, it's the ones that do it by mistake because it's possible.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 22:06, 13 June 16
Murphys law... will strike anyway.  ;)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:54, 14 June 16
You can keep Murphy to a minimum by restricting what the user can do.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 15:21, 14 June 16
Quote from: Bryce on 07:54, 14 June 16
You can keep Murphy to a minimum by restricting what the user can do.

Bryce.


Hmm... such a restricted system isn't of interest any longer for creative people.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:28, 15 June 16
Quote from: TFM on 15:21, 14 June 16

Hmm... such a restricted system isn't of interest any longer for creative people.

I didn't know that you're a proficient ARM Cortex M4 programmer. If that's the case, then you can easily bypass the restrictions with your JTAG Programmer anyway.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 10:57, 15 June 16
Hi Duke?
Are you already sending the boards?
I was in the initial list of interested people. How I should pay you the board for you to send it to me? Is there any website (this forum thread expands very fast and I have no time to check every comment sorry...)
Thank you and congratulations for your achievement!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:19, 15 June 16
Yes, I have shipped about 11-12 now, I am unfortunately now again waiting for some components to arrive (they are in the hands of the customs for 10 days now!). Hopefully I get the critical packet friday so I can do a big pile during the weekend.
Check out page 1 of this thread: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/)
There is a link to the list, I think you are ~44 on it.
Once your board is ready I will send you a pm with payment details and ask for your shipping address.
I can see you have not choosen connector, please let me know which you want (it helps the process if I dont have to contact people first asking for that). Options in first post too.

Quote from: jomicamp on 10:57, 15 June 16
Hi Duke?
Are you already sending the boards?
I was in the initial list of interested people. How I should pay you the board for you to send it to me? Is there any website (this forum thread expands very fast and I have no time to check every comment sorry...)
Thank you and congratulations for your achievement!
Title: Re: Amstrad CPC WiFi
Post by: 1024MAK on 12:02, 15 June 16
Quote from: Bryce on 08:28, 15 June 16
I didn't know that you're a proficient ARM Cortex M4 programmer. If that's the case, then you can easily bypass the restrictions with your JTAG Programmer anyway.
Whoa! :o  JTAG is one of the drinking game words :laugh:
Darn, just when I don't have a pint handy >:(

Mark
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 12:28, 15 June 16
Quote from: 1024MAK on 12:02, 15 June 16
Whoa! :o  JTAG is one of the drinking game words :laugh:
Darn, just when I don't have a pint handy >:(

Mark

I'll drink to that![nb]or to anything in fact :)[/nb]

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:42, 15 June 16
Quote from: Bryce on 08:28, 15 June 16
I didn't know that you're a proficient ARM Cortex M4 programmer. If that's the case, then you can easily bypass the restrictions with your JTAG Programmer anyway.
Bryce.

There is a lot you don't know about me. I'm an Atmel programmer too (see CPC Booster f.e.). But I don't have a JTAG programmer.[nb]There is nice software for PC to target all this systems, and if the hardware has an 'update' function, then no need to buy hardware like an expensive JTAG programmer. Have you ever heart of Ponyprog for ATMega16/32? Did you know that you can use the next higher MPU in CPC Booster easily and have double ROM?[/nb]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:40, 15 June 16
Fwiw. you can simply place "upgrade" files on microSD.
The write protected bootloader I mentioned earlier is my own. It will load and flash the upgrades to Cortex M4 flashram and to the ESP8266 spiflash from microSD (fat32) on powerup.
Personally I use the cpcxfer program I put on github which is much quicker than using jtag or swd and if the wifi crashes you put it on microsd manually (or get a cheap st-link clone).
xfer -u 10.0.0.37 (http://10.0.0.37) M4FIRM.BIN / 0 (upload firmware)
xfer -r 10.0.0.37 (http://10.0.0.37) (reset M4 and reload it)

There is many other uses for this board if someone feels like it and want to explore it, I am limited by the choice of doing romboard emulation and few I/O ports, which requires very precise timing and litterally counting instruction clock cycles, when edges are triggered.
Should it be used as a proper accelerater for the CPC itself, instead of rom emulation, you'd do ram emulation and manipulation. Which I believe is possible in similar way to rom emulation.

I have not protected anything (which would have been super easy) and everything is in plain text so any uses are obviously welcome (on own risk etc). and if someone wants to know how the gpio is configured (which is all you need to know) just pm me.

Quote from: TFM on 16:42, 15 June 16
There is a lot you don't know about me. I'm an Atmel programmer too (see CPC Booster f.e.). But I don't have a JTAG programmer.[nb]There is nice software for PC to target all this systems, and if the hardware has an 'update' function, then no need to buy hardware like an expensive JTAG programmer. Have you ever heart of Ponyprog for ATMega16/32? Did you know that you can use the next higher MPU in CPC Booster easily and have double ROM?[/nb]
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 20:46, 15 June 16
Quote from: TFM on 16:42, 15 June 16
There is a lot you don't know about me. I'm an Atmel programmer too (see CPC Booster f.e.). But I don't have a JTAG programmer.[nb]There is nice software for PC to target all this systems, and if the hardware has an 'update' function, then no need to buy hardware like an expensive JTAG programmer. Have you ever heart of Ponyprog for ATMega16/32? Did you know that you can use the next higher MPU in CPC Booster easily and have double ROM?[/nb]

PonyProg is a serial programmer for AVR and PICs, you can't program JTAG devices with it.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:03, 15 June 16
However you can get a st-link clone with SWD (single wire debug) which is designed for the STM mcu's for about $5 from ebay, it's well worth the money. I have had a few occasions where I could only unlock the mcu with jtag (and probably I could have done it with st-link too, with the right the right settings). The upper pinheader which is not mounted (but available) on the board, provides signals for both jtag and swd (all labelled).
Quote from: Bryce on 20:46, 15 June 16
PonyProg is a serial programmer for AVR and PICs, you can't program JTAG devices with it.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 21:10, 15 June 16
I have an original Xilinx and a Segger programmer to cover most JTAG jobs. I've seen there's an Arduino based solution too knocking about, but I haven't tried it.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 21:25, 15 June 16
Quote from: Bryce on 20:46, 15 June 16
PonyProg is a serial programmer for AVR and PICs, you can't program JTAG devices with it.

Bryce.


I mentioned in context to AVR.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 21:41, 15 June 16
I know, but we had been talking about ARM programming.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:08, 15 June 16
Segger J-Link is fine, that's what I use too. The ST-Link is based on a STM8 and their custom SWD/SWIM protocol (sorta save money buying a fully fledged jtag, and it actually works better most the time).
Quote from: Bryce on 21:10, 15 June 16
I have an original Xilinx and a Segger programmer to cover most JTAG jobs. I've seen there's an Arduino based solution too knocking about, but I haven't tried it.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 22:24, 15 June 16
Yeah, I find I use the Segger much more than the Xilinx. Even for Xilinx stuff.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 10:54, 17 June 16
Last night I found something curious when the board is plugged. Somehow, it seems to be messing with the HXC loader  :) . So, the story is as follows: if you I have the HXC connected and you use its buttons to navigate, access the folders, etc. everything works well, including disc loading. However, if you decide to use the loader from the Amstrad, as soon as you execute RUN"HXC the thing stops working. The computer seems to freeze and sometimes a random pattern appears on the screen. Actually, I was not even able to make a CAT. However, when unplugging the board everything works well. I am using it with the MX4, just in case it is of interest, and the computer is a 6128 Plus with the C4CPC :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:02, 17 June 16
Strange :)
I assume you M4 ROM after amsdos, I guess to use HXC amsdos need to be present?
If you do a |m4romoff before running the loader, does it work then?
If not can you give me a link to the HXC loader file (maybe I can try it here even without the HXC).

Thanks for the feedback.

Quote from: ||C|-|E|| on 10:54, 17 June 16
Last night I found something curious when the board is plugged. Somehow, it seems to be messing with the HXC loader  :) . So, the story is as follows: if you I have the HXC connected and you use its buttons to navigate, access the folders, etc. everything works well, including disc loading. However, if you decide to use the loader from the Amstrad, as soon as you execute RUN"HXC the thing stops working. The computer seems to freeze and sometimes a random pattern appears on the screen. Actually, I was not even able to make a CAT. However, when unplugging the board everything works well. I am using it with the MX4, just in case it is of interest, and the computer is a 6128 Plus with the C4CPC :)
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 12:18, 17 June 16
Here is the file, this is probably the fastest way to test it :)

[attachurl=2]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:33, 18 June 16
Thanks for the files ||C|-|E||.

I will check up on it later (busy with board assembly). Btw. if you are using m4bootrom, |m4romoff, doesn't really work (or in a sense that amsdos/parados will not work too). This is something I will need to fix too.
Maybe that's the issue you have run into.
--------------

Some progress  8)

Title: Re: Amstrad CPC WiFi
Post by: Maniac on 13:53, 18 June 16
Having tried out the DSK mounting via the M4 I tried to mount an image I made of a ROMDOS D20 format disk. The mount worked and when I listed the directory it also looked good. However when I tried to load or run anything I just got a 'Direct command issued' or similar error back. Is this expected? How do you mount the DSK images? Do you read the format info from them please?


Sorry I don't know too much about how the DSK format works other than I know these images work in WinApe.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:18, 18 June 16
.dsk files are mounted with |cd command.
It may not support all formats yet, I tested the most used (plain system & data format single sided) that I could download.
If your .dsk is double sided that may be the issue. I'd appreciete if you email me the .dsk file, then I can take a look when I get time and fix it.

Quote from: Maniac on 13:53, 18 June 16
Having tried out the DSK mounting via the M4 I tried to mount an image I made of a ROMDOS D20 format disk. The mount worked and when I listed the directory it also looked good. However when I tried to load or run anything I just got a 'Direct command issued' or similar error back. Is this expected? How do you mount the DSK images? Do you read the format info from them please?


Sorry I don't know too much about how the DSK format works other than I know these images work in WinApe.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:08, 20 June 16
Messing a bit around with the rom board emulation code, M4 board can now replace lower rom too.

That is very useful, atleast if you don't have a lowerrom board already.
It means that you can ie. upgrade 464 to Basic 1.1.
It also means I can add a patch to the lower rom so that initializing AMSDOS via firmware would instead initialize M4 rom even if not mounted at pos. 7 (as not all CPC6128's can do this). Giving much better compatiblity.

I wil probably sacrifice rom slot 31 for lower-rom replacement, it's still  a wip, I need to see if I can fit code to "enable/disable" it, but hopefully in next firmware upgrade.

Below CPC6128+ with regular CPC6128 lowerrom and Basic, same with the Schneider CPC464.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:03, 26 June 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I received the Board, but when i plug it on the CPC, nothing happens...

[Edit]

just used an external power supply and adjust the data cable, all works now!!!!!

Thanks for this piece of hardware!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:36, 27 June 16
Glad you got it working.

And yes to anyone else having received it/receiving it in the coming days, when using Mother X4 (MX4), you must use external power supply.
If using cable/connector directly to the CPC, it will work on the CPC power supply.

Quote from: Joseman on 23:03, 26 June 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I received the Board, but when i plug it on the CPC, nothing happens...

[Edit]

just used an external power supply and adjust the data cable, all works now!!!!!

Thanks for this piece of hardware!!
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 08:49, 28 June 16
The Board works fine ;)
I have uploaded FutureOS and SymbOS to Roms, but don't work Roms don't recogniced. Other Roms works.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:58, 28 June 16
Make sure there is no amsdos header on the roms before uploading (should be 16384 bytes in size). They should work, but been a while since I tried them.

Quote from: Rennert on 08:49, 28 June 16
The Board works fine ;)
I have uploaded FutureOS and SymbOS to Roms, but don't work Roms don't recogniced. Other Roms works.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 09:08, 28 June 16
Quote from: Duke on 08:58, 28 June 16
Make sure there is no amsdos header on the roms before uploading (should be 16384 bytes in size). They should work, but been a while since I tried them.


If one is present, is there a way by software to easily remove the AMSDOS Header of a ROM ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:13, 28 June 16
Just open it in a hex editor and remove the first 128 bytes. But maybe there is a tool somewhere already?

Quote from: dirtybb on 09:08, 28 June 16

If one is present, is there a way by software to easily remove the AMSDOS Header of a ROM ?
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 12:25, 28 June 16
Thx, i have removed the header of FutureOS and it works ;D
SymBOS A was uploaded on Rom6, this is for M4 board.

now all works ;)
Title: Re: Amstrad CPC WiFi
Post by: skywalky on 13:23, 28 June 16
I received mine. Thank you. Now I have to find time to test it  :(
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 16:23, 28 June 16
Mine arrived this morning. It will go straight into the justcpc 128k for some testing tonight ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:42, 28 June 16
Cool, that'll be a first - hope it's justcpc 128k compatible :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:37, 28 June 16
Quote from: Duke on 16:42, 28 June 16
Cool, that'll be a first - hope it's justcpc 128k compatible :)
It is compatible, And it is F'KING awesome. Oh My God this board is amazing


On the Just CPC, No external power needed for the M4, No floppy drive installed and it works straight away. I love it :)


Thank you for making this awesomeness a reality :)


Craig

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:13, 28 June 16
Quote from: CraigsBar on 20:37, 28 June 16
It is compatible, And it is F'KING awesome. Oh My God this board is amazing


On the Just CPC, No external power needed for the M4, No floppy drive installed and it works straight away. I love it :)


Thank you for making this awesomeness a reality :)


Craig
(http://uploads.tapatalk-cdn.com/20160628/ebd5764e20c5ddf8cfdd97564412b46e.jpg)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:42, 29 June 16
@Duke how many boards have been made and shipped? It would be amazing to see some SD card based software to run on this board. My initial suggestions are below!

Irc client
Ftp client
Ssh client
Text mode web browser

I guess they should be possible. Less likely are the ones listed below

Graphical browser
Ssh server
Email client (SSL might be pushing it)

anyone fancy volunteering to create these? In amsdos, futureos or symbos these would be amazing.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:35, 29 June 16
About 45 or so out of 86, people can keep track of the progress, in the first post here: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/)

Of the below only webbrowser is possible right now, I am still to add functions so that you can make your own connection (it'll come...).

Quote from: CraigsBar on 11:42, 29 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) how many boards have been made and shipped? It would be amazing to see some SD card based software to run on this board. My initial suggestions are below!

Irc client
Ftp client
Ssh client
Text mode web browser

I guess they should be possible. Less likely are the ones listed below

Graphical browser
Ssh server
Email client (SSL might be pushing it)

anyone fancy volunteering to create these? In amsdos, futureos or symbos these would be amazing.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 13:51, 29 June 16
Quote from: Duke on 12:35, 29 June 16
people can keep track of the progress, in the first post here: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/)
What about a live webcam of your factory, to see the progress of the work?  ;D :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 14:11, 29 June 16
Here's a sneak-peek of Dukes basement....



:D

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:36, 29 June 16
You'd be bored to death, that's how slow it goes... :)
Quote from: SOS on 13:51, 29 June 16
What about a live webcam of your factory, to see the progress of the work?  ;D :laugh:
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 16:26, 29 June 16
Quote from: Duke on 14:36, 29 June 16
You'd be bored to death, that's how slow it goes... :)
*that* I don't believe. A card that sprang from nothing to a fully working WiFi and microsd solution in one step, with further promises to come is awesome. |httpget is a brilliant feature BTW, I love it.

Craig
Title: Re: Amstrad CPC WiFi
Post by: SRS on 21:46, 29 June 16
S, community:  where are the websites with free HTTPGET pictures, programs, sounds, demos - directly to cpc ...  :D
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:32, 29 June 16
OK So I do have one question.....


I am sure I read somewhere that the M4 board supported Lower Rom replacement too. Ad if so then this would allow FW 3.15 to be installed.


Is this true or did I dream it?


If I did not dream it, then how do I activate this feature. If not then could it be a feature request to add the Lower Rom to the functionality?


Craig

Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 22:33, 29 June 16
Quote from: SRS on 21:46, 29 June 16
S, community:  where are the websites with free HTTPGET pictures, programs, sounds, demos - directly to cpc ...  :D

Hi,

Perhaps @hERMOL (http://www.cpcwiki.eu/forum/index.php?action=profile;u=45)  from CPC Rulez can help for that.
He did a great software using TotO's Minibooster, called RULEZ!CHARGE

Envoyé de mon iPhone en utilisant Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 01:12, 30 June 16
Hi Duke,

It seems this board is fast becoming the de-facto standard for CPC internet support and some other things like FAT filesystem/DSK support. I have one major concern. Perhaps it's just my misunderstanding, but all the commands seem to return results immediately, including HTTPGET (which is impossible). The ROM simply sends the command then reads the data. Obviously, the data isn't available straight away, and there's no code in the ROM to wait for a response, so how do you force the Z80 to stop and wait. Could it get stuck waiting forever? Are interrupts available while it's waiting? Is the CPC internal RAM refresh still happening as it should be?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:37, 30 June 16
@Executioner (http://www.cpcwiki.eu/forum/index.php?action=profile;u=17)
How it works is that once a byte is written to port 0xFC00, the M4 will issue a BUSRQ and effectively the z80 will be "stopped" while the M4 processes the command.
Once processed and responses are written, control is let back to the z80.
It could get stuck, if the M4 code crashes (which it shouldn't of course!).
Most responses should be so fast that it's hardly noticeable, but of course doing realtime effects and downloading / doing sd I/O etc, could result in glitches.
If it turns out to be a problem in some way, it could be re-designed to pull a port on the z80 while waiting for it to be processed. Reason for the BUSRQ, is that it cannot maintain romboard emulation while the MCU is doing heavier tasks, so the wait code would then need to be placed in RAM.
As it is though I think it works pretty good atleast for all the basic operations it does now.

Quote from: Executioner on 01:12, 30 June 16
Hi Duke,

It seems this board is fast becoming the de-facto standard for CPC internet support and some other things like FAT filesystem/DSK support. I have one major concern. Perhaps it's just my misunderstanding, but all the commands seem to return results immediately, including HTTPGET (which is impossible). The ROM simply sends the command then reads the data. Obviously, the data isn't available straight away, and there's no code in the ROM to wait for a response, so how do you force the Z80 to stop and wait. Could it get stuck waiting forever? Are interrupts available while it's waiting? Is the CPC internal RAM refresh still happening as it should be?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:40, 30 June 16
You read right, but it's not ready yet. Next upgrade :)  - I am not sure what FW 3.15 does, but I think it's designed for XMEM?
Quote from: CraigsBar on 22:32, 29 June 16
OK So I do have one question.....


I am sure I read somewhere that the M4 board supported Lower Rom replacement too. Ad if so then this would allow FW 3.15 to be installed.


Is this true or did I dream it?


If I did not dream it, then how do I activate this feature. If not then could it be a feature request to add the Lower Rom to the functionality?


Craig
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 05:44, 30 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Do you have a link to an "Idiots Guide" for the M4 and the amstrad CPC Please.
I have seen the Video. Brilliant.


Thanks   Ray
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:27, 30 June 16
@Audronic (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1169)

There is this, that explains the commands/basics:
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

If anything unclear just ask :)
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 06:39, 30 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Thanks.
I had not seen that before.


Ray
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 08:43, 30 June 16
Quote from: Duke on 05:40, 30 June 16
You read right, but it's not ready yet. Next upgrade :)  - I am not sure what FW 3.15 does, but I think it's designed for XMEM?
It's a lower ROM replacement with many added features. It's not just for the xmem, but works with any method or replacing the lower ROM. I have it burned into a plus cart, on a single lower ROM board and in my xmem.
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 12:49, 30 June 16
Quote from: Duke on 05:37, 30 June 16
How it works is that once a byte is written to port 0xFC00, the M4 will issue a BUSRQ and effectively the z80 will be "stopped" while the M4 processes the command.

Well, a HTTPGET for example could easily take seconds to execute. If the BUSRQ is held for that time the Z80 won't be able to do anything else at all? Does this also affect the Gate Array access to the bus for display data?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:08, 30 June 16
That's correct. Afaik. gate array and CTRC are unaffected by the BUSRQ, but you probably know this better than me.
Quote from: Executioner on 12:49, 30 June 16
Well, a HTTPGET for example could easily take seconds to execute. If the BUSRQ is held for that time the Z80 won't be able to do anything else at all? Does this also affect the Gate Array access to the bus for display data?
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 13:20, 30 June 16
I think the Gate Array has direct overriding access to the first 64K of RAM and will exclude the Z80 and anything else external from using it. The CRTC should generate it's signals so long as it has a clock input, so the display should be safe. I didn't realise the M4 actually needed to be active for the ROM to be available to the Z80 (single core being used for other stuff?) as there's very little extra logic on the board itself, meaning even if the M4 board could do it's own thing without stopping the Z80, you'd need another ROM board if you're running stuff from ROM. Just how fast is the M4, and would there be any way to interleave the network/SD and Z80 ROM access? I'm not sure it's a huge problem as like uPD765 floppy access you can't really do anything else at the time on the CPC.
Title: Re: Amstrad CPC WiFi
Post by: dvallet on 13:26, 30 June 16
hello
i-m interested in one mx4 board with edge connector for cpc 6128 standard.
how add me to the list
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:32, 30 June 16
The STM M4 is single core @ at 168MHz, most instructions are 1 or 2 clocks (LPC does have some cool ones with both M0 and M4, which would have been ideal I think).
It constantly has to monitor the CPC bus and be ready to respond with very preciese timing.

There is of course workaround to this method. As placing a pull function (read a port and expect a certain value) in ram to see if the M4 is done with its work. As long as external roms aren't used during that period.
But as you said it probably isn't a huge problem atleast not as long as the tasks are downloading/reading/writing data.

If it was to be used as an accellerator for the CPC, I think best method, would be to do CPC RAM emulation on the M4, then you could provide some nasty fast blitter like routines etc :)

Quote from: Executioner on 13:20, 30 June 16
I think the Gate Array has direct overriding access to the first 64K of RAM and will exclude the Z80 and anything else external from using it. The CRTC should generate it's signals so long as it has a clock input, so the display should be safe. I didn't realise the M4 actually needed to be active for the ROM to be available to the Z80 (single core being used for other stuff?) as there's very little extra logic on the board itself, meaning even if the M4 board could do it's own thing without stopping the Z80, you'd need another ROM board if you're running stuff from ROM. Just how fast is the M4, and would there be any way to interleave the network/SD and Z80 ROM access? I'm not sure it's a huge problem as like uPD765 floppy access you can't really do anything else at the time on the CPC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:34, 30 June 16
Send me a pm with your email address, then you will be added to the list :)
Quote from: dvallet on 13:26, 30 June 16
hello
i-m interested in one mx4 board with edge connector for cpc 6128 standard.
how add me to the list
Title: Re: Amstrad CPC WiFi
Post by: TotO on 13:40, 30 June 16
Quote from: Duke on 13:32, 30 June 16If it was to be used as an accellerator for the CPC, I think best method, would be to do CPC RAM emulation on the M4, then you could provide some nasty fast blitter like routines etc :)
The question is not new and always the same: When the CPC is no more a CPC?
Taking control over the Z80 with a MCU (your ARM, Arduino, ...) allow everything. The CPC is finally a simple terminal to input and display.  ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:42, 30 June 16
I completely agree. I prefer the CPC to be the CPC and have some easy methods to external data :)
Quote from: TotO on 13:40, 30 June 16
The question is not new and always the same: When the CPC is no more a CPC?
Taking control over the Z80 with a MCU (your ARM, Arduino, ...) allow everything. The CPC is finally a simple terminal to input and display.  ;)
Title: Re: Amstrad CPC WiFi
Post by: TotO on 13:53, 30 June 16
Quote from: Duke on 13:42, 30 June 16I completely agree. I prefer the CPC to be the CPC and have some easy methods to external data :)
By the way, a blitter is from my point of view the more logical improvement into a "CPC 2" design.
The strange choice made by Amstrad for the PLUS range of computer was dicted by the GX4000 requirements.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:20, 30 June 16
Quote from: Duke on 13:32, 30 June 16
If it was to be used as an accellerator for the CPC, I think best method, would be to do CPC RAM emulation on the M4, then you could provide some nasty fast blitter like routines etc :)


Well, since the CRTC can only access the first internal 64 KB of RAM it would limit additional features.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 16:22, 30 June 16
Quote from: TFM on 16:20, 30 June 16Well, since the CRTC can only access the first internal 64 KB of RAM it would limit additional features.
I don't know any 8-bit system with 64K VRAM.  ;D
Title: Re: Amstrad CPC WiFi
Post by: gerald on 17:36, 30 June 16
Quote from: Duke on 13:08, 30 June 16
That's correct. Afaik. gate array and CTRC are unaffected by the BUSRQ, but you probably know this better than me.
BUSRQ will just make the Z80 to release the BUS : ADDR/DATA/IORQn/RDn/WRn/M1n will be floating (there is a probability that these signal goes high by themselves thanks to the TTL input their are connected to, but this is not granted)
The video processing (CRTC/GA) is fully autonomous, and do not rely on the Z80 at all, but if you do not drive at least the MREQn/IORQn signal high when the bus is granted, you risk some random access to the RAM due to floating signal.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:52, 30 June 16
Makes sense, thanks.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 19:02, 30 June 16
Quote from: TotO on 16:22, 30 June 16
I don't know any 8-bit system with 64K VRAM.  ;D


Me neither, the PcW got 128 KB.  ;)
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 21:30, 30 June 16
plugged into 6128 fired up card came on now I need an Dummys Guide to getting wireless working with a CPC
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:48, 30 June 16
Type
|netset,"ssid=routerssid, pw=routerpassword, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4, name=CPC"

(replace routerssid and routerpassword with the ones for your wifi).

Then write:
|netstat
Hopefully you get an IP or an error code.

Detailed instructions on netset command here: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Quote from: dcdrac on 21:30, 30 June 16
plugged into 6128 fired up card came on now I need an Dummys Guide to getting wireless working with a CPC
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 21:26, 01 July 16
I guess take out the " " and commas?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 21:51, 01 July 16
Nop, you have to type it exactly like that and replace routerssid and routerpassword with your routers's ssid and password.


For example, if your wifi's name is WLAN_DRAC and the password CPCwikiRules, the command should be typed like this:


|netset,"ssid=WLAN_DRAC, pw=CPCwikiRules, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4, name=CPC"
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 07:00, 02 July 16
Quote from: robcfg on 21:51, 01 July 16
Nop, you have to type it exactly like that and replace routerssid and routerpassword with your routers's ssid and password.

For example, if your wifi's name is WLAN_DRAC and the password CPCwikiRules, the command should be typed like this:

|netset,"ssid=WLAN_DRAC, pw=CPCwikiRules, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4, name=CPC"

And, if using a CPC464, put the string into a variable first.
a$="ssid=WLAN_DRAC, pw=CPCwikiRules, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4, name=CPC"
|netset,@a$
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 12:40, 02 July 16
That is correct, Sir! :D
Title: Re: Amstrad CPC WiFi
Post by: Kris on 17:54, 02 July 16
Juste received mine and it's simply amazing how fast it could be as soon as config to connect is done !
Really nice piece of hardware, thank you Duke !

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:28, 02 July 16
Little update on things:

57 boards assembled & ready (3 people needs to tell me what connector they need before 100% ready). 3 boards failed (on the shelf after too many hours of fault searching).

Now out of v2.0 pcb's and adapters. V2.1 boards been shipped from China (new batch of 50 pcb's, now blue and with removal of some unused pull ups and unused spi flash, same size, same stencil) should arrive mid next week along with 10 pcs new adapter pcb (bit more compact this time).
Estimated two more weekends to complete the remaning boards (31). Then I will be back to fix up the reported issues and some new featuers of the M4 rom.
Check the updated list in first post of this thread Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/) to see what position you have vs ready boards.


Title: Re: Amstrad CPC WiFi
Post by: radu14m on 13:43, 03 July 16
great mate !!!
can"t wait :)

let us know where and when to send you some money :)
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 14:01, 03 July 16
got netstat

unknown status 255
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:38, 03 July 16
Make sure the SSID is correct (case sensitive) and there is a WiFi signal where the CPC is located.
Quote from: dcdrac on 14:01, 03 July 16
got netstat

unknown status 255
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 17:40, 03 July 16
Quote from: dcdrac on 14:01, 03 July 16
got netstat

unknown status 255
My 2 do that too if for any reason they drop the network connection (seems to happen if in use chrome to manage the ROMs etc, Firefox and safari work better) but a simple restart of the CPC/M4 fixes the problems.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:38, 04 July 16
OK. Has anyone started to write software for this board yet? Below is my first effort!

10 CLS
20 locate 5,5:|time:goto 20

OK it's really simple, but does turn the CPC into an NTP synced clock ;)

No seriously, one for the real coder's.... How about a program that can be launched from the SD card, that will program the ROM slots on the m4 board directly from the CPC... @Duke is this possible? Maybe by sending the file to the same URL as the web interface? Or can it be programmed directly?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:40, 04 July 16
Yes its possible to make a program on the CPC to program the romslots (well still needing a reboot afterwards). Just modify the romslots.bin (32x16KB plain rom images) under m4 directory and the romconfig.bin. I pasted the struct earlier, but it has had a few additions:
romconfig.bin
int    totalRoms;  //32
int    m4RomNum;
int    m4RomEnable;
int    romRangeStart;    // start mapping roms from
unsigned int reserved[4];
and 32 x
char updateflag;    // 0 = not present (disabled), 1 = present, 2 = new rom (will change to 1 after reboot), 3 = delete rom (will change to 0 after reboot).
char    name[32]; // name displayed in webinterface

Quote from: CraigsBar on 00:38, 04 July 16
OK. Has anyone started to write software for this board yet? Below is my first effort!

10 CLS
20 locate 5,5:|time:goto 20

OK it's really simple, but does turn the CPC into an NTP synced clock ;)

No seriously, one for the real coder's.... How about a program that can be launched from the SD card, that will program the ROM slots on the m4 board directly from the CPC... @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) is this possible? Maybe by sending the file to the same URL as the web interface? Or can it be programmed directly?
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:09, 04 July 16
Quote from: CraigsBar on 00:38, 04 July 16
OK. Has anyone started to write software for this board yet? Below is my first effort!

10 CLS
20 locate 5,5:|time:goto 20

OK it's really simple, but does turn the CPC into an NTP synced clock ;)

No seriously, one for the real coder's.... How about a program that can be launched from the SD card, that will program the ROM slots on the m4 board directly from the CPC... @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) is this possible? Maybe by sending the file to the same URL as the web interface? Or can it be programmed directly?

Can you document that code with some "REMs" so that we can understand what's happening? :D

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:33, 04 July 16
Quote from: Bryce on 09:09, 04 July 16
Can you document that code with some "REMs" so that we can understand what's happening? :D

Bryce.
Teeheehee ;)
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 09:38, 04 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Was wondering how you access the 3" floppy that was |A.


I have had a look at the rsx's .
Or have i missed something ??


Thanks        Ray
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:51, 04 July 16
For now there is no way to access real floppy drives (unless using raw FDC functions) when M4rom is active before the disc rom.
If you want to use your floppy drives, type |m4romoff. It will last until you power off/on the CPC.

Quote from: Audronic on 09:38, 04 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Was wondering how you access the 3" floppy that was |A.


I have had a look at the rsx's .
Or have i missed something ??


Thanks        Ray
Title: Re: Amstrad CPC WiFi
Post by: madram on 11:39, 04 July 16
Congratulation for this board, what a neat design, and results look really great!

It kind of defeat the idea of "wiki board", nonetheless I've two questions:

* Can a Ethernet version be built?
* If not, can the WIFI be deactivated alltogether?

If either an answer is 'yes', I would like to order 2 of these cards (MX4).

Oh, and how does the M4 play with other RomBoard (e.g. X-MEM)?

Viva el Denmark.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 11:46, 04 July 16
You could manually disable the Wifi by putting a switch on the VCC pin of the ESP8266MOD (bottom pin furthest from the Antenna).

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:58, 04 July 16
Thanks.

If you don't set up the wifi (ie. no config.txt in m4 directory), it'll be inactive.
For now WiFi is required to upload roms to the board, unless someone makes a tool to do it from the CPC or I add a RSX command for it.

Ethernet version would require a new board/software, be more expensive and a lot more work for me to assemble, so I wont be making one :)
It can work with X-MEM, atleast some have tested it, it's possible to move the rom-range above 31 if you want both rom boards active, or disable romboard part of Xmem.

Let me know if still want them, then I'll add you to the list.

Quote from: madram on 11:39, 04 July 16
Congratulation for this board, what a neat design, and results look really great!

It kind of defeat the idea of "wiki board", nonetheless I've two questions:

* Can a Ethernet version be built?
* If not, can the WIFI be deactivated alltogether?

If either an answer is 'yes', I would like to order 2 of these cards (MX4).

Oh, and how does the M4 play with other RomBoard (e.g. X-MEM)?

Viva el Denmark.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:02, 04 July 16
Yeah that unfortunately won't work with current software, as the M4 talks with the ESP chip to check firmware version etc for possibly upgrading it on bootup (and it wont take no for answer), of course that could be changed in a firmware update :)
Quote from: Bryce on 11:46, 04 July 16
You could manually disable the Wifi by putting a switch on the VCC pin of the ESP8266MOD (bottom pin furthest from the Antenna).

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: madram on 12:13, 04 July 16
Yes sure I'll take 2 (MX4 connector) with topping if possible: the wifi switcher!

Thank you very much.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 14:14, 05 July 16
Quote from: CraigsBar on 11:42, 29 June 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) how many boards have been made and shipped? It would be amazing to see some SD card based software to run on this board. My initial suggestions are below!
Ssh client



I can only dream of the day when I'll be managing the wiki from my CPC... mind blowing.


Quote from: robcfg on 21:51, 01 July 16
For example, if your wifi's name is WLAN_DRAC and the password CPCwikiRules, the command should be typed like this:


Best. WiFi. Password.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 14:34, 05 July 16
 ;D
Title: Re: Amstrad CPC WiFi
Post by: hsimpson on 19:05, 06 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
Shipment arrived safely. Tests I will be doing over the weekend (lack of time).

Thanks a lot :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 19:29, 06 July 16
I received mine too some days ago, but haven't been able to try it out yet. Missing the cable, which I ordered from TotO, hopefully here soon.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:42, 08 July 16
Due to insomnia, here is a small update (beta for now) for M4 Board.
You can now replace lowerrom, meaning you can upgrade ie. CPC464 to Basic 1.1.

Download firmware v1.0.4:
http://www.spinpoint.org/cpc/M4FIRM_v104.zip (http://www.spinpoint.org/cpc/M4FIRM_v104.zip)

See screenshot below for usage (simply Enable lower-rom and pick a slot for it, where you upload the rom to).
Edit: A little temporary workaround if you experince browser crashing while uploading/removing roms. Go to Control first, press CPC Pause. Then go to Roms and upload/change things. When finished go back to Control and press M4 reset. And don't use Chrome yet.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:54, 08 July 16
Yippee, Yes I tested this and it works, My M4 now has FW3.15 and the fw 3.15 expansion Rom, both installed and working perfectly.


All I need now is a Standalone memory expansion for the JustCPC and it will be amzinf, Anyone fancy making a MX4 connected 512k expansion?


Craig

Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:09, 08 July 16
Good.
XMEM should be fine for 512k expansion no?

Quote from: CraigsBar on 11:54, 08 July 16
Yippee, Yes I tested this and it works, My M4 now has FW3.15 and the fw 3.15 expansion Rom, both installed and working perfectly.


All I need now is a Standalone memory expansion for the JustCPC and it will be amzinf, Anyone fancy making a MX4 connected 512k expansion?


Craig
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:17, 08 July 16
Yeah, but I want to move that to another CPC now that I have a lower romboard in the M4 ;)
Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 13:45, 08 July 16
Quote from: CraigsBar on 13:17, 08 July 16
Yeah, but I want to move that to another CPC now that I have a lower romboard in the M4 ;)

You can get an XS-MEM (I think that's the right name, might be Y-MEM). It's an X-MEM but without the ROM. Ask @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) , he made one for me a year or two ago. Price is a bit less than a full X-MEM IIRC
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:46, 08 July 16
That would do it just perfectly ;)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:07, 08 July 16
Quote from: Munchausen on 13:45, 08 July 16
You can get an XS-MEM (I think that's the right name, might be Y-MEM). It's an X-MEM but without the ROM. Ask @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) , he made one for me a year or two ago. Price is a bit less than a full X-MEM IIRC


No, a Y-MEM is the same like an X-MEM, but the ROMs are 32-63 (instead of 00-31) and the 512 KB RAM will be addressed using port &7Exx (instead of &7Fxx).


But one question form my side: How can I upload a ROM from the CPC side into the M4? (I would like to add that functionality to the ROManager).


A second question: Is there an "official" way of detecting if an M4 is connected to the CPC?

Title: Re: Amstrad CPC WiFi
Post by: Rennert on 19:34, 08 July 16
where can i download the FW 3.16?
i´ve see it, but don´t found anymore.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:50, 08 July 16
Use the fopen, fseek and fwrite commands to add a rom to m4/romslots.bin (offset = slot * &4000).
To parse just a block of a file you need to use FA_READ|FA_WRITE for fopen flags, then you can fseek into the file and just overwrite a block.
#define FA_READ            0x01
#define FA_WRITE            0x02
#define FA_CREATE_NEW        0x04

Then modify (read/overwrite) m4/romconfig.bin and set the corresponding updateflag to 2 (new rom).
Structure of romconfig.bin:
int    totalRoms; // 32
int    m4RomNum;  // M4 rom to map rom number 0-255
int    m4RomEnable; // M4 rom enabled
int    romRangeStart;    // start mapping roms from
int    lowerEnable; // lower rom replacement enabled
int    lowerSlot;   // which slot maps lowerrom (0-31)
unsigned int reserved[2]; // set to zero for now
then for each rom:
typedef struct
{
    char updateflag;    // 0 = no rom present (or disabled), 1 = rom present (enabled), 2 = New rom will be flashed into M4 internal flash, 3 = remove rom
    char    name[32];  // name of rom to be displayed in webinterface
} _romConfig[32];

I guess to check for M4 would be to issue one of the commands, ie. version command and check for a response or scan the roms for the rom name "M4 Board".

Quote from: TFM on 18:07, 08 July 16
But one question form my side: How can I upload a ROM from the CPC side into the M4? (I would like to add that functionality to the ROManager).


A second question: Is there an "official" way of detecting if an M4 is connected to the CPC?
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 19:52, 08 July 16
Quote from: Rennert on 19:34, 08 July 16
where can i download the FW 3.16?
i´ve see it, but don´t found anymore.


You will find it here :
GitHub - realmml/FW3.1x: A series of patches over the original Amstrad CPC (https://github.com/realmml/FW3.1x)



Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:59, 08 July 16
Deleted redundant, dirtybb found the proper location for fw3.16.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 21:24, 08 July 16
Thanks Duke! Doesn't look like Z80 code, but after reading twice I understood.  :)   :laugh:   :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:22, 09 July 16
Ok Further testing. This is genius!!


I have put Parados 1.2 in the physical Rom 7 in the JustCPC board.
Put M4Rom in Slot 7 fro the menu
Set Slot 7 as Lower Rom and put FW3.1x there
so SLot 7 now has 3 roms.. Lower, Parados 1.2 and m4 rom


OK. Boot the board, fw3.1x and m4 roms are both loaded - Only one rom of the 32 is used :)


issue |m4romoff


fw3.1x and Parados1.2 are loaded - Again only 1 rom used from the 32 :)


this is awesome, perfect, fantastic!!


@Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) @TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179) , any chance of a version of Symbos/FutureOS that can boot from the m4 board and run entirely from the SDcard A: thus not using any more ROMs?


Thanks


Craig

Title: Re: Amstrad CPC WiFi
Post by: Phantomz on 16:51, 09 July 16
I haven't had a proper play about with mine yet, so haven't tried to use the wifi or roms.

I just checked that the board powered up and worked.

I did notice that the multiface two button didn't reset the machine when I tried it, doesn't it work when M4 Board is plugged it?  I don't think my reset button is broken!

I only tried the board with a real multiface two on a normal cpc 6128 with the M4 Board with Adapter.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:37, 09 July 16
New update v1.0.5 (beta):

Download from here:
http://www.spinpoint.org/cpc/M4FIRM_v105.zip (http://www.spinpoint.org/cpc/M4FIRM_v105.zip)

3 new RSX commands:

|ROMUP   - Use this to upload roms from basic/cpc, ie. |ROMUP,"UTOPIA.ROM",15 will upload utopia to slot 15.
|ROMSET -  Used to enable/disable roms (by default roms are enabled when uploaded). To disable rom slot 15, type |ROMSET,15,0. To re-enable it |ROMSET,15,1
|ROMUPD - This command will update rom changes live without a reboot needed. Ie. if you disable a rom and want it to take effect without reboot, use |ROMUPD afterwards.

2 new commands for devs:
C_FSIZE and C_FTELL, see updated http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) (press ctrl+R to get latest) for details.
1 new file access mode (&80 = real fatfs mode)


@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179) and any other devs interested, here is a an example of the |ROMUP rsx I made, which shows how to upload a rom. This code is running from M4 rom, so some switching will need to be added, to/from another rom or ram:
#10902802 - Pastie (http://pastie.org/10902802)

@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Neat little discovery, and yes, M4 rom does not actually take a slot, so perfectly fine way of doing it (toggling between two rom7's).

@Phantomz (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1308)
I don't have a multiface, so not sure, but if the reset button is a regular reset (not some NMI related MF2 stuff) it definately should work, I would check connectors, replug etc.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:38, 09 July 16
Quote from: Duke on 17:37, 09 July 16
New update v1.0.5 (beta):

Download from here:
http://www.spinpoint.org/cpc/M4FIRM_v105.zip (http://www.spinpoint.org/cpc/M4FIRM_v105.zip)

3 new RSX commands:

|ROMUP   - Use this to upload roms from basic/cpc, ie. |ROMUP,"UTOPIA.ROM",15 will upload utopia to slot 15.
|ROMSET -  Used to enable/disable roms (by default roms are enabled when uploaded). To disable rom slot 15, type |ROMSET,15,0. To re-enable it |ROMSET,15,1
|ROMUPD - This command will update rom changes live without a reboot needed. Ie. if you disable a rom and want it to take effect without reboot, use |ROMUPD afterwards.

2 new commands for devs:
C_FSIZE and C_FTELL, see updated http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) (press ctrl+R to get latest) for details.
1 new file access mode (&80 = real fatfs mode)


@TFM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=179) and any other devs interested, here is a an example of the |ROMUP rsx I made, which shows how to upload a rom. This code is running from M4 rom, so some switching will need to be added, to/from another rom or ram:
#10902802 - Pastie (http://pastie.org/10902802)

@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Neat little discovery, and yes, M4 rom does not actually take a slot, so perfectly fine way of doing it (toggling between two rom7's).

@Phantomz (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1308)
I don't have a multiface, so not sure, but if the reset button is a regular reset (not some NMI related MF2 stuff) it definately should work, I would check connectors, replug etc.


Upgraded with this version. All sees to have gone well, Although can I just confirm |version reports M4 on version 1.0.5 and ESP still 1.04, or did my ESP not update successfully?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:30, 10 July 16
Yes, ESP firmware wasn't changed in this version... Will bump it next time :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:17, 10 July 16
Quote from: Duke on 06:30, 10 July 16
Yes, ESP firmware wasn't changed in this version... Will bump it next time :)


That makes sence then :) Oh, ANd the Web GUI still reflects 1.0.3
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 10:48, 10 July 16
Quote from: CraigsBar on 09:17, 10 July 16

That makes sence then :) Oh, ANd the Web GUI still reflects 1.0.3
Oops, and perhaps a slight bug report.....

|upgrade and |httpget now seem to hang the CPC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:52, 10 July 16
Thanks, glad someone is keeping an eye with the updates :) -will get the version numbers sorted in next update.
Just checked |httpget and |upgrade here and it works fine.... What's your netstat saying?

Quote from: CraigsBar on 10:48, 10 July 16
Oops, and perhaps a slight bug report.....

|upgrade and |httpget now seem to hang the CPC.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:25, 10 July 16
Quote from: Duke on 10:52, 10 July 16
Thanks, glad someone is keeping an eye with the updates :) -will get the version numbers sorted in next update.
Just checked |httpget and |upgrade here and it works fine.... What's your netstat saying?


Netstat was fine.... I have now extracted the files from the zip again, and re-applied them. both commands work fine now.
It must have been a dodgy Extraction or updatge first time.


:)

Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 00:54, 11 July 16
Quote from: TFM on 18:07, 08 July 16
No, a Y-MEM is the same like an X-MEM, but the ROMs are 32-63 (instead of 00-31) and the 512 KB RAM will be addressed using port &7Exx (instead of &7Fxx).

Aha, that's right. So it's an XS-MEM then. I can't remember if the RAM is also addressed at &7Fxx in the XS-MEM though. Either way, TotO can supply several different configurations.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 08:33, 11 July 16
I just updated my card and everything is OK up to now; thank you for this update ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:55, 11 July 16
Good to hear.
dirtybb discovered a couple of bugs in v1.0.5 regarding the |romup command, appearently it only works with roms that have AMSDOS header (it was meant to work with headerless too).
And also |romup with roms from inside a .dsk image failed.
I'll have to fix these bugs for next release, but for now be aware of them :)

Quote from: Kris on 08:33, 11 July 16
I just updated my card and everything is OK up to now; thank you for this update ;)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:19, 11 July 16
;) now I am back from the amiga-ie meetup this weekend, I was planning on playing with ROMs tonight. I'll remember these limitations then, and not report them as bugs.
Title: Re: Amstrad CPC WiFi
Post by: ronaldo on 20:38, 11 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I've received today both M4 boards and have tested one with my CPC464. It worked connected through a powered MX4 board, commands reply and it connects to WiFi. Web server is accessible and works and time and netstat commands work well.

However, I had a problem: any attempt to copy a ROM or the firmware through the webserver makes It hang. Also, trying to change M4rom from the slot 6 does not work as the M4 reset command seems to make it forget everything.

Could it be a bad firmware upgrade when I tried to do it through web? Any other possibility? How should I proceed? FW is now 1.0.3
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:42, 11 July 16
Try this, before you make any changes under Roms from the webserver, go to Control first and press CPC Pause. Then go to Roms and upload etc. When changing M4 rom from slot 6, remember to use the SET button.
Let me know if that works or not. Also do please use firefox browser.
When done, go back to Control and press M4 reset.

Roms you upload via the browser, should not have AMSDOS header. (cut away the first 128 bytes with a hexeditor if present... filesize should be 16384 bytes).

Oh and one more thing, which is very important. When upgrading from 1.0.0, 1.0.1 and 1.0.2 to higher version. Go under m4 directory and delete files romconfig.bin and romslots.bin
The files changed after v1.0.3 to 32 slots.
So if you put the microSD card in a PC and unpack the newer firmware to root directory, then go under M4 directory and delete romconfig.bin and romslots.bin at the same time.

Available firmwares:

http://www.spinpoint.org/cpc/M4FIRM_v101.zip (http://www.spinpoint.org/cpc/M4FIRM_v101.zip)
http://www.spinpoint.org/cpc/M4FIRM_v102.zip (http://www.spinpoint.org/cpc/M4FIRM_v102.zip)
http://www.spinpoint.org/cpc/M4FIRM_v103.zip (http://www.spinpoint.org/cpc/M4FIRM_v103.zip)
http://www.spinpoint.org/cpc/M4FIRM_v104.zip (http://www.spinpoint.org/cpc/M4FIRM_v104.zip)
http://www.spinpoint.org/cpc/M4FIRM_v105.zip (http://www.spinpoint.org/cpc/M4FIRM_v105.zip)

I think after v1.0.2 (or maybe 1.0.3), the webinterface got a little quirky, so for now if you cannot live with the use of CPC Pause, before uploading roms, until I have fixed it.
It may be better to downgrade to 1.0.2 (/1.0.3).

Firmware upgrading/downgrading should be perfectly safe. I have put a write protected bootloader on each M4 board, which will read the upgrades from microSD, and check their CRC32 before flashing. In theory something could go wrong during flashing, but then you could just run the upgrade process again.

Quote from: ronaldo on 20:38, 11 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I've received today both M4 boards and have tested one with my CPC464. It worked connected through a powered MX4 board, commands reply and it connects to WiFi. Web server is accessible and works and time and netstat commands work well.

However, I had a problem: any attempt to copy a ROM or the firmware through the webserver makes It hang. Also, trying to change M4rom from the slot 6 does not work as the M4 reset command seems to make it forget everything.

Could it be a bad firmware upgrade when I tried to do it through web? Any other possibility? How should I proceed? FW is now 1.0.3
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:19, 12 July 16
Ok, new version 1.0.6 (both M4 and ESP) uploaded.

Get it from here (or use |upgrade command):
http://www.spinpoint.org/cpc/M4FIRM_v106.zip (http://www.spinpoint.org/cpc/M4FIRM_v106.zip)

Fixes:
If upgrading from version less than v1.0.3, delete romconfig.bin and romslots.bin under m4 directory.
Title: Re: Amstrad CPC WiFi
Post by: ronaldo on 10:23, 12 July 16
Thanks for all the details, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624). I was doing all as you said, except pausing CPC previous to sending ROMs or new firmware. I tried it again pausing CPC before sending anything, with same results.

A question about all this, Is it necessary to have a microSD to send content through web interface? I am using your card without inserting an SD card. Does it require a card to save sent files before proceeding?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:00, 12 July 16
Yes microSD is needed to upload roms or even save the wifi config.

Quote from: ronaldo on 10:23, 12 July 16
Thanks for all the details, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624). I was doing all as you said, except pausing CPC previous to sending ROMs or new firmware. I tried it again pausing CPC before sending anything, with same results.

A question about all this, Is it necessary to have a microSD to send content through web interface? I am using your card without inserting an SD card. Does it require a card to save sent files before proceeding?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:29, 13 July 16
OK... Interesting uses of the m4 board. Episode 1.....

Today I had to type in "bigprint" from aa57, and my Amstrad kit is at a funny angle compared to the desk... So i found a great solution.

1: install protext on my Amiga 1200 that has a pcmcia WiFi card.
2: type the program into protext on the Amiga and save it as 'bigprint.bas' in program mode.
3: send the file to the CPC via the m4 board and the Amiga web browser.
4: load it into protext ROM on the CPC (ROM loaded into the m4)
5: check for, and correct any typos, save the file
6: run it!

So there you go, the m4 is a retro version of apple's airdrop technology, and I love it!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:35, 13 July 16
M4 board wishlist...
Sorry about this, but can I add some features to a wishlist?

1. Option in the web GUI to download a file from the m4 to the web client. I guess thus would need a file browser of the m4 SD card being published on the web GUI.

2. An option in the GUI to execute a single line command in basic on boot, so a specific file could be loaded from the SD card, or the screen mode changed, or the  colours changed etc...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:36, 13 July 16
Sure.
1) was planned, but I didn't get around to it. Sometime it will display the files of the sd card in the webinterface.
For now a little trick if you need a file you know the filename of, you can type the following in a browser:  http://cpcip/sd/filename (http://cpcip/sd/filename).. ie. http://192.168.1.10/sd/games/gryzor.dsk (http://192.168.1.10/sd/games/gryzor.dsk)

2) will require some lowerrom patch, not sure how to do that, it would indeed be cool with some kind of autoexec.bas

Quote from: CraigsBar on 00:35, 13 July 16
M4 board wishlist...
Sorry about this, but can I add some features to a wishlist?

1. Option in the web GUI to download a file from the m4 to the web client. I guess thus would need a file browser of the m4 SD card being published on the web GUI.

2. An option in the GUI to execute a single line command in basic on boot, so a specific file could be loaded from the SD card, or the screen mode changed, or the  colours changed etc...
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 07:25, 13 July 16
Quote from: Duke on 06:36, 13 July 16
Sure.
1) was planned, but I didn't get around to it. Sometime it will display the files of the sd card in the webinterface.
For now a little trick if you need a file you know the filename of, you can type the following in a browser:  http://cpcip/sd/filename (http://cpcip/sd/filename).. ie. http://192.168.1.10/sd/games/gryzor.dsk (http://192.168.1.10/sd/games/gryzor.dsk)

2) will require some lowerrom patch, not sure how to do that, it would indeed be cool with some kind of autoexec.bas
Ahh. Excellent, must upgrade to 1.0.6 tonight.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:33, 13 July 16
Quote from: CraigsBar on 00:29, 13 July 16
OK... Interesting uses of the m4 board. Episode 1.....

Today I had to type in "bigprint" from aa57, and my Amstrad kit is at a funny angle compared to the desk... So i found a great solution.

1: install protext on my Amiga 1200 that has a pcmcia WiFi card.
2: type the program into protext on the Amiga and save it as 'bigprint.bas' in program mode.
3: send the file to the CPC via the m4 board and the Amiga web browser.
4: load it into protext ROM on the CPC (ROM loaded into the m4)
5: check for, and correct any typos, save the file
6: run it!

So there you go, the m4 is a retro version of apple's airdrop technology, and I love it!

Or you could just pack that A1200 away and make space to place you CPC properly centred on the desk.  :)

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: ronaldo on 08:38, 13 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , I added a 16GB microSD card and everything runs know. I managed to install some roms and to upgrade to FW 1.0.6 using |upgrade command. I have also copied some DSKs, created folders and copied/moved from here to there. It works as expected.

The next issue I'm having is with lower rom replacement. I'm using a 464 and tried to replace lower rom with OS6128ES and FW3.16 and both of them crash. Also tried to put BASIC 1.1 in ROM slot 0 and it fails in a quite odd fashion (after ROM messages appearing, everything scrolls up infinitelly  :o ). Any idea on this?

After reading your Dev API description, I missed some way of directly addressing the network. I think that sending and receiving data through and from network ports will be required for advanced features. How could we help you develop the firmware?

EDIT: Firmware 3.15 with BASIC 1.1 works :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 08:59, 13 July 16
Quote from: Bryce on 08:33, 13 July 16
Or you could just pack that A1200 away and make space to place you CPC properly centred on the desk.  :)

Bryce.
Well yes, that is an option. But until the m4 has an irc client I still use the a1200 for that... Oh and it has a much nicer keyboard to type lengthy DATA statements on.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:24, 13 July 16
Glad it's all working.
Yes, netapi is not available yet. It's one of the higher priorities. Once I am done with the remaining boards, I'll have better time to work on those things. Not much you can do to help atm., but thanks anyway :)

Quote from: ronaldo on 08:38, 13 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) ,
After reading your Dev API description, I missed some way of directly addressing the network. I think that sending and receiving data through and from network ports will be required for advanced features. How could we help you develop the firmware?

EDIT: Firmware 3.15 with BASIC 1.1 works :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:30, 13 July 16
Quote from: ronaldo on 08:38, 13 July 16
EDIT: Firmware 3.15 with BASIC 1.1 works :)

So does fw 3.16 on mine :)
Perhaps the amsdos header was messing with it.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 13:51, 13 July 16
Hi,

RomBooster seems to reboot in loop the cpc (put in pos 15).
Does anybody else tried ?

On the other hand, I can confirm that FW316 used as lower ROM initializes 16 to 31.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:32, 13 July 16
Quote from: dirtybb on 13:51, 13 July 16
Hi,

RomBooster seems to reboot in loop the cpc (put in pos 15).
Does anybody else tried ?

On the other hand, I can confirm that FW316 used as lower ROM initializes 15 to 31.
I have not used the booster ROM since FW 3.1x included 0 to 31 initialisation anyway ;)
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 15:38, 13 July 16
Quote from: CraigsBar on 14:32, 13 July 16
I have not used the booster ROM since FW 3.1x included 0 to 31 initialisation anyway ;)


You could try to install Rom booster to see if you reproduce the same problem ?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:48, 13 July 16
Sure can. I need to upgrade the board to 1.0.6 first tho ;)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:16, 13 July 16
Quote from: CraigsBar on 15:48, 13 July 16
Sure can. I need to upgrade the board to 1.0.6 first tho ;)
It works for me.
(http://uploads.tapatalk-cdn.com/20160713/02775822b20d9823b6bac61fd32ff41b.jpg)
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 20:18, 13 July 16
Quote from: CraigsBar on 19:16, 13 July 16
It works for me.
(http://uploads.tapatalk-cdn.com/20160713/02775822b20d9823b6bac61fd32ff41b.jpg)
Can u try disabling low Rom replacement ?


Envoyé de mon iPhone en utilisant Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:57, 13 July 16
That was with low ROM replacement disabled. I did not want fw 3.16 messing with the booster.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 13:00, 14 July 16
Quote from: CraigsBar on 20:57, 13 July 16
That was with low ROM replacement disabled. I did not want fw 3.16 messing with the booster.
Thank you very much.
Following your feedback, i've made a total reset of the rom conf, now Rom booster works well.


Will try to find out what rom installed was in conflit with.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:22, 14 July 16
Quote from: dirtybb on 13:00, 14 July 16
Thank you very much.
Following your feedback, i've made a total reset of the rom conf, now Rom booster works well.


Will try to find out what rom installed was in conflit with.
Glad to help.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 00:35, 15 July 16
Quote from: Duke on 09:13, 28 June 16
Just open it in a hex editor and remove the first 128 bytes. But maybe there is a tool somewhere already?
There is a good old utility to do this: Hideur Makeur Aminet - dev/cross/HideurMakeur.lha (http://aminet.net/package/dev/cross/HideurMakeur)


I started to use mine yesterday and it is working perfectly!! Great job, Duke :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 06:27, 15 July 16
Does anyone know if @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) is on vacation? It's been a while now since I ordered cables, but haven't received any packages and he's not replying e-mail either.
Title: Re: Amstrad CPC WiFi
Post by: archcosmo on 08:15, 15 July 16
yeah, he is away on holidays for a little while

I was asking him via email about a week back about my own order from a couple of months ago that's been delayed until after he returns from holidays.

cheers


Quote from: mr_lou on 06:27, 15 July 16
Does anyone know if @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) is on vacation? It's been a while now since I ordered cables, but haven't received any packages and he's not replying e-mail either.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 16:49, 15 July 16
Received my card yesterday Duke. Unfortunately I haven't had time to test it yet though.
Title: Re: Amstrad CPC WiFi
Post by: Scarlettkitten on 17:35, 15 July 16
My card has arrived, cheers Duke x
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 20:00, 15 July 16
Quote from: MiguelSky on 00:35, 15 July 16
There is a good old utility to do this: Hideur Makeur Aminet - dev/cross/HideurMakeur.lha (http://aminet.net/package/dev/cross/HideurMakeur)
I haven't noticed that in the quote it wasn't said what Hideur Makeur does: it removes the AMSDOS header from files.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:44, 15 July 16
With latest firmware update (1.0.6), it should not matter if there is a amsdos header or not, it should be autodetected.

Quote from: MiguelSky on 20:00, 15 July 16
I haven't noticed that in the quote it wasn't said what Hideur Makeur does: it removes the AMSDOS header from files.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:54, 15 July 16
Quote from: Duke on 20:44, 15 July 16
With latest firmware update (1.0.6), it should not matter if there is a amsdos header or not, it should be autodetected.
Yep, it seems to work. I have deliberately used header and headerless ROMs. Both work fine.
Title: Re: Amstrad CPC WiFi
Post by: Vandalsk on 23:01, 15 July 16
My card has arrived yesterday! It works fine!
Thanks a lot for this great Hardware.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 11:03, 16 July 16
Quote from: CraigsBar on 20:54, 15 July 16
Yep, it seems to work. I have deliberately used header and headerless ROMs. Both work fine.
Great!!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 02:35, 17 July 16
It is indeed, a great piece of kit. My type-in task has just got even easier... I found a text editor for osx that will output a totally standard utf8 ascii file with CR/LF line separators. So I can copy and paste basic programs on my Mac, and send them to the CPC via the m4. Awesome! And the name of this holy grail of text editors? TextWrangler... Highly recommended to all.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:27, 20 July 16
Small update v1.0.7 beta with some small but important fixes. This is very beta and only M4 part is updated (ESP and web UI will still report v1.0.6). Any new issues arise, please leave feedback, thanks !

* Fix issue with cas_in_char soft EOF. Ie. now remember the 80's music  disc works without problems, maybe other related stuff will be fixed too(?).
* cas_in_char buffered for fast(er) performance. - Was dead slow before, need to buffer cas_out_char next.
* Fix |ROMUP to work from .dsk images too (thanks dirtybb).
* Fix issue with catart so it no longer goes into to infinite loop when cat/dir. - Still doesn't display catart 100% as it should... maybe sometime!

Download:
http://www.spinpoint.org/cpc/M4FIRM_v107.zip (http://www.spinpoint.org/cpc/M4FIRM_v107b.zip)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:49, 20 July 16
Quote from: Duke on 18:27, 20 July 16
Small update v1.0.7 beta with some small but important fixes. This is very beta and only M4 part is updated (ESP and web UI will still report v1.0.6). Any new issues arise, please leave feedback, thanks !

* Fix issue with cas_in_char soft EOF. Ie. now remember the 80's music  disc works without problems, maybe other related stuff will be fixed too(?).
* cas_in_char buffered for fast(er) performance. - Was dead slow before, need to buffer cas_out_char next.
* Fix |ROMUP to work from .dsk images too (thanks dirtybb).
* Fix issue with catart so it no longer goes into to infinite loop when cat/dir. - Still doesn't display catart 100% as it should... maybe sometime!

Download:
http://www.spinpoint.org/cpc/M4FIRM_v107b.zip (http://www.spinpoint.org/cpc/M4FIRM_v107b.zip)


OK Unfortunately this does not work for me:(


|version still reports 1.06 and Remeber the 80's is still not playing ball (well tunes actually)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:14, 21 July 16
Oups my bad, I uploaded the wrong file sorry!

Please re-download and try again, after upgrade |version will report M4 v1.0.7 and ESP v1.0.6.  Thanks.

Quote from: CraigsBar on 22:49, 20 July 16

OK Unfortunately this does not work for me:(


|version still reports 1.06 and Remeber the 80's is still not playing ball (well tunes actually)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:56, 21 July 16
Ahh, will grab it again tonight.

Edit: perfect. Working now. I see what you mean about the catart ;) still no  infinite loop is much better.

Now if only |httpget worked from one m4 board to another.

|httpget,"192.168.1.7/SD/dsk/rem_80s.dsk"

hangs and does nothing. But it works on a Mac with the same URL.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:48, 21 July 16
hmm yeah that should have worked, will look into it when I get more time.

EDIT: Just took a quick look. I don't translate the IP (ASCII ip to ip number), so that's why it doesn't work, will fix it next time, fairly trivial issue (string parsing...) .
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:42, 21 July 16
Quote from: Duke on 19:48, 21 July 16
hmm yeah that should have worked, will look into it when I get more time.

EDIT: Just took a quick look. I don't translate the IP (ASCII ip to ip number), so that's why it doesn't work, will fix it next time, fairly trivial issue (string parsing...) .
Great! This is an awesome product, with amazing service. Worth every cent and greatly appreciated customer support. Many thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:07, 22 July 16
Quote from: CraigsBar on 21:42, 21 July 16
Great! This is an awesome product, with amazing service. Worth every cent and greatly appreciated customer support. Many thanks.

Thanks!

Fixed the IP address issue, so you can now download from another CPC (or source with ip number instead of hostname).

Latest version 1.0.7 (release) available via |upgrade command or here: http://www.spinpoint.org/cpc/M4FIRM_v107.zip (http://www.spinpoint.org/cpc/M4FIRM_v107.zip)
M4 and ESP versions must show v1.0.7 after upgrading.
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 10:34, 22 July 16
Got some cables from TotO today.

Tried connecting it to my CPC464 briefly, but looks like it isn't working. No message in boot. CAT command says "Press play then any key".

No light in the blue led. Tried connecting USB for power and switched the jumper, but still no light.

Did something go wrong during shipment, or am I doing something completely wrong here?
Title: Re: Amstrad CPC WiFi
Post by: TotO on 10:44, 22 July 16
Is the expansion connector was cleaned?
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 10:53, 22 July 16
Quote from: TotO on 10:44, 22 July 16
Is the expansion connector was cleaned?

Yes.  :)
Should have mentioned that.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 10:54, 22 July 16
Yes, because it is so common...  ;D
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 11:01, 22 July 16
So the blue LED is supposed to come on when the board is connected, right?
Title: Re: Amstrad CPC WiFi
Post by: CloudStrife on 11:33, 22 July 16
I have blue light even when not connected if the USB is connected (and the power source jumper is on USB)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 11:54, 22 July 16
Alright, I get light in the LEDs too when using USB from PC. (Just used power-supply before, which may be dead?).

But still nothing when connected to CPC.
So, either bad cable or bad CPC. I assume TotO tested the cable, so... bad CPC.
Will try with another CPC next weekend.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 11:58, 22 July 16
This was already discussed earlier in the thread. Due to the lower <5V supply on the MX4, the Wifi card will only work when it gets power from the USB socket.

Here: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg128273/#msg128273)

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:44, 22 July 16
Quote from: mr_lou on 11:54, 22 July 16
Alright, I get light in the LEDs too when using USB from PC. (Just used power-supply before, which may be dead?).

But still nothing when connected to CPC.
So, either bad cable or bad CPC. I assume TotO tested the cable, so... bad CPC.
Will try with another CPC next weekend.
Try not using a PSU, and set JUMPER to EXT. plug it directly into the CPC464 using the edge cable from Toto.
Does blue light come on?
If blue light goes on, clean the expansion port x 10 (IPA) :) - It's so far always been the problem when there was one
If the blue light does not come on when jumper is at EXT and connected to the CPC464, it sounds like something has gone wrong with board, although I do run some longer tests on each board before shipping. Then send it back so I can fix it or send you a new one.
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 13:05, 22 July 16
Quote from: Duke on 12:44, 22 July 16
Try not using a PSU, and set JUMPER to EXT. plug it directly into the CPC464 using the edge cable from Toto.
Does blue light come on?
If blue light goes on, clean the expansion port x 10 (IPA) :) - It's so far always been the problem when there was one
If the blue light does not come on when jumper is at EXT and connected to the CPC464, it sounds like something has gone wrong with board, although I do run some longer tests on each board before shipping. Then send it back so I can fix it or send you a new one.

Not using a PSU, and having jumper at EXT was the first approach. No LEDs comes on. I suspected shipping might have done something to it.
But using USB wire while jumper is a USB does light up a few LEDs, so now I'm guessing the board works and my expansion port is to blame.
So then I tried PSU + jumper at EXT, but no LEDs still.
TotO also sent a cable for my CPCplus, so I can try that one, but won't have time before next weekend.
I do also have another CPC464 somewhere that I might try earlier.... actually I do have a few minutes right about now, so lemme see if I can find it.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:11, 22 July 16
You should just stick to jumper at EXT for now and no PSU (it's not needed when using cable direct).
The odd part is that the blue LED is connected to 3.3V on the board, so as soon as the power  goes through the voltage regulator it will go on. The voltage regulator is working since it can go on when you use USB power supply.
So what's left, a dodgy connection on VCC from the CPC or the jumper solder point, if there was a short the CPC wouldn't turn on.
Just to be 100% sure, when you connect the cable from Toto, and plug in the board is the reset button + leds etc facing upwards when laying on the table?

Quote from: mr_lou on 13:05, 22 July 16
Not using a PSU, and having jumper at EXT was the first approach. No LEDs comes on. I suspected shipping might have done something to it.
But using USB wire while jumper is a USB does light up a few LEDs, so now I'm guessing the board works and my expansion port is to blame.
So then I tried PSU + jumper at EXT, but no LEDs still.
TotO also sent a cable for my CPCplus, so I can try that one, but won't have time before next weekend.
I do also have another CPC464 somewhere that I might try earlier.... actually I do have a few minutes right about now, so lemme see if I can find it.  :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 13:30, 22 July 16
Ahem....   I don't suppose there's any way I can just erase your memory and rewind time for everyone a bit?
Too damn embarrassing to tell what I was doing wrong....

Everything seems to work. But here's a hint:
Plug it into the right port...   :-[

/me goes to sit in the corner for the next week.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:32, 22 July 16
Just glad it works!  :D
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:36, 22 July 16
Quote from: Bryce on 11:58, 22 July 16
This was already discussed earlier in the thread. Due to the lower <5V supply on the MX4, the Wifi card will only work when it gets power from the USB socket.

Here: Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg128273/#msg128273)

Bryce.
Well I have to say neither of mine have usb power ;) one in the just CPC and one on the mx4 on the plus.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 16:15, 22 July 16
Same thing for me, no PSU added and evrything is working well ;)


Last update done and OK  ;)
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 19:22, 22 July 16
Quote from: mr_lou on 13:30, 22 July 16
Ahem....   I don't suppose there's any way I can just erase your memory and rewind time for everyone a bit?
Too damn embarrassing to tell what I was doing wrong....

Everything seems to work. But here's a hint:
Plug it into the right port...   :-[

/me goes to sit in the corner for the next week.

Perhaps you can ask men in black ? [emoji16]


Envoyé de mon iPhone en utilisant Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:07, 22 July 16
Hmmm, OK. 1.0.7 on both cards and I still cannot copy directly between them both. No error as such, sometimes it locks up both host and client m4 boards, sometime copying completes but with 0 bytes, no file is created.

Quite odd. But I am away for the weekend now, so will not be playing with it again until Monday night.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:37, 24 July 16
Yeah you are right :/ - When I was testing it, I had v1.0.6 on the board I was downloading from, but when I try now with both boards on v1.0.7 I have same issue, so some new bug must have crept in.
I'll review it later.

Quote from: CraigsBar on 20:07, 22 July 16
Hmmm, OK. 1.0.7 on both cards and I still cannot copy directly between them both. No error as such, sometimes it locks up both host and client m4 boards, sometime copying completes but with 0 bytes, no file is created.

Quite odd. But I am away for the weekend now, so will not be playing with it again until Monday night.
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 16:12, 24 July 16
Quote from: Duke on 09:37, 24 July 16
Yeah you are right :/ - When I was testing it, I had v1.0.6 on the board I was downloading from, but when I try now with both boards on v1.0.7 I have same issue, so some new bug must have crept in.
I'll review it later.

....you didn't plug any of them into the wrong port, did ya?
coz... sometimes that happens...   I've heard....
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:12, 24 July 16
Quote from: Duke on 09:37, 24 July 16
Yeah you are right :/ - When I was testing it, I had v1.0.6 on the board I was downloading from, but when I try now with both boards on v1.0.7 I have same issue, so some new bug must have crept in.
I'll review it later.
Ahh, good to know I am not totally stupid :) I am just home from a really busy weekend, and I am very tired.
Title: Re: Amstrad CPC WiFi
Post by: tecnoxarxa on 17:38, 25 July 16
I need two and two m4 main board with edge connector.


thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:51, 25 July 16
I need to check inventory first :) - is that 2 with MX4 and 2 with Edge, or just 2 with Edge?.. I got enough left for two atleast, send me a private message with your email address.

Quote from: tecnoxarxa on 17:38, 25 July 16
I need two and two m4 main board with edge connector.


thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:15, 25 July 16
Status:
Responses from @tonio8bits (http://www.cpcwiki.eu/forum/index.php?action=profile;u=499) @Manu (http://www.cpcwiki.eu/forum/index.php?action=profile;u=816) @dvallet (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1598) @zhulien (http://www.cpcwiki.eu/forum/index.php?action=profile;u=58) on pm's, apprecieted, M4 boards seeking owners :) - Since email notifications on the forum isn't working anymore, maybe there's a chance you will see this. Check your pm's, thanks.

Inventory status if above pick up their boards and tecnoxarxa takes 4 pcs:
5 boards left (but missing chips, eta. 3-4 weeks)
1 adapter board
2 edge connectors (maybe 0 if two of the "awaiting connector" boards pick edge).

Total made so far 99 pcs.

From then on, any new batch will have to have atleast 10 pre-orders.
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 18:24, 25 July 16
If you have any trouble getting rid of the last few, I'll take one more.  :)
I seriously doubt it of course. Just sayin'.  :)
(It'll have to be fully assembled though, coz I have absolutely no skills whatsoever in that department).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:38, 25 July 16
Noted, mr_lou, thanks.
If any left when I get the chips for the last 5, I'll let you know.

Quote from: mr_lou on 18:24, 25 July 16
If you have any trouble getting rid of the last few, I'll take one more.  :)
I seriously doubt it of course. Just sayin'.  :)
(It'll have to be fully assembled though, coz I have absolutely no skills whatsoever in that department).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:56, 25 July 16
v1.0.8 beta, with just two tiny fixes.   Download here : http://www.spinpoint.org/cpc/M4FIRM_v108b.zip (http://www.spinpoint.org/cpc/M4FIRM_v108b.zip)
* Fix (I hope, works here!) downloading between M4 boards using IP number... Note all files stored on sd card are accessible via http, when prefixing sd path in the url.
From a pc you can use ie. wget http://192.168.1.10/sd/myfile.bas (http://192.168.1.10/sd/myfile.bas), the same if you have another M4 board, then |httpget,"192.168.1.10/sd/myfile.bas"   (192.168.1.10 being the ip number of the CPC you want to download from).
* Small fix to |dir cmd, so Rhino's cool Perfect Pix program can load and save files. To fully use Perfect Pix with M4 board, you should extract the files from the DSK image and put them into a sub directory, so you have save ability too.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 07:43, 26 July 16
Just great to have such a fast & nice support from your side: I would like to use this thread "just" to thank you for that !  ;D
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 07:52, 26 July 16
Quote from: Duke on 21:56, 25 July 16
v1.0.8 beta, with just two tiny fixes.   Download here : http://www.spinpoint.org/cpc/M4FIRM_v108b.zip (http://www.spinpoint.org/cpc/M4FIRM_v108b.zip)
* Fix (I hope, works here!) downloading between M4 boards using IP number... Note all files stored on sd card are accessible via http, when prefixing sd path in the url.
From a pc you can use ie. wget http://192.168.1.10/sd/myfile.bas (http://192.168.1.10/sd/myfile.bas), the same if you have another M4 board, then |httpget,"192.168.1.10/sd/myfile.bas"   (192.168.1.10 being the ip number of the CPC you want to download from).
* Small fix to |dir cmd, so Rhino's cool Perfect Pix program can load and save files. To fully use Perfect Pix with M4 board, you should extract the files from the DSK image and put them into a sub directory, so you have save ability too.
Hi Duke, if this is the same as the alpha you sent me yesterday, then it seems to still fail :( perhaps someone else could confirm?

It is one step closer now however in that it appears that a tiny 1k file with the right filename is now created, no data transfers tho.

Never mind I can remove the SD cards and copy the files onto them with my Mac.

Craig
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:08, 26 July 16
Quote from: CraigsBar on 07:52, 26 July 16
Hi Duke, if this is the same as the alpha you sent me yesterday, then it seems to still fail :( perhaps someone else could confirm?

It is one step closer now however in that it appears that a tiny 1k file with the right filename is now created, no data transfers tho.

Never mind I can remove the SD cards and copy the files onto them with my Mac.

Craig

Yes, the ESPFIRM is the same as the alpha you got (only M4 part got updated with the |dir fix).

On my setup CPC6128+ with M4 ip http://10.0.0.38 (http://10.0.0.38) and CPC6128 with M4 ip http://10.0.0.37 (http://10.0.0.37), I do from the CPC6128+.
|httpget,"10.0.0.37/sd/xcontra.dsk"

And it transfers the file just fine. Both boards run latest beta. File (xcontra.dsk) is present in the root directory of the CPC6128 sd card.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 08:52, 26 July 16
Hmmm. OK, is the path case sensitive? I'll try again.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:58, 26 July 16
Quote from: CraigsBar on 08:52, 26 July 16
Hmmm. OK, is the path case sensitive? I'll try again.
Yes the /sd/ should be lower case.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 17:04, 26 July 16
Please help.

I have tested my M4 Board today the first time, and the CPC does not accept the netset command.
When i write the Command:

|netset,"ssid=WIFI2, pw=1234Start1234Start1234Start, dhcp=1, dns1=192.168.0.1, dns2=0.0.0.0, name=CPC464" then Comes only a "Type mismatch" back.

It is a CPC464.

what am I doing wrong?

by the way, the "PW", is this the Password from the Router himself or the WiFi-Connection Password? is not the same with me
And can use the M4 Board a AES encryption ?

thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:10, 26 July 16
Quote from: DerSchatten on 17:04, 26 July 16
Please help.

I have tested my M4 Board today the first time, and the CPC does not accept the netset command.
When i write the Command:

|netset,"ssid=WIFI2, pw=1234Start1234Start1234Start, dhcp=1, dns1=192.168.0.1, dns2=0.0.0.0, name=CPC464" then Comes only a "Type mismatch" back.

It is a CPC464.

what am I doing wrong?

by the way, the "PW", is this the Password from the Router himself or the WiFi-Connection Password? is not the same with me
And can use the M4 Board a AES encryption ?

thanks!

Because its a CPC464, it probably has basic 1.0, there you cannot pass RSX parameters directly (do yourself a favor and put basic 1.1 and fw3.16 on it once you get m4 up running).

The PW is the password for the WiFi connection. And yes AES encryption is fine.

Do it like this:
a$="ssid=WIFI2, pw=1234Start1234Start1234Start, dhcp=1, dns1=192.168.0.1, dns2=0.0.0.0, name=CPC464"

|netset,@a$

Afterwards type:
|netstat

To see if it went OK.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 17:33, 26 July 16
Very thanks! It works!
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:04, 26 July 16
Just a few words to say i've received mine and it works perfectly so far!


Thank you very much Duke, that's a very impressive piece of hardware...


Gonna be hard to use all the power of it :D


Now a question : i use a usb cable straight from the USB port of my desktop PC to power the card. It works well (in fact the card works also without additionnal powering when i have nothing else plugged than the M4Board and a Mother4).


I have a phone charger : DC5V, 1000mA. Would it work without frying everything ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:30, 26 July 16
Quote from: remax on 18:04, 26 July 16
Just a few words to say i've received mine and it works perfectly so far!


Thank you very much Duke, that's a very impressive piece of hardware...


Gonna be hard to use all the power of it :D


Now a question : i use a usb cable straight from the USB port of my desktop PC to power the card. It works well (in fact the card works also without additionnal powering when i have nothing else plugged than the M4Board and a Mother4).


I have a phone charger : DC5V, 1000mA. Would it work without frying everything ?

Good to hear, thanks.

Yes you can safely use your phone charger.
Title: Re: Amstrad CPC WiFi
Post by: Bruce101 on 21:21, 26 July 16
Hi to all!!!

Im a new member on the CPCWiki.

I have an Amstrad CPC since 1986, actually I still have my original CPC 464 in good conditions (was my first computer), and a CPC 6128 too.

Im a retro fun.

Greetings to all.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:25, 26 July 16
Welcome!
You came to the right place (cpcwiki.eu) :)

Quote from: Bruce101 on 21:21, 26 July 16
Hi to all!!!

Im a new member on the CPCWiki.

I have an Amstrad CPC since 1986, actually I still have my original CPC 464 in good conditions (was my first computer), and a CPC 6128 too.

Im a retro fun.

Greetings to all.
Title: Re: Amstrad CPC WiFi
Post by: Bruce101 on 21:35, 26 July 16
Thanks Duke.
Im happy...
:)
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 23:02, 26 July 16
how does that work with the dsk files? Can the mount?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:16, 26 July 16
Quote from: DerSchatten on 23:02, 26 July 16
how does that work with the dsk files? Can the mount?
You simply write:

|cd,"filename.dsk"
cat
run"whatever

Or in case of basic 1.0 :
a$="filename.dsk"
|cd,@a$
cat
run"whatever

Documentation of commands here:
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Title: Re: Amstrad CPC WiFi
Post by: Bruce101 on 15:09, 27 July 16
The card runs with a 5V USB charger, but, is enought a power supply with 2A, or need up to 3A?

Thanks.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 16:08, 27 July 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) I have finally found some time to set up my card today. However unfortunately I have not had any success in doing this and I am not getting anywhere with it. For some reason I cannot get the |netset command to work. It doesn't matter how I try to type it, my cpc 6128 just keeps coming back with "unknown command". If I type the |netstat command, I get "unknown command" as well.

Any idea where I am going wrong? It's getting very frustrating and annoying, as I thought that it would be a lot easier to set up the board.

My set up is as follows: CPC 6128, 3.5" second disc drive powered via the cpc's 5 volt supply and Mother x4 board with x-mem, multiface 2 clone board and cpc WiFi card. The Mother x 4 board is powered separately with it's own 5 volt 2.5 amp supply. I am running firmware 3.15 in the x-mem.

I do get a blue led staying on, indicating that the board is getting power ok.

My ssid is VM515624-2G if that's any help. I haven't got a clue what my dns server is or where to find out that information? My main pc is connected to my router via Wi-Fi if that makes any difference?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:57, 27 July 16
@CPC_Fan (http://www.cpcwiki.eu/forum/profile/?u=1127)
If it says unknown command the M4 board is not initialized.

To rule out a couple of things for starters.

Use the MX4 cable directly plugged into the M4, set the jumper to EXT. Don't connect any external power supply.

Since yours is quite long time ago, I am not sure which firmware is on it, so I suggest you download latest firmware, here:
http://www.spinpoint.org/cpc/M4FIRM_v107.zip (http://www.spinpoint.org/cpc/M4FIRM_v107.zip)

Unpack the files to the root of the microSD card from your PC, insert it to M4 and power up the CPC6128.
You should see the RED led come on (below the blue one) for some seconds, then blue led on WiFi module comes on and some seconds later, it goes off a long with the RED led.
CPC should reset and you should see the message M4 Board V2 displayed.

If you do not see this message, sending netset command etc will not work.

Let me know how this goes, then we can take it from there.

For DNS servers you can just use google dns, which is "dns1=8.8.8.8, dns2=8.8.4.4"

And most likely the M4 board is in conflict with XMEM, this can be solved either by disabling rom board on XMEM or changing the ROM range on M4 once you get it setup.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:11, 27 July 16
Quote from: Bruce101 on 15:09, 27 July 16
The card runs with a 5V USB charger, but, is enought a power supply with 2A, or need up to 3A?

Thanks.
The card should run without any charger at all, unless you use MX4 motherboard, in that case a 5V 500mA should be enough.
Title: Re: Amstrad CPC WiFi
Post by: Bruce101 on 17:31, 27 July 16
Ok Duke :) .

Is possible to buy 2 cards with Edge connector???
Or is too late???

Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:33, 27 July 16
Quote from: Bruce101 on 17:31, 27 July 16
Ok Duke :) .

Is possible to buy 2 cards with Edge connector???
Or is too late???

Thanks.
If you can wait 3-5 weeks, its OK, I am out of edge connectors now too, but I can order some more.
Title: Re: Amstrad CPC WiFi
Post by: Bruce101 on 17:47, 27 July 16
Perfect Duke!

I can wait, no problem, you can insert 2 cards with Edge connector for me into the orderlist. ;)

Can you tell me when the cards are ready? and how I pay, (bank transfer, paypal, etc, and final amount, please)

Thanks for all.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 18:27, 27 July 16
Quote from: Duke on 16:57, 27 July 16
@CPC_Fan (http://www.cpcwiki.eu/forum/profile/?u=1127)
If it says unknown command the M4 board is not initialized.

To rule out a couple of things for starters.

Use the MX4 cable directly plugged into the M4, set the jumper to EXT. Don't connect any external power supply.

Since yours is quite long time ago, I am not sure which firmware is on it, so I suggest you download latest firmware, here:
http://www.spinpoint.org/cpc/M4FIRM_v107.zip (http://www.spinpoint.org/cpc/M4FIRM_v107.zip)

Unpack the files to the root of the microSD card from your PC, insert it to M4 and power up the CPC6128.
You should see the RED led come on (below the blue one) for some seconds, then blue led on WiFi module comes on and some seconds later, it goes off a long with the RED led.
CPC should reset and you should see the message M4 Board V2 displayed.

If you do not see this message, sending netset command etc will not work.

Let me know how this goes, then we can take it from there.

For DNS servers you can just use google dns, which is "dns1=8.8.8.8, dns2=8.8.4.4"

And most likely the M4 board is in conflict with XMEM, this can be solved either by disabling rom board on XMEM or changing the ROM range on M4 once you get it setup.

Thanks for your reply and help Duke. Sorry I didn't mean to come across or sound rude to you. I followed your instructions and I now get the M4 Board V2 sign on message.

So how do I change the ROM range on the M4, so that it doesn't conflict with my X-Mem? Or would it be easier to turn the ROM board function off on the M4?

Also is it possible at all to print directly from my 6128 to my Wi-Fi connected printer, which is on the same network, using Protext? If so, how?
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 18:39, 27 July 16
Sorry another question for you Duke. I have a dual switchable Amsdos/ParaDos ROM that Bryce made for me, as a replacement for the Amstrad 40015 ROM inside my 6128. I have noticed that the M4 Board now seems to be setup and works fine under Amsdos. However when I turn the 6128 off, switch the ROM to ParaDos and switch the 6128 back on, I cannot call up ParaDos with the |drive command anymore. Any idea on what I am doing wrong? Or is ParaDos not compatible with the M4 Board?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:41, 27 July 16
Quote from: Bruce101 on 17:47, 27 July 16
Perfect Duke!

I can wait, no problem, you can insert 2 cards with Edge connector for me into the orderlist. ;)

Can you tell me when the cards are ready? and how I pay, (bank transfer, paypal, etc, and final amount, please)

Thanks for all.

Will do, please do me a favour and send me a private message with your email address, so I can notify you when the boards are ready, along with payment details.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:48, 27 July 16
The easist is to disable ROM board function of XMEM, I think there is a jumper to do that. Other users of both please jump in with details how you arranged it.

You can also move the rom range of M4 Board via the webinterface (type in the IP number to firefox/internet explorer that you get when typing |netstat) under ROMS.
Then you set starting range to 32 (after xmem).
However you also need to move the M4 rom out that range (unless you can map rom7 on your CPC6128).
For that to work you need to upload a proxy rom to XMEM too (which will find the M4 rom out of the 0-31 range).
You can find that rom here: http://www.spinpoint.org/cpc/m4boot.zip (http://www.spinpoint.org/cpc/m4boot.zip) 
It's not really upto date, but will work for the basics ( I don't think anyone uses it, so I haven't updated it).
As I do not think there is any software enabling use of 64 roms, it just easier to disable XMEM rom part and upload the roms you use to M4 via the webinterface.

There is no way to use your printer via wifi unfortunately.
And lastly you didn't come across as rude, so no worries :)

Quote from: CPC_Fan on 18:27, 27 July 16
Thanks for your reply and help Duke. Sorry I didn't mean to come across or sound rude to you. I followed your instructions and I now get the M4 Board V2 sign on message.

So how do I change the ROM range on the M4, so that it doesn't conflict with my X-Mem? Or would it be easier to turn the ROM board function off on the M4?

Also is it possible at all to print directly from my 6128 to my Wi-Fi connected printer, which is on the same network, using Protext? If so, how?
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 19:33, 27 July 16
Duke, i have a little Problem with the BASIC 1.1 ROM.
When i flash it to Slot 0 (Version v1.2.0, v1.2.1 or v1.2.3) and Reset the System, then the CPC starts with the

BASIC 1.1
Ready


but after that the Screen scrolls indefinitely and the System hangs.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:36, 27 July 16
It's important that you upload the corresponding lowerrom too.

Either use the original lowerrom from a 664/6128 or use the moded fw3.16 firmware by Syx And Toto (it'll boot your cpc in mode 2 and display some nice info + init all 32 roms).

For fw316 lowerrom replacement, look here:

GitHub - realmml/FW3.1x: A series of patches over the original Amstrad CPC (https://github.com/realmml/FW3.1x)

Quote from: DerSchatten on 19:33, 27 July 16
Duke, i have a little Problem with the BASIC 1.1 ROM.
When i flash it to Slot 0 (Version v1.2.0, v1.2.1 or v1.2.3) and Reset the System, then the CPC starts with the

BASIC 1.1
Ready


but after that the Screen scrolls indefinitely and the System hangs.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 19:48, 27 July 16
thanks!
what's the difference between FW316UK16.ROM and FW316UK32.ROM ?
Is this the ROM-Socket what i use?
Can the CPC464 use all 32 ROM Slots? I heave hear ther can only use 16 Slots. Or is this only a Limitation from the ROM-Box (X-MEM, MegaFlash NG)
What is the File FW316EXP.ROM ?
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 19:51, 27 July 16
Quote from: Duke on 18:48, 27 July 16
The easist is to disable ROM board function of XMEM, I think there is a jumper to do that. Other users of both please jump in with details how you arranged it.

You can also move the rom range of M4 Board via the webinterface (type in the IP number to firefox/internet explorer that you get when typing |netstat) under ROMS.
Then you set starting range to 32 (after xmem).
However you also need to move the M4 rom out that range (unless you can map rom7 on your CPC6128).
For that to work you need to upload a proxy rom to XMEM too (which will find the M4 rom out of the 0-31 range).
You can find that rom here: http://www.spinpoint.org/cpc/m4boot.zip (http://www.spinpoint.org/cpc/m4boot.zip) 
It's not really upto date, but will work for the basics ( I don't think anyone uses it, so I haven't updated it).
As I do not think there is any software enabling use of 64 roms, it just easier to disable XMEM rom part and upload the roms you use to M4 via the webinterface.

There is no way to use your printer via wifi unfortunately.
And lastly you didn't come across as rude, so no worries :)


Thanks for the information Duke. Hmm seems like a bit of a waste of my X-Mem to disable the ROM board function part of it, but if it's easier to do that rather than turn the ROM board function part off on the M4 Board, then that's what I will have to do.


Shame that I cannot print directly from 6128 via the WiFi part of the M4 Board. Can it be done if someone could write the software to do it, or is it just not possible?


Is the M4 Board compatible with ParaDos by the way? I only ask, as I have a swichable dual Amsdos/ParaDos ROM in my 6128 and when I switch it to ParaDos, I cannot call ParaDos up using the |drive command/rsx.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:52, 27 July 16
All 32 roms should be able to initialize on 464 too, when using FW316UK32.ROM

I haven't tried the FW316EXP.ROM, but I think it's an upper rom with rom manager, which probably is no use for M4 board.

Quote from: DerSchatten on 19:48, 27 July 16
thanks!
what's the difference between FW316UK16.ROM and FW316UK32.ROM ?
Is this the ROM-Socket what i use?
Can the CPC464 use all 32 ROM Slots? I heave hear ther can only use 16 Slots. Or is this only a Limitation from the ROM-Box (X-MEM, MegaFlash NG)
What is the File FW316EXP.ROM ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:58, 27 July 16
Quote from: CPC_Fan on 19:51, 27 July 16

Thanks for the information Duke. Hmm seems like a bit of a waste of my X-Mem to disable the ROM board function part of it, but if it's easier to do that rather than turn the ROM board function part off on the M4 Board, then that's what I will have to do.


Shame that I cannot print directly from 6128 via the WiFi part of the M4 Board. Can it be done if someone could write the software to do it, or is it just not possible?


Is the M4 Board compatible with ParaDos by the way? I only ask, as I have a swichable dual Amsdos/ParaDos ROM in my 6128 and when I switch it to ParaDos, I cannot call ParaDos up using the |drive command/rsx.

If you moved M4 rom board out of range you would loose 32 roms that are not easy accessible (of course programmers could easy use them). If you disable rom board function of XMEM you loose 32 roms, so imho. it doesn't really matter which you disable/move.

To use parados or amsdos, type |m4romoff, it will last until you turn power off/on the CPC.

EDIT: About WiFi printer, technically of course its possible, but I have no idea about the work involved, probably there is not a generic method, hence the need for printer drivers on PC, which I think would amount to too much work, and with the wifi setup you can transfer your protext files in a split second to pc and print them out.
Title: Re: Amstrad CPC WiFi
Post by: CPC_Fan on 20:44, 27 July 16
Thanks again Duke. Sorry for asking all the questions, but I never really got into the programming side of the CPC, so I don't necessarily understand all the technicalities of it. Maybe I will just use the |m4romoff command for now.


With regards to WiFi printing. Yeah I kind of guessed that software would have to be written for it. Don't worry I don't expect you to do it  :)   I'm just grateful that you designed and built the M4 Board in the first place  :D   How do I use the WiFi set up to transfer any Protext files to my PC and print them out by the way?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:18, 27 July 16
Quote from: CPC_Fan on 20:44, 27 July 16
With regards to WiFi printing. Yeah I kind of guessed that software would have to be written for it. Don't worry I don't expect you to do it  :)   I'm just grateful that you designed and built the M4 Board in the first place  :D   How do I use the WiFi set up to transfer any Protext files to my PC and print them out by the way?

The simple method is:
On your PC, open firefox/internet explorer and type http://cpc-ipno/sd/nameofprotextfile (http://cpc-ipno/sd/nameofprotextfile)

In this case when you open it in notepad or whatever on PC you need to cut off the amsdos header (first 128 bytes).

The other method is to use the small cpcxfer program I wrote, it can automatically remove the header. But it's a command line tool, so maybe not so straight forward for everyone.
Eitherway if you download cpcxfer (or just xfer.exe, grab the exe from here GitHub - M4Duke/cpcxfer: Cmd line tool to transfer files to and from M4 board (https://github.com/M4Duke/cpcxfer) ).
Then open a dos box and type:
xfer -d cpcipaddr protextfile / 1

It will download the file to your pc and remove the header, and you should be able to load up the file in ie. notepad.

You can just as easily upload it again with changes... these are current parameters:

xfer -u ipaddr file path opt            - Upload file, opt 0: no header add, 1: add ascii header
xfer -d ipaddr file path opt            - Download file, opt 0: leave header, 1: remove header
xfer -r ipaddr                          - Reboot M4
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 21:20, 27 July 16
My set-up currently has my C4CPC in my 6128 Plus with ParaDOS 1.2+, I then have a number of ROMS uploaded to my XMEM with the jumper on the XMEM for the ROMs enabled. On top of this I have my M4 board set-up so that the M4 ROM is on ROM 7. So when the M4 is enabled as it is on power-on the XMEM doesn't load any of it's ROMs (this is by design I believe) and ParaDOS is also overridden and doesn't load. At the moment this seems to give the best compatibility but I need to play around a bit more when time allows with things like SymbOS to see how they work with it.

When I want to use the floppy drive or HxC I run a |M4ROMOFF command and after the reset all of the XMEM ROMS load and I can use |DRIVE from ParaDOS and load stuff from floppy or HxC as per normal.

Hope that helps.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 21:28, 27 July 16
Duke, i have a big Problem...

The M4 board responds no longer with the message M4 Board V2.0 when i Switch on.
what can I do?
And the RESET-Switch only reset the M4 Board, not the CPC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:30, 28 July 16
Replug it and clean edge connector again.

Quote from: DerSchatten on 21:28, 27 July 16
Duke, i have a big Problem...

The M4 board responds no longer with the message M4 Board V2.0 when i Switch on.
what can I do?
And the RESET-Switch only reset the M4 Board, not the CPC.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 12:27, 28 July 16
Hi Duke,

please, could you extend your documentation for the result-data of the Cortex-Commands,
e.g. i receive for command 0x4306:
1. Record:
Hex:   13 06 43 3e 6d 34 20 20 20 20   .....
Ascii:   ..C>m4   
2. Record:
Hex:  13 06 43 52 20 20 20 20 20 20   .............
Ascii:  ..CR       .ASM   1K
3. Record:
Hex:  03 04 43 FF 41 48 54 5a ........
Ascii: ..C.AHTZE~4.DSK 190K

What are the leading 3 Bytes mean?

Thanks
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:10, 28 July 16
The first byte is the size of the response and the next two bytes is an echo of the command, it could be used to check if its a valid response (ie, does sending 0x4306 command, give you 0x4306 in the response).
Quote from: SOS on 12:27, 28 July 16
Hi Duke,

please, could you extend your documentation for the result-data of the Cortex-Commands,
e.g. i receive for command 0x4306:
1. Record:
Hex:   13 06 43 3e 6d 34 20 20 20 20   .....
Ascii:   ..C>m4   
2. Record:
Hex:  13 06 43 52 20 20 20 20 20 20   .............
Ascii:  ..CR       .ASM   1K
3. Record:
Hex:  03 04 43 FF 41 48 54 5a ........
Ascii: ..C.AHTZE~4.DSK 190K

What are the leading 3 Bytes mean?

Thanks
Title: Re: Amstrad CPC WiFi
Post by: remax on 14:17, 28 July 16
I triied many things, but i can't succeed in having both FW316FR32 and the M4 rom active...

I have a config where putting M4 rom in slot 7 doesn't work.

Does someone in the same situation has a working config ?

I can manage to have FW316 active but then i lose the |netstat, |dir and else...

EDIT : doh, i forgot that under FW316, | is | and not ù...  :picard:

So it works.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 16:05, 28 July 16
Quote from: Duke on 06:30, 28 July 16
Replug it and clean edge connector again.

Does not help. The X-MEM works correct.
scrap?
Title: Re: Amstrad CPC WiFi
Post by: CloudStrife on 16:13, 28 July 16
reset button on the multiface ii and reset controlled by the albireo doesn't work with the M4...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:23, 28 July 16
Try to unplug the microSD, incase something got screwed up in the romconfig.bin and romslots.bin.
If it doesn't help when you connect it alone with cable and jumper on EXT and no microSD, then sounds like something has gone wrong with the board, and you will need to send it back to me so I can fix it or send a new one.
Quote from: DerSchatten on 16:05, 28 July 16
Does not help. The X-MEM works correct.
scrap?
Title: Re: Amstrad CPC WiFi
Post by: Tai on 16:23, 28 July 16
Just to say I've tested my M4 boards today and they work like a charm.
Kudos to Duke for this amazing piece of hardware & software!
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 16:32, 28 July 16
with or without SD-Card makes no difference.
The 3 LED light when turn on, but no more.
I have no external power supply, otherwise I would have also been tested.

Is the USB Plug only a power connector or can this connect also to the PC for Debugging?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:35, 28 July 16
Quote from: CloudStrife on 16:13, 28 July 16
reset button on the multiface ii and reset controlled by the albireo doesn't work with the M4...

I see, will check up on that later.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:37, 28 July 16
So with jumper on EXT and no powersupply, the blue led does not turn on and stay on when you power up the CPC?

The USB is connected to the M4 aswell, but I dont run any software utilizing it.

Quote from: DerSchatten on 16:32, 28 July 16
with or without SD-Card makes no difference.
The 3 LED light when turn on, but no more.
I have no external power supply, otherwise I would have also been tested.

Is the USB Plug only a power connector or can this connect also to the PC for Debugging?
Title: Re: Amstrad CPC WiFi
Post by: remax on 16:55, 28 July 16
Quote from: Duke on 16:35, 28 July 16
I see, will check up on that later.


Same for the reset button on the mother4X
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:56, 28 July 16
Quote from: remax on 16:55, 28 July 16

Same for the reset button on the mother4X

Ok good, then I can test it myself thanks.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 21:16, 28 July 16
Quote from: Duke on 16:37, 28 July 16
So with jumper on EXT and no powersupply, the blue led does not turn on and stay on when you power up the CPC?

The USB is connected to the M4 aswell, but I dont run any software utilizing it.

EXT and no Powersupply -> Blue LED light permanent. Red goes short on and off.
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 15:07, 29 July 16
ok had time to try again on netstat got no ap found I assume that means no active point, I have WPS turned off on my router if I turn that back on I guess that will push the connection.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:08, 29 July 16
Quote from: dcdrac on 15:07, 29 July 16
ok had time to try again on netstat got no ap found I assume that means no active point, I have WPS turned off on my router if I turn that back on I guess that will push the connection.

It means it didn't find your wifi router / access point. So that means either your SSID is wrong or there is no signal where the CPC is located?
Title: Re: Amstrad CPC WiFi
Post by: dcdrac on 17:30, 29 July 16
I shall try the 5 gigahertz one tomorrow only tried the 2 gighertz ssid.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 18:03, 29 July 16
Hello again i tried this board on a 464 finally. It works well. But i cannot use the tape have build in. The |tape dont work the |disc have the same result. If i remove the board the  tape work ok.
Another question i think is general can i replace the basic rom with this board?
Also i believe that you sould have all the updates in one page with the link on the documentation
P.s. |uprade dont work
The board have 1.0.3
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:45, 29 July 16
Quote from: dcdrac on 17:30, 29 July 16
I shall try the 5 gigahertz one tomorrow only tried the 2 gighertz ssid.

The ESP8266 is 2.4 GHz, so it must be the 2.4 GHz network you connect to.
The SSID should be the same as what you see in windows when showing wireless networks or on your cellphone, eq. NETGEAR, and its case sensitive.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:58, 29 July 16
To use tape or real disc, type |m4romoff, no need to remove the unit.

Yes you can replace Basic. Be aware that replacing basic involves replacing both lowerrom and upper rom 0.
Also you should be on at least firmware v.1.0.4.
I have put a change log in the documentation:
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) (press ctrl+r to make sure you are seeing latest version).
And yep I should add the links to each firmware version in the doc, will do it in next revision, or maybe a helpful soul would create a page on the wiki with all the right stuff ;)

Lastly |upgrade most certainly works (I use it on every board I ship), if it doesn't work either your wifi setup is wrong or your dns servers aren't setup properly, I suggest to use google dns (or opendns).
For google dns, set "dns1=8.8.8.8, dns2=8.8.4.4"
For opendns, set "dns1=208.67.222.222, dns2=208.67.220.220"
To use your ISP's dns, point the dns1 to your router IP, ie.
"dns1=192.168.1.1"

Here is the list of firmwares for download (unpack to root of microSD card and reboot CPC with M4):

http://www.spinpoint.org/cpc/M4FIRM_v101.zip (http://www.spinpoint.org/cpc/M4FIRM_v101.zip)
http://www.spinpoint.org/cpc/M4FIRM_v102.zip (http://www.spinpoint.org/cpc/M4FIRM_v102.zip)
http://www.spinpoint.org/cpc/M4FIRM_v103.zip (http://www.spinpoint.org/cpc/M4FIRM_v103.zip)
http://www.spinpoint.org/cpc/M4FIRM_v104.zip (http://www.spinpoint.org/cpc/M4FIRM_v104.zip)
http://www.spinpoint.org/cpc/M4FIRM_v105.zip (http://www.spinpoint.org/cpc/M4FIRM_v105.zip)
http://www.spinpoint.org/cpc/M4FIRM_v106.zip (http://www.spinpoint.org/cpc/M4FIRM_v106.zip)
http://www.spinpoint.org/cpc/M4FIRM_v107.zip (http://www.spinpoint.org/cpc/M4FIRM_v107.zip)
http://www.spinpoint.org/cpc/M4FIRM_v108b.zip (http://www.spinpoint.org/cpc/M4FIRM_v108b.zip)

Quote from: anyf33 on 18:03, 29 July 16
Hello again i tried this board on a 464 finally. It works well. But i cannot use the tape have build in. The |tape dont work the |disc have the same result. If i remove the board the  tape work ok.
Another question i think is general can i replace the basic rom with this board?
Also i believe that you sould have all the updates in one page with the link on the documentation
P.s. |uprade dont work
The board have 1.0.3
Title: Re: Amstrad CPC WiFi
Post by: remax on 19:00, 30 July 16
I may create a very crude Wiki page with all the files this evening...
Title: Re: Amstrad CPC WiFi
Post by: remax on 21:04, 30 July 16
Here it is : M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:05, 30 July 16
Quote from: remax on 21:04, 30 July 16
Here it is : M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)

Perfect!  Thanks a lot @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314), much appreciated!
Title: Re: Amstrad CPC WiFi
Post by: madram on 00:32, 31 July 16
Cards well received! These are neat little things.
Almost worked out of the box, except:
Are romconfig.bin / romslots.bin described somewhere? I'd like to shift ROMs from my CPC.

Also, |B works, but AMSDOS commands afterward still access the SD-CARD. How is that?
BTW, is M4ROM vs Parados conflict resolved (each in its own ROM, M4ROM falling back to Parados for floppy access)?
If not, how are we meant to copy from floppy/HxC to M4's SD-Card ?

Thanks a lot, keep up the great work!

Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:58, 31 July 16
Don't know why you would loose connection after 1 min, maybe a weak wifi signal where CPC is located?  - I haven't experinced it atleast.
Hard reset as the switch on the board, does not reset ?
You can upload roms, enable/disable them from cpc via the |romup, |romset & |romupd, documented here: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

For structure of romslots.bin and romconfig.bin, see this post Amstrad CPC WiFi (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg129930/#msg129930)

Currently M4 does not support real discs, if you want to use real discs (amsdos or parados), type |m4romoff.
Something is in the works for reading&writing real discs to/from microSD via M4 rom.
It's also possible to map M4 rom after AMSDOS / Parados and write a program to do, this way M4 rom wont hook the cas_ functions, but rom functions would still be available.


Quote from: madram on 00:32, 31 July 16
Cards well received! These are neat little things.
Almost worked out of the box, except:

       
  • connection was lost ~1min after |netset (with |netstat hanging). No idea why.
  • hard reset do not reset anywore!
Are romconfig.bin / romslots.bin described somewhere? I'd like to shift ROMs from my CPC.

Also, |B works, but AMSDOS commands afterward still access the SD-CARD. How is that?
BTW, is M4ROM vs Parados conflict resolved (each in its own ROM, M4ROM falling back to Parados for floppy access)?
If not, how are we meant to copy from floppy/HxC to M4's SD-Card ?

Thanks a lot, keep up the great work!
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:25, 31 July 16
Quote from: madram on 00:32, 31 July 16

       
  • hard reset do not reset anywore!
Same here on a CPC6128, but sometimes(!) when i press the reset-button for a longer time, the CPC was reset.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:56, 31 July 16
v1.0.8 (not beta anymore)

Download from here:
M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)   (if my wiki upload failed, then you can also get it from here: http://spinpoint.org/cpc/M4FIRM_v108.zip (http://spinpoint.org/cpc/M4FIRM_v108.zip)) or use |upgrade

* Fix IP addresses for httpget (again).
* Fix |dir bug.
* Fix hardreset.
* Added C_GETPATH command (requested).
* Added ability to load your own build of M4ROM from root of microSD, should be named M4ROM.BIN

I will make the source code for M4ROM available shortly, so if anyone wants to help fix bugs, add improvements, or simply make their own version this is now possible.
Using cpcxfer program you can test a build of the M4ROM in seconds, by issuing simple commands:
xfer -u <cpcip> M4ROM.BIN / 0
xfer -r <cpcip>

When M4ROM.BIN is present in root of microSD this version will be active instead of the built-in M4ROM that I supply with each upgrade.

Rom is compiled using the assembler from sdcc (sdasz80), so cross compiling is needed unless source is converted to another format.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:08, 31 July 16
Source code for M4ROM uploaded here:
GitHub - M4Duke/m4rom: M4 Board, z80 rom part (https://github.com/M4Duke/m4rom)

If anyone wants write permission, send me a pm.

EDIT: I changed the boot message in uploaded source to "M4 Board V2.1" it should be "2.0" of course, but if you assemble it and upload you can see if it works or not.
Toolchain can be obtained here: https://sourceforge.net/projects/sdcc/files/ (https://sourceforge.net/projects/sdcc/files/)
Let me know if any issues compiling it. The makefile assumes hex2bin to be in same directory.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 13:20, 01 August 16
I've just made a CPCLoader collection with all the games of NVG extracted to folders similar to the one I made to use with BonnyDOS.


http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip (http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip)


Patching for not working games is welcome ;)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 12:05, 02 August 16
Quote from: MiguelSky on 13:20, 01 August 16
I've just made a CPCLoader collection with all the games of NVG extracted to folders similar to the one I made to use with BonnyDOS.
You created the file with "CPC Loader 3" can i download this version?
From the homepage CPC Loader (http://cpcloader.trak.dk/) i can only download old versions.
Title: Re: Amstrad CPC WiFi
Post by: Laurence Morgan on 17:47, 02 August 16
This project looks amazing. Very tempting to buy one, but what I'm really after is some way to connect to a Raspberry Pi. Sorry to hijack your thread, but how easy would it be for me to take your hardware (or any schematics if you're happen to release them and build my own expansion board) and write my own libraries for connecting to a telnet server?

I've got some basic soldering skills (entirely self taught at EE though) and pretty good at programming, so it is something I could do on my own, but my biggest problem is I'm not really sure how to go about starting a project like this.  :laugh:

edit: Or if you're accepting feature requests (and I'm sure you're probably sick of hearing questions like this! lol) would you be willing to expose BASIC commands for forming TCP/IP connections and sending packets down them? Then it would be trivial for me to write a telnet client in Locomotive BASIC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:02, 02 August 16
There's a another one here working on connecting a pi to the cpc (link: CPC / Raspberry Pi Bridge Card (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/cpc-raspberry-pi-bridge-card/) ).
As for reprogramming M4 board to do other things sure it shouldn't be too hard, it's all bare metal that I am using, but there is other stuff out there such as rtos for cortex m4.
Every I/O pin on the M4 board to the cpc is labelled and a jtag or st-link can be connected to the top header and there's even serial connections for both cortex and xtensa, for easy debug printf.
You will also have to do some work on the ESP8266 to use the wifi and send data back and forth it's connected to the M4 via SPI1 / HSPI.

Feature requests are fine, but I am not promising anything :)

TCP/UDP packets via IPC commands are planned, but I need some renewed energy before I start on this.

Quote from: Laurence Morgan on 17:47, 02 August 16
This project looks amazing. Very tempting to buy one, but what I'm really after is some way to connect to a Raspberry Pi. Sorry to hijack your thread, but how easy would it be for me to take your hardware (or any schematics if you're happen to release them and build my own expansion board) and write my own libraries for connecting to a telnet server?

I've got some basic soldering skills (entirely self taught at EE though) and pretty good at programming, so it is something I could do on my own, but my biggest problem is I'm not really sure how to go about starting a project like this.  :laugh:

edit: Or if you're accepting feature requests (and I'm sure you're probably sick of hearing questions like this! lol) would you be willing to expose BASIC commands for forming TCP/IP connections and sending packets down them? Then it would be trivial for me to write a telnet client in Locomotive BASIC.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 00:01, 03 August 16
Quote from: SOS on 12:05, 02 August 16
You created the file with "CPC Loader 3" can i download this version?
From the homepage CPC Loader (http://cpcloader.trak.dk/) i can only download old versions.
Hahaha, sorry. It's not available yet. That's the frontend in really near new CPCGamesCD release!!
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 19:05, 03 August 16
my card arrive today, cant wait to test it!


Thanks Duke !!!


Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 20:06, 03 August 16
Hello,

Card received, hoping to test it next weekend!

Thanks, Duke!

Title: Re: Amstrad CPC WiFi
Post by: DaDMaN on 13:33, 04 August 16
Hi! How (or where) can I order this board?


Thanks,


DaD.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:26, 04 August 16
Quote from: DaDMaN on 13:33, 04 August 16
Hi! How (or where) can I order this board?


Thanks,


DaD.

Just send me a private message  :) with your email address and let me know what connector you want (edge or MX4).
Title: Re: Amstrad CPC WiFi
Post by: DaDMaN on 14:53, 04 August 16
Quote from: Duke on 14:26, 04 August 16
Just send me a private message  :) with your email address and let me know what connector you want (edge or MX4).


DONE  ;D ;D ;D ;D ;D ;D
Title: Re: Amstrad CPC WiFi
Post by: SOS on 15:45, 04 August 16
When i have a good-filled SD-Card, and make a |CD,"M5" the system means that the path doesnt exist (it's ok).
When i make "cat"the cat is corrupted (length = ERR) and the path is set to "m".
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:18, 04 August 16
Quote from: SOS on 15:45, 04 August 16
When i have a good-filled SD-Card, and make a |CD,"M5" the system means that the path doesnt exist (it's ok).
When i make "cat"the cat is corrupted (length = ERR) and the path is set to "m".

Ok thanks, will see if I can recreate it.


@DaDMaN (http://www.cpcwiki.eu/forum/index.php?action=profile;u=126) , not received your pm. Don't use the email option, it doesn't work at the moment.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 12:08, 05 August 16
Hi Duke (it's not possible to write a PM with an attached image?!),

i can't reproduce it (i mean, it occurs after a reset), but can you please check your code?

Thanks & Bye

SOS
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:35, 05 August 16
Quote from: SOS on 12:08, 05 August 16
Hi Duke (it's not possible to write a PM with an attached image?!),

i can't reproduce it (i mean, it occurs after a reset), but can you please check your code?

Thanks & Bye

SOS

Yep I'll check, it looks odd.
Btw. regarding reset.
When using hard reset aka pulling low bus reset (as MX4 does) this will not reset current path, this is of course useful so you don't have to re-navigate.
However using the M4 reset button, it will reset the board completely, thus resetting the path to root.
Title: Re: Amstrad CPC WiFi
Post by: DaDMaN on 13:37, 05 August 16
Quote from: Duke on 14:26, 04 August 16
Just send me a private message  :) with your email address and let me know what connector you want (edge or MX4).


Done! (again)  :P

Please @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) confirm that my message arrived.


DaD.
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 21:41, 05 August 16
Hi Duke! I received the board a couple of weeks ago upon an ultra fast shipping. Everything works well... I only had trouble on installing certain roms properly due to the Chrome bug which I only noticed after reading the thread...

Now it is time for developers explore all its possibilities...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:53, 07 August 16

V1.0.9 BETA. Get it here: http://www.spinpoint.org/cpc/M4FIRM_v109b.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b.zip)

Started adding a bit of NET API, for now only TCP/IP functions (client), max. 8 connections. Probably full of bugs :)
Functions added so far:
C_NETSOCKET    equ &4331
C_NETCONNECT    equ &4332
C_NETCLOSE    equ &4333
C_NETSEND        equ &4334
C_NETRECV        equ &4335
C_NETHOSTIP    equ &4336

Here is a small telnet client demo I was able to make with these:


Download the sample telnet client source code below.
This is a total hack, with hardcoded IP/port and you cannot use del key.
I have not read any RFC's regarding telnet, so just a quick and dirty implementation (works with my router, maybe not much else).
For anyone wanting to make a proper telnet client, feel free to use this as you wish:
GitHub - M4Duke/telnet: Example telnet client for M4board (https://github.com/M4Duke/telnet)

I haven't documented the new functions yet, but hopefully the above source will provide enough info for now.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 12:16, 08 August 16
Thanks for adding the wiki page!


It'd be good, I think, if you could also add the changelog to it. I can do it myself, of course, if you could provide me with a complete log that would save me from going through so many posts here :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:32, 08 August 16
The changelog is here (press ctrl+r, to see latest update):
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)

If you have time please add it :)  - Otherwise I will do it later(tm), I am not too familar with editing the wiki, Remax made the initial page.

Quote from: Gryzor on 12:16, 08 August 16
Thanks for adding the wiki page!


It'd be good, I think, if you could also add the changelog to it. I can do it myself, of course, if you could provide me with a complete log that would save me from going through so many posts here :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 13:04, 08 August 16
Thanks, just added up to 1.08. If you want to edit the changelog on the wiki, don't forget to use <nowiki>|</nowiki> to escape the '|' character since it's used in the markup.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:45, 08 August 16
Great thanks. Will use the templete from now on.
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 23:17, 09 August 16
Quote from: Duke on 13:53, 07 August 16
Started adding a bit of NET API, for now only TCP/IP functions (client), max. 8 connections. Probably full of bugs :)
Functions added so far:
C_NETSOCKET    equ &4331
C_NETCONNECT    equ &4332
C_NETCLOSE    equ &4333
C_NETSEND        equ &4334
C_NETRECV        equ &4335
C_NETHOSTIP    equ &4336

Excellent, but I assume these all stop the Z80 while receiving, sending, connecting etc which is all ok until your network gets slow.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:29, 10 August 16
Quote from: Executioner on 23:17, 09 August 16
Excellent, but I assume these all stop the Z80 while receiving, sending, connecting etc which is all ok until your network gets slow.
Yes for each packet. Recv is only blocking when there's data in the buffer (so it'll only take the time it takes to move the data). I guess I could make send non-blocking too, ie. adding some kind of pull function to check if data was delivered.
Let's see if anyone uses them at all :)
Title: Re: Amstrad CPC WiFi
Post by: Executioner on 21:38, 10 August 16
Quote from: Duke on 05:29, 10 August 16
Yes for each packet. Recv is only blocking when there's data in the buffer (so it'll only take the time it takes to move the data).

How much time does it take to move a packet? (and how big is a packet max?)

Quote
I guess I could make send non-blocking too, ie. adding some kind of pull function to check if data was delivered.

If both the send and receive functions (and connect) were non-blocking or at least always executed in less than 300us then interrupts could be enabled allowing for such things as palette/mode changes while accessing the network. That is probably not necessary for most applications, but would be nice. Failing that, having 20ms max to connect/send/receive would allow frame based interrupts to occur so we could for example play music. I know that the standard FDC doesn't allow all that anyway unless you use special small sectors, but it would be nice for networking, and you probably wouldn't want your entire CPC to stop permanently because you had a flaky telnet connection for example.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:35, 11 August 16
Quote from: Executioner on 21:38, 10 August 16
How much time does it take to move a packet? (and how big is a packet max?)
Without having done actual benchmarks, max packet would be around 1500 and should take roughly 3-5 ms to move from esp to m4 with overhead af various things (z80 signaling & response handling).

Quote from: Executioner on 21:38, 10 August 16
If both the send and receive functions (and connect) were non-blocking or at least always executed in less than 300us then interrupts could be enabled allowing for such things as palette/mode changes while accessing the network. That is probably not necessary for most applications, but would be nice. Failing that, having 20ms max to connect/send/receive would allow frame based interrupts to occur so we could for example play music. I know that the standard FDC doesn't allow all that anyway unless you use special small sectors, but it would be nice for networking, and you probably wouldn't want your entire CPC to stop permanently because you had a flaky telnet connection for example.
Yeah I see what you are saying, I may have to refine the work flow a bit and probably make connect and send non blocking too. Thanks for the input.
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 09:51, 11 August 16
May be a little bit off-topic, does anyone have the skills to design an enclosure for the M4?

I wouldn't mind paying for a 3D print in an online service; the M4 board is awesome and I don't like the idea of it breaking because the PCB is exposed.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 10:06, 11 August 16
Quote from: reidrac on 09:51, 11 August 16
May be a little bit off-topic, does anyone have the skills to design an enclosure for the M4?

I wouldn't mind paying for a 3D print in an online service; the M4 board is awesome and I don't like the idea of it breaking because the PCB is exposed.
Could I extend the question?
An enclosure for the other boards are needed to  :D like F-MEM, X-MASS, MotherX4.
Personally, I would not care if the enclosure is 3D-printed or made of acrylic or other material ( as long as it would not be extremely - expensive )
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:41, 11 August 16
I did try to make a case in sketchup. I am however not very good with it, so I messed up some polygons and I cannot figure out to get right again.
The print does seem to be OK though. Be aware that the rather large surface does tend to warp, so print with a brim etc (I have not manged to get a perfect print!).

This version is for MX4 connector, it will need some adjustment for edge connector.

If any sketchup pro's out there, please fix my messed up polys (see red arrows).
Then I can do a Edge connector version too and a test print to make sure it fits, if anyone wants to print out their own.
Lastly the reset button wont be accessible and the leds not visible (maybe a 'tunnel' could be made to those?).

Attached is the .skp file.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 00:08, 12 August 16
Hi everyone...

i have one of this m4 boards and looks good... but on my 464 makes nothing =(

Card is connected to the floppy disc slot with a 2gb sd formated in FAT, after turned on the 464 makes 2 resets, the rom stay the same of 464 and "cat" command gives me "press play then any key:" response.

Im lost... any ideas?

Thank you!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:41, 12 August 16
Quote from: myrsky on 00:08, 12 August 16
Hi everyone...

i have one of this m4 boards and looks good... but on my 464 makes nothing =(

Card is connected to the floppy disc slot with a 2gb sd formated in FAT, after turned on the 464 makes 2 resets, the rom stay the same of 464 and "cat" command gives me "press play then any key:" response.

Im lost... any ideas?

Thank you!
What setting is the power jumper set to? And have you cleaned the edge connector recently?
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 03:54, 12 August 16
Jumper is set to EXT, the card receive power, leds are turned on an reset button works... the edge conector is cleaned with isopropyl alcohol.

thx.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:24, 12 August 16
Have you upgraded the firmware to latest version?
The first version did not work with Gate Array 40007, I think.

Quote from: myrsky on 03:54, 12 August 16
Jumper is set to EXT, the card receive power, leds are turned on an reset button works... the edge conector is cleaned with isopropyl alcohol.

thx.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:00, 12 August 16
Also, silly as it sounds, clean thoroughly the edge connector with isopropyl alcohol to make sure you don't have a bad contact.
Title: Re: Amstrad CPC WiFi
Post by: elanstra on 09:12, 12 August 16
Do as robcfg suggested. Sounds like the Amstrad's edge connector is dirty. I had the same issue with both my old CPC 6128. I cleaned it first with a cotton bud wet with lighter fluid. After letting it dry, I also used a soft eraser. After that, it worked like a charm.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 17:27, 12 August 16
Please help...

What is the correct ROM Configuration to start BASIC V1.1 on a CPC464.
My XMEM is configured according Attachment and it works fine when i Change the ROM boot/noboot-Switch.

for m4 board I have tried the following Setting:

Rom slot 0 ... BASIC V1.1 (CPC664)
Rom slot 31 ... Lower ROM FW316UK32

Romboard start 0
Lower-rom Enabled YES
Lower-rom Slot 31

The CPC starts with FW 3.16-EN
BASIC 1.1
READY

But no Cursor.

perhaps missing the FW316EXP.ROM ?
On the XMEM, it is on Slot 01.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:39, 12 August 16
Show picture of M4 rom setting  :) - It sounds right though, do you have XMEM connected at the same time without disabling its romboard?

Quote from: DerSchatten on 17:27, 12 August 16
Please help...

What is the correct ROM Configuration to start BASIC V1.1 on a CPC464.
My XMEM is configured according Attachment and it works fine when i Change the ROM boot/noboot-Switch.

for m4 board I have tried the following Setting:

Rom slot 0 ... BASIC V1.1 (CPC664)
Rom slot 31 ... Lower ROM FW316UK32

Romboard start 0
Lower-rom Enabled YES
Lower-rom Slot 31

The CPC starts with FW 3.16-EN
BASIC 1.1
READY

But no Cursor.

perhaps missing the FW316EXP.ROM ?
On the XMEM, it is on Slot 01.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 17:55, 12 August 16
XMEM is connected with the same connector at the same time, yes, but disabled with the "READ ROM NO/YES Jumper"

WEB and ROMAN with the same configuration in attach.

Romboard start is 0, not 1
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 18:02, 12 August 16
@robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) and elantra

thank you ill try to clean it deeper

@duke

I dont know my gatearray version and dont know what fw i have, any tutorial for update the M4?

Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:06, 12 August 16
Quote from: myrsky on 18:02, 12 August 16
@robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) and elantra

thank you ill try to clean it deeper

@duke

I dont know my gatearray version and dont know what fw i have, any tutorial for update the M4?

Thanks.
Yeah clean the connector an extra time, even if you think it's clean.
Look under firmware here:
M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)

Simply download v1.0.8 and unpack it to the root of your microSD card from the PC, insert to M4 and power up the CPC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:27, 12 August 16
Quote from: DerSchatten on 17:55, 12 August 16
XMEM is connected with the same connector at the same time, yes, but disabled with the "READ ROM NO/YES Jumper"

WEB and ROMAN with the same configuration in attach.

Romboard start is 0, not 1

Ok, if start is 0 it should work, just in case try removing the XMEM. And I don't know ROMAN, but it probably wont do any good for M4 board (dont know if will do any harm either...).
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 18:56, 12 August 16
XMEM disconnected, SD-Card formated and i save the new IP-Configuration on SD-Card.
Flash FW3.15-EN and BASIC 1.1

The same. Ready...  and hangs.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:19, 12 August 16
Quote from: DerSchatten on 18:56, 12 August 16
XMEM disconnected, SD-Card formated and i save the new IP-Configuration on SD-Card.
Flash FW3.15-EN and BASIC 1.1

The same. Ready...  and hangs.
Just re-tested here with v1.0.8.
It seems you need to use basic 1.1 rom from 6128 not 664 (with 664 basic 1.1 I got no cursor too).
I use FW3.16UK32

Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:23, 12 August 16
Uploading CPC664 lowerrom + basic rom works fine, so I guess there is some difference between basic 1.1 rom from 664/6128 that FW3.16 relies on.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 19:31, 12 August 16
YES! Thats it! V1.1 from CPC 6128 works!
Very Thanks!  :D
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 12:10, 13 August 16
Quote from: Duke on 13:53, 07 August 16Started adding a bit of NET API, for now only TCP/IP functions (client), max. 8 connections. Probably full of bugs :)
Functions added so far:
C_NETSOCKET    equ &4331
C_NETCONNECT    equ &4332
C_NETCLOSE    equ &4333
C_NETSEND        equ &4334
C_NETRECV        equ &4335
C_NETHOSTIP    equ &4336


Duke, thanks a lot for adding these commands, seems to be exactly what is missing for Z80 based network applications!
I have a few questions:
- are there any buffers for incoming/outgoing data? If yes, would it be possible to add a command for reading the buffer status?
- regarding the receive command; maybe I didn't get it correctly, but what happens if you request more data than which has been received? Will it wait forever?
- what's about a status command in general? "Connection status", "new data received"...
- and of course it would be nice if there would be a listen command as well :) (for implementing server apps)

To complete this UDP support would be nice, too, but since you already implemented DNS lookup on your side anyway, and DHCP is already done at the beginning I don't see so much sense in UDP support for the beginning.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 14:25, 13 August 16
Quote from: Duke on 13:53, 07 August 16
Download the sample telnet client source code below.
This is a total hack, with hardcoded IP/port and you cannot use del key.
I have not read any RFC's regarding telnet, so just a quick and dirty implementation (works with my router, maybe not much else).
For anyone wanting to make a proper telnet client, feel free to use this as you wish:
GitHub - M4Duke/telnet: Example telnet client for M4board (https://github.com/M4Duke/telnet)

We tried the Telnet client today on Octoates CPC (currently on the EVoke Demoparty) and it is crashing unfortunately. Maybe we didn't assemble it correctly. Could you provide the BIN as well? (we also replaced the domain with another one, "telehack.com", same result)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:23, 13 August 16
Quote from: Prodatron on 12:10, 13 August 16

Duke, thanks a lot for adding these commands, seems to be exactly what is missing for Z80 based network applications!
I have a few questions:
- are there any buffers for incoming/outgoing data? If yes, would it be possible to add a command for reading the buffer status?
- regarding the receive command; maybe I didn't get it correctly, but what happens if you request more data than which has been received? Will it wait forever?
- what's about a status command in general? "Connection status", "new data received"...
- and of course it would be nice if there would be a listen command as well :) (for implementing server apps)

To complete this UDP support would be nice, too, but since you already implemented DNS lookup on your side anyway, and DHCP is already done at the beginning I don't see so much sense in UDP support for the beginning.
There is a buffer for incoming data, which you "empty" using the recv command, you cannot receive more than in the buffer (which currently is only 2KB per socket, I may allocate some more space later). Actually I am considering mapping another rom for receive buffers.
Recv is non blocking, meaning it will not wait, if there is no data in the buffer, it returns 0 in received data  size and if you request more than there is you only get what there is which again is written to received data size (response buf[3+1..2]). Later I will make send and connect non blocking too.
As for the telnet example, its just compiled with Maxam 1.5 and source loaded via Protext v1.25, the domain name, is not used (it's commented out, but was to illustrate how to use the dns lookup). You should edit the IP number (30,0,0,10 -> "10.0.0.30" to whatever you wish to connect to, or enable the domain name lookup.

line 274..
csocket:      db   &0
                  db   30,0,0,10      ; ip addr http://10.0.0.30 (http://10.0.0.30)  <-- change here
                  dw   23         ; port number
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 22:05, 13 August 16
Quote from: Duke on 13:53, 07 August 16
V1.0.9 BETA. Get it here: http://www.spinpoint.org/cpc/M4FIRM_v109b.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b.zip)

Started adding a bit of NET API, for now only TCP/IP functions (client), max. 8 connections. Probably full of bugs :)
Functions added so far:
C_NETSOCKET    equ &4331
C_NETCONNECT    equ &4332
C_NETCLOSE    equ &4333
C_NETSEND        equ &4334
C_NETRECV        equ &4335
C_NETHOSTIP    equ &4336

Here is a small telnet client demo I was able to make with these:


Download the sample telnet client source code below.
This is a total hack, with hardcoded IP/port and you cannot use del key.
I have not read any RFC's regarding telnet, so just a quick and dirty implementation (works with my router, maybe not much else).
For anyone wanting to make a proper telnet client, feel free to use this as you wish:
GitHub - M4Duke/telnet: Example telnet client for M4board (https://github.com/M4Duke/telnet)

I haven't documented the new functions yet, but hopefully the above source will provide enough info for now.
hello again Duke.
my amstrad's works fine with your board. but how can i use telnet client on my CPC? Thank you.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:49, 14 August 16
Quote from: anyf33 on 22:05, 13 August 16
hello again Duke.
my amstrad's works fine with your board. but how can i use telnet client on my CPC? Thank you.
The telnet client is not very usable right now, it was mostly meant as a proof of concept and example for other developers.
I hope someone will pick up on it and write a better version, with a bit of gui, proper dealing with the negotiation protocol, input field for server hostname or ip address, port no, handle keyboard control keys, delete key etc :)
For my short sample you will have to assemble it like I do in the video, but first edit the IP number in line 275 to reflect the IP number you want to telnet to.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 01:01, 14 August 16
Hi again...

After a deeper cleaning of the 464 connector with isopropyl alcohol, eraser and M4 fw update WORKS!

Now my problem is loading games, trying to load bruce lee i use the following RUN"BRUCEL~2.DSK" after hit enter CPC shows "File is already open", thats happend with all games, i think/need to enter to the .DSK but using the command |cd,"xxx.DSK" CPC shows "Type mismatch"

Any ideas? Thanks.

PS: I hope my explanation is understandable =)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:07, 14 August 16
Good :)
Yes the problem is you are using Basic 1.0, with Basic 1.0 you cannot pass parameters directly to RSX commands, so instead you have to do.
a$="BRUCEL~2.DSK"
|CD,@a$

Or just type |CD and press enter, then write or use shift+cursor keys+copy to get the dsk name, followed by enter.

After you have done that, type cat and run the correct file as it was a normal disc.

However the best solution is to upload lower rom from CPC6128 and basic rom from CPC6128 or the alternative FW3.16 (look a few posts back to see how thats done).
This way your CPC464 will be upgraded to Basic 1.1 and you can pass parameters to RSX commands, ie. |CD,"BRUCEL~2.DSK".

Lastly, dont forget to map M4 rom as number 7 now you are using CPC464, this will provide best compatiblity with games.


Quote from: myrsky on 01:01, 14 August 16
Hi again...

After a deeper cleaning of the 464 connector with isopropyl alcohol, eraser and M4 fw update WORKS!

Now my problem is loading games, trying to load bruce lee i use the following RUN"BRUCEL~2.DSK" after hit enter CPC shows "File is already open", thats happend with all games, i think/need to enter to the .DSK but using the command |cd,"xxx.DSK" CPC shows "Type mismatch"

Any ideas? Thanks.

PS: I hope my explanation is understandable =)
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 01:53, 14 August 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Game loaded with success with this commands, thank you!

I was reading the post about update 464 to basic 1.1 but i dont know how to manage all this files and M4 rom slots.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 08:46, 14 August 16
Hi,


Any roadmap to get a file browser in rom, or anyone knows an utility to put in the sdcard to navigate, similar for instance to fb64 inn sdiec (C64)


-
Rafael
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:47, 14 August 16
@myrsky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1856) : Check the documentation here: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) and the info's about it in this thread, should be easy.

@rcmolina (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1783) : There is no quick browser/launcher yet for the m4 fatfs filesystem. If nobody else makes one, I may do it sometime, would be a nice weekend project.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 18:49, 14 August 16
Duke, I have a suggestion/request for |DIR command: it's a bit annoying when you list a directory and there is a lot of files/folders into it as there is no way to abort the listing. BonnyDOS' |CAT command let you push spacebar everytime you want to freeze the listing: if you press space bar again, listing continues; if you push Return, listing aborts.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:52, 14 August 16
@MiguelSky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=14): Noted, will add it next time I make an upgrade, should be very easy to add.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 19:34, 14 August 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Configuration is only wireless? I dont have any wifi network here to test now.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:30, 15 August 16
Quote from: myrsky on 19:34, 14 August 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Configuration is only wireless? I dont have any wifi network here to test now.
Some parts are (lowerrom and mappings). You could manually edit the romslots/romconfig files though.

I have attached predefined romslots.bin and romconfig.bin, if you copy these two files into m4 directory (from root) via pc and start up the cpc you will have basic 1.1 and fw316 in lowerrom, besides M4 rom is set to 7 (so not suitable for some regular CPC6128's).
If you get tired of them, simply delete the files again from m4 directory.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:53, 15 August 16
Quote from: Duke on 15:23, 13 August 16Later I will make send and connect non blocking too.
TBH I can't find any "blocking" code in the Telnet source code. "sendcmd" returns directly after sending all data to the M4, and after each sendcmd you are reading the results immediately.

(I sent you an email with several questions regarding the network API some minutes ago as well :) )
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:44, 15 August 16
Quote from: Prodatron on 13:53, 15 August 16
TBH I can't find any "blocking" code in the Telnet source code. "sendcmd" returns directly after sending all data to the M4, and after each sendcmd you are reading the results immediately.

(I sent you an email with several questions regarding the network API some minutes ago as well :) )

Not received, the email via forum doesn't work for the time being... I'll pm you my email address.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 15:44, 15 August 16
Thanks, email sent!...
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 22:23, 15 August 16
Quote from: Duke on 05:30, 15 August 16
Some parts are (lowerrom and mappings). You could manually edit the romslots/romconfig files though.

I have attached predefined romslots.bin and romconfig.bin, if you copy these two files into m4 directory (from root) via pc and start up the cpc you will have basic 1.1 and fw316 in lowerrom, besides M4 rom is set to 7 (so not suitable for some regular CPC6128's).
If you get tired of them, simply delete the files again from m4 directory.

Ill try it this night in some spare time but thanks for all =)

Edit:

Tested but 464 enter on a infinite loop of resets most of the time, the only times i could put a game the sound was corrupt.
Title: Re: Amstrad CPC WiFi
Post by: DaDMaN on 10:22, 17 August 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


The board arrived yesterday.  ;D ;D ;D ;D ;D ;D ;D ;D :D :D :D :D :D


Thanks for your hard work and your effort.


Cheers,


DaDMaN.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 19:57, 18 August 16
Quote from: MiguelSky on 18:49, 14 August 16
Duke, I have a suggestion/request for |DIR command: it's a bit annoying when you list a directory and there is a lot of files/folders into it as there is no way to abort the listing. BonnyDOS' |CAT command let you push spacebar everytime you want to freeze the listing: if you press space bar again, listing continues; if you push Return, listing aborts.


X-DDOS allows ESC to be pressed to stop listing. 2nd ESC stops listing. Any other key continues listing. IMHO favorable ;-)

Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 20:55, 18 August 16
Yes, I think using ESC key would be perfect too.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:12, 20 August 16

V1.0.9b2  - Downloadable here: http://www.spinpoint.org/cpc/M4FIRM_v109b2.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b2.zip)
Changes:
* Added ESC check to cat/|dir.
* All NETAPI made non-blocking (refer to new telnet sample for details, GitHub - M4Duke/telnet: Example telnet client for M4board (https://github.com/M4Duke/telnet)).
* Lots of bugfixes in NETAPI.

Number of sockets decreased to 4 and receive buffers for each socket increased to 4KB (but keep transfer at once to 2KB due to response buffer).
Source code for M4rom was updated too: GitHub - M4Duke/m4rom: M4 Board, z80 rom part (https://github.com/M4Duke/m4rom)  with new socket status array.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 22:39, 21 August 16
Hi...

Just a question, where can i download FW3.xx for a spanish layout keymap and cpc 6128 basic 1.1?

Thanks.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:46, 21 August 16
https://github.com/realmml/FW3.1x
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:01, 22 August 16
Finally had a bit of time to use my own hardware for amusement, this collection is amazing, almost everything works that I tried (proper cracks!).
This is with CPC6128+ and M4 rom mapped as rom7, thanks for the good work @MiguelSky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=14).
All this needs is a quick navigator to get rid of the |cd, |dir navigation, maybe a quick scan for executable files and display full length directory names. Something I'd like to make if noone else is in the process  8)

Quote from: MiguelSky on 13:20, 01 August 16
I've just made a CPCLoader collection with all the games of NVG extracted to folders similar to the one I made to use with BonnyDOS.


http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip (http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip)


Patching for not working games is welcome ;)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 18:28, 22 August 16
I love seeing posts from @Prodatron in this thread, hopefully this means a version of SymbOS that can be launched from the m4 micro SD card a: with WiFi might be coming. Please please please ;)

It would be so sweet to be able to launch symbos with a run"sym on the a drive with microsd speeds. ;)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 18:56, 22 August 16
Quote from: Duke on 18:01, 22 August 16this collection is amazing, almost everything works that I tried (proper cracks!).
This is with CPC6128+ and M4 rom mapped as rom7, thanks for the good work @MiguelSky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=14).
Well, most of the work is by Nich Campbell (ftp NVG) and TroelsK (CPCLoader), I only put together the work of both of them.



QuoteAll this needs is a quick navigator to get rid of the |cd, |dir navigation, maybe a quick scan for executable files and display full length directory names. Something I'd like to make if noone else is in the process  8) 
Yes! That sounds great!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:09, 22 August 16
Quote from: MiguelSky on 18:56, 22 August 16
Well, most of the work is by Nich Campbell (ftp NVG) and TroelsK (CPCLoader), I only put together the work of both of them.


Yes! That sounds great!
Ahh, I was looking for a long time for cracked games as most downloads were original dumps (mainly I found http://cngsoft.no-ip.org (http://cngsoft.no-ip.org) and CPCCRACKERS - DOWNLOADS (http://cpccrackers.free.fr/Downloads) with good cracks). Nice to have one huge collection.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 19:36, 23 August 16
Quote from: Duke on 18:01, 22 August 16
All this needs is a quick navigator to get rid of the |cd, |dir navigation, maybe a quick scan for executable files and display full length directory names. Something I'd like to make if noone else is in the process  8)


A dream comes true!  :P
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 09:36, 24 August 16
What about your fat browser creature name ?  :o
Have you think about that?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:28, 24 August 16
Quote from: rcmolina on 09:36, 24 August 16
What about your fat browser creature name ?  :o
Have you think about that?
lol no, let's see if I get started at all :) I feel very rusty when it comes to CPC UI programming...
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 18:56, 24 August 16
hi Duke, got my Wifi cards today, so excited... but 4am so have to sleep for work...  do you recommend i use it in place of XMem or in addition to?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:58, 24 August 16
Cool. I recommend you disable romboard function of Xmem (should be a jumper for it) until you need 64 roms, then you wont have to do other tricks to have M4 rom available.

Quote from: zhulien on 18:56, 24 August 16
hi Duke, got my Wifi cards today, so excited... but 4am so have to sleep for work...  do you recommend i use it in place of XMem or in addition to?
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 19:28, 24 August 16
Quote from: CraigsBar on 18:28, 22 August 16
I love seeing posts from @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) in this thread, hopefully this means a version of SymbOS that can be launched from the m4 micro SD card a: with WiFi might be coming. Please please please ;)

It would be so sweet to be able to launch symbos with a run"sym on the a drive with microsd speeds. ;)
You can already boot the "raw" version of SymbOS with the M4 from SD card in about 2 seconds :)
During the last days/weeks Duke already added a lot of very useful API stuff to the M4 firmware. This will enable full SymbOS support very soon - both SD card access and networking. At least I am currently working on it and hope to have it finish somewhen in september.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:33, 24 August 16
Quote from: Prodatron on 19:28, 24 August 16
You can already boot the "raw" version of SymbOS with the M4 from SD card in about 2 seconds :)
During the last days/weeks Duke already added a lot of very useful API stuff to the M4 firmware. This will enable full SymbOS support very soon - both SD card access and networking. At least I am currently working on it and hope to have it finish somewhen in september.
Great news! Guess what I am playing with tonight ;)
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 21:01, 24 August 16
Quote from: CraigsBar on 23:46, 21 August 16
GitHub - realmml/FW3.1x: A series of patches over the original Amstrad CPC (https://github.com/realmml/FW3.1x)

Thank you!

@all

These basic roms are correct for m4? ROM List - CPCWiki (http://www.cpcwiki.eu/index.php/ROM_List#BASIC_ROMs)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:38, 25 August 16
Quote from: CraigsBar on 19:33, 24 August 16
Great news! Guess what I am playing with tonight ;)
And indeed it does. I love the fact that it reconnects the floppy drives after boot. So in theory, we could have symbos booted from the raw dsk image on the m4 SD card, and once running have the conf file on the SD card and retain access to the floppies. Wow. I cannot wait.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:19, 25 August 16
Quote from: myrsky on 21:01, 24 August 16
These basic roms are correct for m4? ROM List - CPCWiki (http://www.cpcwiki.eu/index.php/ROM_List#BASIC_ROMs)

Yes they are fine, but you may need to match them tough, if ie. using basic 1.1 from CPC664 you need to use lowerrom for CPC664 aswell.
Incase of fw316 you need CPC6128 basic.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 15:41, 25 August 16
Quote from: CraigsBar on 12:38, 25 August 16
And indeed it does. I love the fact that it reconnects the floppy drives after boot. So in theory, we could have symbos booted from the raw dsk image on the m4 SD card, and once running have the conf file on the SD card and retain access to the floppies. Wow. I cannot wait.
Yes, I can't wait for this as well!  :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:57, 25 August 16
Quote from: Prodatron on 15:41, 25 August 16
Yes, I can't wait for this as well!  :)
Not this week then. ;) CPC and m4 will be an awesome symbos platform.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 20:59, 25 August 16
Quote from: Duke on 15:19, 25 August 16
Yes they are fine, but you may need to match them tough, if ie. using basic 1.1 from CPC664 you need to use lowerrom for CPC664 aswell.
Incase of fw316 you need CPC6128 basic.

Yes i was talking about the 6128 one, thank you!
Title: Re: Amstrad CPC WiFi
Post by: ukmarkh on 00:01, 27 August 16
Does this mean we will all be able to play CPC games, multiplayer in the future?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:11, 27 August 16
Quote from: ukmarkh on 00:01, 27 August 16
Does this mean we will all be able to play CPC games, multiplayer in the future?
Yes, it's up to the devs of future games of course. It should be fully possible with the 2nd beta api, at the cost of a couple of rasterlines per frame.
For info how to use the api check the telnet source example and documentation here: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Without actual host api (might come, might not..). A game server would be needed rather than p2p connections.

Reason it's still beta, is that I need some feedback if any issues or something needs to be changed.
Title: Re: Amstrad CPC WiFi
Post by: Octoate on 09:41, 27 August 16
Hi Duke,
during the Evoke I played around with the networking and had trouble connection to my WiFi network via the Netstat command. The WiFi name contains spaces e.g. "ABC Cdefg 1" and I wasn't able to set it up - however, using the config file on the SD card worked fine. The firmware was version 1.0.8. Is this a known issue?
And another question... working in a network with more than 400 people, some people think that it is funny to reset the CPC during playing or working with it ;-). A simple password protection for the webinterface would be really nice :D.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:44, 27 August 16
Quote from: Octoate on 09:41, 27 August 16
Hi Duke,
during the Evoke I played around with the networking and had trouble connection to my WiFi network via the Netstat command. The WiFi name contains spaces e.g. "ABC Cdefg 1" and I wasn't able to set it up - however, using the config file on the SD card worked fine. The firmware was version 1.0.8. Is this a known issue?
And another question... working in a network with more than 400 people, some people think that it is funny to reset the CPC during playing or working with it ;-). A simple password protection for the webinterface would be really nice :D .
Hi Octoate,

It's the first I have heard of it, but will check it out soon thanks :)  And good point about the password for web UI, I'll see what can be done about it.
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 18:55, 27 August 16
Quote from: ukmarkh on 00:01, 27 August 16
Does this mean we will all be able to play CPC games, multiplayer in the future?

If there is a network driver ready for the SymbOS network daemon then there already some network applications and (small games) which should work on the CPC :D

Snake network Multiplayer game for SymbOS 3 | MSX Resource Center (https://www.msx.org/downloads/snake-network-multiplayer-game-for-symbos-3-0)
Battleship network game for SymbOS 3 | MSX Resource Center (https://www.msx.org/downloads/battleship-network-game-for-symbos-3)
SymBUS remote simple managment for SymbOS 3 | MSX Resource Center (https://www.msx.org/downloads/symbus-remote-simple-managment-for-symbos-3)
Network Chat (Client) Program for SymbOS running Network Daemon | MSX Resource (https://www.msx.org/downloads/network-chat-client-program-symbos-running-network-daemon)

small movie for the chat client:
(https://www.youtube.com/watch?v=QLbEt-yjWDE)
[/url]
and fun with battle-ship
(https://www.youtube.com/watch?v=L3arrALdYcU)
[/url]

It will be cool to have the CPC with network! That will link the MSX and CPC together ! as the CPC and MSX are Z80 brothers :D 


[EDIT: Please use the YouTube button to embed your videos]

Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 08:22, 28 August 16
Got the cards!! When I have some free time I will test them. Is there any roadmap for UDP?


My idea is to make some kind of BSD sockets lib for SDCC (CPCtelera, etc) because I have a port in mind. But I need UDP. No hurry!!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:42, 28 August 16
Quote from: KaosOverride on 08:22, 28 August 16
Got the cards!! When I have some free time I will test them. Is there any roadmap for UDP?


My idea is to make some kind of BSD sockets lib for SDCC (CPCtelera, etc) because I have a port in mind. But I need UDP. No hurry!!!

Good. Not yet, once TCP implementation is confirmed OK, I can add UDP and hopefully later host functions.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 00:40, 29 August 16
Finished the driver and need to do a lot of tests now.
[attachimg=1]
Thanks so much to Duke for this very generic network API and your fast replys and useful modifications! Unfortunately I am not home during the next days, but hopefully there is more progress on the XzentriX 8bit retro meeting next weekend! :)
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 02:35, 29 August 16
Hi

I have access to a wifi network so i trying to configure the M4 for FW316ES and CPC6128 basic 1.1 through the web interface but the RSX commands to setup the wifi network doesnt work with basic 1.0. What can i do?

I was using a program called ROMAN to manage rom slots but on a CPC464 cant import any file... so no more ideas.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:57, 29 August 16
Quote from: myrsky on 02:35, 29 August 16
Hi

I have access to a wifi network so i trying to configure the M4 for FW316ES and CPC6128 basic 1.1 through the web interface but the RSX commands to setup the wifi network doesnt work with basic 1.0. What can i do?

I was using a program called ROMAN to manage rom slots but on a CPC464 cant import any file... so no more ideas.
You can use all the M4 RSX commands on a CPC464 with basic 1.0, instead of passing arguments directly you need to use a variable.
Ie. for setting up the network:
A$="name=CPC464, ssid=NETGEAR, pw=12345678, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4"

|NETSET,@A$

(edit the ssid and pw to match your router or access point).

Afterwards check the netconnection using:
|NETSTAT

As for managing roms from the CPC itself, you need to use |ROMUP, |ROMSET & |ROMUPD (refer to manual: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)).
Unfortunately you need the webinterface to set up the lowerrom.

@Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13): Great work! - Hope there isn't too many bugs in my API, we shall see :)
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 09:32, 29 August 16
Quote from: Prodatron on 00:40, 29 August 16
Finished the driver and need to do a lot of tests now.
[attachimg=1]
Thanks so much to Duke for this very generic network API and your fast replys and useful modifications! Unfortunately I am not home during the next days, but hopefully there is more progress on the XzentriX 8bit retro meeting next weekend! :)

Wow! What impressive is this!! I don't own a CPC computer but i really like to see this screenshot!!! :D :D
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:14, 29 August 16
Quote from: KaosOverride on 08:22, 28 August 16My idea is to make some kind of BSD sockets lib for SDCC (CPCtelera, etc) because I have a port in mind.
The multiplayer tank network game for the SpectraNet??  :P
I am currently using UDP only for DHCP and DNS lookup, and as this is done by the M4 anyway I am currently not missing it, but I can imagine that it is useful for future projects as well. Hope to finish the TCP function tests this weekend.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:47, 29 August 16
Quote from: Prodatron on 13:14, 29 August 16
The multiplayer tank network game for the SpectraNet??  [emoji14]
I am currently using UDP only for DHCP and DNS lookup, and as this is done by the M4 anyway I am currently not missing it, but I can imagine that it is useful for future projects as well. Hope to finish the TCP function tests this weekend.
:) just a thought I had last night.... Does the raw version of symbos also boot on a xmass? Sorry for going off topic here.

Back on topic again, with symbos booting so quickly from the m4 SD card are there any advantages to the ROM version any more? Once this network and m4 storage version is release I think we will have a new king for symbos hardware. So long symbiface2, your time has gone!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:52, 29 August 16
Quote from: CraigsBar on 14:47, 29 August 16
So long symbiface2, your time has gone!

M4 lacks ps/2 mouse port!!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:54, 29 August 16
The albireo has a USB socket with HID support. I still hope to see Symbos support for that ;)
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 16:34, 29 August 16
Quote from: Duke on 05:57, 29 August 16
You can use all the M4 RSX commands on a CPC464 with basic 1.0, instead of passing arguments directly you need to use a variable.
Ie. for setting up the network:
A$="name=CPC464, ssid=NETGEAR, pw=12345678, dhcp=1, dns1=8.8.8.8, dns2=8.8.4.4"

|NETSET,@A$

(edit the ssid and pw to match your router or access point).

Afterwards check the netconnection using:
|NETSTAT

As for managing roms from the CPC itself, you need to use |ROMUP, |ROMSET & |ROMUPD (refer to manual: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)).
Unfortunately you need the webinterface to set up the lowerrom.

@Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13): Great work! - Hope there isn't too many bugs in my API, we shall see :)

Sorry i was aware of a$ but not for all commands... this makes things easier, im a fucking nerd with CPC interfaces.

Thanks Duke.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:46, 29 August 16
Quote from: Octoate on 09:41, 27 August 16
And another question... working in a network with more than 400 people, some people think that it is funny to reset the CPC during playing or working with it ...


That is a good point. I know that the M4 needs to reset the CPC at startup, but in general it should not be able to reset the CPC for any other software or especially somebody from a network.


(Forget passwords, people love to hack em).
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 20:59, 29 August 16
Quote from: CraigsBar on 14:47, 29 August 16
:) just a thought I had last night.... Does the raw version of symbos also boot on a xmass? Sorry for going off topic here.

Back on topic again, with symbos booting so quickly from the m4 SD card are there any advantages to the ROM version any more? Once this network and m4 storage version is release I think we will have a new king for symbos hardware. So long symbiface2, your time has gone!

This is how the MSX works. You boot SymbOS from a storage device. As the MSX have a lot of different storage devices you have to load the storage drivers first before loading SymbOS. Anyway I love this new Wifi interface! Is the device I/O based? And in that case the hardware could be compatible for the MSX as well ;)
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 03:48, 30 August 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

More news about my adventures with M4, after a correct wireless setup i put (using the web interface) BASIC 1.1 from 6128 on slot 1 and fw316es32 on slot 31 as you suggested to the user dershatten in the attached picture... the files used are the following, FW316 from here GitHub - realmml/FW3.1x: A series of patches over the original Amstrad CPC (https://github.com/realmml/FW3.1x) and cpc6128 basic 1.1 from here Locomotive BASIC - CPCWiki (http://www.cpcwiki.eu/index.php/Locomotive_BASIC)

My result is a garbage boot screen or a infinite reset loop.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:08, 30 August 16
Quote from: Edoz(MSX) on 20:59, 29 August 16
Is the device I/O based? And in that case the hardware could be compatible for the MSX as well ;)
Partially, commands are send via ports, but responses are put into a memory mapped rom area (M4 ram).

@myrsky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1856) : Try attaching a zipped version of your romslots.bin & romconfig.bin. However the version I attached earlier should have worked just fine (it did on my 464).
Just noticed you say inifinite reset loop, perhaps try to clean connector again.
Also another suggestion, try to use lowerrom from CPC664 and upperrom from CPC664 to see if that works. (OS.rom is lower, Basic.rom is upper)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:33, 30 August 16
Another little v1.0.9 beta : http://www.spinpoint.org/cpc/M4FIRM_v109b6.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b6.zip)

Besides some small changes to netapi (will document later...)
Added one super cool feature - I think atleast 8)
Upon bootup / reset, it will now look for AUTOEXEC.BAS in root directory and if found, launch it first thing.

Example AUTOEXEC.BAS, to set your own custom colours

10 INK 0,0
20 INK 1,26
30 BORDER 0
save"autoexec.bas"

Please test and let me know if any issues or undesired sideffects (it's a bit of a wacky hack...)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:38, 30 August 16
Quote from: Duke on 08:33, 30 August 16
Another little v1.0.9 beta : http://www.spinpoint.org/cpc/M4FIRM_v109b6.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b6.zip)

Besides some small changes to netapi (will document later...)
Added one super cool feature - I think atleast 8)
Upon bootup / reset, it will now look for AUTOEXEC.BAS in root directory and if found, launch it first thing.

Example AUTOEXEC.BAS, to set your own custom colours

10 INK 0,0
20 INK 1,26
30 BORDER 0
save"autoexec.bas"

Please test and let me know if any issues or undesired sideffects (it's a bit of a wacky hack...)
I am so definitely gonna be playing with this tonight.

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:32, 30 August 16
Quote from: CraigsBar on 09:38, 30 August 16
I am so definitely gonna be playing with this tonight.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), this a f'king amazing.

I have placed the SymbOS roms in slots 15, 29, 30 & 31

I used the 6 lines of basic below and it presents a 5 second dialog to not boot Symbos and if the prompt is not actioned it boots symbos from Rom! I love it.

  10 AFTER 250 GOSUB 50
  20 LOCATE 1,7: PRINT "Press [CONTROL] to cancel SymbOS Boot"
  30 IF INKEY (23) <> 128 THEN 30
  40 sym$="N": GOTO 50
  50 IF sym$="N" THEN GOTO 60 ELSE MODE 1:|SYM   
  60 LOCATE 1,7: PRINT"                                           ":LOCATE 1,7:END

bravo duke, this is great.  ;D
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 20:52, 30 August 16
Quote from: Duke on 05:08, 30 August 16
Partially, commands are send via ports, but responses are put into a memory mapped rom area (M4 ram).

@myrsky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1856) : Try attaching a zipped version of your romslots.bin & romconfig.bin. However the version I attached earlier should have worked just fine (it did on my 464).
Just noticed you say inifinite reset loop, perhaps try to clean connector again.
Also another suggestion, try to use lowerrom from CPC664 and upperrom from CPC664 to see if that works. (OS.rom is lower, Basic.rom is upper)

Booting from scratch 464 never made automatic reboots, these screen garbage and reboots come after wireless config. This is the last config i did...

PS: When i make wifi transfers to the 464, i hear interference in the internal speaker, thats only like curiosity nothing important.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:04, 30 August 16
Quote from: myrsky on 20:52, 30 August 16
Booting from scratch 464 never made automatic reboots, these screen garbage and reboots come after wireless config. This is the last config i did...

PS: When i make wifi transfers to the 464, i hear interference in the internal speaker, thats only like curiosity nothing important.
What powersupply are you using? - Perhaps you should try to add a USB power supply directly to the M4 board and change jumper then interference will go away.
I only had "automatic" reboots when edge connector needed cleaning, but could be a power draw in your case if its only with wifi enabled... You could try to delete or rename the config.txt in m4 folder and reboot again without WiFi enabled to see if it changes anything.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 22:09, 30 August 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I use a 5V 2A powersupply but with your M4 config on page 65 of this thread is not stable with same "automatic" reboots with WiFi disabled.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 22:38, 30 August 16
Hi Duke. I am wondering with the web interface... where is it served from? Could a wwwroot be served from a wwwroot folder on the sdcard if one exists?
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 23:35, 30 August 16
Quote from: Prodatron on 13:14, 29 August 16
The multiplayer tank network game for the SpectraNet??  :P



Yes!! Until UDP I will focus in the graphics engine. I have to port the full project from Z88dk to SDCC, from the Z88dk's SP1 tile and sprite lib maybe making a kind of wrapper to the cpctlera functions, and many more. I have to make a CPC.h to replace Spectrum.h, and the BSDsockets lib to make the fewer changes to the original game.  :-X So there is not hurry for the UDP.


The tank server/engine is impresive. with few changes we can make some kind of CallOfDuty 2D deathmatch. With more straight maps and changing from rotational control to directional, the sprites for human soldiers, not tanks, reciclyng the fuel icon with grenades....


The client is just a loop that sends movement commands from keypress and draws sprites and sets the tilemap from UDP messages. Messages of create/destroy or relocation of the sprites, scoreboard, and the map tile section every time you change of map sector. Is just a player!!! all the IA is managed at the server...


And with a good hardware abstraction socket lib, if there is more hardware (ethernet, other wifis) the game just needs to change the lib and work with new hardware.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:06, 31 August 16
Quote from: zhulien on 22:38, 30 August 16
Hi Duke. I am wondering with the web interface... where is it served from? Could a wwwroot be served from a wwwroot folder on the sdcard if one exists?
It's served from the flash on the ESP module, but you should be able to just place files on sd card and write http://name/sd/ (http://name/sd/) (or ip) then it will read from root of sd card, just prefix all links with /sd.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 10:05, 31 August 16
If http://host/ (http://host/) reads from sd/wwwroot and http://host/setup (http://host/setup) opens de setup panels then you have the CPC web server done xD


If the /sd full access is configured as an option to deny http://host/sd (http://host/sd) and a file at m4/setup.txt for basic auth, then you are done.


Will be funny to edit html with tasword at wwwroot and serve it to the world... LOL
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 15:56, 31 August 16
Quote from: KaosOverride on 10:05, 31 August 16
If http://host/ (http://host/) reads from sd/wwwroot and http://host/setup (http://host/setup) opens de setup panels then you have the CPC web server done xD


If the /sd full access is configured as an option to deny http://host/sd (http://host/sd) and a file at m4/setup.txt for basic auth, then you are done.


Will be funny to edit html with tasword at wwwroot and serve it to the world... LOL

In this case it's more an M4 Cortex webserver than a CPC web server ;)
Interesting topic anyway. If Duke will add server/passive TCP mode in the future it has to be changed, as the CPC itself may want to listen at port 80.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:28, 01 September 16
So the CPCWiki/Forum will be hosted on a CPC in the near future??  :o

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 08:16, 01 September 16
Using SymbOS Cluster Server or FutureOS NetWarp  :P :P
Title: Re: Amstrad CPC WiFi
Post by: TotO on 08:27, 01 September 16
While connected peoples use a CPC to access the forum/wiki, it should be not a problem.  :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:09, 01 September 16
Quote from: KaosOverride on 08:16, 01 September 16
Using SymbOS Cluster Server or FutureOS NetWarp  :P :P

Ampache perhaps?

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 14:17, 01 September 16
Guys, it's already running on one, haven't you noticed the stability improvements?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:19, 01 September 16
Quote from: Gryzor on 14:17, 01 September 16
Guys, it's already running on one, haven't you noticed the stability improvements?
;) with 512mb extension I guess
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 14:39, 01 September 16
Very good! I have now an empty sockets lib and the example "open connection and say OK" code is ready under SDCC.

Now is time to fill in the gaps and make null returning funcs usable.

The only docs are the M4info.txt and the telnet example? Looks like I can go on with that. And the read buffer is accessed by turning on the M4 ROM at &C000 and go to the offset pointed at M4info.txt. Well, ok  :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:43, 01 September 16
Quote from: KaosOverride on 14:39, 01 September 16
Very good! I have now an empty sockets lib and the example "open connection and say OK" code is ready under SDCC.

Now is time to fill in the gaps and make null returning funcs usable.

The only docs are the M4info.txt and the telnet example? Looks like I can go on with that. And the read buffer is accessed by turning on the M4 ROM at &C000 and go to the offset pointed at M4info.txt. Well, ok  :D
There has been some more changes, that I haven't documented yet and I also found bugs(!). The socket status can now contain 3 if remote closed connection, so you can check before recv() instead of looking for 0xFE return from recv().
Over the weekend I will try to iron out the bug(s) and also the socket status structure will be changed.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 17:12, 01 September 16
Quote from: KaosOverride on 08:16, 01 September 16
Using SymbOS Cluster Server or FutureOS NetWarp  :P :P


Well, I hope more for a solution based on native OS, so everybody can use it. However since the M4 provides ROMs it's not a problem to also use SymbOS as platform. But it would be so nice to just enter one RSX command and everything is starting up.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:09, 01 September 16
Made another little example for testing the TCP netapi, appearently the bug(s) I thought I found last night, must have been due to my z80 code.
Anyway its a small TCP echo server, running on PC and a client on the CPC, so you simply can send messages to the PC and it will echo them back.
Only useful for testing, no practical use :)
GitHub - M4Duke/tcpecho: TCP echo server for PC and client for CPC M4 board (https://github.com/M4Duke/tcpecho)

If anyone wants to try it out, you can download the binary directly via M4 to your cpc:
|httpget,"spinpoint.org/cpc/TCPECHO.BIN"
and
run"TCPECHO.BIN"
Launch the tcpserv.exe on your PC (get it from github repo above).
Type PC IP number on CPC and start chatting with yourself :o
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 15:10, 02 September 16
Good work, sure you will iron those bugs!


Now I' refreshing the very very little asm I now and hope to write the "talking engine" from C with asm inserts for SDCC.


Taking a look at the tank game, or I rewrite the full tile/sprite directly to cpctelera primitives or I make the port of SP1 lib nobody has done over many years, but that is another history apart from this tcpip.


Maybe I take other of the examples from de spectranet TcpIp sources like the irc client  :laugh: :laugh: :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:44, 02 September 16
Quote from: KaosOverride on 15:10, 02 September 16
Maybe I take other of the examples from de spectranet TcpIp sources like the irc client  :laugh: :laugh: :laugh:
That would be very cool :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:26, 03 September 16
Firmware updated to v1.0.9b7: http://www.spinpoint.org/cpc/M4FIRM_v109b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b7.zip)

Now added host (passive) functions, bind, listen, accept.



The newly created sockinfo structure in rom that works as read only hardware registers have changed.
The table is read by, taking the addr of 0xFF06, which points to the structure:
; 5 socket status structures (0 is used for gethostbyname*, 1-4 returned by socket function) of 16 bytes
; structure layout
;    status        1    - current status 0=idle, 1=connect in progress, 2=send in progress, 3=remote closed connectoion, 4=wait incoming (accept), 240-255 = error code
;    lastcmd        1    - last command updating sock status 0=none, 1=send, 2=dnslookup, 3=connect, 4=accept, 5=recv, 6=error handler
;    received        2    - data received in internal buffer (ready to get with C_NETRECV)
;    ip_addr        4    - ip addr of connected client in passive mode
;    port            2    - port of the same..
;    reserved        6    - not used yet (alignment!).
; *for socket 0, gethostbyname, status will be set to 5 when in progress and back to 0, when done.

I made a tcp echo server for running on the cpc as example (as seen in video above) to show how it works. Get the source code on the github repo:
GitHub - M4Duke/tcpecho: TCP echo server for PC and client for CPC M4 board (https://github.com/M4Duke/tcpecho)
M4 rom code was updated too:
GitHub - M4Duke/m4rom: M4 Board, z80 rom part (https://github.com/M4Duke/m4rom)
Aswell as: http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) (ctrl+r to refresh!)

Let me know if any bugs, questions etc.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 15:48, 03 September 16
 :o


LoL, Great work. Now I have more homework  :laugh:


Just some problems to translate maxam to gas for sdcc, with my limited asm, but fun.


Thinking of uploading to github so people can give me some advice
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 16:13, 03 September 16
Cool, so I should update the driver for the new socket info structure and the DNS lookup.
Today on the XzentriX retro party I was able to get the first stuff running:
[attach=2]
[attach=3]
I tried to download the M4INFO.TXT from Dukes website with WGET in SymbOS, and it mostly worked, but there is at least one bug left. Anyway it already looks very nice :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 16:26, 03 September 16
Awesome amazing  wonderful. Does the m4 storage and internet clock also get support?
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 16:39, 03 September 16
SD card driver is next on my list :) A little NTP app should be easy to implement, you could add it to the autostart menu then.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:04, 04 September 16
Now at v1.0.9b8: http://www.spinpoint.org/cpc/M4FIRM_v109b8.zip (http://www.spinpoint.org/cpc/M4FIRM_v109b8.zip)
Fixed an issue with larger transfers.
Updated http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) a bit too under "Developer information"

If noone reports any bugs, this will be the release candidate for v1.0.9 and I can take a long break  ;)

Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 15:15, 04 September 16
hello DUKE is possible to have all the firmwares in one directory?
you can add a directory for example FIRMWARE and access via ftp
and add as a sign to the end of every message in cpcwiki
also another way is to add a link to a folder on a dropbox acount (also in your sign) .
you can have a sign like CPCWIFI www.spinpoint.org/cpc (http://www.spinpoint.org/cpc) for the m4info.txt
thank  you
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:41, 04 September 16
Quote from: anyf33 on 15:15, 04 September 16
hello DUKE is possible to have all the firmwares in one directory?
you can add a directory for example FIRMWARE and access via ftp
and add as a sign to the end of every message in cpcwiki
also another way is to add a link to a folder on a dropbox acount (also in your sign) .
you can have a sign like CPCWIFI http://www.spinpoint.org/cpc (http://www.spinpoint.org/cpc) for the m4info.txt
thank  you
Hi anyf33,
Sure but they are all here: M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)
Except the betas (Latest beta I link in m4info.txt), I don't think there is any reason to keep the beta's?
- They are only temporary until tested and final version released.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:06, 04 September 16
Attached is a slightly modified lowerrom for cpc6128.
This is for CPC6128 users who cannot not set M4 rom to 7, which breaks compatiblity with many games, that re-initialize amsdos (rom 7).

With this lowerrom you must set M4 rom to 6, then enable lowerrom and upload this to whatever lower rom slot you choose (ie. 31).

When games (loaders) call init rom 7, rom 6 (m4) will be initialized instead.

If there's interest I may make the patch a little more intelligent so that M4 rom could be at any pos.

Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 21:40, 04 September 16
Wow duke that movie is so cool! Looking at 2 cpc machines connected. Reminds me on This movie i created a while ago when I had the chat program ready for symbos.

It would be cool to chat with you in the future!

Title: Re: Amstrad CPC WiFi
Post by: tvandor on 22:30, 04 September 16
Hi Duke,


Just wanted to let you know that I finally received Tot0's Mother4x and the adapter cable
for Schneider CPC.


Unfortunately I was not able to test the board with the Mother4x itself as it needs a power adapter
and I do not have one.


Anybody who uses the Wifi board wih the Motherx4, could you please let me know what kind of
power adapter I need? Thanks a lot! (I do not want to experment and risk wrecking my hardware...)


I was able to test the board directly with my CPC using the adapter cable!
It worked like charm! Thanks for doing this, it is really neat board! :-)


What I discovered so far:
-I was able to upgrade the firmware via the net interface without problem.
(Just one remark, would it be hard to display all the version information?
like M4 v1.0.9.b8  ? Currently it just displays v1.0.9 so I have no way of checking
if the upgrade went ok in between the same major version.)
-Rom upload via the website does not seem to work correctly, it seems to upload the rom only to slot 0. 
- |ROMUP command works fine :-)
- Webinterface lists "ROM" for every rom I uploaded.
- I tested the modified lower rom you posted. Uploaded it to slot 31, the "Rom number" in the web interface set to 6, then I checked the "lower rom" checkbox. The system booted up just fine, I did not detect any difference, although I did not check it with games.I noticed one problem however. With this setup, whenever I turn off the cpc and turn it on again, I am getting a black screen and the system won't boot.I need to turn off the m4 board too, then turn on everything back again, so the system would boot. Unchecking the lower rom check box does not help.But if I remove the uploaded rom from slot 31, then I am able to turn off and on the CPC normally. (Without turning off the M4 board)
- I uploaded Symbos 2.1 roms onto the board and I also copied the contents of the system and app disks into the root folder ot the SD card. After booting symbos, I was unable to load anyhting. I am getting the following error:
"Error while loading:
A disk error occurred during the loading process (error code 26)"
Anybody tried/had success with Symbos?
I do not have any RAM board (yet), just the Wifi board and the CPC.
Symbos probably needs proper driver for the Wifi board to work....?


Anyway, sorry for the long post, I will let you know if I find anything else of
interest!


Tamas

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:43, 05 September 16
Quote from: tvandor on 22:30, 04 September 16
Hi Duke,


Just wanted to let you know that I finally received Tot0's Mother4x and the adapter cable
for Schneider CPC.


Unfortunately I was not able to test the board with the Mother4x itself as it needs a power adapter
and I do not have one.


Anybody who uses the Wifi board wih the Motherx4, could you please let me know what kind of
power adapter I need? Thanks a lot! (I do not want to experment and risk wrecking my hardware...)


I was able to test the board directly with my CPC using the adapter cable!
It worked like charm! Thanks for doing this, it is really neat board! :-)


What I discovered so far:
-I was able to upgrade the firmware via the net interface without problem.
(Just one remark, would it be hard to display all the version information?
like M4 v1.0.9.b8  ? Currently it just displays v1.0.9 so I have no way of checking
if the upgrade went ok in between the same major version.)
-Rom upload via the website does not seem to work correctly, it seems to upload the rom only to slot 0. 
- |ROMUP command works fine :-)
- Webinterface lists "ROM" for every rom I uploaded.
- I tested the modified lower rom you posted. Uploaded it to slot 31, the "Rom number" in the web interface set to 6, then I checked the "lower rom" checkbox. The system booted up just fine, I did not detect any difference, although I did not check it with games.I noticed one problem however. With this setup, whenever I turn off the cpc and turn it on again, I am getting a black screen and the system won't boot.I need to turn off the m4 board too, then turn on everything back again, so the system would boot. Unchecking the lower rom check box does not help.But if I remove the uploaded rom from slot 31, then I am able to turn off and on the CPC normally. (Without turning off the M4 board)
- I uploaded Symbos 2.1 roms onto the board and I also copied the contents of the system and app disks into the root folder ot the SD card. After booting symbos, I was unable to load anyhting. I am getting the following error:
"Error while loading:
A disk error occurred during the loading process (error code 26)"
Anybody tried/had success with Symbos?
I do not have any RAM board (yet), just the Wifi board and the CPC.
Symbos probably needs proper driver for the Wifi board to work....?


Anyway, sorry for the long post, I will let you know if I find anything else of
interest!


Tamas


Depending on what else is plugged into the mother4x you might not need the extra power connected at all. Mine runs just fine with m4, albireo, rtc and xmem all at the same time. If I swap any if them for my playcity or minibooster then I need to add the 5v.

Oh and symbos has no m4 storage driver yet, but @Prodatron is working on it.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 01:23, 05 September 16
Hello duke, i forgot to tell that i have also the same problem with roms and webinterface all going to rom 0. romup works fine
when i downgrade to 0.8 firmware i have no problem with web interface and roms.
please check it!
now i can test it because i break a pin in my connector.
so i can not test the last beta filmware
p.s. can i sent it back to replace the adapter?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:05, 05 September 16
@Edoz(MSX) (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1188)

That looks great. Hope to see this running on CPC sometime :)

@tvandor (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1502)

Thanks for the feedback.

About upgrading via webinterface. It's not ideal because it needs two files and you can only upload 1 file at a time (it needs a change or removal!).
Best is if you want to try out the beta firmware's, to unpack the zip file to root of microSD and reboot M4.
And if you just want to use latest non beta, use |upgrade from basic.

About webinterface uploading to slot 0. This is a problem with Chrome browser, please use Firefox or Internet Explorer, then it will be fine.
"ROM" is default name used by |ROMUP as I did not add a name parameter to it.

I did not experince the problem when rebooting using this lowerrom. Perhaps you did not upgrade with both files with the firmware you are using?
(ESPFIRM.BIN and M4FIRM). And make sure "Enable lowerrom" is ticked and the right slot selected.
You will not see any difference, only more games will work now.


As for powersupply you can just connect a USB powersupply directly to M4 board even when inserted the MX4, just move the Jumper to EXT.
The PSU must be 5V DC (0.5A, 1A, 2A all good).

@anyf33 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1636)
You sure about the slot 0 problem not being that you used chrome? - I had no problems uploading roms in latest beta's.

Send me a photo of your broken connector/pin. It's quite a bit of work to desolder the entire connector, maybe the pin could be fixed.
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 11:47, 05 September 16
@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Thanks, for your response. Currently I have the m4 wifi board only, I plan to add a x-mem RAM/ROM card for extra RAM.
If there is a M4 board with mouse support that Symbos can recognize, I would buy one of that as well. :-)
(Using the joystick for Symbos feels I am using GEOS on the C64 :-))


Ok, so I will try to use the Motherx4 with the wifi board with no extra power.
Actually I have already tried this but it was not working: the display was grey with a black border.
But I will test this again. (Maybe I made some mistake.)

>Oh and symbos has no m4 storage driver yet, but @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) is working on it.
This is really great news! Can't wait! :-)

@Duke
Thank you for your tips.
I had tried the firmware upgrade only via the web interface.
I will do the upgrade the proper way and try to use that lowerrom file
again. (And see what happens! :-) )


Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:37, 05 September 16


Quote from: tvandor on 11:47, 05 September 16
@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Thanks, for your response. Currently I have the m4 wifi board only, I plan to add a x-mem RAM/ROM card for extra RAM.
If there is a M4 board with mouse support that Symbos can recognize, I would buy one of that as well. :-)
(Using the joystick for Symbos feels I am using GEOS on the C64 :-))

<snip>


In theory the albireo board will bring full USB, serial and microsd card support to the CPC. I really want support for the USB HID (mouse) on this card to be brought to SymbOS. This way with an m4, xmem and albireo you would have all the functionality of the fabled symbiface 2 in nice neat mother4x format, and a slot free.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 14:30, 05 September 16
Hi

I can only give a lot of likes to @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) for this incredible M4 (hardware & software), @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) for make drivers to it and symbos, and @Edoz(MSX) (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1188) for the multiplayer games!!.

this months i can't test anything of this because of work.

But I can tell you guys that this is incredible, and if you don't realize, you're making the best things for our Amstrad that i saw in a lot of time. thankyou!

P.S. About mouse, can any do the symbiface2 mouse part in a standalone board for MX4? symbos will work instantly, and trust me, it work flawless!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:54, 05 September 16


Quote from: Joseman on 14:30, 05 September 16
Hi

<snip>

P.S. About mouse, can any do the symbiface2 mouse part in a standalone board for MX4? symbos will work instantly, and trust me, it work flawless!

I have asked this before, but no seemed to be the answer. Hopefully the Albireo mouse will be the answer eh @Prodatron ;)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 18:13, 05 September 16
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) , perhaps USB Mouse adaptor by Bryce is the thing you need USB Mouse Batch. (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/usb-mouse-batch/)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 18:54, 05 September 16
Quote from: MiguelSky on 18:13, 05 September 16
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) , perhaps USB Mouse adaptor by Bryce is the thing you need USB Mouse Batch. (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/usb-mouse-batch/)
I have 2.... But joymouse is not the way to go after having an analog proportional one.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 21:08, 05 September 16
Regarding the mouse I absolutely agree, we need a solution as well. Using the joystick is how Tvandor described it! :)

Right now I finished the "realtime" signal strength display. It's just a little gimmick but it's really funny to see this on a CPC :D :D Thanks so much to Duke for adding this value so that I was able to put it into the status window of the network driver:

[attach=2]
[attach=3]

So great to have this new hardware for the CPC!
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 21:44, 05 September 16
Heh, funny indeed!


Looking forward to chat with you on my CPC  8)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 01:01, 06 September 16
Quote from: Joseman on 14:30, 05 September 16
... About mouse, can any do the symbiface2 mouse part in a standalone board for MX4? symbos will work instantly, and trust me, it work flawless!


[ot]
There are more easy ways to have a proportional mouse (means not to waste a slot of the MX4), for example this one:
Atari-ST mouse adapter - CPCWiki (http://www.cpcwiki.eu/index.php/Atari-ST_mouse_adapter)
Marconi - CPCWiki (http://www.cpcwiki.eu/index.php/Marconi)


Or a bit harder to get:
Kempston Mouse - CPCWiki (http://www.cpcwiki.eu/index.php/Kempston_Mouse)
CPC-Mousepack 2.0 - CPCWiki (http://www.cpcwiki.eu/index.php/CPC-Mousepack_2.0)
[/ot]
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 07:15, 06 September 16
Quote from: TFM on 01:01, 06 September 16

[ot]
There are more easy ways to have a proportional mouse (means not to waste a slot of the MX4), for example this one:
Atari-ST mouse adapter - CPCWiki (http://www.cpcwiki.eu/index.php/Atari-ST_mouse_adapter)
Marconi - CPCWiki (http://www.cpcwiki.eu/index.php/Marconi)


Or a bit harder to get:
Kempston Mouse - CPCWiki (http://www.cpcwiki.eu/index.php/Kempston_Mouse)
CPC-Mousepack 2.0 - CPCWiki (http://www.cpcwiki.eu/index.php/CPC-Mousepack_2.0)
[/ot]
How can it be proportional... It still uses the joystick port.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 07:17, 06 September 16
The MultiPlay can handle two proportional Amiga mouse. (PS/2, USB and ST with adapter)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:30, 06 September 16
Quote from: TotO on 07:17, 06 September 16
The MultiPlay can handle two proportional Amiga mouse. (PS/2, USB and ST with adapter)
And like the albireo is waiting for a symbos driver. I don't mind, as I have both devices, but as the Amiga dies not support scrollwheels it might be better to use the albireo and it's USB socket.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 13:19, 06 September 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , maybe if you find some time could you make and upload other language (FR I'm mainly interested in but I'm sure ES will get some attention too) versions of your modded lower ROM for game compatibility?


It would also be awesome if one could check the SD card contents and upload / download files or directories from a PC. Much like the "Files" page of the M4 server, but more like a FTP client ;) Or at least being able to upload a whole directory with subdirectories would be nice! Being able to browse the sd card content from Chrome or whatever would work just as great.
Btw for people who may not have noticed it (I just did...) you can download a file to your PC using the xfer tool obviously, but also by typing for example "http://yourcpcIP/sd/M4/config.txt" (http://yourcpcip/sd/M4/config.txt");; in your browser.

Maybe (as many people will prefer to connect the microsd to their pc), an easier solution would be enabling access to the sd card files via the M4 board usb port? Don't know if that's possible...

I can't believe how great this board is!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:26, 06 September 16
Sure can add it to other language versions, but I'd like to hear if it works out for people. I forgot which games had that issue, so I just tested one (Gryzor Two Mag crack) and it worked fine with the mod.

About uploading/downloading multiple files, it would be really nice, hopefully someone will help with that, I think some kind of javascript code in the webpage would make it all alot easier. Ie. something like github has a really nice drag files to upload. The crude server has http post implemented.
If anyone good with javascript or whatever and want to help out with it, let me know. You can already test the web code, by putting in a directory on the microsd card and just refer to it with /sd prefix, like you did to download files. I would add whatever server side (cgi) functions needed :)

Quote from: dxs on 13:19, 06 September 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , maybe if you find some time could you make and upload other language (FR I'm mainly interested in but I'm sure ES will get some attention too) versions of your modded lower ROM for game compatibility?


It would also be awesome if one could check the SD card contents and upload / download files or directories from a PC. Much like the "Files" page of the M4 server, but more like a FTP client ;) Or at least being able to upload a whole directory with subdirectories would be nice! Being able to browse the sd card content from Chrome or whatever would work just as great.
Btw for people who may not have noticed it (I just did...) you can download a file to your PC using the xfer tool obviously, but also by typing for example "http://yourcpcIP/sd/M4/config.txt" (http://yourcpcip/sd/M4/config.txt");;;; in your browser.

Maybe (as many people will prefer to connect the microsd to their pc), an easier solution would be enabling access to the sd card files via the M4 board usb port? Don't know if that's possible...

I can't believe how great this board is!!
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:12, 06 September 16
Quote from: CraigsBar on 07:15, 06 September 16
How can it be proportional... It still uses the joystick port.

[ot]Ok and the joystick port has 7 input lines. So that's seven bits. Usually only four bits get used, so you can provide proportional values from 0 to 15. The articles in the Wiki explain that in detail.  :) [/ot]


But back to topic: How does the M4 and the symbos deamon work? Does the M4 connect directly to a wireless router? Or does it need the PC for that?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 18:21, 06 September 16
M4 connects directly to the router, and thus the internet.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 18:41, 06 September 16
Quote from: CraigsBar on 18:21, 06 September 16
M4 connects directly to the router, and thus the internet.


That's extremely wonderful! So the PC is NOT NEEDED any longer!  ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:24, 06 September 16
Quote from: TFM on 18:41, 06 September 16

That's extremely wonderful! So the PC is NOT NEEDED any longer!  ;D
It never was, as it always connected directly to the router/AP. PC is only needed to access the webinterface for settings :)
- Most is available through RSX commands.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 21:21, 06 September 16
And you can do it from your smartphone, so no, no need for a PC.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:45, 06 September 16
Quote from: MiguelSky on 18:13, 05 September 16
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) , perhaps USB Mouse adaptor by Bryce is the thing you need USB Mouse Batch. (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/usb-mouse-batch/)

Hi Miguel

I know this adaptor, but i'm not into mouse-joystick-port solutions...

I "love" the symbiface 2 ps-2 mouse function and the mx4 board of the ps2 part has to be tiny and cool!
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 21:53, 06 September 16
Hi @Duke (http://www.cpcwiki.eu/forum/profile/?u=1624),

Just wanted to let you know that everything works now: Wifi Board with Motherx4 and the lowerrom setup as well.
Probably had some contact issues, I re-attached eveything more firmly than before and now everything works. :-)
Thanks for you and @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) to make this happen!


I have only one problem to report: when I try to rease a file, I receive an
"AMSDOS not initialized" I simply used: |ERA,"<flename>" format.
I am not sure why is this.


Tamas
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:38, 06 September 16
Good!
I don't know where that message comes from "AMSDOS not initialized".  I seem to remember that I had that message in an early m4rom version.
Can you please check with |version that you are actually on 1.0.8 or 1.0.9 ?
Also what other roms do you installed (and what lowerrom?)?
|era  doesn't complain here.

Quote from: tvandor on 21:53, 06 September 16
Hi @Duke (http://www.cpcwiki.eu/forum/profile/?u=1624),

Just wanted to let you know that everything works now: Wifi Board with Motherx4 and the lowerrom setup as well.
Probably had some contact issues, I re-attached eveything more firmly than before and now everything works. :-)
Thanks for you and @TotO (http://www.cpcwiki.eu/forum/index.php?action=profile;u=290) to make this happen!


I have only one problem to report: when I try to rease a file, I receive an
"AMSDOS not initialized" I simply used: |ERA,"<flename>" format.
I am not sure why is this.


Tamas
Title: Re: Amstrad CPC WiFi
Post by: dxs on 13:27, 07 September 16
And what about the USB port? Can it only be used for input power, or a further update could allow SD card browsing via USB (like a common micro SD to USB converter)?
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 19:00, 07 September 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Well, I got the solution and this is interesting.
(Well, for me at least, the rookie. :-) )

So I probably  got that message because I uploaded the rom "Utopia" to the M4 board
on slot 1.

I like this rom because it has a |help command that lists installed rom and
|help, x where I can list the rxs commands for a specific rom.

But this rom also has an |era command too and it seems that since it was
in a lower slot than the M4 rom it superseeded the |era command.

I removed Utopia from slot 1 and uploaded it to slot 9
and,|era started working. :-)

Is it safe using the m4 and utopia rom this way?


Thanks,

Tamas
>Good! >I don't know where that message comes from "AMSDOS not initialized".  I seem to remember that I had that message in an early m4rom version.>Can you please check with |version that you are actually on 1.0.8 or 1.0.9 ?>Also what other roms do you installed (and what lowerrom?)?>|era  doesn't complain here.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 21:34, 07 September 16
Today I had one of my coolest experiences with my CPC for this year  :D :D
After adding some more missing M4-specific stuff to the Network Daemon I tried EdoZ SymbOS-messenger for the first time, and it worked great!

[attach=2]
[attach=3]
[attach=4]
[attach=5]

A CPC+M4Board in Germany chatting with a PC in The Netherlands (EdoZ was too lazy to start his MSX, so he used his PC-Client of the SymbOS-Messenger ;) ).
The messenger has never been tested on a CPC before (e.g. the 16 colour smiley in the upper right edge isn't optimized for 4 colours yet), but as it's a SymbOS application written by EdoZ with the Unify/Quigs (ex-SymStudio) IDE by Trebmint using the Network Daemon it was working at once without any problems. Now as soon as the M4-driver for the network daemon is fully working we already have a bunch of existing network apps and even games for the CPC! :)
Thanks so much again to Duke for this great CPC new hardware! I was dreaming about this since 10 years :P And thanks so much for EdoZ and Trebmint for the apps and the network support in Quigs! :)
Title: Re: Amstrad CPC WiFi
Post by: SRS on 22:05, 07 September 16
Now THIS makes me think about going beyond AMSDOS/ CP/M first time ever on my CPC ... COOL !
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 22:55, 07 September 16
Some Telnet stuff:
This was my first time visiting a BBS (Telnet based, HispaMSX BBS) with a CPC - now via the Internet:
[attach=2]

Do you know the ASCII STAR WARS Movie for Telnet (e.g. telnet://towel.blinkenlights.nl)? I think it's quite popular:
[attach=3]

There is still a bug - the system is crashing after a while when dealing with larger package sizes. Hope it can be fixed soon.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 06:03, 08 September 16
Quote from: Duke on 18:01, 22 August 16
All this needs is a quick navigator to get rid of the |cd, |dir navigation, maybe a quick scan for executable files and display full length directory names. Something I'd like to make if noone else is in the process  8)
Will come , but this will take time (Until the end of the year?).
Btw. I 'm still looking for someone to make a background image for a launcher.
Btw.2 : And a beta tester for the M4-File Commander (take some time too), ACMEDOS-Version is released as a public beta:
Yet Another Norton-Commander Clone (http://www.cpcwiki.eu/forum/applications/yet-another-norton-commander-clone/)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:23, 08 September 16
@dxs (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1074): Yes, it would be possible to use the usb for that, maybe sometime.

@tvander: Makes sense, as you found it is the order of the roms. Now m4 will catch |era command, which is fine.

@prodatron: Looks stunning, can't wait :)

@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941): Great! Just what is needed for mass-storage.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:56, 08 September 16
Extremely cool Prodatron. However, keep in mind that having conversations with yourself may land you in the mad house! :)

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 16:05, 08 September 16
For french people out there, I made a modded Lower ROM to be used on your AZERTY 6128, with your M4. It allows playing games in the game pack which was previously posted in this topic. Try Arkanoid and you'll see that Amsdos is called by the game, resulting in "Disk Missing" message.
With this modded firmware Amsdos is no longer called, and it worked with all games I tried, which previously failed. It assumes the M4 ROM is at the standard number 6 position.


** All credit goes to Duke who made the english version. I just checked how he made it and reproduced the work. FYI space is borrowed in the firmware by placing code instead of the *** PROGRAM LOAD FAILED *** message. **
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:11, 08 September 16
Quote from: dxs on 16:05, 08 September 16
** All credit goes to Duke who made the english version. I just checked how he made it and reproduced the work. Please do not repost on the wiki or somewhere else as Duke requested this mod to be well tried before spreading it. FYI space is borrowed in the firmware by placing code instead of the *** PROGRAM LOAD FAILED *** message. **
Thanks dxs, almost forgot about it :)  Btw. instead of  *** PROGRAM LOAD FAILED **, it will print "FAIL".
Title: Re: Amstrad CPC WiFi
Post by: dxs on 16:18, 08 September 16
Yes I noticed that, I don't remember (?) seeing this message on screen ever so not a big loss anyway.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 16:46, 09 September 16
The M4 reminds me so much about the good old days when using some CP/M software to chat or group chat with other people via telephone / later then modems. Also I remember the games for the VN96 network. The great thing about the M4 is of course to use state of the art hardware for communication. The only thing missing is software using this power. Maybe time for a nice network game.  :)
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 16:49, 09 September 16
Quote from: Bryce on 07:56, 08 September 16
Extremely cool Prodatron. However, keep in mind that having conversations with yourself may land you in the mad house! :)

Yay! Visitors!
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 22:08, 09 September 16
Today I finished the first version of the M4Board SD card driver for SymbOS:

[attach=2]

TBH it was the most easy mass storage device driver I ever wrote for SymbOS thanks to Dukes API! :) There are still some issues, and we have to figure out now if it's M4 related or my mistake. Anyway again some progress...
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:27, 09 September 16
Quote from: Prodatron on 22:08, 09 September 16
Today I finished the first version of the M4Board SD card driver for SymbOS:


Speechless as always with your great work...

Wifi support and sd support on symbos... what more can i say?
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 22:33, 09 September 16
Wow! So nice Prodatron! It was already crazy to have this live chat session with you! And now to see that the driver for the SD start to work! Indeed This hardware from Duke is crazy cool! I hope he can help you out finding the last issues! This is a huge step forward for the CPC! Hope to play SymbOS network games soon with You! At least there already two SymbOS network games ready now to play!!!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:39, 09 September 16
Quote from: Edoz(MSX) on 22:33, 09 September 16
Hope to play SymbOS network games soon with You! At least there already two SymbOS network games ready now to play!!!

and the other 50 people that automatically starts since today (well when this version of symbos gets released!), can't we play with you??
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 01:47, 10 September 16
I cannot wait for this. With my 4g router my CPC really will be mobile internet capable ;)
Title: Re: Amstrad CPC WiFi
Post by: Ygdrazil on 09:24, 10 September 16

Agreed this is indeed a major achievement  :o


Regards,
Ygdrazil



Quote from: CraigsBar on 01:47, 10 September 16
I cannot wait for this. With my 4g router my CPC really will be mobile internet capable ;)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 11:57, 10 September 16
Now to restart from zero the whole socks lib  :picard:

Some problems with git... I have created a new repository and when trying to upload it says bla bla bla want to upload older files bla bla and then it deletes my local files :o and no backup....

Fortunatelly because of the new API and my disaster now I can code in a cleaner way as I was thinking of the old code "what a dirty way of calling that function...."  :P

Hope to bring good news!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:46, 10 September 16
Quote from: KaosOverride on 11:57, 10 September 16
Now to restart from zero the whole socks lib  :picard:

Some problems with git... I have created a new repository and when trying to upload it says bla bla bla want to upload older files bla bla and then it deletes my local files :o and no backup....

Fortunatelly because of the new API and my disaster now I can code in a cleaner way as I was thinking of the old code "what a dirty way of calling that function...."  :P

Hope to bring good news!!


Ouch, that was nasty. Btw. if you look at my examples, please use tcpecho examples as the telnet one is outdated now (I haven't bothered updating it to the recent changes).

Good luck :)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 18:59, 10 September 16
I have downloaded it and I'm aware of most of the changes. Thanks a lot.


I'm separating the lib from the logic part in C and the hardware talking part in asm. Now is more cleaner than I had earlier at the lost code.


My goal is go make a C lib that will let us compile simple *nix net code with the fewer changes possible. And also as compatible as can be with, for example, spectranet examples so we can have many work done for future developments.


The ZX spectrum has a simple net filesystem sharing. As you have filesystem inplemented at your rom, maybe in the future can be expanded to use A/C drive at the microsd and D, E and F as net shares. All the code of the server at Linux or Windows is done. Also a Z80 server can be done.


WebSVN - Spectranet - Rev 576 - /trunk/tnfs/ (http://spectrum.alioth.net/svn/listing.php?repname=Spectranet&path=%2Ftrunk%2Ftnfs%2F#path_trunk_tnfs_)


But... it needs UDP... For the future :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:38, 11 September 16
Quote from: KaosOverride on 18:59, 10 September 16
I'm separating the lib from the logic part in C and the hardware talking part in asm. Now is more cleaner than I had earlier at the lost code.


My goal is go make a C lib that will let us compile simple *nix net code with the fewer changes possible. And also as compatible as can be with, for example, spectranet examples so we can have many work done for future developments.


The ZX spectrum has a simple net filesystem sharing. As you have filesystem inplemented at your rom, maybe in the future can be expanded to use A/C drive at the microsd and D, E and F as net shares. All the code of the server at Linux or Windows is done. Also a Z80 server can be done.


WebSVN - Spectranet - Rev 576 - /trunk/tnfs/ (http://spectrum.alioth.net/svn/listing.php?repname=Spectranet&path=%2Ftrunk%2Ftnfs%2F#path_trunk_tnfs_)


But... it needs UDP... For the future :)

Sounds like a very good idea. -  I'll take a look at the spectranet when I find some time, I wasn't aware of spectranet stuff before you mentioned it the other day.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 00:18, 13 September 16
During the weekend I finished the SD card driver for SymbOS, which is now fully working. You can boot SymbOS directly from the MicroSD of the M4Board within seconds without the need of any additional roms or discs. I am currently using the MotherX4 + M4Board + X-Mem, and it works like a charm. I just miss a mouse right now. Here is a little video which I made, just to show, that the SD card is working fine:


https://www.youtube.com/watch?v=qFMxevy7daI (https://www.youtube.com/watch?v=qFMxevy7daI)

TBH I should convert some new videos and graphics after 10 year :)
Reading from the M4Boards' SD card is about 25% faster than reading from the SYMBiFACE II and compatible devices (CPC-IDE, X-MASS) due to the fact, that you can use LDI:LDI:LDI:... instead of INI:INC B:INI:INC B:INI:INC B:... etc. thanks to the memory mapped buffer of the M4Board. For writing there is no difference, it is port based like the SF2. But in most cases reading speed is more important anyway.

I have to fix two little issues before releasing an M4Board version of SymbOS hopefully this week. Bugfree Network support may take a little bit longer. Thanks a lot to Duke again! :)

CU,
Prodatron
Title: Re: Amstrad CPC WiFi
Post by: SOS on 07:47, 13 September 16
OffTopic(?  ;) ) Feature request:
New Command 0x4316: Get the Long-Filename/Dirname, needed 8+3 Filename as the parameter.
For Command 0x4306 optional parameter (or as a new command): Get the Long-Direntries, maybe the filesize (in Bytes?) separated in the first 4 Bytes of the response?! (maybe the same separation on the original "4306"-Command?!)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 09:42, 13 September 16
@Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13): very cool. The movie seems to work faster than before or is it because of the size? How did you do the movie? What is the tool do you use (SymStudio)?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:02, 13 September 16
Quote from: SOS on 07:47, 13 September 16
OffTopic(?  ;) ) Feature request:
New Command 0x4316: Get the Long-Filename/Dirname, needed 8+3 Filename as the parameter.
For Command 0x4306 optional parameter (or as a new command): Get the Long-Direntries, maybe the filesize (in Bytes?) separated in the first 4 Bytes of the response?! (maybe the same separation on the original "4306"-Command?!)
How about C_READDIR2, to directly retrieve long file and dir names, or you want the 8.3 ones too?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 10:14, 13 September 16
Quote from: Duke on 10:02, 13 September 16
How about C_READDIR2, to directly retrieve long file and dir names, or you want the 8.3 ones too?
Thanks Duke,
If every CPC are 512KB machines with a 20MHZ Z80-CPU I will say, "Yes I do not need the old 8.3-Crap".
I don't know exactly if I can handle so much data on a 64KB 4MHZ Amstrad in a good way.
So I need at the moment the old 8.3 modus too.
The second requested command is at the moment my "Plan A"  - one statusline with the long File/Dirname.
And after all (all is released) I will check "Plan B" (directory with long names).
The additional question for the separate length is a handling technic. It will be more concrete defined, how long is a file, e. g. Response
Now: "Blade22.bin 22KB"
Maybe:defs 4 ; 4 Bytes Filelength
            defm "Blade22.bin"
(the separate length is interesting for me, to finish the |UDIR (the "now-Version" works too but it's a little bit "fiddly") , btw. |GETPATH is already finished ;) )
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:27, 13 September 16
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) Ok will look into it :)
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 14:25, 13 September 16
Quote from: HAL 6128 on 09:42, 13 September 16
@Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13): very cool. The movie seems to work faster than before or is it because of the size? How did you do the movie? What is the tool do you use (SymStudio)?
Yes, in general it's faster, as I wrote in my previous post: Using LDI instead of INI:INC B increases the transfer speed from 6 microseconds/byte to 5 microseconds/byte - that's already measurable.
EdoZ told me, that the current version of SymStudio (it's now called Quigs, it was called Unify some time ago) doesn't include the video converter.
Here is still the old version available, which can be used for this:
SymStudio 0.95 | The Amstrad CPC news portal (http://www.octoate.de/wp/2007/04/25/symstudio-095/)
If you have any problems, just send me a PN :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:35, 13 September 16
Firmware V1.0.9 final released.

If you have not upgraded to any v1.0.9 beta, you can use |upgrade command.

Otherwise, you must download it from here and unpack the files to the root of your microSD card.

M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board#Firmware)

Do not keep v1.0.9 beta in your M4.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:50, 13 September 16
Quote from: Duke on 15:35, 13 September 16
Firmware V1.0.9 final released.

If you have not upgraded to any v1.0.9 beta, you can use |upgrade command.

Otherwise, you must download it from here and unpack the files to the root of your microSD card.

M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board#Firmware)

Do not keep v1.0.9 beta in your M4.
Will upgrade my 2 tonight.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 23:39, 13 September 16
After finishing the SD card support I went back to the network part and added some additional stuff: As the M4 can of course only handle one command at the same time, I had to take care, that inside the SymbOS multitasking environment I don't fire a second command until another one isn't finished. So SD card access and network access shouldn't disturb each other. This is fixed now. Currently it is solved more or less in a rude way (locking interrupts), but I hope I can have a better solution later by using semaphores.

Anyway some more things have been fixed, and here you see, how you can download the CPCWiki.eu mainpage with your Amstrad CPC + M4:




I did a domain lookup with NSLOOKUP just for testing before downloading the startpage with WGET and displaying it with the TYPE command.

There are still some nasty bugs which I want to fix until releasing a new Beta version, but such a release especially for the M4 version should happen very soon.

CU,
Prodatron
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 23:56, 13 September 16
Updated to v1.0.9 tonight and found an interesting bug by accident.

I changed to a directory that didn't exist because of a typo. Although an error was shown saying no such directory if I ran a 'cat' command rather than showing the root directory as expected it showed an empty one which I had to then |cd,".." to get back.

One other thing that doesn't seem to work for me anymore is mounting DSK files. I can CD to an image and it lists the directory as expected but when I try to run any files inside the image my 6128 Plus just reboots. This first started with 1.0.6 but seemed to get fixed in 1.0.7 but broke again since 1.0.8 and still doesn't work in 1.0.9. All of these upgrades have been undertaken via the |upgrade command - should I redo the install/upgrade via the SD card to see if it's an update fault?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:08, 14 September 16
Quote from: Maniac on 23:56, 13 September 16
Updated to v1.0.9 tonight and found an interesting bug by accident.

I changed to a directory that didn't exist because of a typo. Although an error was shown saying no such directory if I ran a 'cat' command rather than showing the root directory as expected it showed an empty one which I had to then |cd,".." to get back.

One other thing that doesn't seem to work for me anymore is mounting DSK files. I can CD to an image and it lists the directory as expected but when I try to run any files inside the image my 6128 Plus just reboots. This first started with 1.0.6 but seemed to get fixed in 1.0.7 but broke again since 1.0.8 and still doesn't work in 1.0.9. All of these upgrades have been undertaken via the |upgrade command - should I redo the install/upgrade via the SD card to see if it's an update fault?
OK first bug (invalid directory) recreated here.

However second one, DSK files and running the embedded files within them works fine for me.

Craig.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 05:01, 14 September 16
Quote from: Maniac on 23:56, 13 September 16
Updated to v1.0.9 tonight and found an interesting bug by accident.
I changed to a directory that didn't exist because of a typo. Although an error was shown saying no such directory if I ran a 'cat' command rather than showing the root directory as expected it showed an empty one which I had to then |cd,".." to get back.


My testing experience on this: no new bug in version 1.09, it'a previous fault from the very beginning. I observed that changing to dsks working in one SD card didn't work in another (format another SD and put just your faulty file to test it, it works!, i.e. you can cd and run). My final conclusion on this was that you have to take care to not fill the SD with more stuff than 512 MB, to avoid the problem start again.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 05:09, 14 September 16
Quote from: Maniac on 23:56, 13 September 16
Updated to v1.0.9 tonight and found an interesting bug by accident.
I changed to a directory that didn't exist because of a typo. Although an error was shown saying no such directory if I ran a 'cat' command rather than showing the root directory as expected it showed an empty one which I had to then |cd,".." to get back.


[continues] Yes also observed ... that surpassing the problematic size (¿may be a variable size problem?) strange things are posiible like trying to change to incomplete dirs (error typing blanks and such type of things). So my personal feeling, everything is connected  :o [size=78%] [/size]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:33, 14 September 16
Quote from: Maniac on 23:56, 13 September 16
Updated to v1.0.9 tonight and found an interesting bug by accident.

I changed to a directory that didn't exist because of a typo. Although an error was shown saying no such directory if I ran a 'cat' command rather than showing the root directory as expected it showed an empty one which I had to then |cd,".." to get back.

One other thing that doesn't seem to work for me anymore is mounting DSK files. I can CD to an image and it lists the directory as expected but when I try to run any files inside the image my 6128 Plus just reboots. This first started with 1.0.6 but seemed to get fixed in 1.0.7 but broke again since 1.0.8 and still doesn't work in 1.0.9. All of these upgrades have been undertaken via the |upgrade command - should I redo the install/upgrade via the SD card to see if it's an update fault?

The directory bug I can re-create. Will fix it asap.

But I don't have any problems with the DSK images (standard single sided). I am using a cpc6128 plus too, what is your romconfig ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:45, 14 September 16
Quote from: rcmolina on 05:01, 14 September 16

My testing experience on this: no new bug in version 1.09, it'a previous fault from the very beginning. I observed that changing to dsks working in one SD card didn't work in another (format another SD and put just your faulty file to test it, it works!, i.e. you can cd and run). My final conclusion on this was that you have to take care to not fill the SD with more stuff than 512 MB, to avoid the problem start again.

I haven't had any such issues, I guess if there was a corruption in the FAT on the given microsd, that would explain it. There shouldn't be any size limitation around 512MB.
Let me know if it happens again and maybe run a chkdsk on PC to check if there is any errors on the microSD.
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 07:40, 14 September 16
Quote from: Prodatron on 23:39, 13 September 16
After finishing the SD card support I went back to the network part and added some additional stuff: As the M4 can of course only handle one command at the same time, I had to take care, that inside the SymbOS multitasking environment I don't fire a second command until another one isn't finished. So SD card access and network access shouldn't disturb each other. This is fixed now. Currently it is solved more or less in a rude way (locking interrupts), but I hope I can have a better solution later by using semaphores.

Anyway some more things have been fixed, and here you see, how you can download the CPCWiki.eu mainpage with your Amstrad CPC + M4:


WGET with SymbOS CPC using the M4Board:
https://www.youtube.com/watch?v=_7CsIOq1_qY (https://youtu.be/_7CsIOq1_qY)

I did a domain lookup with NSLOOKUP just for testing before downloading the startpage with WGET and displaying it with the TYPE command.

There are still some nasty bugs which I want to fix until releasing a new Beta version, but such a release especially for the M4 version should happen very soon.

CU,
Prodatron


Wow! CPC is connecting to the CPC website! That is crazy  :P :P :P :P :P :P Cool   8)
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 08:57, 14 September 16
Hi,


I  know this is slightly off topic, hope this is not a problem.


I am experiencing stability issues with my Schneider CPC 6128.
Mostly these are in the form of freezes, lockups: e.g. when I turn it on, and M4 boots,
and I run CAT on my root folder, sooner or later the CPC will corrupt the screen
(often just slightly), usually after 2-4 cat commands. Games that are loadable,
sometimes load, sometimes does not. (This time, screen corruption is heavier)
I have to try a few times then they load.


When I tried the |upgrade command yesterday to upgrade from 1.0.9 beta the CPC
just froze.


Does anyone had the same experience?
I would say that I suspect that my CPC that is faulty and not the M4 board.
Do you know guys anyone who would take on CPC repair?
I am afraid my soldiering skills limited to making cables
and I do not have the necessary knowledge to take on a task like this.
(I usually make things worse when I try :-) )


Any help would be very much appreciated.


Tamas

Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:17, 14 September 16
Do you have an edge connector or a centronics one?


In the cas eof an edge connector, I'd clean it thorougly. Then I'd try to power the M4 board externally.


Any other expansions you have connected?
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 10:02, 14 September 16
Quote from: Prodatron on 23:39, 13 September 16
Anyway some more things have been fixed, and here you see, how you can download the CPCWiki.eu mainpage with your Amstrad CPC + M4:




I did a domain lookup with NSLOOKUP just for testing before downloading the startpage with WGET and displaying it with the TYPE command.

There are still some nasty bugs which I want to fix until releasing a new Beta version, but such a release especially for the M4 version should happen very soon.

CU,
Prodatron


Whoa. So that was that DOS attack thing yesterday.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:21, 14 September 16
@tvandor (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1502)
Like robcfg said, try to clean your connector more. These are typical symptoms of a dodgy connection.
You cannot upgrade to v1.0.9 via |upgrade command when you have v1.0.9beta, you must download the zip and unpack to root of microsd.
However the hanging, would normally only happen if you haven't setup the network.
You have any roms in the board ?
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 10:27, 14 September 16
Quote from: Gryzor on 10:02, 14 September 16
Whoa. So that was that DOS attack thing yesterday.
Firewalls should update and extend their wording from now to AMSDOS attack. :laugh:
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 11:56, 14 September 16

Hi,


I have centronics. (Schneider CPC6128)


I am using the M4 board with the Motherx4 board with internal power.
(My power is coming via a custom power pack I bought on ebay, so
I would not need to use the green monitor I have. :-) )


I do not use any other expansion.


I had some problems when I tried to set this up first,
gray screen with black border, but then I reattached the
connectors more firmly so it started to work.
Do you think I need to clean the centronics port too???


For the motherx4 I got two plastic small latch like thing(?)
that I think I should have attached to the expansion
connector on the motherx4, but I was not able to find out
how I am supposed to attach it to the connector.
(I can take a picture of those, because I might be wrong.
I did not receive any instructions unfortunately.)
The m4 board seemed to sit on tightly on the Motherx4
without them...


Anyway, I will test the M4 board without the Motherx4
again and powered via the usb and see if it works well without it.


I will examine the centronics connector on the cpc as well.
I am not sure, does it need cleaning?


Anyway, thanks a lot for your response.

@duke
Yes, I did in the end upgraded via the SD card. It was successful.
(The version number is 1.0.9 and the bin files disappeared from the
root folder so I would say it went well.)
Yes, I have some roms, Symbos 2.1, Protext and utopia.
My network setup is okay, I think, I am able to load the control webpage of the
board without problem.


Tamas

Quote from: robcfg on 09:17, 14 September 16
Do you have an edge connector or a centronics one?


In the cas eof an edge connector, I'd clean it thorougly. Then I'd try to power the M4 board externally.


Any other expansions you have connected?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:32, 14 September 16
If you dont use other expansion, then yes plug cable directly into M4 (no need to use usb power).
Using MX4 with M4 and no external powersupply is likely the root to your problems.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 12:56, 14 September 16
Quote from: Duke on 05:33, 14 September 16
The directory bug I can re-create. Will fix it asap.

But I don't have any problems with the DSK images (standard single sided). I am using a cpc6128 plus too, what is your romconfig ?
Interestingly this afternoon I've pulled out the SD card and reinserted it and all seems to be working fine! The card showed no other signs of not working and everything else was functional!
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 21:33, 14 September 16

Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624),


Yes, it seems that I need to power the Motherx4 itself.
I did a test, the m4 board alone, worked perfectly with or without usb power.
But it did not work with the Motherx4, even if the M4 board was powered with
usb power. Need to find a power supply for the Motherx4, it will probably work
with that. I will let you know.


Thank you,


Tamas

Quote from: Duke on 12:32, 14 September 16
If you dont use other expansion, then yes plug cable directly into M4 (no need to use usb power).
Using MX4 with M4 and no external powersupply is likely the root to your problems.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 21:35, 14 September 16
Quote from: tvandor on 08:57, 14 September 16
Hi,


I  know this is slightly off topic, hope this is not a problem.


I am experiencing stability issues with my Schneider CPC 6128.
Mostly these are in the form of freezes, lockups: e.g. when I turn it on, and M4 boots,
and I run CAT on my root folder, sooner or later the CPC will corrupt the screen
(often just slightly), usually after 2-4 cat commands. Games that are loadable,
sometimes load, sometimes does not. (This time, screen corruption is heavier)
I have to try a few times then they load.


When I tried the |upgrade command yesterday to upgrade from 1.0.9 beta the CPC
just froze.


Does anyone had the same experience?
I would say that I suspect that my CPC that is faulty and not the M4 board.
Do you know guys anyone who would take on CPC repair?
I am afraid my soldiering skills limited to making cables
and I do not have the necessary knowledge to take on a task like this.
(I usually make things worse when I try :-) )


Any help would be very much appreciated.


Tamas

I have a closer symptoms on my CPC 464 adding some ramdom loop reboots with no solution at the moment, thats dont help sorry but if find a solution will be very welcome, good luck.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:37, 14 September 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
No idea what went wrong there, hopefully it wont happen again :)

Quote from: tvandor on 21:33, 14 September 16
But it did not work with the Motherx4, even if the M4 board was powered with
usb power.

Did you change the jumper from EXT to USB when powering via USB ?
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 22:39, 14 September 16

@duke


Yes, I did change the jumper every time I change the type of power (ext or usb)
I am fairly sure that I did that...


But to be 200% sure, I can do the another test tomorrow with the Motherx4, testing both power modes, jumper
set accordingly. :-)


Another thing I noticed: file upload does not seem to work with internet explorer (windows 10 version)
CPC freezes. Firefox works just fine.

Quote from: Duke on 21:37, 14 September 16
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
No idea what went wrong there, hopefully it wont happen again :)

Did you change the jumper from EXT to USB when powering via USB ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:46, 14 September 16
@myrsky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1856)
I pm'ed you sometime ago, not heard back. I am sure we can resolve your issue.

@tvandor (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1502)
Ok. And thanks for the info about IE. in win 10 (did you try Edge too?). You should all use firefox anyway, its better :) 
-Nah I may need to address the browser issue next time around.
Title: Re: Amstrad CPC WiFi
Post by: myrsky on 22:59, 14 September 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

For some reason i dont receive notifications of new private messages, now is solved, my apologies.
Title: Re: Amstrad CPC WiFi
Post by: tvandor on 09:43, 15 September 16

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Yeah, I will test Edge and chrome too.
(and vivaldi: my fav browser nowadays)


Let me know if I can help you with additional testing.

Quote from: Duke on 22:46, 14 September 16
@myrsky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1856)
I pm'ed you sometime ago, not heard back. I am sure we can resolve your issue.

@tvandor (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1502)
Ok. And thanks for the info about IE. in win 10 (did you try Edge too?). You should all use firefox anyway, its better :) 
-Nah I may need to address the browser issue next time around.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:14, 15 September 16
Hi Duke and Zaxon... or... has anyone gotten an M4 wifi card with microsdcard working togethrr with a Zaxon 6128 floppy emulator with usb stick?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:33, 15 September 16
Quote from: zhulien on 15:14, 15 September 16
Hi Duke and Zaxon... or... has anyone gotten an M4 wifi card with microsdcard working togethrr with a Zaxon 6128 floppy emulator with usb stick?

To use the floppy drive you will need to switch M4 rom off, via |m4romoff. Hope that helps.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 18:23, 15 September 16
If trying to delete files in the m4 microsd card... it always says amsdos not initialised. What is the cause of that? (seems Utiopia ROM)...


Actually the biggest puzzle is how to get things onto the M4 board without having to resort to much to a PC, or too much with PC Utilities.  Most of my things are on 3" disc, but the 3" A drive is inaccessible with M4 Wifi.  Even as a fake B drive?  Ram drive seems to disappear with M4 also, and both A and C seem to go to the microsd card for some reason.  That was why i hoped the Zaxon floppy B emulator would work with the M4 Wifi card, because it seemed to be that B always complained that drive was missing... 


The thing that is really weird... I can retrieve files over the net from the CPC, but no matter what I do, using the browser to send ROMS to the CPC crashes the CPC 100% of the time.


Still trying to work it out :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:34, 15 September 16
Yes utopia should be after M4 rom or it'll catch the RSX for |era

M4 replaces AMSDOS, thus no access to disc drives via amsdos firmware commands. Maybe with symbOS you could transfer between floppy disk and sd, once the version with m4 driver is released.

I haven't got around adding the disc functions I wanted yet, there's just been too much other stuff. TFM has kindly provided me with raw disc I/O functions, so it'll come some day.

Lastly you could mount M4 rom after AMSDOS and code a small app to copy stuff from floppy to sd.

As for browser, use firefox. Ie. chrome will ignore my slot paramters so all uploads end in rom 0 (overwriting basic and therefore crashing!).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:59, 16 September 16
Ok,I made a quick solution to copy files from floppy discs to microSD with M4.

First change M4 rom slot to be after AMSDOS, ie. pos 8.

Then download below M4ROM.BIN and put it in root of your microSD card.

Now boot up. Amsdos will catch all file I/O functions as normal, cat/dir/save/load etc goes to floppy.

With the new rom there's two new commands:

|fcp,"filename.ext","pathsdcard"    - Floppy copy to copy ie. disc.bas from to microsd root, use |fcp,"disc.bas","/"
|sdir,"args"   - Same as |dir, just it isnt caught by amsdos, so you can catalog files on microsd. Ie. |sdir,"/demos/*.*"

Once done with transferring your files, change M4 rom slot back to 6 or 7.

See picture for example aswell.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 06:52, 16 September 16
Quote from: Duke on 20:34, 15 September 16
Yes utopia should be after M4 rom or it'll catch the RSX for |era

I will try utopia in 6 and M4 in 5 and see what I get, utopia's |load and |medit are useful for now.

Quote from: Duke on 20:34, 15 September 16
Lastly you could mount M4 rom after AMSDOS and code a small app to copy stuff from floppy to sd.

I did try M4 rom at position 8 and it just crashed my machine (6128plus).  Luckily the Wifi board still worked so i could just set it back to 6 or 7.  The way the current ROM is coded overwriding A and C it seems it is just as compatible in slot 6 or 7.  I do wonder why override C though and not let that go to the RAM Disc because then the RAM Disc would at least survive the reset between switching M4 on and off.  Pitty the RAM Disc wasn't aliased as |M though also as that would have been better than |C - for when we have another dozen drives in future...

Quote from: Duke on 20:34, 15 September 16
As for browser, use firefox. Ie. chrome will ignore my slot paramters so all uploads end in rom 0 (overwriting basic and therefore crashing!).

Interesting Chrome behaviour... thanks.  Actually i didn't think they are faults of the M4 board, more I don't think the CPC community is used to making their things work together because in the past we never had such cool hardware.  The same for downloads - what is the point of zipping everything when we download a DSK file that is ZIPped it doesn't really help CPC owners trying to fetch stuff... I guess soon i will need to put an unZIPper that works with M4 onto ROM.

Regarding slots 32-63... in the webserver, i set the starting ROM to 32 and that is it?  I am guessing just the slot numbers don't renumber and in my head I add 32 to each?

As Richard who created X-MEM said, it is a pitty to waste his 32 ROM slots.  Maybe we need to modify CPC startup to scan all 64 ROMs now instead of 32 only.  The 2 boards work really well together otherwise...

Needed:  1. X-Mem RAM Disc aliased to |M and working when M4 ROM is enabled.   2. CPC to scan 64 ROMs on startup if possible.  3. And from the ROMan 2.0 author Syx?  Being able to see files on the SD Card of a M4 board.   4. Zaxon's USB drive B board to work in parallel with M4 card - seems to be some type of ROM conflict, not a hardware one.  5. people to share RAM in a con-conflicting way, and Mouse, and Sound Card... these I believe will come, if adopted though is another thing... can only hope.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 08:02, 16 September 16
Quote from: Prodatron on 23:39, 13 September 16
After finishing the SD card support I went back to the network part and added some additional stuff: As the M4 can of course only handle one command at the same time, I had to take care, that inside the SymbOS multitasking environment I don't fire a second command until another one isn't finished. So SD card access and network access shouldn't disturb each other. This is fixed now. Currently it is solved more or less in a rude way (locking interrupts), but I hope I can have a better solution later by using semaphores.

Anyway some more things have been fixed, and here you see, how you can download the CPCWiki.eu mainpage with your Amstrad CPC + M4:




I did a domain lookup with NSLOOKUP just for testing before downloading the startpage with WGET and displaying it with the TYPE command.

There are still some nasty bugs which I want to fix until releasing a new Beta version, but such a release especially for the M4 version should happen very soon.

CU,
Prodatron


I think that SYMBOS with M4 support could be comercial (asking a small amount 5-10 to have m4 support). It could be a good hint for Podatron to continue support for M4. Of cource i dont know what is podatron opinion.
Also i have a question for Symbos : how memory do why need ? 128k or more?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:11, 16 September 16
Quote from: zhulien on 06:52, 16 September 16
I do wonder why override C though and not let that go to the RAM Disc because then the RAM Disc would at least survive the reset between switching M4 on and off.  Pitty the RAM Disc wasn't aliased as |M though also as that would have been better than |C - for when we have another dozen drives in future...

In a CPC with no AMSDOS rom (slot 7). When booted the lowerrom setup all the firmware calls including the calls at &BC65-&BCA4 (Cassette functions).
So when you do file I/O those functions are called by the system (load/save/cat/run...) these functions will access the casette.
When AMSDOS is present. The CPC initializes as before, scans and inits roms 15-0 (CPC6128) when it comes to AMSDOS rom and jumps to its init function, it will overwrite the Casette functions.
All file I/O gets re-directed to AMSDOS rom. Notice the scan order is 15, 14, 13.. etc.
M4 rom does exactly the same as AMSDOS, if you place it lower than AMSDOS rom, it will replace the Cassette functions.
I don't know how the RAMDISC works, but if it supports basic file I/O, likely it does the same, hooking those functions and doing re-directions to AMSDOS.

Lastly you can put M4 rom in slot 8 or other place, it doesn't crash on my 6128+. Maybe you should erase your romslots.bin and romconfig.bin, if you had accidents with ie. chrome. Or you have other roms installed that doesn't like it.
And using slot 7 is vital to remain compatible with as many games as possible, because a lot do de-init all roms to save memory and then re-init rom 7 to have disc access. This is another problem you would have with using all 64 slots, you'd be using much of the ram for rom work areas and variables.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:26, 16 September 16
Also that just gave me a simple idea.

When you type |tape, the CAS_* functions will be overwritten so it directs back to the original tape functions, if you do |disc, amsdos is present, it will catch it and overwrite the CAS_* functions so they direct to disc. If I remove the |disc rsx from M4 and add |M4 (re-overting cas_* again), this could be an easy method to switch between disc and sd.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:29, 16 September 16
I can confirm that symbos does indeed allow access to the floppy drives, so when prodatron releases the m4 storage/WiFi version I see no reason why copying won't work.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 10:27, 16 September 16
Quote from: zhulien on 06:52, 16 September 16
I will try utopia in 6 and M4 in 5 and see what I get, utopia's |load and |medit are useful for now.

I did try M4 rom at position 8 and it just crashed my machine (6128plus).  Luckily the Wifi board still worked so i could just set it back to 6 or 7.  The way the current ROM is coded overwriding A and C it seems it is just as compatible in slot 6 or 7.  I do wonder why override C though and not let that go to the RAM Disc because then the RAM Disc would at least survive the reset between switching M4 on and off.  Pitty the RAM Disc wasn't aliased as |M though also as that would have been better than |C - for when we have another dozen drives in future...

Interesting Chrome behaviour... thanks.  Actually i didn't think they are faults of the M4 board, more I don't think the CPC community is used to making their things work together because in the past we never had such cool hardware.  The same for downloads - what is the point of zipping everything when we download a DSK file that is ZIPped it doesn't really help CPC owners trying to fetch stuff... I guess soon i will need to put an unZIPper that works with M4 onto ROM.

Regarding slots 32-63... in the webserver, i set the starting ROM to 32 and that is it?  I am guessing just the slot numbers don't renumber and in my head I add 32 to each?

As Richard who created X-MEM said, it is a pitty to waste his 32 ROM slots.  Maybe we need to modify CPC startup to scan all 64 ROMs now instead of 32 only.  The 2 boards work really well together otherwise...

Needed:  1. X-Mem RAM Disc aliased to |M and working when M4 ROM is enabled.   2. CPC to scan 64 ROMs on startup if possible.  3. And from the ROMan 2.0 author Syx?  Being able to see files on the SD Card of a M4 board.   4. Zaxon's USB drive B board to work in parallel with M4 card - seems to be some type of ROM conflict, not a hardware one.  5. people to share RAM in a con-conflicting way, and Mouse, and Sound Card... these I believe will come, if adopted though is another thing... can only hope.
Multiple mouse solutions exist already. My favourite is the albireo, which provides microsd card storage as well as a USB controller. I hope that this is the next card @Prodatron supports in Symbos, at least a mouse on the USB socket ;) the serial port and microsd would be interesting but far from urgent... Is there really a need for multiple hard drives in symbos?

Craig
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 11:11, 16 September 16
I can think of multiple ways to try patch amsdos.  One is for greatest compatability with games for 1 device and maybe that is ok for a startingpoing... but which device? Perhaps a user preference... then maybe devices can patch amsdos when selected eg. |m could patch for ramdisc when selected |sd could patch for sd if not configured as |a.  Amsdos is legacy so... maybe the other devices can override the repatching of amsdos for amsdos when |a or |b is chosen... they can all of course be logical names not physical if we only consider 1 configured device trying to catch the greatest game compatibility.  Or... maybe a central drive manager where devices can register a name and patch and those names are registered as rsx upon reset... again can be configured too...

Note. Patch roms could be custom by people creating one based on the hardware they have. Sort of like the install option of xmem.  Then someone with amsdos ramdis zaxondisc and m4 can have all 4 working together with a configured default device.

If we extend the drivemanager rom to have a capability function... eg. Retuns if the device supports folders trackdisc sectors formatting etc then we can query them and future software can adjust... we can make a 512kb megarom readonly disc if nothing better to do... just take a folder of files you want on roms and click a build and burn function... well... anything can be done almost i mean...

When i get mcp running with ram management that will be nice... but i think disc management is best with custom user built roms for greatest compatability outside the user chosen default device/drive.

Now that make an interesting project idea... driver standard for cpc... diver types thst can be in 1 or more roms or coexist but are standarised based on their purpose... i might start that project with memory being the first candidate and perhaps drives next or in parallel... and mice and audio... that is more elegant than me taking over the system with mcp... let mcp just honour the users configured drivers...
Title: Re: Amstrad CPC WiFi
Post by: Livingstone on 11:21, 18 September 16
I think I'm late, I wish again to see another list to sign up. :'( :'( :'( :'( :'( :'(
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:16, 18 September 16
Quote from: Livingstone on 11:21, 18 September 16
I think I'm late, I wish again to see another list to sign up. :'( :'( :'( :'( :'( :'(
I do still build them. Now I just buy small quantities of components to not end up with a waste pile.
Anyone in need just send me a private message, with your email address and what connector type you want.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 19:35, 18 September 16
Quote from: anyf33 on 08:02, 16 September 16I think that SYMBOS with M4 support could be comercial (asking a small amount 5-10 to have m4 support). It could be a good hint for Podatron to continue support for M4. Of cource i dont know what is podatron opinion.
Thanks for the nice offer, but I don't want to make SymbOS commercial. M4 support is nearly finished - the SD card of the M4 was running during the whole weekend during a Retro computing exhibition 100% stable - so there will be a release soon.

Quote from: anyf33 on 08:02, 16 September 16Also i have a question for Symbos : how memory do why need ? 128k or more?
SymbOS requires 128K as a minimum, in this case you have about 32K free for applications. That's not that much if you want to have the full multitasking experience. So a memory expansion is recommended (e.g. the X-MEM).
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 19:41, 18 September 16
Quote from: CraigsBar on 09:29, 16 September 16
I can confirm that symbos does indeed allow access to the floppy drives, so when prodatron releases the m4 storage/WiFi version I see no reason why copying won't work.
Yes, you have full floppy access in SymbOS when using the M4 as well, so you can transfer all data between Amsdos discs and the FAT32 SD card of the M4Board.

Quote from: CraigsBar on 10:27, 16 September 16My favourite is the albireo, which provides microsd card storage as well as a USB controller. I hope that this is the next card @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) supports in Symbos, at least a mouse on the USB socket
There is no choice at the moment, an Albireo USB mouse driver is really required, if you replaced the SYMBiFACE II with the M4Board, X-MEM etc...
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:13, 18 September 16
Quote from: Prodatron on 19:41, 18 September 16
Yes, you have full floppy access in SymbOS when using the M4 as well, so you can transfer all data between Amsdos discs and the FAT32 SD card of the M4Board.
There is no choice at the moment, an Albireo USB mouse driver is really required, if you replaced the SYMBiFACE II with the M4Board, X-MEM etc...
I have replaced my symbiface with an m4 etc... So I really hope to see an albireo mouse driver soon ;)

I wonder if I should sell my 2 symbifaces with the lower ROM boards? Anyone interested. BTW, one needs a battery replaced.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 05:59, 23 September 16
Technical question:
I have copy some files/directories from my PC to the SD-Card, example:
"Computing with the Amstrad 1988"  (Directory)
"Misc Group Demos" (Directory)
"Odiesoft Games - Reaktor (1988)" (File)

The "CAT" on my Amstrad shows me:
"COMPUT~1"
"Misc Group Demos"
"ODIESO~1"

I am suprised of "Misc Group Demos" - why the Amstrad don't display "MISC G~1"?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:13, 23 September 16
Quote from: SOS on 05:59, 23 September 16
Technical question:
I have copy some files/directories from my PC to the SD-Card, example:
"Computing with the Amstrad 1988"  (Directory)
"Misc Group Demos" (Directory)
"Odiesoft Games - Reaktor (1988)" (File)

The "CAT" on my Amstrad shows me:
"COMPUT~1"
"Misc Group Demos"
"ODIESO~1"

I am suprised of "Misc Group Demos" - why the Amstrad don't display "MISC G~1"?


Taken straight from the manual :)
"File system
===========
Filenames will be displayed in 8.3 format for compatiblity. Directories will display in full name if less than 17 characters. If longer short directory names will be used. When displaying a directory/catalog, directories will have a > character infront of the directory name."
Title: Re: Amstrad CPC WiFi
Post by: SOS on 08:21, 23 September 16
Quote from: Duke on 08:13, 23 September 16
Taken straight from the manual :)

Oh mann  :picard: :picard: :picard: :picard:
So I must drink a very BIG cup of coffee (or need eye-glasses)

Thanks Duke!!!
Title: Re: Amstrad CPC WiFi
Post by: TFM on 21:07, 23 September 16
Well, who the heck reads the manual!  ;D ;D ;D ;D ;D
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:21, 23 September 16
None of my hotel customers. Obviously the master allocations do no transfer when the software has the "transfer master allocations" parameter set to 'N'.

The really worrying thing is that that particular case was open for 6 months before it came to me.... And I solved it in 2 seconds...

Gotta love being Level 2 support.

;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:10, 24 September 16

M4 Board firmware v110 beta 1: http://www.spinpoint.org/cpc/M4FIRM_v110b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b1.zip)

* Long due fix, for using Chrome to upload roms
* |cd,"not existing directory" fixed.
* Fix issues with |httpget and |httpmem, when using parameters like ?param=yo
* C_FSTAT command now uses current path (from |cd) when none given.
Title: Re: Amstrad CPC WiFi
Post by: TFM on 23:11, 24 September 16
Cool!!!  :)
Title: Re: Amstrad CPC WiFi
Post by: Kris on 08:44, 25 September 16
Nice job as usual :)

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:20, 25 September 16

For those of you waiting for the next batch of M4, a bit of bad news.

I received the MCU chips I was waiting for friday (everything else is ready). Unfortunately the supplier (i****) send me a batch of STM8 chips instead of the STM32F407.
I have another batch on its way, but may be 1-2 weeks before it's here, hopefully the right ones this time around.

Sorry for the delay, it is out of my hands right now.

Edit: Just ordered another batch with DHL shipping to speed it up. Probably will be here next week. (Sick of china mail waiting !)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:01, 25 September 16
No problem, thanks for letting us know.
These things happen.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: MissionComplete on 10:29, 25 September 16
No problem!! We can wait... ;)
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 20:49, 26 September 16
Trebmint fixed a network issue today which i had already for a long time!
The cool part is now that i can continue my work on the IRC client for MSX and CPC ... :D

Because the CPC has this nice hardware now!!!

Today i did some tests and was lucky to have a very short chat with FiXato on #openmsx

My MSX:
(http://msx.pics/images/2016/09/26/firsttest.MSXbmp.png)

My PC:
(http://msx.pics/images/2016/09/26/firsttestc0a54.png)

I will make it better and hope to release it in the future so everyone can use it! At least i can share you the first real test!
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 21:50, 26 September 16
That's really cool! I joined IRC with my CPC+M4Board+SymbOS yesterday as well (even the same channel :D ), but not directly with an own client. I was using the HispaMSX BBS again via Telnet. It was working more stable than before, but there is still an issue I have to fix  ::) It's fantastic to have a stand-alone IRC client now! It was lame, that the ZX81, ZX Spectrum and C64 guys had their own IRC channel in the local network on the Classic Computing meeting last weekend and the CPC/MSX guys weren't able to join :D
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 06:48, 27 September 16
I'm looking really forward to IRC'ing from my CPC.  :)
That's gonna mark a huge milestone in CPC geekness.
Also, hopefully it'll bring more CPC people together chatting.
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 08:25, 27 September 16
Is there any way of displaying the current directory? If I remember correctly, neither cat or IDIR commands show this information. I think an IPWD command would be really useful.


Also, is it possible to copy a file (using ICOPYF command) from inside a .dsk file to the root directory of the SD? I did not have any luck with it, getting a "Not supported" message, so the workaround was to load the file (it was just basic), get to the root directory and save it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:57, 27 September 16
Quote from: Takis Kalatzis on 08:25, 27 September 16
Is there any way of displaying the current directory? If I remember correctly, neither cat or IDIR commands show this information. I think an IPWD command would be really useful.


Also, is it possible to copy a file (using ICOPYF command) from inside a .dsk file to the root directory of the SD? I did not have any luck with it, getting a "Not supported" message, so the workaround was to load the file (it was just basic), get to the root directory and save it.
There is a command to get the current path (C_GETPATH) but there is no RSX using it, its a good idea to list the active path within the cat/|DIR (will add it next time around).
And yes the |COPYF doesn't work within .DSK images. Tbh. there is so many features I could add, but at the end of the day how many will actually use them.
Anyway noted.

Also the M4ROM source is available at github (M4Duke (Duke) · GitHub (https://github.com/M4Duke/)), so anyone could add custom commands, if they are good to the general users I can include them in the release build aswell. - Ie. @SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) just made a couple of functions, I'll likely add for next build, but otherwise you can put your own M4ROM.BIN file in root and it will be used instead of the built-in version.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 15:39, 27 September 16
I did a few modifications at the M4Board network driver for the SymbOS Network Daemon, and now it seems to run much more stable.
I was able to watch ASCII Star Wars with Telnet for a longer time until the first shooting scenes. Then the whole system did a reset, but that was already a great progress.
At the same time EdoZ finished another alpha version of his IRC client SymIRC. I tried it with the new driver on the CPC and it was running stable for more than one hour. We had a nice chat with Trebmint and EdoZ, I wonder if it was the first time, when a CPC was connected to IRC with an own client? While having the IRC connection open I was able to download files with WGET simultaneously. That was my first real test with having multiple connection opened at the same time on the CPC!

(http://www.symbos.org/files/symirc-1.jpg)
(http://www.symbos.org/files/symirc-0.jpg)
(http://www.symbos.org/files/symirc-2.jpg)

The SymIRC is currently not filtering all server messages, which shouldn't be displayed in the chat window. EdoZ is now working on removing all unnecessary stuff which is currently slowing down the output.
I have to speak to Duke for some details again, but will do a preview release anyway as soon as possible.
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 15:51, 27 September 16
SymIRC is looking really promising!!! Awesometastic!  :)
Great work guys!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:02, 27 September 16
Looks great ! And glad to hear multiple connections is working too :)
Good work @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) and @Edoz(MSX) (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1188)
Title: Re: Amstrad CPC WiFi
Post by: TFM on 17:50, 27 September 16
Quote from: Duke on 16:02, 27 September 16
Looks great ! And glad to hear multiple connections is working too :)
Good work @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) and @Edoz(MSX) (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1188)


Indeed great job done! And in a short amount of time! Keep the good work going.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 17:51, 27 September 16
Great work !  :)  I'am looking forward to have a chat with irc!


Question:
I'am a little bit confused with all the information in this thread how to use the M4 together with X-MEM.
Is there a short description or can someone explain it to me step by step - which ROM belongs to which slot? :-)
I'am using a CPC6128 (german)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:09, 27 September 16
Quote from: Jungsi on 17:51, 27 September 16
Question:
I'am a little bit confused with all the information in this thread how to use the M4 together with X-MEM.
Is there a short description or can someone explain it to me step by step - which ROM belongs to which slot? :-)
I'am using a CPC6128 (german)

The simple method is to disable the romboard function of XMEM and use the 32 (33) romslots of M4 board. There is a jumper below the CPLD on the XMEM, which you can set to NO.

Otherwise:
If you wish to use 64 roms, you will need to go into the webinterface of M4 board and set romslot start position to 32, so that M4 roms will be mapped after XMEM roms.
This will give some issues with the position of the M4 rom and replacing AMSDOS unless you got a CPC6128 which can replace rom 7.

EDIT: I could make a lowerrom replacement for CPC6128 that will ie. use romslot 127 for M4 ROM, if there's interest.
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 07:06, 01 October 16
After the M4 introduction of directories and .dsk files, I decided I needed a disk navigation program to avoid all the typing for changing directories.
I didn't want to start from scratch, so I modified a very nice little program (Disk menu by Joe Halstead) in order to support directory navigation.


I am posting the .BAS code and the converted ASCII file (.TXT) in the hope that other members of the community will find it useful.


Some instructions for use :
- save it in the root folder of the SD card, use cursor keys for navigation
- Space Bar gets inside directories or selects a file for Load,Run. Cancel lets you select another file
- "O" key gets out of a directory
- Since the original program used CAT command and this has not been modified, it probably will not work well with cards having hundreds of files.



Title: Re: Amstrad CPC WiFi
Post by: remax on 09:42, 01 October 16
Nice
Title: Re: Amstrad CPC WiFi
Post by: dragon on 10:02, 01 October 16
One ignorant question. Is posible acces to this?.


http://www.retrocomputers.online/2016/08/20/more-photos-of-viewdata-on-the-amstrad-cpc/ (http://www.retrocomputers.online/2016/08/20/more-photos-of-viewdata-on-the-amstrad-cpc/)


http://www.retrocomputers.online/2013/11/18/lets-take-a-look-at-viewdata/ (http://www.retrocomputers.online/2013/11/18/lets-take-a-look-at-viewdata/)


(Using the m4 offcourse).

Another ignorant cuestión, maybe is posible make the cpc can load the teletext Pages online?.


Example:


http://www.rtve.es/television/teletexto/ (http://www.rtve.es/television/teletexto/)


I refer to teletext exclusively, not the entire web Page of course.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 21:25, 01 October 16
Quote from: Takis Kalatzis on 07:06, 01 October 16
After the M4 introduction of directories and .dsk files, I decided I needed a disk navigation program to avoid all the typing for changing directories.
I didn't want to start from scratch, so I modified a very nice little program (Disk menu by Joe Halstead) in order to support directory navigation.


I am posting the .BAS code and the converted ASCII file (.TXT) in the hope that other members of the community will find it useful.


Some instructions for use :
- save it in the root folder of the SD card, use cursor keys for navigation
- Space Bar gets inside directories or selects a file for Load,Run. Cancel lets you select another file
- "O" key gets out of a directory
- Since the original program used CAT command and this has not been modified, it probably will not work well with cards having hundreds of files.


Very good i use it renamed as autoexec.bas , so it is starting when i open my cpc!
one only question how can i exit?
The only trick i found is to load a .s file that gives me "line too long" to exit!
thank you for the .bas file

Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 21:43, 01 October 16
Quote from: anyf33 on 21:25, 01 October 16

Very good i use it renamed as autoexec.bas , so it is starting when i open my cpc!
one only question how can i exit?
The only trick i found is to load a .s file that gives me "line too long" to exit!
thank you for the .bas file


Have you tried pressing ESC key twice? It is a general exiting mechanism from basic programs.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:48, 01 October 16
Thanks @Takis Kalatzis (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1719), very useful.
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 21:52, 01 October 16
Quote from: Takis Kalatzis on 21:43, 01 October 16

Have you tried pressing ESC key twice? It is a general exiting mechanism from basic programs.
:o  it works . I feel so noob!  :doh:  but i remerber that there is a way to prevent this. 29 years passed and i dont remember more :laugh:
Title: Re: Amstrad CPC WiFi
Post by: TFM on 01:32, 02 October 16
ON BREAK CONT
Title: Re: Amstrad CPC WiFi
Post by: remax on 10:43, 02 October 16
Quote from: Duke on 19:06, 04 September 16
Attached is a slightly modified lowerrom for cpc6128.
This is for CPC6128 users who cannot not set M4 rom to 7, which breaks compatiblity with many games, that re-initialize amsdos (rom 7).

With this lowerrom you must set M4 rom to 6, then enable lowerrom and upload this to whatever lower rom slot you choose (ie. 31).

When games (loaders) call init rom 7, rom 6 (m4) will be initialized instead.

If there's interest I may make the patch a little more intelligent so that M4 rom could be at any pos.

Thanks, I guess there is no way it'll work at the same time of FW3.16 ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:06, 02 October 16
Quote from: remax on 10:43, 02 October 16
Thanks, I guess there is no way it'll work at the same time of FW3.16 ?

No, as both are lowerroms, however the small patch I did, could be done similarily on fw3.16.
Title: Re: Amstrad CPC WiFi
Post by: remax on 14:40, 02 October 16
Quote from: Duke on 14:06, 02 October 16
No, as both are lowerroms, however the small patch I did, could be done similarily on fw3.16.


Ok thanks, i'll hope it will be done eventually :)


Can someone point me to a game that have the problem this patch solve, to make sure everything is working as it should ?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 21:04, 02 October 16
Hi duke. Any chance you could allow remappimg the roms of m4 to 64 to 95 (allowing 96 roms with xmem and ymem)? I am wanting to experiment with a romdrive concept but also dont want to lose the roms on any of the boards... would seem a pitty to.  You could argue why have a romdrive if we have sdcard. .. well... its there.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:42, 02 October 16
Quote from: zhulien on 21:04, 02 October 16
Hi duke. Any chance you could allow remappimg the roms of m4 to 64 to 95 (allowing 96 roms with xmem and ymem)? I am wanting to experiment with a romdrive concept but also dont want to lose the roms on any of the boards... would seem a pitty to.  You could argue why have a romdrive if we have sdcard. .. well... its there.
You can already map at 64 (or any other pos you want). Just set the starting pos in the webinterface.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 03:49, 03 October 16
awesome!
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:27, 03 October 16
|CD,"/" goes to root, when e.g. i'm on the path "/m4/3/test"
e.g.
When I do:
|cd,"/m4
|cd,"equinox.dsk"
the |CD,"/"doesnt go to root, only makes a |cd,".."

Could you change this, that |CD,"/" goes to root, when i have prevouisly choosen a dsk?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:39, 03 October 16
Noted, will change it when I get a chance, thanks.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 14:33, 03 October 16
Quote from: Duke on 12:39, 03 October 16
Noted, will change it when I get a chance, thanks.

Thanks to you for this great piece of hardware!!
Title: Re: Amstrad CPC WiFi
Post by: remax on 21:28, 03 October 16
Quote from: Duke on 23:42, 02 October 16
You can already map at 64 (or any other pos you want). Just set the starting pos in the webinterface.

Am I the only one that can't do that with V9 ?

I tried with firefox (starting pos : 32) and chrome, but it stayed at slot1,2,3...

i remember it worked in some of the previous version...

(test : same with v10beta)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:12, 04 October 16
Quote from: remax on 21:28, 03 October 16
Am I the only one that can't do that with V9 ?

I tried with firefox (starting pos : 32) and chrome, but it stayed at slot1,2,3...

i remember it worked in some of the previous version...

(test : same with v10beta)

The slot numbers will display the same in the web interface, physically they will change though.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:43, 04 October 16
Hi Duke,

My two boards arrived safely today. Thank you.

I quickly tried one on a 464 and noticed something cool that may have been mentioned in this long thread, but the latest 'M4 Board Instructions' does not mention it.

The Instructions mention...

QuoteNotice on CPC's with Basic 1.0 (CPC464), RSX commands work in a different way, you can't pass the parameters directly to the rsx.
You will have to do it via a variable.
Ie. change into a sub directory called "DISCS". Type:  A$="DISCS":|cd,@A$
On basic 1.1 it would be: |cd,"DISCS".

This fine works, but I found something that also works with .dsk files.
Type |CD press enter.
at this point is waits for a response.
put in the .dsk files e.g. <filename.dsk>
and then the dsk is now opened.
A cat will display the contents.

It may be old news, but I could not find it. Probably does not hurt to repeat it anyway  :)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:55, 04 October 16
Quote from: 00WReX on 10:43, 04 October 16
Hi Duke,

My two boards arrived safely today. Thank you.

I quickly tried one on a 464 and noticed something cool that may have been mentioned in this long thread, but the latest 'M4 Board Instructions' does not mention it.

The Instructions mention...

This fine works, but I found something that also works with .dsk files.
Type |CD press enter.
at this point is waits for a response.
put in the .dsk files e.g. <filename.dsk>
and then the dsk is now opened.
A cat will display the contents.

It may be old news, but I could not find it. Probably does not hurt to repeat it anyway  :)

Cheers,
Shane

Good to hear.

Yes, you can use cursor + copy keys too if you type |cd and enter, however since you can now replace lowerrom too with M4, its redundant (just upgrade the 464 to basic 1.1). It may be removed again, to free space for other things in the rom.
Title: Re: Amstrad CPC WiFi
Post by: remax on 19:37, 04 October 16
Quote from: Duke on 05:12, 04 October 16
The slot numbers will display the same in the web interface, physically they will change though.


Ok it works well, i just tested it thanks to the |help command of XMEM.


Now there is one remaining problem, i don't know if you're the one that can help me :


I have M4board starting at slot 32, with the M4 relay rom on slot 6 of the XMEM.
It works well, the M4 board is started at launch at the same time that the XMEM...


... but, if i upload a application in slot 33 (i tried with protext and discology 6), i have the rom recognized by |help, with the RSXs described, but a "Unknown command" happen if i try to use a RSX (|p for protext, |d6 for discology6).


I guess i need something to relay the command to the upper slots (ie >31), as i guess FW315 only activate 32 roms, but i don't now what is needed, and neither if it even exists !


EDIT : everything works if i start the M4 board at, say, slot 26... so it's really a slot >31 thing !
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:04, 04 October 16
I don't think there is anything that uses roms >31. So ie. FW316 only initializes roms 0-31, and the |help probably only scans 0-31, so technically until someone makes a patch / rsx commands to use roms slots >31 it's no use, unless you address the roms directly for a custom purpose.
Title: Re: Amstrad CPC WiFi
Post by: remax on 21:11, 04 October 16
OK... thanks, that's what i thought.


What is funny is that |help,33 works perfectly and lists the rsx. So |help already scans slots >31.


Last request (don't know if it's feasible) : is it possible to keep the RAM Drive of the XMEM with the M4 Board activated, it would help greatly the transfers...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:02, 04 October 16
Quote from: remax on 21:11, 04 October 16
Last request (don't know if it's feasible) : is it possible to keep the RAM Drive of the XMEM with the M4 Board activated, it would help greatly the transfers...

I just got an XMEM recently (thanks Toto!). I don't know how the RAM drive works. I guess you need fw316, how do you access it ? -do you need some upper rom also? Thanks. Will look into it, once I see how it works.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:34, 05 October 16
Quote from: Duke on 22:02, 04 October 16
I just got an XMEM recently (thanks Toto!). I don't know how the RAM drive works. I guess you need fw316, how do you access it ? -do you need some upper rom also? Thanks. Will look into it, once I see how it works.
The ram drive feature has been removed from 3.16, 3.15 has it but it clashed with the xmass so was removed.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 23:45, 05 October 16
syMIRC written by EdoZ using the Quigs IDE by Trebmint is getting better an better. Beside filtering all the unnecessary server messages during login and chat session it now has multiple channel support as well. We had some nice chats in the #CPC channel this evening with a CPC6128 + M4Board, an MSX + Denyonet and some "normal" PCs :)
(http://www.symbos.org/files/symirc-3.jpg)
(http://www.symbos.org/files/symirc-4.jpg)
(http://www.symbos.org/files/symirc-5.jpg)
I can't wait to add USB mouse support for the Albireo!
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 23:49, 05 October 16
This is supercool!  :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 00:29, 06 October 16
Quote from: Prodatron on 23:45, 05 October 16
syMIRC written by EdoZ using the Quigs IDE by Trebmint is getting better an better. Beside filtering all the unnecessary server messages during login and chat session it now has multiple channel support as well. We had some nice chats in the #CPC channel this evening with a CPC6128 + M4Board, an MSX + Denyonet and some "normal" PCs :)
(http://www.symbos.org/files/symirc-3.jpg)
(http://www.symbos.org/files/symirc-4.jpg)
(http://www.symbos.org/files/symirc-5.jpg)
I can't wait to add USB mouse support for the Albireo!
:) :) :) I can't wait to join you online from a CPC :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 02:47, 09 October 16
Hi All,

Just wondering if anyone has tested the M4 on a 'Cost Down' MC0099A mainboard CPC464 ??

The one with the 100pin SMD Gate Array (combines the old Gate Array, CRTC, and some FDC/DRAM/RESET logic in one chip).

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29)

I have been using the M4 fine with an older 464, and tested pretty much everything with it and all good.
But my 464 with the 'Cost Down' mainboard just cyclic reboots.
I have thoroughly cleaned the edge connector contacts.
I have moved the M4 ROM between positions 6 & 7.
I removed the SD card altogether.
During the cyclic reboot the M4 ROM name is never displayed.

I can still communicate with the M4 via the web browser (config file on SD card from other CPC setup).

Testing a normal ROM board on this CPC is fine so assuming the connector contacts are all OK.

The 'Cost Down' 6128 also has the same 100 pin SMD chip (40226) so interesting if anyone has tested an M4 with one of those as well.

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:12, 09 October 16
Hi 00WReX,

You are probably the first to try this I guess.

Try to disable M4 rom (and dont have any other roms enabled). I am curious if the CPC464 cost down will start up without entering reset loop?

Regards,
Duke

Quote from: 00WReX on 02:47, 09 October 16
Hi All,

Just wondering if anyone has tested the M4 on a 'Cost Down' MC0099A mainboard CPC464 ??

The one with the 100pin SMD Gate Array (combines the old Gate Array, CRTC, and some FDC/DRAM/RESET logic in one chip).

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29)

I have been using the M4 fine with an older 464, and tested pretty much everything with it and all good.
But my 464 with the 'Cost Down' mainboard just cyclic reboots.
I have thoroughly cleaned the edge connector contacts.
I have moved the M4 ROM between positions 6 & 7.
I removed the SD card altogether.
During the cyclic reboot the M4 ROM name is never displayed.

I can still communicate with the M4 via the web browser (config file on SD card from other CPC setup).

Testing a normal ROM board on this CPC is fine so assuming the connector contacts are all OK.

The 'Cost Down' 6128 also has the same 100 pin SMD chip (40226) so interesting if anyone has tested an M4 with one of those as well.

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: dragon on 12:52, 09 October 16
Quote from: Duke on 06:12, 09 October 16
Hi 00WReX,

You are probably the first to try this I guess.

Try to disable M4 rom (and dont have any other roms enabled). I am curious if the CPC464 cost down will start up without entering reset loop?

Regards,
Duke


Hi duke my 6128 is a costdown, i can  help to test  this when my board arrived to solve It.


I think i can asume he not work on It.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 00:36, 10 October 16
Quote from: TotO on 13:40, 30 June 16The question is not new and always the same: When the CPC is no more a CPC?Taking control over the Z80 with a MCU (your ARM, Arduino, ...) allow everything. The CPC is finally a simple terminal to input and display.
;)

Reading the thread when Reading  your post remember me on thing.


You have described how superfx chip works in snes. Fx do all the job, and he only send to snes vídeo memory what snes draw in screen.


If you asking a player when is playing  Doom or super Mario world 2. If a snes is not a snes anymore. I dobut they respond no. They probably tell sfx is a great  chip and desmotrate the power of snes.Because snes is designed to allowed these type of chips. And is a part of the system.


Only remember the history





PD: i not know what happend with the font is write o.k. lol.

Edit: Fixed - Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 01:45, 10 October 16
Quote from: dragon on 00:36, 10 October 16
quote author=TotO link=topic=11977.msg129559#msg129559 date=1467290448]The question is not new and always the same: When the CPC is no more a CPC?Taking control over the Z80 with a MCU (your ARM, Arduino, ...) allow everything. The CPC is finally a simple terminal to input and display.  ;)
Reading the thread when Reading  your post remember me on thing.
You have described how superfx chip works in snes. Fx do all the job, and he only send to snes vídeo memory what snes draw in screen.
If you asking a player when is playing  Doom or super Mario world 2. If a snes is not a snes anymore. I dobut they respond no. They probably tell sfx is a great  chip and desmotrate the power of snes.Because snes is designed to allowed these type of chips. And is a part of the system.
Only remember the history
PD: i not know what happend with the font is write o.k. lol.
Quote

The Font is a bit small ?
Ray
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:31, 10 October 16
Please notice, on M4 boards shipped after 2016-10-01:
Due to a new flashchip on the wifi-board, do not use firmware versions lower than v1.0.9. If done by accident, use v1.0.9 or higher to restore it.
http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:35, 10 October 16
Quote from: Duke on 06:12, 09 October 16
Hi 00WReX,

You are probably the first to try this I guess.

Try to disable M4 rom (and dont have any other roms enabled). I am curious if the CPC464 cost down will start up without entering reset loop?

Regards,
Duke

Hi Duke / All,

Sorry...False alarm.

I can confirm the M4 does work with the CPC464 MC0099A cost down board (100 pin custom ASIC).

I decided to give the expansion contacts another clean and guess what...all good.

The expansion contacts looked spotless and like they had never been used even before I cleaned them the first time.

In comparison a 6128 I got out to test with the M4, visually the contacts looked terrible and dirty, but a quick clean and all was good.

It just goes to show you, those edge connector contacts can be a real pain.

Clean, clean and clean again and if it still fails, clean them a few more times  ???
I did end up using a form of microscrub on them (old telephone exchange contact cleaner that I have had for years...does wonders but I use it sparingly although it is not really abrasive, just a firm like bristle).

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 07:53, 10 October 16
Quote from: 00WReX on 07:35, 10 October 16

I did end up using a form of microscrub on them (old telephone exchange contact cleaner that I have had for years...does wonders but I use it sparingly although it is not really abrasive, just a firm like bristle).

Cheers,
Shane
Hi Shane
is it the same as this, ( From my OLD PMG Toolkit )
Ray
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:55, 10 October 16
Hey Ray, Yes that's the stuff...exactly.  :)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:57, 10 October 16
You can make a very useful little "scrubber" by wrapping a piece of Velcro (Klettverschluss), the "hook" side, around a stick (Mine is made from a Chopstick). It's soft enough not to do any damage to contacts.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 08:09, 10 October 16
@Bryce (http://www.cpcwiki.eu/forum/index.php?action=profile;u=225)
Would that be suitable for cleaning Floppy drive heads ??
I have some 5 1/4" drives that its hard to reach.
I like the Long reach of the chop stick
Ray
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:32, 10 October 16
Floppy drive heads are extreme scratch sensitive. For these I use a cotton bud (the ear cleaning type) with some isopropanol on it. Anything more abrassive wouldn't be advised.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 09:43, 10 October 16
Quote from: dragon on 00:36, 10 October 16
Reading the thread when Reading  your post remember me on thing.
If you asking a player when is playing  Doom or super Mario world 2. If a snes is not a snes anymore. I dobut they respond no. They probably tell sfx is a great chip and desmotrate the power of snes.Because snes is designed to allowed these type of chips. And is a part of the system.
I have not said that is bad to do it, but asking again "when we can considerate the CPC to be no more a CPC"...
Generally the answer is: "While the Z80 does the job and the expansion doesn't hack the system, it is OK."

The SuperFX example is interresting because the chip is embedded into each games cartridges and transparent for the players.
It render 3D polygons and advanced 2D effects into a frame buffer and blit the result into the SNES video memory.
I think that was a clever way to speed up the PLUS display instead of using sprites... (see it like a co-processor)
Title: Re: Amstrad CPC WiFi
Post by: dragon on 13:47, 10 October 16
Quote from: Bryce on 07:57, 10 October 16
You can make a very useful little "scrubber" by wrapping a piece of Velcro (Klettverschluss), the "hook" side, around a stick (Mine is made from a Chopstick). It's soft enough not to do any damage to contacts.

Bryce.


In this lands not only in cpc , to anthing related with pcb edge contacts as consoles cartridges etc etc... The people always uses one of these .

http://www.milan.es/en/default.aspx?ACCIO=PORTALENC&NIVELL=6579D32CB08575F9FCF4AE36493CC854995DB4A2CB1DA743033701EFA893603B36FEABA697FAFE4F52C1C67EA780C1E0


Quote from: TotO on 09:43, 10 October 16
I have not said that is bad to do it, but asking again "when we can considerate the CPC to be no more a CPC"...
Generally the answer is: "While the Z80 does the job and the expansion doesn't hack the system, it is OK."

The SuperFX example is interresting because the chip is embedded into each games cartridges and transparent for the players.
It render 3D polygons and advanced 2D effects into a frame buffer and blit the result into the SNES video memory.
I think that was a clever way to speed up the PLUS display instead of using sprites... (see it like a co-processor)


But better with socket to upgrade it to plus plus  :D one time every decade.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 13:52, 10 October 16
Yup, erasers are great for contacts that are accessible like the PCB edge, but they're no good for internal contacts like the Centronics connector or the connector side of the edge connector.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 21:29, 10 October 16
Hi Duke,

I don't like making feature requests...but I will.  :D

It may have already been asked or on the to-do list.

Are you able to add an RSX to list installed ROMs.
Something like the |help in utopia.

Maybe   |ROMS

I know the ROMs can be seen from the Web Browser, but straight from the CPC is very handy too.

Thanks.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 21:34, 10 October 16
00WReX,

If Utopia has the function you request, why implement it again in something else?

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 22:03, 10 October 16
Hi rpalmer,

I totally agree with you.

The reason I asked is that Utopia is known to conflict with certain other ROMs and I removed Utopia from my list because of this.
It also needs to be after the AMSDOS / M4 ROM otherwise it's RSXs will be selected first.
But also, I figured it would be nicer  (and possibly not too much work) to have the RSX implemented on the device with the M4 ROM.
Other ROM RSXs are already implemented on the M4 ROM and I also like the idea of minimising the ROM count (to avoid any conficts etc).

Honestly, I mostly wanted Utopia on the board just for this function.

Just a thought anyway.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: MissionComplete on 22:15, 10 October 16
M4 received and ready to work. Thank you, Duke!!!  :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:16, 10 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518)

Sure I can add it sometime. For now you could put maxam in the romboard, it has |HELP too to list roms and |help,romnum to list RSX commands.

@MissionComplete (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1711)

Good to hear :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:35, 10 October 16

M4 Firmware v1.1.0 beta 2:

http://www.spinpoint.org/cpc/M4FIRM_v110b2.zip

Net stability fixes, recommended for SymbOS v3.0.
Also added some RSX functions written by SOS (please document them).
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:28, 11 October 16
Quote from: 00WReX on 22:03, 10 October 16
Hi rpalmer,

I totally agree with you.

The reason I asked is that Utopia is known to conflict with certain other ROMs and I removed Utopia from my list because of this.
It also needs to be after the AMSDOS / M4 ROM otherwise it's RSXs will be selected first.
But also, I figured it would be nicer  (and possibly not too much work) to have the RSX implemented on the device with the M4 ROM.
Other ROM RSXs are already implemented on the M4 ROM and I also like the idea of minimising the ROM count (to avoid any conficts etc).

Honestly, I mostly wanted Utopia on the board just for this function.

Just a thought anyway.

Cheers,
Shane

Maxam also offers this feature and causes less problems with other ROMs than Utopia, it's also a pretty handy ROM to have installed.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 08:36, 11 October 16
Quote from: 00WReX on 21:29, 10 October 16
Hi Duke,

I don't like making feature requests...but I will.  :D

It may have already been asked or on the to-do list.

Are you able to add an RSX to list installed ROMs.
Something like the |help in utopia.

Maybe   |ROMS

I know the ROMs can be seen from the Web Browser, but straight from the CPC is very handy too.

Thanks.

Cheers,
Shane
FW 3.1x has this built in, and it works with the m4 beautifully.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 08:42, 11 October 16
Quote from: CraigsBar on 08:36, 11 October 16FW 3.1x has this built in, and it works with the m4 beautifully.
Exactly... Using |HELP too.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:38, 11 October 16
Quote from: CraigsBar on 08:36, 11 October 16
FW 3.1x has this built in, and it works with the m4 beautifully.

Actually, I should have known this...in fact I did know this  :picard: as I've had been running the Customer Firmware on a 6128 right from the start....

I even tried it on the M4 over the weekend, but because I have been testing and connecting across different CPC, have not settled on anything just yet.

Hmm, that's what happens after being off the Amstrads for a fair while. I should not have strayed  :(
It's been so long, I still have BonnyDOS running on an X-mass on the CPC with the CFW.

Personally, I still think it would be neat as part of the M4 ROM to have a way of listing the ROMS.
Especially because it has a RSX's to add ROMs and disable ROMs, maybe sorta makes sense to also be able to list them.

But yes, I had forgotten about the other options (outside of Utopia)...so thanks for the refresher  :)

Cheers guys.

Shane
Title: Re: Amstrad CPC WiFi
Post by: anyf33 on 00:12, 12 October 16
Quote from: 00WReX on 02:47, 09 October 16
Hi All,

Just wondering if anyone has tested the M4 on a 'Cost Down' MC0099A mainboard CPC464 ??

The one with the 100pin SMD Gate Array (combines the old Gate Array, CRTC, and some FDC/DRAM/RESET logic in one chip).

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC464_version_4_.28cost-down.29)

I have been using the M4 fine with an older 464, and tested pretty much everything with it and all good.
But my 464 with the 'Cost Down' mainboard just cyclic reboots.
I have thoroughly cleaned the edge connector contacts.
I have moved the M4 ROM between positions 6 & 7.
I removed the SD card altogether.
During the cyclic reboot the M4 ROM name is never displayed.

I can still communicate with the M4 via the web browser (config file on SD card from other CPC setup).

Testing a normal ROM board on this CPC is fine so assuming the connector contacts are all OK.

The 'Cost Down' 6128 also has the same 100 pin SMD chip (40226) so interesting if anyone has tested an M4 with one of those as well.

http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29 (http://www.cpcwiki.eu/index.php/Mainboard_Versions#CPC6128_version_3_.28cost-down.29)

Cheers,
Shane

Hello again I have the cost down 6128 and it works fine! (the m4). After of course many many cleaning days! And i think the best rubber is the blue/red rubber. using the blue part! i was laughing when my friend (profesional electronic) told me . but it was right
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 11:29, 13 October 16
Hi @Duke_ (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1632)

Today the m4 board is unable to work with the wifi part

|netstat tells that is connected

but |httpget hangs the cpc and symbos 3.0 don't work with symirc anymore

if i type the ip on my pc firefox, instead of the configuration page it displays "404 - not found"

what can be happening?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:43, 13 October 16
Sounds like it isn't connected tbh.

Does it display an IP number when you type |netstat ?

What firmware do you have on it?
Quote from: Joseman on 11:29, 13 October 16
Hi @Duke_ (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1632)

Today the m4 board is unable to work with the wifi part

|netstat tells that is connected

but |httpget hangs the cpc and symbos 3.0 don't work with symirc anymore

if i type the ip on my pc firefox, instead of the configuration page it displays "404 - not found"

what can be happening?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:57, 13 October 16
Btw. if anyone feels like trying:
M4 firmware v1.1.0b3 - http://www.spinpoint.org/cpc/M4FIRM_v110b3.zip

Should fix issues with corrupt file download and more when using symbOS 3.0 preview.
Title: Re: Amstrad CPC WiFi
Post by: MissionComplete on 14:39, 13 October 16
Quote from: Joseman on 11:29, 13 October 16
Hi @Duke_ (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1632)

Today the m4 board is unable to work with the wifi part

|netstat tells that is connected

but |httpget hangs the cpc and symbos 3.0 don't work with symirc anymore

if i type the ip on my pc firefox, instead of the configuration page it displays "404 - not found"

what can be happening?

Si estás utilizando una IP fija, puede que la hayas puesto fuera del rango de tu red o puede que ya esté siendo utilizada esa IP. Yo puse sin darme cuenta ip=192.168.1.19, cuando debía haber puesto ip=192.168.0.19. Al hacer netstat, la M4 decía estar conectada con la IP que yo le había asignado, pero no lo estaba. De hecho, era imposible, porque también le había dado mal la puerta de enlace. Me volví loco hasta que me di cuenta.

Is it possible that you have assigned a static IP out of rank of your WLAN? In that case, netstat shows the wrong IP that you have assigned, but there is no connection.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:55, 13 October 16
Or possibly a conflict with some other device on the network, maybe try DHCP....
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 15:10, 13 October 16
Quote from: MissionComplete on 14:39, 13 October 16
Si estás utilizando una IP fija, puede que la hayas puesto fuera del rango de tu red o puede que ya esté siendo utilizada esa IP. Yo puse sin darme cuenta ip=192.168.1.19, cuando debía haber puesto ip=192.168.0.19. Al hacer netstat, la M4 decía estar conectada con la IP que yo le había asignado, pero no lo estaba. De hecho, era imposible, porque también le había dado mal la puerta de enlace. Me volví loco hasta que me di cuenta.

Is it possible that you have assigned a static IP out of rank of your WLAN? In that case, netstat shows the wrong IP that you have assigned, but there is no connection.

It could also that your gateway address is wrong or your DNS lookup. In SymbOS i always use nslookup www.cpcwiki.eu or so to see if you get the good IP.. and if so .. you know that your gateway is doing routing correctly ...
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 18:47, 13 October 16
Quote from: Duke on 11:57, 13 October 16
Btw. if anyone feels like trying:
M4 firmware v1.1.0b3 - http://www.spinpoint.org/cpc/M4FIRM_v110b3.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b3.zip)

Should fix issues with corrupt file download and more when using symbOS 3.0 preview.

Wow, what a great day! First the USB mouse driver issues have been solved, and now the M4Board network seems to be 100% stable as well! My first tests where all successful, thanks a lot, Duke!
Title: Re: Amstrad CPC WiFi
Post by: remax on 19:35, 13 October 16
My M4 Board seems to be dead... i tryed many things, pluged directly, on motherx4 with usb powering...


But everything i try does nothjng : there isn't the M4board message on startup. The blue light is on, the wifi light blink rapidly on then off definitively. The reset does nothing to the cpc but lights the red light...


Any idea ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:16, 13 October 16
Can you ping the board from a PC ? -when the CPC is turned on. If so I think connector?

If not, try to put the latest upgrade in root of microSD card and see if it does go through the update process (red light on, then wifi light on, then both lights off).

And did you try without microSD inserted, incase something got screwed in the fs?

Quote from: remax on 19:35, 13 October 16
My M4 Board seems to be dead... i tryed many things, pluged directly, on motherx4 with usb powering...


But everything i try does nothjng : there isn't the M4board message on startup. The blue light is on, the wifi light blink rapidly on then off definitively. The reset does nothing to the cpc but lights the red light...


Any idea ?
Title: Re: Amstrad CPC WiFi
Post by: remax on 20:30, 13 October 16
Quote from: Duke on 20:16, 13 October 16
Can you ping the board from a PC ? -when the CPC is turned on. If so I think connector?

If not, try to put the latest upgrade in root of microSD card and see if it does go through the update process (red light on, then wifi light on, then both lights off).

And did you try without microSD inserted, incase something got screwed in the fs?


I did try to remove the SD card and launch, to reformat the SD card and launch, to ping the board... nothing worked...


I'm gonna try the update...


At least the SD Card port works, as i noticed that the m4 folder has been recreated and the update process worked... (well i think)...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:37, 13 October 16
Quote from: remax on 20:30, 13 October 16
At least the SD Card port works, as i noticed that the m4 folder has been recreated and the update process worked... (well i think)...

Guess it still isn't recognized by the CPC then?  - If so please send it back and I'll fix it or send you a new one.
Title: Re: Amstrad CPC WiFi
Post by: remax on 20:43, 13 October 16
Quote from: Duke on 20:37, 13 October 16
Guess it still isn't recognized by the CPC then?  - If so please send it back and I'll fix it or send you a new one.


Yeah no sign of life sadly...
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:36, 13 October 16
Thankyou all guys!!

yes, you all were right

the router didn't work well this morning, but the CPC stills displayed "connected" and "got ip 192.168.0.220", symbos believed to be "connect" too, but none of them were connect  ;D

Yes, i'd the ip static 192.168.0.220, hence netstat and symbos were convinced on being online...

this night i've reconfigured the router and set dhcp on m4, all started to work again!!!

Thanyou all again!

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:28, 14 October 16
Quote from: remax on 20:30, 13 October 16

I did try to remove the SD card and launch, to reformat the SD card and launch, to ping the board... nothing worked...


I'm gonna try the update...


At least the SD Card port works, as i noticed that the m4 folder has been recreated and the update process worked... (well i think)...

Hmmm, I think one of my M4's has just done the same thing as remax's board.

I was using it fine, then switched it to another CPC. Switched it back and no M4 ROM.
I checked my connections and tried again, same thing.
All LEDs on the board flash like normal, but no M4 ROM.

I tried my other M4 on the same computer with the same connector and all fine.

So back to the other one again, I tried to access it via the webserver (SD / config file was already setup) but no connection to the webserver.

I had already upgraded to FW v1.1.0 beta 3  so I place the v1.0.9 files on the root of the SD and booted it.
You can see the LED's stay on just like expected with a FW upgrade, but once finished the CPC just sits there at the normal BASIC prompt.

I tried no SD card... just boots like a normal CPC (same as when the SD card is in).
I tried another SD (although the original reads fine in the PC and other M4).
It creates the m4 directory with the ROM files correctly.

I'm out of idea's. Is there any way I can perform a disaster recovery and get the M4 ROM back.
I'm assuming without the M4 ROM the webserver will not work as it will not get an IP.

So it appears to me that everything on the board is working (going by the LED's) it's just that somehow the M4 ROM has gone missing.
Also due to the fact when I plugged in a new / blank sd card it created the m4 directory with the ROM files.

My setup is simply a 464 with the M4 straight into it via a short ribbon cable / edge connector setup.
I have an MX4 board but that is setup on a 6128 and I have not even tried the M4 on that yet.

:(

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 11:39, 14 October 16
That's weird.


When I was testing one of the first boards, I put it in ten or twelve different CPCs and it's still working fine.


Try cleaning the contacts on your CPC and on the board itself.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:41, 14 October 16
Yeah hmm, thats odd.
I am starting to wonder if its my fix in v1.09-> for new flashchips on the ESP board that's giving problems with the old ones, although I use the new firmware myself on the old board.

Can you try to put firmware v1.0.8 on the microSD ?

Also even if the M4 rom isn't present you should still be able to ping the IP of the ESP if you have a netconfig stored on the microSD.

Quote from: 00WReX on 11:28, 14 October 16
Hmmm, I think one of my M4's has just done the same thing as remax's board.

I was using it fine, then switched it to another CPC. Switched it back and no M4 ROM.
I checked my connections and tried again, same thing.
All LEDs on the board flash like normal, but no M4 ROM.

I tried my other M4 on the same computer with the same connector and all fine.

So back to the other one again, I tried to access it via the webserver (SD / config file was already setup) but no connection to the webserver.

I had already upgraded to FW v1.1.0 beta 3  so I place the v1.0.9 files on the root of the SD and booted it.
You can see the LED's stay on just like expected with a FW upgrade, but once finished the CPC just sits there at the normal BASIC prompt.

I tried no SD card... just boots like a normal CPC (same as when the SD card is in).
I tried another SD (although the original reads fine in the PC and other M4).
It creates the m4 directory with the ROM files correctly.

I'm out of idea's. Is there any way I can perform a disaster recovery and get the M4 ROM back.
I'm assuming without the M4 ROM the webserver will not work as it will not get an IP.

So it appears to me that everything on the board is working (going by the LED's) it's just that somehow the M4 ROM has gone missing.
Also due to the fact when I plugged in a new / blank sd card it created the m4 directory with the ROM files.

My setup is simply a 464 with the M4 straight into it via a short ribbon cable / edge connector setup.
I have an MX4 board but that is setup on a 6128 and I have not even tried the M4 on that yet.

:(

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:45, 14 October 16
Quote from: robcfg on 11:39, 14 October 16
That's weird.


When I was testing one of the first boards, I put it in ten or twelve different CPCs and it's still working fine.


Try cleaning the contacts on your CPC and on the board itself.

Yes, I thought it was weird too.

But it definitely appears to have a issue.
And because I have another M4 to test, that appears to have confirmed it.
I used the good M4 with the same connector on the same CPC. and I can consistently unplug the good one and put it back in and it works perfectly. The other one looks to do all the right things with the LED's but the CPC simply boots normally with no M4 ROM message.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 11:47, 14 October 16
It almost sounds like the boards could have died from static discharge, but I would have expected the parts to be more robust than that.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:56, 14 October 16
Quote from: 00WReX on 11:45, 14 October 16
The other one looks to do all the right things with the LED's but the CPC simply boots normally with no M4 ROM message.

It's to me an indicator that the ESP8266 board is not responding to the M4 commands on startup, thus it will not continue to romboard emulation.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:07, 14 October 16
Hi Duke,

I just placed the FW 1.0.8 files on the root of the SD and booted.
All LED's lit for a few moments like normal with an upgrade but once they went out, nothing.
The CPC sits there at it's normal prompt. I then rebooted but the same result.
Also tried to ping the IP from my PC but no response.

Just to be sure I was correct with my ping, I plugged the good M4 back and pinged from my PC again...got responses.

Also, just to note: The FW files are gone from the SD card (like normal) after it 'Appears to perform the upgrade'...so that probably confirms it has done it.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:32, 14 October 16
Quote from: 00WReX on 12:07, 14 October 16
Also, just to note: The FW files are gone from the SD card (like normal) after it 'Appears to perform the upgrade'...so that probably confirms it has done it.

Ok thanks for trying. Here's another one, if you care to try it please: http://www.spinpoint.org/cpc/special2.zip It will erase the entire ESP flash, incase some corrupt user config is present in the flash.

EDIT: Done.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:38, 14 October 16
Quote from: Duke on 12:32, 14 October 16
Ok thanks for trying. Here's another one, if you care to try it please: http://www.spinpoint.org/cpc/special.zip (http://www.spinpoint.org/cpc/special.zip)  It will erase the entire ESP flash, incase some corrupt user config is present in the flash.

Thanks Duke,

I just tried that. The LED's stayed on for quite a while this time, but still no different once finished.
The card did not reboot.
When I manually rebooted it, it was still the same result.

Do I need to now, upgrade to a normal firmware...say 1.0.9   ??

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:40, 14 October 16
Woops, I was too eager and had already done it. then noticed your edit.  ;D

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:41, 14 October 16
Sorry, it should be better now, special2.zip in edit, please :)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:48, 14 October 16
Quote from: Duke on 12:41, 14 October 16
Sorry, it should be better now, special2.zip in edit, please :)

Sorry Duke, same result.

And still getting 'host unreachable' with a ping.

Do I need to do a normal FW upgrade now or would that have covered it ?

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:50, 14 October 16
Quote from: 00WReX on 12:48, 14 October 16
Sorry Duke, same result.

And still getting 'host unreachable' with a ping.

Cheers,
Shane

Ok too bad, seems like the ESP is dead, anyway I'll try to add some diagnostics to the upgrade process tonight/tomorrow, so we can give it one more try before sending it back.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:51, 14 October 16
Quote from: Duke on 12:50, 14 October 16
Ok too bad, seems like the ESP is dead, anyway I'll try to add some diagnosis to the upgrade process tonight/tomorrow, so we can give it one my try before sending it back.

OK, no problem.

Thanks for the support.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: remax on 13:14, 14 October 16
If you want, i can wait before i send you the card back...


The symptoms 00WReX describes match exactly the one i encountered.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:23, 14 October 16
Quote from: remax on 13:14, 14 October 16
If you want, i can wait before i send you the card back...


The symptoms 00WReX describes match exactly the one i encountered.

Yes please do thanks. I plan to do a special build that will test some things and save a report on the microSD.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 13:30, 14 October 16
Quote from: Bryce on 11:47, 14 October 16
It almost sounds like the boards could have died from static discharge, but I would have expected the parts to be more robust than that.

Bryce.

These are the dangers of boards witouth case. It can be affect any other board in any time . Really the best solution are 3D printed cases for all boards not only m4.

In my house not, buy in my sister house many times when i touch a thing a static discharge  assault me.  scaffold guilty.

I not have cpcs in her house of course XD.
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 13:34, 14 October 16
Quote from: Joseman on 21:36, 13 October 16
Thankyou all guys!!

yes, you all were right

the router didn't work well this morning, but the CPC stills displayed "connected" and "got ip 192.168.0.220", symbos believed to be "connect" too, but none of them were connect  ;D

Yes, i'd the ip static 192.168.0.220, hence netstat and symbos were convinced on being online...

this night i've reconfigured the router and set dhcp on m4, all started to work again!!!

Thanyou all again!


I think  SymbOS was correct when saying that it was online! If you use static ip  and you have a link than you are online. It does not say that your gateway or dns is correct. Probably you can do network stuff in the same broadcast domain. If your DNS is not able to resolve or the gateway is not allowing you to do then problems are there but in fact you are online. That's the reason that I use nslookup. Then you go outside your broadcasting domain to see if it works at well. For example if you use symbus , which is a tool you start in symbos you can connect  to your CPC by using a PC with telnet or use putty. In this case if you are in the same vlan you don't use your dns or gateway. With symbus you can telnet to your CPC and can do some kind of remote control.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 13:46, 14 October 16
Yes, Electro Static Discharge might be a root cause and can happens everywhere. It depends - for example - what you wear at home: walking with isolating shoes on a synthetic carpet.... you are charged. Then touch something ... and whoops! It might be not enough current flow for only one time but if you do it more often then it could harm electrical devices like boards without a case. In Industry it is a serious topic to pay attention to.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:52, 14 October 16
Quote from: Edoz(MSX) on 13:34, 14 October 16I think  SymbOS was correct when saying that it was online! If you use static ip  and you have a link than you are online. It does not say that your gateway or dns is correct. Probably you can do network stuff in the same broadcast domain. If your DNS is not able to resolve or the gateway is not allowing you to do then problems are there but in fact you are online.
Currently the Network Daemon is only checking if there is an M4Board present and the strength of the Wifi signal. If both is fine it shows "online". I didn't add any support for IP settings etc., currently the Network Daemon assumes that the M4Board has been configured and connected correctly already in Amsdos. I will add network settings in a later version.

Quote from: Edoz(MSX) on 13:34, 14 October 16For example if you use symbus , which is a tool you start in symbos you can connect  to your CPC by using a PC with telnet or use putty. In this case if you are in the same vlan you don't use your dns or gateway. With symbus you can telnet to your CPC and can do some kind of remote control.
Ops, forget to include SymBUS  (maybe somebody remembers NetBus (https://de.wikipedia.org/wiki/NetBus)?) into the package. This is really a funny tool written by EdoZ :) Will add it in the new package.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:28, 14 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)

Please try this one:

http://www.spinpoint.org/cpc/m4diag.zip (http://www.spinpoint.org/cpc/m4diag.zip)

It will take a bit longer than before.
Afterwards there should be a report.txt in the root of microSD

Please let me know the results.

Also it should bring your romboard/mass storage back alive.

Thank you.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 23:29, 14 October 16
Quote from: Duke on 16:28, 14 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)

Please try this one:

http://www.spinpoint.org/cpc/m4diag.zip (http://www.spinpoint.org/cpc/m4diag.zip)

It will take a bit longer than before.
Afterwards there should be a report.txt in the root of microSD

Please let me know the results.

Also it should bring your romboard/mass storage back alive.

Thank you.

WoooHooo, yes. Brilliant. It's back in action.  ;D :D :D ;)

Thanks once again for the excellent support and fast too.

Here is the contents of the result.txt file from the SD card.

QuoteESP Flash SR: 0x00 0x02
ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!
ESP Flash Readback CRC: 0xE969B0B2 vs 0xE969B0B2
Checking ESP command
ESP version 00010100 OK

Done!

Cheers & Thanks,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 23:32, 14 October 16

@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518)

Quote from: Audronic on 07:53, 10 October 16
Hi Shane
is it the same as this, ( From my OLD PMG Toolkit )
Ray
The Contact Cleaner, I remember one of our Supervisors saying " These contain SILICON so use them to clean, and then Chemically clean the contacts "
Now that came from a Long way back in whats left of my brain ???
So perhaps there is a clean contact with a "Silicon" covering on the contacts ?
I Use CRC 226 (" Instant Tech" ) on a cotton bud as the final clean.
I hope that this helps.

Ray
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 01:23, 15 October 16
And just for fun, here is the recovered board running "Pac-Man F" The Fast emulated Midway version.
There is a before & after shot of this as the game requires 128K.

I just tried it on a 'Cost Down' CPC 464 with an unmodified dk'tronics 64K expansion and the M4 in the back of that.

Works like a charm...

Cheers,
Shane
[attach=2][attach=3]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:53, 15 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) 
Cool, glad it worked, I didn't expect it to - seems a chip erase command did the job.
Hope it works for @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314) too.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 04:11, 15 October 16
Quote from: Duke on 01:53, 15 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) 
Cool, glad it worked, I didn't expect it to - seems a chip erase command did the job.
Hope it works for @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314) too.

Thanks again Duke. That just surprised me when you said you was not expecting it to work.
Only because you mentioned that it should bring it alive...I was confident at that point  :D

I have done more testing with the recovered board and all functions are good.
ROMs functioning including lower ROM replacement, webserver fine, file & ROM uploads good...etc

Just as an extra bit of info / confirmation about the board that failed.
It may be relevant for any investigation you may be doing in the background.

At the time the board failed, I was not performing any SD writes or firmware updates or webserver uploads etc. I was simply moving the M4 between CPC's.

And yes, hopefully remax's board responds the same as mine.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:07, 15 October 16
Quote from: 00WReX on 04:11, 15 October 16
Thanks again Duke. That just surprised me when you said you was not expecting it to work.
Only because you mentioned that it should bring it alive...I was confident at that point  :D

I meant the M4 part would work with that version (romboard/sd) not the WiFi part, but I could see in your report that the ESP responded fine after the big chip erase and reprogramming.
Title: Re: Amstrad CPC WiFi
Post by: remax on 08:58, 15 October 16
Quote from: Duke on 01:53, 15 October 16
Hope it works for @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314) too.





(http://www.forumtfc.net/uploads/emoticons/default_yaisse.gif)


And the report :


ESP Flash SR: 0x00 0x02


ESP Flash ID: 0x00E04016


ESP Upgrade CRC match!


ESP Flash Readback CRC: 0xE969B0B2 vs 0xE969B0B2


Checking ESP command


ESP version 00010100 OK


Done!



Now i will be able to test the new SymbOS :)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 23:07, 15 October 16
Hi Duke,

I have a observation to report.

If I load the function keys I have noticed that when performing a cat or |DIR on a large listing, if you press ESC
even just once to pause the listing the Function keys are wiped, back to just their numeric function.

e.g.

key 0,"cat"+chr$(13)

if you do this on a large directory listing and press 'ESC' either once or twice the function key you just set will be lost.

I have loaded up all F keys 0 to 9 and it wipes the lot.

Pausing a BASIC listing using 'ESC' does not wipe the F Keys.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:35, 16 October 16
Quote from: 00WReX on 23:07, 15 October 16
if you do this on a large directory listing and press 'ESC' either once or twice the function key you just set will be lost.
Probably because I call &BB03, KM_RESET, will see if I can do without in next build :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:00, 16 October 16
M4 Firmware v1.1.0 beta #4 - Download it here http://www.spinpoint.org/cpc/M4FIRM_v110b4.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b4.zip)

Changes:
See more details in http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)  (also with documentation of SOS new RSX commands, thanks!)

Sorry for all these beta's ;)
The purpose is to catch any (new) bugs before going to final release. So if you want to play it safe, stick with the non beta releases.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 17:51, 16 October 16
Hi Duke!


Thank you for your wonderful support!
Do you know what happened to the users experimenting trouble lately, and if so has this condition been adressed in the last beta ?


A happy M4 user 😀
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:09, 16 October 16
Quote from: dxs on 17:51, 16 October 16
Do you know what happened to the users experimenting trouble lately, and if so has this condition been adressed in the last beta ?
Not exactly. The SDK libraries of ExpressIF (ESP8266) does store some settings in the spi flash and it seems those got corrupted somehow and needed a chip erase. Maybe a crash at the wrong time or ESD, don't know.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:21, 17 October 16
Hi Duke,

I'm giving the new beta 4 a go.

All seems good except for the ESC to pause seems a bit hit & miss for me.

I seem to get one of three scenarios...

Press ESC once it will pause, or completely break, or do nothing...

Only just had a quick look, but wondering if anyone else can confirm.

This is on a big directory I'm testing, the NVG /Games/Arcade directory to be precise.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:45, 17 October 16
Quote from: 00WReX on 21:29, 10 October 16
Hi Duke,

Are you able to add an RSX to list installed ROMs.
Something like the |help in utopia.

Maybe   |ROMS

I know the ROMs can be seen from the Web Browser, but straight from the CPC is very handy too.

Thanks.

Cheers,
Shane

Quote from: CraigsBar on 08:36, 11 October 16
FW 3.1x has this built in, and it works with the m4 beautifully.

Quote from: TotO on 08:42, 11 October 16
Exactly... Using |HELP too.

Another thing I have noticed and hoping someone can confirm.

I have set up the M4 on a 6128 with the Custom Firmware 3.16 and it's expansion ROM.

I have noticed that |help,6 to list the M4 RSX's (this 6128 won't allow M4 to be in slot 7) it does not show all the RSX's.
It stops at |version.

Obviously the |help of the CFW overrides the Maxam |help....but when I use Maxam without the CFW, it does display all the M4 ROM RSX's.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: dragon on 13:07, 17 October 16
Quote from: Duke on 15:00, 16 October 16
M4 Firmware v1.1.0 beta #4 - Download it here http://www.spinpoint.org/cpc/M4FIRM_v110b4.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b4.zip)

Changes:

       
  • Added C_GETNETWORK command.
  • Added status byte after response string to C_NETSTAT
  • Fix |cd,"/" to go to root if inside a DSK image.
  • Fix SD hotswapping.
  • Remove KM_RESET from cat/dir when pressing ESC, to continue listing one must use space now.
  • Display current path when using cat/dir.
  • Increased AMSDOS readspeed (using bigger buffer).
  • Faster network speed when using netapi.
  • |Netstat command now displays all IP info, if connected to AP.
See more details in http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)  (also with documentation of SOS new RSX commands, thanks!)

Sorry for all these beta's ;)
The purpose is to catch any (new) bugs before going to final release. So if you want to play it safe, stick with the non beta releases.


Ahhh, waiting is hard  :D .

Just five seconds after i write it. My father throw me  a packet. When i see It fly i almost had a heart atack.

Fortunly. I recieve It o.k. i know the wifi is trasmitted by Air, but i not need recieve the board flying XD.

Murphys law.


Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:31, 17 October 16
Quote from: dragon on 13:07, 17 October 16i know the wifi is trasmitted by Air, but i not need recieve the board flying XD.
:laugh: :laugh:
Title: Re: Amstrad CPC WiFi
Post by: remax on 17:44, 17 October 16
Quote from: 00WReX on 07:21, 17 October 16
Press ESC once it will pause, or completely break, or do nothing...

nearly the same
Title: Re: Amstrad CPC WiFi
Post by: dragon on 17:58, 17 October 16
I have problems to connect m4 to my router.

first my cpc cost down not work(thats normal i not used the expansion port in decades, so i need dismount it and clean the connector XD). it boot as m4 board not exist.


So o try it in the plus.

Mi first problem was as my pasword was generated by a program years ago and i have a " in my password . :doh: (I  using all lenght of the password possible string.) So i can't use |netset to put he parameters.

Y try put it in the config.txt using the pc. But anyway i not have luck.

|netstat shows ap not found. And my router log not show the cpc try authenticate.

I made copy & paste from router. So i don't know the problem. but my ssid is the maximum possible leght to. (numbers and letters mixed generated by a program).

I only view the wifi light of the anntene on when plus is booting.

Changed the password mean change the pasword to all mobille,tablet, sony consoles,pc portatil.  ???

Ah, and curiosity my cartridges (512k) simply not boot with the card connected cpc only shows vertical bars.








Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 18:07, 17 October 16
Did you try
|netset,"... Pw=123"+chr%(34)+"abc...."
?
Instead of % thr dollar sign (currently with my mobile)
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:19, 17 October 16
Quote from: Prodatron on 18:07, 17 October 16
Did you try
|netset,"... Pw=123"+chr%(34)+"abc...."
?
Instead of % thr dollar sign (currently with my mobile)

No, but i go to try it. The board works,i try the crapy ssid "pruebas", and pw="12345678" And cpc connected and show me ip and signal 0xd6.

Now i need make my normal ssid and password work :) .

Edit, i can connect with my original password 63 characters and ssid=pruebas, so i think the problem is maybe in  the lenght of ssid?. 32 characters mixed numbers and low letters.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 18:42, 17 October 16
When having a look at the data structure it seems that the SSID is limited to 31 chars (+ ZERO terminator = 32 chars in total maximum). Maybe that's the problem?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 19:24, 17 October 16
Yes removing the last digit from ssid m4 login.

I think it depend of the router firmware, some use 31 max and it filled the 32 with 0. And others as the i have uses 32 max without fill the last digit.

Anyway all others devices of my network not have problems to connect with my ssid. So maybe the devices firmware came prepared to the two posibility.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 18:20, 18 October 16
Quote from: Duke on 16:28, 14 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)

Please try this one:

http://www.spinpoint.org/cpc/m4diag.zip (http://www.spinpoint.org/cpc/m4diag.zip)

It will take a bit longer than before.
Afterwards there should be a report.txt in the root of microSD

Please let me know the results.

Also it should bring your romboard/mass storage back alive.

Thank you.


Just to let you know that i had exaclty the same problem as @00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) & @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)


Apllying this fixed it :)


Thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  for the great support :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:30, 18 October 16
Quote from: dirtybb on 18:20, 18 October 16

Just to let you know that i had exaclty the same problem as @00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) & @remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)


Apllying this fixed it :)


Thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  for the great support :)

Can you remember what happened before it stopped working? Which firmware were you using before ?
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 19:52, 18 October 16
v1.0.9 final i think, but not sure.


Please find attached the report.txt if it could help.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:01, 18 October 16
Quote from: dirtybb on 19:52, 18 October 16
v1.0.9 final i think, but not sure.


Please find attached the report.txt if it could help.
Ok thanks, noted.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 01:14, 19 October 16
Hi All


Could somebody post the Rom list that you use on your Machine and the ? Slot ? Position using the M4 and X-Mem  Please.


Thanks    Ray
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 01:59, 19 October 16
Quote from: Audronic on 01:14, 19 October 16
Hi All
Could somebody post the Rom list that you use on your Machine and the ? Slot ? Position using the M4 and X-Mem  Please.
Thanks    Ray

Hi Ray,

The M4 default ROM position is slot 6 (Both the 6128's I have tested the M4 on did not allow overriding ROM 7).

With the X-Mem, there is a switch 'Jumper' to disable its ROM component making it just a RAM board, which would be the way to use the X-Mem if also using the M4.

If doing Lower ROM replacement with the M4, then ROM slot 31 has been reserved for the OS part of the ROM (16k).  ROM 0 would have the BASIC part of the ROM (16k).

Cheers,
Shane

Edit: I said 'switch', but I meant 'jumper' for the ROM disable on the X-Mem.

http://www.centpourcent.net/uploads/2/2/9/8/22986686/xmem_get-started.pdf (http://www.centpourcent.net/uploads/2/2/9/8/22986686/xmem_get-started.pdf)
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 02:21, 19 October 16
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518)


Ok Thanks.
I have not tried my M4 yet just trying to get my head around it.


Ray
Title: Re: Amstrad CPC WiFi
Post by: dragon on 14:15, 19 October 16
well appers delete las character of ssid  dont affect to my mobile he connet same wtf.



Duke, can you help me?. My (512k) cartridges not appear to work with m4. I not sure if is my fault. Or simply a time problem with c4cpc.

C4cpc take little time load the cartridge.

I observed boot with m4 cpc only show vertical bars.

But when booting without sd card inserted in m4  it boot.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:18, 19 October 16
Quote from: dragon on 14:15, 19 October 16
well appers delete las character of ssid  dont affect to my mobile he connet same wtf.



Duke, can you help me?. My (512k) cartridges not appear to work with m4. I not sure if is my fault. Or simply a time problem with c4cpc.

C4cpc take little time load the cartridge.

I observed boot with m4 cpc only show vertical bars.

But when booting without sd card inserted in m4  it boot.
How are these roms mapped in C4CPC, I mean what physical ROM positions do they occupy?
And what is your setting of M4 board (romboard start position, M4 rom position, Lowerrom position) ?
- M4 will issue ROMDIS, which C4CPC obeys (afair. gerald said that), so it may be disabling some of your roms if there is overlaps.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 16:38, 19 October 16
Quote from: Duke on 16:18, 19 October 16
How are these roms mapped in C4CPC, I mean what physical ROM positions do they occupy?
And what is your setting of M4 board (romboard start position, M4 rom position, Lowerrom position) ?
- M4 will issue ROMDIS, which C4CPC obeys (afair. gerald said that), so it may be disabling some of your roms if there is overlaps.

Cartridge roms are from &80-&9F(31 roms).

My settings are default you send me. m4 rom is set to rom 6 as default, i try in rom 7 and effect is the same. I not have put lower rom substitute with m4.

My cartridges not works as you put normal rom in the cpc. I simply rehuse the |game alternatives and made it jump to the requerired rom/direction.

So the os not know the roms are there until they  was called manually.

Amsdos have little modification of remap burning rubber jumps, but nothing more. The only conflict i can think is you scanned the roms in area &80-&9f and crash in someway. The roms are adapted and not are suitable to be detected in normal way.

In the other version with parados is the same.

In theory when you disable amdos rom or parados, It can't be called because depend of burning rubber command, but thats all.

I mean i simply exchange |spiel for |hxc and then jump to &88 rom  for example.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:32, 19 October 16
Quote from: dragon on 16:38, 19 October 16
Cartridge roms are from &80-&9F(31 roms).

My settings are default you send me. m4 rom is set to rom 6 as default, i try in rom 7 and effect is the same. I not have put lower rom substitute with m4.

My cartridges not works as you put normal rom in the cpc. I simply rehuse the |game alternatives and made it jump to the requerired rom/direction.

So the os not know the roms are there until they  was called manually.

Amsdos have little modification of remap burning rubber jumps, but nothing more. The only conflict i can think is you scanned the roms in area &80-&9f and crash in someway. The roms are adapted and not are suitable to be detected in normal way.

In the other version with parados is the same.

In theory when you disable amdos rom or parados, It can't be called because depend of burning rubber command, but thats all.

I mean i simply exchange |spiel for |hxc and then jump to &88 rom  for example.
Hmm, M4 doesn't drive any signals IF it hasnt a rom mapped at a given position (it can map any position 0-255).
Without SD card it works? (M4 is rom 6 and no other roms is loaded and wifi is disabled) and with SD card it fails, so do you have any other roms mapped in M4 romboard?
If you don't have any other roms mapped and M4 is set to rom 6 (saved to sd card config) there shouldn't be a difference, except power consumption would be higher (especially if wifi is enabled too).
In the web interface you could try to disable M4 rom (with sd card inserted) and see if it changes anything and even delete the netconfig (thereby disabling wifi and the extended power consumption).
Title: Re: Amstrad CPC WiFi
Post by: dragon on 17:44, 19 October 16
I made now an experimet duke.

I put in c4cpc the compilation game cartridge of 512k

Then i boot it with m4 attached.

The result is equal to my cartridge, With m4 with sd card it show the vertical bars, and without the sd card the cartridge works perfect.!

There is no other roms attached, only the plus with m4 and c4cpc

I have a power supply with 5A in 5v line son not problem to this.

I go to test another cartridge sizes.

desactivate rom in web browser not make diference.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:50, 19 October 16
Ok, I don't have a C4CPC so can't test, but I seem to remember someone in this thread had it working just fine with C4CPC after I issued the ROMDIS signal, unfortunately it's too much to scroll through, but maybe someone else can jump in with their experinces here.

@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251), try reading these two posts:

I am not sure, but I think it only works with external power to M4 or MX4.

http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/300/
http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg128444/#msg128444

Quote from: dragon on 17:44, 19 October 16
I made now an experimet duke.

I put in c4cpc the compilation game cartridge of 512k

Then i boot it with m4 attached.

The result is equal to my cartridge, With m4 with sd card it show the vertical bars, and without the sd card the cartridge works perfect.!

There is no other roms attached, only the plus with m4 and c4cpc

I have a power supply with 5A in 5v line son not problem to this.

I go to test another cartridge sizes.

desactivate rom in web browser not make diference.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:10, 19 October 16
Quote from: Duke on 17:50, 19 October 16
Ok, I don't have a C4CPC so can't test, but I seem to remember someone in this thread had it working just fine with C4CPC after I issued the ROMDIS signal, unfortunately it's too much to scroll through, but maybe someone else can jump in with their experinces here.

O.k  done these experiments with my c4cpc and m4

Burnin rubber and so original rooms ->boots perfect. 128k

Kun fu master cpr made with the old no$scart 256k=Vertical lines red/orange bars. works without sd

game compilation and my cartridge. 512k=vertical lines blue.Works without sd.

I  put later two pictures of the bars.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 19:08, 19 October 16
Quote from: dragon on 14:15, 19 October 16
well appers delete las character of ssid  dont affect to my mobile he connet same wtf.



Duke, can you help me?. My (512k) cartridges not appear to work with m4. I not sure if is my fault. Or simply a time problem with c4cpc.

C4cpc take little time load the cartridge.

I observed boot with m4 cpc only show vertical bars.

But when booting without sd card inserted in m4  it boot.
When a CPR is greater than 180kB, it's loading is done in two step.
The 1st step is loading the ROM with the boot loader, which is what you see when you start without SD.
Then the bootloader ask the C4CPC to load the cartridge.
The only pupose of this is to have a visual feedback when loading big cartridge.

Now if you have a lower ROM enabled, the bootloader will be prevented from executing, and therefore the CPR will not be loaded.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:40, 19 October 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : just a short and general question. A 5V power supply attached on the M4 doesn't feed a MX4 board, doesn't it?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 21:11, 19 October 16
Quote from: gerald on 19:08, 19 October 16
When a CPR is greater than 180kB, it's loading is done in two step.
The 1st step is loading the ROM with the boot loader, which is what you see when you start without SD.
Then the bootloader ask the C4CPC to load the cartridge.
The only pupose of this is to have a visual feedback when loading big cartridge.

Now if you have a lower ROM enabled, the bootloader will be prevented from executing, and therefore the CPR will not be loaded.


Well if m4 need enable lower rom at boot to work then there is no solution, i can always boot without sd card and put It with cpc on.  :picard2:


Anyway i can try the external power
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:27, 19 October 16
Quote from: HAL 6128 on 20:40, 19 October 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : just a short and general question. A 5V power supply attached on the M4 doesn't feed a MX4 board, doesn't it?

Yeah it doesn't reverse the power to MX4 from M4 (when jumper is set a USB).

@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251): Try deleting your romconfig.bin and romslots.bin files from M4 directory, maybe you have something in those by accident. Normally M4 wont enable lower rom replacement unless its enabled in web interface.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 23:01, 19 October 16
I think i have try delete It today, But i try tomorrow.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 06:13, 20 October 16
Quote from: dragon on 23:01, 19 October 16
I think i have try delete It today, But i try tomorrow.
These veritical bars are a side effect of the method used to make the CPC wait for the C4CPC to initialise.
Basically, the Z80 will only read RST0 from the cartridge port until the cartridge is loaded. This continuously push 0x0001 to RAM. The bar you see are all these 0x0001.
If you see these bar :
- that mean that the Z80 tried to run from the cartridge
- it did it for quite some cycle (long enough to fill the 64k of RAM with 0x0001)
- the C4CPC is never ready / has never loaded a file (bootloader or CPR)
- OR the z80 is now executing some code which is not located in cartridge slot.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:13, 20 October 16
Thinking about it, maybe it's clash at startup, it will take a bit longer when microSD card is inserted to M4, as it will be loading some files and check for upgrades, once done it will pull-low RESET & BUS_RESET for 50 ms and start rom emulation.
I guess C4CPC is already in process of loading that larger cart at this point, and it can't detect the reset? - So I guess to overcome this problem, either M4 should somehow reset C4CPC or keep the z80 in reset state from power-on until its done with the file checking stuff or detect C4CPC is in the works and not pull reset if the case.

Quote from: gerald on 06:13, 20 October 16
These veritical bars are a side effect of the method used to make the CPC wait for the C4CPC to initialise.
Basically, the Z80 will only read RST0 from the cartridge port until the cartridge is loaded. This continuously push 0x0001 to RAM. The bar you see are all these 0x0001.
If you see these bar :
- that mean that the Z80 tried to run from the cartridge
- it did it for quite some cycle (long enough to fill the 64k of RAM with 0x0001)
- the C4CPC is never ready / has never loaded a file (bootloader or CPR)
- OR the z80 is now executing some code which is not located in cartridge slot.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 09:00, 20 October 16
Anyway, first i try today the power part to discard It. If i remember o.k. when the
Vertical lines  are show. Web server can't benn accesed or is accesed  slow. From my pc.


But if with 5A c4cpc+computer+m4 can't work lol.



Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:15, 20 October 16
Quote from: dragon on 09:00, 20 October 16
Anyway, first i try today the power part to discard It. If i remember o.k. when the
Vertical lines  are show. Web server can't benn accesed or is accesed  slow. From my pc.


But if with 5A c4cpc+computer+m4 can't work lol.
Please try this one http://spinpoint.org/cpc/M4FIRM_v110b5.zip, now it keeps the cpc in reset state right after the bootloader until m4 has read configs from microSD and romboard is ready, maybe it will make it work, maybe it doesnt change anything :)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:46, 20 October 16
Well I don't have a C4CPC, but this certainly makes the boot-up look cleaner, rather than the original 'Double boot' effect.
Nice.  :)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: dragon on 13:05, 20 October 16
Quote from: Duke on 10:15, 20 October 16
Please try this one http://spinpoint.org/cpc/M4FIRM_v110b5.zip (http://spinpoint.org/cpc/M4FIRM_v110b5.zip), now it keeps the cpc in reset state right after the bootloader until m4 has read configs from microSD and romboard is ready, maybe it will make it work, maybe it doesnt change anything :)

It works!!!!!.  As default the m4 rom is rom 6, i can type |c4cpc without desactivate m4 rom and i execute c4cpc  :) :) :) :) :) :) .

Also call burning rubber directly appears to work without desactuvate m4.


I need test it with my other parados cartridge(i have to fix the lenght fix thanks winape), but it appears fixed !!!.

So the only limitation if is your use a cartridge >180k, then you can't swap the lower rom with m4.


The boot appear much more beautiful that early. Now loading.... fom c4cpc boot loader is show in screen.

Damm c4cpc not accept send parameters if not, Can be possible making a autobot that execute remotely the cartridge you want u_u
Title: Re: Amstrad CPC WiFi
Post by: gerald on 17:11, 20 October 16
Quote from: Duke on 08:13, 20 October 16
I guess C4CPC is already in process of loading that larger cart at this point, and it can't detect the reset? - So I guess to overcome this problem, either M4 should somehow reset C4CPC or keep the z80 in reset state from power-on until its done with the file checking stuff or detect C4CPC is in the works and not pull reset if the case.
By default, C4CPC ignore CPC reset as the only reset it sees is the ACID reset, which is not exactly the board reset.
However it looks like the CPC get suck when the bootloader is used and a reset is issued. I'll have a look at this.

Quote from: Duke on 10:15, 20 October 16
Please try this one http://spinpoint.org/cpc/M4FIRM_v110b5.zip (http://spinpoint.org/cpc/M4FIRM_v110b5.zip), now it keeps the cpc in reset state right after the bootloader until m4 has read configs from microSD and romboard is ready
Thats the cleaner way to do the initial start  ;)
Title: Re: Amstrad CPC WiFi
Post by: gerald on 19:15, 20 October 16
Quote from: dragon on 13:05, 20 October 16
Damm c4cpc not accept send parameters if not, Can be possible making a autobot that execute remotely the cartridge you want u_u
No sure I understand what you need. Any example ?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 19:38, 20 October 16
Quote from: gerald on 19:15, 20 October 16
No sure I understand what you need. Any example ?

A Its only a generic idea. Not for me really, for the people show the computer in exhibitions.


As c4cpc can execute from os. Imagine you have with m4 and autoexec.bas

The autoexec.bas call c4pc and tells it  load game.cpr from sd card of c4cpc, then in theory you can select a cartridge to be loaded and started from mobile without touch phisically the cpc simly change the autoexec.bas.

But its only one idea i came up at that time.  :) .I no tell you implement it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:00, 20 October 16
@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)
Just to be clear, with latest m4 firmware, does everything work as it should with C4CPC and M4 connected at the same time, or is there still some issue left?
Thanks.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 20:13, 20 October 16
Quote from: Duke on 20:00, 20 October 16
@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)
Just to be clear, with latest m4 firmware, does everything work as it should with C4CPC and M4 connected at the same time, or is there still some issue left?
Thanks.


It appear works. If find and issue i tell you



Just one curiosity. i try lower rom to see what happend.. And the first time It boot whit lower rom changed, later in reboots It boot but corrupt.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:42, 20 October 16
Quote from: dragon on 20:13, 20 October 16

It appear works. If find and issue i tell you



Just one curiosity. i try lower rom to see what happend.. And the first time It boot whit lower rom changed, later in reboots It boot but corrupt.
Thanks for all the testing. I am glad we managed to sort the issue.
About the lower-rom replacement, if C4CPC maps that region, as I understand it to display loading status then there is an obvious conflict, which would be the same as having two romboards mapping lower rom at the same time.

EDIT: I realize thats probably not how it works.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 09:05, 21 October 16
Quote from: Duke on 21:42, 20 October 16
Thanks for all the testing. I am glad we managed to sort the issue.
About the lower-rom replacement, if C4CPC maps that region, as I understand it to display loading status then there is an obvious conflict, which would be the same as having two romboards mapping lower rom at the same time.

EDIT: I realize thats probably not how it works.


If i understand o.k  from the other gerald post, when you enable lower rom. It takes preferente from cartridge ROM.gerald  Mount cpcrloader in low rom range &000-&3fff.


So m4 lower rom override It. And that is because It not work.


But <180k cprloader is not needed. So there is no solution.


Anyway i like try all things until i know itn not work jeje.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:04, 21 October 16
Hi Duke,

Just wondering if you were able to replicate the issue I observed after the beta4 update.

All seems good except for the ESC to pause seems a bit hit & miss for me.
I seem to get one of three scenarios...
Press ESC once it will pause, or completely break, or do nothing...
The 'does nothing' is not so common but completely 'breaking' when ESC is only pressed once is very common, almost every time for me.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:03, 21 October 16
Quote from: 00WReX on 10:04, 21 October 16
Hi Duke,

Just wondering if you were able to replicate the issue I observed after the beta4 update.

All seems good except for the ESC to pause seems a bit hit & miss for me.

       
  • Remove KM_RESET from cat/dir when pressing ESC, to continue listing one must use space now.
I seem to get one of three scenarios...
Press ESC once it will pause, or completely break, or do nothing...
The 'does nothing' is not so common but completely 'breaking' when ESC is only pressed once is very common, almost every time for me.

Cheers,
Shane

Yes I managed to replicate it, first when I gave it a quick test it was fine, but now I can see the issues. Will fix it in next beta :)
Title: Re: Amstrad CPC WiFi
Post by: dxs on 22:14, 22 October 16
Btw, trying to load or run a non existing file, ie
load "noexist.bas"
throws a "File already open" instead of a "Not found" message. Not a big deal but maybe is this an easy fix.


Otherwise does someone know how to use floppies using "ùm4romoff"? When using this rsx, a cat gets me the Press play then any key, ie there's no amsdos inline. Obviously there's something I don't know?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:59, 22 October 16
Quote from: dxs on 22:14, 22 October 16
Btw, trying to load or run a non existing file, ie
load "noexist.bas"
throws a "File already open" instead of a "Not found" message. Not a big deal but maybe is this an easy fix.
Yeah it only throws this generic error message.
I'll look into generating proper amsdos error codes. Is there a list somewhere?

Quote from: dxs on 22:14, 22 October 16
Otherwise does someone know how to use floppies using "ùm4romoff"? When using this rsx, a cat gets me the Press play then any key, ie there's no amsdos inline. Obviously there's something I don't know?
It should work like that, atleast it does for me. Unless you use the patched lowerrom. Then you need to disable lowerrom as it would redirect amsdos to rom 6, which doesnt exist.
If I had the impression people were using the lowerrom I would add some more intelligent features to it, like having M4 rom at any position etc.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 23:20, 22 October 16
Yes I realized the fact that this was due to modded lower rom just after while showering :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:03, 23 October 16
Quote from: dxs on 23:20, 22 October 16
Yes I realized the fact that this was due to modded lower rom just after while showering :-)
You could upload AMSDOS to ROM6 and still have M4 at slot 6, so when using |m4romoff, the modified lowerrom points to amsdos again.
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 11:23, 28 October 16
Quote from: Duke on 07:03, 23 October 16
You could upload AMSDOS to ROM6 and still have M4 at slot 6, so when using |m4romoff, the modified lowerrom points to amsdos again.


Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624),


Could you explain the above a little more? I have M4 at slot 6 and using your version of the lower rom, so by ising Im4romoff I do not get the 3' back in use. I do not understand the "You could upload AMSDOS to ROM6" part.


Also, some questions about your version of the lower rom
1. I did not even try to put m4 rom on slot 7 in my CPC6128. Should I try this before using your lower rom? Would it give better compatibility with the games?
2. My understanding is that lower rom is practically the Firmware. So I have read in other threads about FW 3.15 or 3.16. How does your lower rom compare with it?


Thanks in advance!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:03, 28 October 16
Quote from: Takis Kalatzis on 11:23, 28 October 16
Could you explain the above a little more? I have M4 at slot 6 and using your version of the lower rom, so by ising Im4romoff I do not get the 3' back in use. I do not understand the "You could upload AMSDOS to ROM6" part.
If using my modified lowerrom, rom7 gets re-routed to rom6. So even if |m4romoff, it still gets routed to rom6, if there is nothing in rom6, there will be no disc drive available, unless you upload AMSDOS rom to rom6.  Notice this is ONLY if using the modified lowerrom.
Quote
Also, some questions about your version of the lower rom
1. I did not even try to put m4 rom on slot 7 in my CPC6128. Should I try this before using your lower rom? Would it give better compatibility with the games?
Yes by all means, if your CPC6128 does support overriding rom7 (weak rom or whatever the reason), no need to use the lowerrom. I think compatiblity if using lowerrom or replacing rom7 is very close, not sure. haven't tested that much tbh.
Quote
2. My understanding is that lower rom is practically the Firmware. So I have read in other threads about FW 3.15 or 3.16. How does your lower rom compare with it?
It doesn't compare with FW3.x, as it only does one patch, to re-direct rom7 initialization to rom6 for higher game compatiblity, that's all.

Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 12:48, 28 October 16
So, what you mean is to replace m4 rom in slot 6 with AMSDOS rom? And when I would want to use m4 board again, I would put m4 rom back?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:35, 28 October 16
Quote from: Takis Kalatzis on 12:48, 28 October 16
So, what you mean is to replace m4 rom in slot 6 with AMSDOS rom? And when I would want to use m4 board again, I would put m4 rom back?
It should be possible to have both there at the same time, when M4 is active it will be used, if you disable it via M4ROMOFF, the underlying rom uploaded to slot 6 would be active.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 11:22, 29 October 16

When I switched on my 6128 plus this morning I was greeted with this:
[attach=2]


The screen gradually fills up with those lines from the bottom. It was working just fine with Beta 3 of v1.1 of the firmware. As I had this issue I updated to Beta 5 and the problem persists. If I disabled the M4 ROM from the web interface the machine boots to the Ready prompt as expected. If I move the M4 ROM to slot 6 the same thing happens I'm afraid.


I've tried this with both my C4CPC cart and the original system cart and it does the same thing so doesn't seem to be any other component I'm afraid. Should I use the wipe and reflash tool from earlier in this thread to get things back please?


In the process of trying to troubleshoot this I also seem to have broken my Mother X4! If I have that connected to the expansion port with anything plugged in this happens:
[attach=3]


If I plug both my XMEM or M4 board directly in to the expansion port they both work independently so I know it's not the expansion port. I've tried all of the slots on the Mother X4 and they all do the same with one of the mentioned boards or both inserted in to any slot!  :(


Any help is greatly appreciated!
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:58, 29 October 16

Quote from: Maniac on 11:22, 29 October 16
When I switched on my 6128 plus this morning I was greeted with this:
[attach=2]


The screen gradually fills up with those lines from the bottom. It was working just fine with Beta 3 of v1.1 of the firmware. As I had this issue I updated to Beta 5 and the problem persists. If I disabled the M4 ROM from the web interface the machine boots to the Ready prompt as expected. If I move the M4 ROM to slot 6 the same thing happens I'm afraid.


I've tried this with both my C4CPC cart and the original system cart and it does the same thing so doesn't seem to be any other component I'm afraid. Should I use the wipe and reflash tool from earlier in this thread to get things back please?


In the process of trying to troubleshoot this I also seem to have broken my Mother X4! If I have that connected to the expansion port with anything plugged in this happens:
[attach=3]


If I plug both my XMEM or M4 board directly in to the expansion port they both work independently so I know it's not the expansion port. I've tried all of the slots on the Mother X4 and they all do the same with one of the mentioned boards or both inserted in to any slot!  :(


Any help is greatly appreciated!


Ok, so walking away and reseating everything has progressed things to working again to an extent. The boards are now both plugged in via the Mother X4 and the 6128 plus is booting but the M4 isn't being recognised at the moment. It looks like there's a bit of play/wobble back and forth on the boards when they sit in the Mother X4 and I'm not sure if that's causing a bad connection somewhere.


Next step is to downgrade I think to the last stable version of the M4 firmware and see if things come back to life there. The web interface is up and response to an M4 reset but is having not influence on the 6128 plus and the same applies to CPC reset.


Will update with progress.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:08, 29 October 16
Sounds wicked. Could it be a bad solder joint on the MX4 where you connect the cable perhaps?
I use the same combo of CPC6128+ and MX4 with M4 and XMEM (romboard jumper disabled).
Title: Re: Amstrad CPC WiFi
Post by: Laurence Morgan on 15:09, 29 October 16
Are these still available for sale?
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 15:18, 29 October 16

Quote from: Maniac on 14:58, 29 October 16

Next step is to downgrade I think to the last stable version of the M4 firmware and see if things come back to life there. The web interface is up and response to an M4 reset but is having not influence on the 6128 plus and the same applies to CPC reset.

Will update with progress.


Now back to the situation with the original screenshot where the screen is filling up from the bottom. This is with v1.0.9 now.


Should I use the wipe and update referred to earlier please to restore full functionality?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:19, 29 October 16
Quote from: Laurence Morgan on 15:09, 29 October 16
Are these still available for sale?
Yes, just send me a pm with which connector type you need (and your email, so I can get in touch when its ready).
It may take a couple of weeks before it's ready though.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:20, 29 October 16
Quote from: Maniac on 15:18, 29 October 16

Now back to the situation with the original screenshot where the screen is filling up from the bottom. This is with v1.0.9 now.


Should I use the wipe and update referred to earlier please to restore full functionality?

It wont hurt to try, but it sounds like it works fine alone in the MX4 and with cable, so not sure anything is wrong with it.

EDIT: It may be an idea to delete the config files under M4, if anything in those are screwed up.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 15:37, 29 October 16

Quote from: Duke on 15:20, 29 October 16
It wont hurt to try, but it sounds like it works fine alone in the MX4 and with cable, so not sure anything is wrong with it.

EDIT: It may be an idea to delete the config files under M4, if anything in those are screwed up.


I'm afraid I already deleted the config files as I remember you saying about that before but it didn't achieve anything I'm afraid.


Unfortunately even with it directly connected via a cable it was doing the same thing (although I've trouble remembering now as I've tried so many things today!) until I disabled the M4 ROM. It was working just fine until today and I've not changed anything before today. I'll give the wipe and reupdate a go and report back.


Thanks for your help as always.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 15:59, 29 October 16

Well after a day of chasing my tail I think I've finally found the problem.


All hardware is now working as expected.


The root of the issue ended up being a zero bytes autoexec.bas file that must have been created when I last started SymbOS. Once I deleted this it all works!  :picard:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:32, 29 October 16
Quote from: Maniac on 15:59, 29 October 16
Well after a day of chasing my tail I think I've finally found the problem.


All hardware is now working as expected.


The root of the issue ended up being a zero bytes autoexec.bas file that must have been created when I last started SymbOS. Once I deleted this it all works!  :picard:

Damn, sorry to hear that, but could have been worse of course :)  - Will check it out for the next update and make a check.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:16, 29 October 16
Quote from: Duke on 16:32, 29 October 16
Damn, sorry to hear that, but could have been worse of course :)  - Will check it out for the next update and make a check.
No worries, it's one of those things and didn't occur to me at first that it might be a problem as not used to this on the Amstrad!

I guess that SymbOS created it when I ran it as I didn't but guess it could have been in one of the zip files for it that I copied to the SD card!

Thanks for all of your help.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 00:50, 30 October 16
Hi Duke,
possible to change this behaviour?

|cd,"#unsorted"
|cd,"discmag"
works like expected

|cd,"#unsorted/discmag"
works like expected


another test:
|cd,"m4"
|cd,"edenbl~1.dsk"
works like expected

|cd,"m4/edenbl~1.dsk"
brings an error

Thanks & Bye
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 06:19, 30 October 16
Hi Duke,


Is easy to implement some kind of wildcard or auto-completion to facilitate command line operations: change directory, etc ?


Thanks!  :D
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 09:09, 30 October 16
Like the old 4dos command line interpreter did!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:30, 30 October 16
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) noted !
@rcmolina (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1783) & @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Not sure if it's easy :) - Please give me som examples of what you'd like.
|dir command already takes wildcards, but typically there would be multiple matches for a wildcard search, how would |cd deal with that?

Lastly, anyone has a link or list to all AMSDOS error codes?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:39, 30 October 16
Quote from: Duke on 10:30, 30 October 16
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) noted !
@rcmolina (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1783) & @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Not sure if it's easy :) - Please give me som examples of what you'd like.
|dir command already takes wildcards, but typically there would be multiple matches for a wildcard search, how would |cd deal with that?

Lastly, anyone has a link or list to all AMSDOS error codes?

Hi Duke

If there is a directory called "Marauder"

You type Mar and then press the tab key, the interpreter understand that you want type Marauder and complete it...

If there is "Marauder" and "Maze", and you type "ma", push tab 1 time puts "marauder" press tab another time puts "Maze"
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:47, 30 October 16
Thanks, I see. That would require a major hack to the lowerrom, so out of my scope. Something like that should be build into a quick launcher/navigator instead.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 10:52, 30 October 16
Hi Duke,

The AmsDOS error codes are in the 6128 users manual, Chapter 7.

http://www.cpcwiki.eu/manuals/AmstradCPC6128-hypertext-en-Sinewalker.pdf (http://www.cpcwiki.eu/manuals/AmstradCPC6128-hypertext-en-Sinewalker.pdf)

Here is a quick screen grab of the page.

[attachimg=1]

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 11:04, 30 October 16
My experience when typing is that time is spent mostly changing directories and navigating in a deep structure. So, for me it shall be usefull to use some type of wildcard at the end of the cd command to change to the first dir that matches.


Is this OK for you? I don't know if someone also finds it useful. I don't Know which can be this preferred char, not commonly used to avoid overlapping when using in a real name., may be bang !?




The question is "first one" to be really useful, may be it need to be sorted. So if 3 dirs exist  cpc1 cpc21 cpc2 cpc22345678 , and you type
|cd,"cpc2!" -> changes to cpc2
!cd,"cpc22! -> changes to cpc22345678


If you think this is stupid or unesuful, simply forget it.  :D


Title: Re: Amstrad CPC WiFi
Post by: SOS on 13:05, 30 October 16
Quote from: rcmolina on 11:04, 30 October 16
The question is "first one" to be really useful, may be it need to be sorted. So if 3 dirs exist  cpc1 cpc21 cpc2 cpc22345678 , and you type
|cd,"cpc2!" -> changes to cpc2
!cd,"cpc22! -> changes to cpc22345678
What about the ms-dos-wildcard * ?
|cd,"cpc2*" -> changes to cpc2
!cd,"cpc22* -> changes to cpc22345678
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 13:28, 30 October 16
Quote from: SOS on 13:05, 30 October 16
What about the ms-dos-wildcard * ?
|cd,"cpc2*" -> changes to cpc2
!cd,"cpc22* -> changes to cpc22345678


The perfect option, no doubt The most intuitive one.  :doh:
Title: Re: Amstrad CPC WiFi
Post by: Laurence Morgan on 13:46, 30 October 16
Quote from: Duke on 15:19, 29 October 16
Yes, just send me a pm with which connector type you need (and your email, so I can get in touch when its ready).
It may take a couple of weeks before it's ready though.


awesome. thank you
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:51, 30 October 16
Quote from: Joseman on 10:39, 30 October 16
Hi Duke

If there is a directory called "Marauder"

You type Mar and then press the tab key, the interpreter understand that you want type Marauder and complete it...

If there is "Marauder" and "Maze", and you type "ma", push tab 1 time puts "marauder" press tab another time puts "Maze"

This is how TAB-autocomplete works in the SymbOS SymShell (in this case even with the M4):
https://youtu.be/bB6X7V6fVyE?t=1m (https://youtu.be/bB6X7V6fVyE?t=1m)

For Amsdos you could use the |CD command without a parameter:
First type |CD + [return],
then type MA and then choose MARAUDER or MAZE with [tab] and press [return] again.
That's just an idea how it could be implemented in Amsdos.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 13:54, 30 October 16
Quote from: Maniac on 15:59, 29 October 16The root of the issue ended up being a zero bytes autoexec.bas file that must have been created when I last started SymbOS. Once I deleted this it all works!  :picard:
SymbOS shouldn't touch a file like "autoexec.bas". Do you think it destroyed this file?
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:34, 30 October 16
Quote from: Prodatron on 13:54, 30 October 16
SymbOS shouldn't touch a file like "autoexec.bas". Do you think it destroyed this file?
I didn't create one or the equivalent .bak file so I think it must have come from one of the SymbOS zip files I extracted to the SD card if the OS doesn't create one.

This is a pure guess as I've not checked the zip files if I'm honest so sorry if this is wrong.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:48, 30 October 16
Here is another small update:
M4 Firmware V1.1.0 Beta 6 - Download http://www.spinpoint.org/cpc/M4FIRM_v110b6.zip

Not very well tested as I am lazy :)  - Let me know if any issues, thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:54, 30 October 16
Quote from: Prodatron on 13:51, 30 October 16
This is how TAB-autocomplete works in the SymbOS SymShell (in this case even with the M4):
https://youtu.be/bB6X7V6fVyE?t=1m (https://youtu.be/bB6X7V6fVyE?t=1m)

For Amsdos you could use the |CD command without a parameter:
First type |CD + [return],
then type MA and then choose MARAUDER or MAZE with [tab] and press [return] again.
That's just an idea how it could be implemented in Amsdos.
How about C_REBOOTRUN,"path/file" cmd ? :)
This way you could use all the nice features of SymbOS to download, unpack, navigate and even run a amsdos file easily. With a little SymbOS command (ie. run.exe)
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 16:05, 30 October 16
Quote from: Duke on 14:48, 30 October 16
Here is another small update:
M4 Firmware V1.1.0 Beta 6 - Download http://www.spinpoint.org/cpc/M4FIRM_v110b6.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b6.zip)


Thanks for your help. You are my hero!!  :P
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 06:12, 31 October 16
Hi Duke, i just updated to the latest beta.
The ESC to pause function seems better and from a quick check functions as it is supposed to (1x ESC to pause with SPACE to resume).
The only issue I have noticed is that on a large listing, if you pause multiple times and resume each time or in fact completely break after a few pauses, then a list of breaks will appear on the screen ( *Break* ).

e.g.
I paused a 'cat' listing multiple times and resumed it with space.
At the end of the listing I received this.

QuoteReady
*Break*
  *Break*
  *Break*
  *Break*
  *Break*
  *Break*
  *Break*
  *Break*
   *Break*

Cheers,
Shane

Just checked out the wildcard on |CD feature, that is really handy and works well.  ;)

Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 12:51, 31 October 16
Any |cd command cannot have wildcards as it would be impossible to know which path to take.
Consider the following:

|cd,"path*"

if the current path location has sub-directories:

path1
path2
path3

which sub-directory do you follow?

Any attempt to change path with an item which is a file within the path is also an error.

For example:

|cd,"./thispath/myfile.txt/file.bin"

where myfile.txt is a file and not a directory.

it is also an error if the last item is a file.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 13:16, 31 October 16
Yes, I initially wondered how this would work as well.

But after testing, I have found it really useful because I am lazy.

If you type a wildcard that has many matches, it simply picks the first match.


e.g. In my /games/arcade directory there is a game called 'ARKANIUM' as well as a few versions of 'ARKANOID'.

So a |cd,"ark* will go to the ARKANIUM folder as it is the first match.

And because I am lazy, I like that I can type |cd,"brian*  instead of |cd,"Brian Bloodaxe"


And the second item you mentioned produces an 'Unknown Directory' error, as expected.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 14:06, 31 October 16
Here is an observation (not that I see it as a problem).
The directory path only shows the short name if a wildcard is used.

example:

Using the full name, the path also shows the full name...

|cd,"Activator"

Cat

Drive A:/games/arcade/Activator


but if I use the wildcard, only the short name is displayed...

|cd,"Activ*"

Cat

Drive A:/games/arcade/ACTIVA"1

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 15:16, 31 October 16

Quote from: 00WReX on 13:16, 31 October 16
If you type a wildcard that has many matches, it simply picks the first match.
If I remember correctly this is how the C64 works with filenames and wildcards. Certainly the case with some of the system carts I've used in the past and worked very well - just not how a PC does it!
Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 01:23, 04 November 16
Quote from: Maniac on 15:16, 31 October 16
If I remember correctly this is how the C64 works with filenames and wildcards. Certainly the case with some of the system carts I've used in the past and worked very well - just not how a PC does it!

linux/unix/bsd/mac os default shells all do it that way. Maybe it's just windows that doesn't (though I haven't tried it there)...
Title: Re: Amstrad CPC WiFi
Post by: gm03 on 08:36, 04 November 16
Hi, how to buy this m4 board ? thx
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:09, 04 November 16
Quote from: gm03 on 08:36, 04 November 16
Hi, how to buy this m4 board ? thx
PM sent. For others just send me PM with your email address, lead time is some weeks as I only buy small quantities of components these days.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:56, 06 November 16
And another beta for M4 Board is ready.

V1.1.0 - Beta 7. - Download http://www.spinpoint.org/cpc/M4FIRM_v110b7.zip
Many under the hood fixes to cas* functions (thanks @SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) for bug reporting!), to mention some:
- CAS_IN_CHAR behavoiur to match AMSDOS
- CAS_OUT_DIRECT now supports header manipulation on CAS_OUT_CLOSE.
- CAS_OUT_CHAR now internally buffered and behaviour very close to AMSDOS (not using workbuf, not sure if there's a point?).
- CAS_CATALOG now spits out correctly formatted data to workbuf aswell.
- CAT/DIR displays ASCII art correctly (from DSK images, ok I tested two!)
- And the ever lasting ESC dir issue, tested it properly this time (Thanks again @00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) for feedback).

Please report if anything stops working, it is some rather crucial changes.
I have done a lot of testing this time, but can easily have missed something.

In particular programs that load and save data, should work much better now.
Ie. I can run OCP Art Studio from a sub directory on the microSD and load/save/cat files. It's a good idea to run such things from a sub folder as the amount of entries can be too much for some programs (the max. amount the 2k buffer can hold is 146 entries, but thats a lot more than a standard disc).
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 21:37, 06 November 16
Thanks for it. But somehow the game "Defence" from Shining doesn't start anymore. It hangs during loading screen before the speech will start.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:43, 07 November 16
Quote from: HAL 6128 on 21:37, 06 November 16
Thanks for it. But somehow the game "Defence" from Shining doesn't start anymore. It hangs during loading screen before the speech will start.
Thanks for the feedback.
Can you try upgrading again, I updated the download shortly after with another fix  ::) - Defence for M4 boots here atleast.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 06:53, 07 November 16
Thanks Duke...

Quote- And the ever lasting ESC dir issue, tested it properly this time

Seems to be perfect now  ;)

No other issues noticed so far and yes, 'Defence' is working fine for me too.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:53, 10 November 16


Hi, Defence is starting (sometimes) but not perfect. I mean the speech intro after the loading screen is somehow interrupted (some delays), sometimes is freezes completely.
If I arrive to the main screen and I want to choose a level and start the game it freezes. Strange?!


Downgrading to version 110b5 work perfectly again. I assume it has something to do with the way how the speech data is stored or loaded, or the way you changed CAS_IN_CHAR??
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:47, 11 November 16
Quote from: HAL 6128 on 20:53, 10 November 16

Hi, Defence is starting (sometimes) but not perfect. I mean the speech intro after the loading screen is somehow interrupted (some delays), sometimes is freezes completely.
If I arrive to the main screen and I want to choose a level and start the game it freezes. Strange?!


Downgrading to version 110b5 work perfectly again. I assume it has something to do with the way how the speech data is stored or loaded, or the way you changed CAS_IN_CHAR??

Yes very strange indeed. I have now tested both Defence V1.0.0 and V1.0.2 several times on CPC6128+ with M4 as rom6 and rom7, it works perfectly each time, including reading my save.
What CPC + config are you using? -Then I'll try that, thanks.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 08:54, 11 November 16
Hi Duke,
it's a regular CPC 6128 (don't know the exact version yet) connected with a MotherX4, X-MEM (ROM deactivated) and the X4 Board.
ROM configuration:
FW3.16 in slot 1
M4 in slot 6
Orgams slot 10-12
SymbOS slot 14,29,30,31
Cheers,
HAL6128
Title: Re: Amstrad CPC WiFi
Post by: dragon on 11:34, 11 November 16
One thing. Is  possible made the cpc load .png images from the web?


I observed that European tv broadcasters used all the same software. Each Page of teletext in the web is simply a .npg  each Page have a www+number Page asocciated.


If cpc can load images from web, these are the best becase in origin they are 8bit type.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:03, 11 November 16
@HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) Thanks, will try to replicate that setup some time this weekend.

Quote from: dragon on 11:34, 11 November 16
One thing. Is  possible made the cpc load .png images from the web?
It's possible to download them, but would need to unpack & decode and re-encode to CPC screen format. If they are too heavy I cannot have them in the limited M4 memory, unless it could be done on the fly somehow.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:15, 11 November 16
Quote from: Duke on 17:03, 11 November 16
@HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) Thanks, will try to replicate that setup some time this weekend.
It's possible to download them, but would need to unpack & decode and re-encode to CPC screen format. If they are too heavy I cannot have them in the limited M4 memory, unless it could be done on the fly somehow.

mmm, the teletext images are around 8kb with big graphics  most time < that this. Not sure if its heavy for m4 or not. I can only asume the rest of the www world > that these.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 20:13, 15 November 16
Do you have an url with these PNGs?
Since I implemented the deflate algorythm in UNZIP for SymbOS SymShell one big step is already done for loading and viewing PNG images on the Amstrad.
Source codes here:
http://www.symbos.de/appinfo.htm?00008
Good thing about PNG is, that most features are "optional", not "critical", so maybe it's not too hard to develop a PNG viewer (they already did JPEG viewers for the MSX, which is probably quite harder).
Title: Re: Amstrad CPC WiFi
Post by: dragon on 20:30, 15 November 16
Sure, teletext of public channel here for example.

http://www.rtve.es/television/teletexto/ (http://www.rtve.es/television/teletexto/)

Looking source code of the web de direction is:

http://www.rtve.es/tve/teletexto/100/100_0001.htm (http://www.rtve.es/tve/teletexto/100/100_0001.htm)

That is in reality: witouth html code around.

http://www.rtve.es/tve/teletexto/100/100_0001.png (http://www.rtve.es/tve/teletexto/100/100_0001.png)

101 for example is : http://www.rtve.es/tve/teletexto/100/101_0001.png (http://www.rtve.es/tve/teletexto/100/101_0001.png)

or 100/b is http://www.rtve.es/tve/teletexto/100/100_0002.png (http://www.rtve.es/tve/teletexto/100/100_0002.png)

And all other pages equal very easy to index all :)

And another channel better languaje for you, same software

http://teletext.orf.at/

http://teletext.orf.at/100/100_0001.png

:)
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 22:13, 15 November 16
The size of the files is really ok (about 8KB) though you will have to convert it for the CPC on the fly (the uncompressed originals are still quite large).
The main question is, if people would like to use this or not :D
Title: Re: Amstrad CPC WiFi
Post by: dragon on 01:55, 16 November 16
Well, cpcwiki uses png images too in the news  :). Better to sell png. :D



http://cpcwiki.eu/index.php/File:ImperialMahjong.png


Msx have advantage to pictures with the 256 colours. O Don,t know he can load jpegs lol.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 20:17, 16 November 16
Quote from: dragon on 01:55, 16 November 16Msx have advantage to pictures with the 256 colours. O Don,t know he can load jpegs lol.
IIRC they are even using the highcolour mode of the MSX2+/TurboR for displaying JPEGs (19268 colours!).
Title: Re: Amstrad CPC WiFi
Post by: WildW on 07:50, 17 November 16
Got my M4 board this week, very nice indeed  :D

Sorry if this has been asked before (this is a really long thread) - does anyone have any tips for improving compatibility? I've tried various DSK files (many that I've been using with emulators for ages) and lots of them have failed to work correctly on a real CPC. Mostly I've been able to eventually find alternate versions that do work, but some games just refuse to work. I can't find a working Laser Squad at all! :(   Mostly games that fail to work just freeze up halfway through loading and never get further. Others finish with some fancy screen corruption.

I have a 464, which I can believe may be some of the issue. As recommended I've moved the M4 rom to sit in slot 7 instead of the default 6. Anyone have any other bright ideas?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:49, 17 November 16
Quote from: WildW on 07:50, 17 November 16
Got my M4 board this week, very nice indeed  :D

Sorry if this has been asked before (this is a really long thread) - does anyone have any tips for improving compatibility? I've tried various DSK files (many that I've been using with emulators for ages) and lots of them have failed to work correctly on a real CPC. Mostly I've been able to eventually find alternate versions that do work, but some games just refuse to work. I can't find a working Laser Squad at all! :(   Mostly games that fail to work just freeze up halfway through loading and never get further. Others finish with some fancy screen corruption.

I have a 464, which I can believe may be some of the issue. As recommended I've moved the M4 rom to sit in slot 7 instead of the default 6. Anyone have any other bright ideas?
If set at rom 7 (and of course 128KB ram ideally) you are at best compatiblity, if some games don't work that should work, I am interetested to see them. Ie. your games with screen corruption, maybe a bug in my code that can be fixed.
Otherwise, you have to ensure the dsk's use regular filesystem and not raw FDC commands.

@MiguelSky (http://www.cpcwiki.eu/forum/index.php?action=profile;u=14) has compiled a CD of cracked games, that work very well with M4. Here:
http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip (http://www.amstrad.es/cpcgamescd/NVG_CPCLoader_Games_Collection.zip)
Other good sources:
http://cpccrackers.free.fr/Downloads/ (http://cpccrackers.free.fr/Downloads/)
http://cngsoft.no-ip.org/cpc_lzx.htm (http://cngsoft.no-ip.org/cpc_lzx.htm)
and of course:
http://www.cpc-power.com (http://www.cpc-power.com)  (go after cracked version if possible).

As for lasersquad the only proper cracked version I found was for 128KB ram
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 13:07, 17 November 16
Is there any .DSK to real floppy writer which uses AMSDOS/CAS for reading the .DSK and raw data to the 765 controller so it can work with the CPC WiFi board??
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 13:50, 17 November 16
DskDump in the SymbOS package writes DSK to real floppys. I use it very often together with M4. But I don't know if it uses AMSDOS/CAS for reading?
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 14:17, 17 November 16
Sure that as a SymbOS app, it uses SymbOS API, not AMSDOS/CAS. Will do the job, but I was thinking about a non-SymbOS, bare CPC native app
Title: Re: Amstrad CPC WiFi
Post by: WildW on 14:32, 17 November 16
Quote from: Duke on 10:49, 17 November 16
As for lasersquad the only proper cracked version I found was for 128KB ram

I definitely had a version I used to run on my 664 as a kid.

Thanks for the links to better sources, I will give those places a try. Meanwhile I will collect any dsk I find that fails for me and share them - I know some of them at least should not be 128k only.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 15:59, 17 November 16
Many original software used their own loaders (of course all the copy protection ones in any case). They all won't run on the M4. Unfortunatly that's probably the same for some newer productions.

IMHO it would be a great thing, if developers of new games like "Imperial Mahjong" or "Pinball Dreams" could provide AMSDOS friendly versions of their software in the future (like Shining did with "Defence")! Would be really cool to start them on the M4 or with AcmeDOS directly from SD/IDE! An own loader feels cool, but since we have the M4 and IDE with AcmeDOS it would be much more user friendly to use the native DOS routines.

Quote from: KaosOverride on 14:17, 17 November 16
Sure that as a SymbOS app, it uses SymbOS API, not AMSDOS/CAS.
Yes, that's true indeed :)
Title: Re: Amstrad CPC WiFi
Post by: dragon on 16:51, 17 November 16
Quote from: WildW on 07:50, 17 November 16
Got my M4 board this week, very nice indeed  :D

Sorry if this has been asked before (this is a really long thread) - does anyone have any tips for improving compatibility? I've tried various DSK files (many that I've been using with emulators for ages) and lots of them have failed to work correctly on a real CPC. Mostly I've been able to eventually find alternate versions that do work, but some games just refuse to work. I can't find a working Laser Squad at all! :(   Mostly games that fail to work just freeze up halfway through loading and never get further. Others finish with some fancy screen corruption.

I have a 464, which I can believe may be some of the issue. As recommended I've moved the M4 rom to sit in slot 7 instead of the default 6. Anyone have any other bright ideas?

Laser squad have her own subrutine to read from the disk, i know it because time ago i ported it to  cartridge.

To load it from m4, you need made a new routine in the place of the cartridge loader that load the levels from m4. That i not sure if is possible as laser squad kill firmware in ram and uses all 64k.

At the finish i dismantle a litte the game and i load spectrum russian maps in the amstrad, but they  majority need sprite rework, and i not know the spectrum so  i drop it :D .

In the way tryng modify the game i made incredible effets as the bad guy autoinmole in the fisrt turn and other strange things when modifiy the number of the players/database weapon ammo.

These are my findings in these time. Very very chaotic notes :) . As i write things with not sense when i try things in the emulator only to remember it  a few minutes.

And  level of spectrum running in amstrad. "return to moon base"

Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:53, 17 November 16
Quote from: dragon on 16:51, 17 November 16
To load it from m4, you need made a new routine in the place of the cartridge loader that load the levels from m4. That i not sure if is possible as laser squad kill firmware in ram and uses all 64k.

If one could replace the "read sector" function with below, it could load from .dsk image. It takes about &90 bytes with my clumsy code ;) - that does not rely on any firmware functions.


            ; M4 board
            ; DSK read sector example
            ; Duke 2016
           
            org    &4000
            nolist

DATAPORT        equ &FE00
ACKPORT        equ &FC00           

C_READSECTOR    equ &430B                       

start:        di
            ld    bc,&7F85                        ; GA select upper rom, and mode 1
            out    (c),c
            ld    a,(m4_rom_num)
            cp    &FF
            call    z,find_m4_rom    ; find rom (only first run)
            cp    &FF
            call    nz,read_sec
            ld    bc,&7F8D                        ; GA deselect upper rom, and mode 1
            out    (c),c
            ei
            ret
               
read_sec:        ld    bc,DATAPORT                    ; data out port
            out (c),c
            ld    a,&0B
            out    (c),a                        ; command lo
            ld    a,&43
            out    (c),a                        ; command    hi
           
            ; parameters hardcoded for now
           
            ld    a,0                            ; track 0
            out    (c),a                        ;
            ld    a,&c1                        ; sector 0
            out    (c),a                        ;
            ld    a,0                            ; drive 0
            out    (c),a                        ;
            ld    bc,ACKPORT
            out (c),c                            ; tell M4 that command has been send
         
            ld    a,(m4_rom_num)
            ld    bc,&DF00
            out    (c),a                        ; select M4 rom
            ld    hl,&FF02                        ; get response buffer address
            ld    e,(hl)
            inc    hl
            ld    d,(hl)
            ex    de,hl
            ld    de,sector_buf
            ld    bc,#512
            ldir
            ret
           
            ;
            ; Find M4 ROM location
            ;
               
find_m4_rom:
            ld    iy,m4_rom_name    ; rom identification line
            ld    d,127        ; start looking for from (counting downwards)
           
romloop:        push    de
            ld    bc,&DF00
            out    (c),d        ; select rom
           
            ld    a,(&C000)
            cp    1
            jr    nz, not_this_rom
           
            ; get rsxcommand_table
           
            ld    a,(&C004)
            ld    l,a
            ld    a,(&C005)
            ld    h,a
            push    iy
            pop    de
cmp_loop:
            ld    a,(de)
            xor    (hl)            ; hl points at rom name
            jr    nz, not_this_rom
            ld    a,(de)
            inc    hl
            inc    de
            and    &80
            jr    z,cmp_loop
           
            ; rom found, store the rom number
           
            pop    de            ;  rom number
            ld     a,d
            ld    (m4_rom_num),a
            ret
           
not_this_rom:
            pop    de
            dec    d
            jr    nz,romloop
            ld    a,255        ; not found!
            ret


m4_rom_name:    db    "M4 BOAR",&C4        ; D | &80
m4_rom_num:    db    &FF
sector_buf:    ds    512
Title: Re: Amstrad CPC WiFi
Post by: dragon on 19:26, 17 November 16
i
Quote from: Duke on 18:53, 17 November 16
If one could replace the "read sector" function with below, it could load from .dsk image. It takes about &90 bytes with my clumsy code ;) - that does not rely on any firmware functions.


            ; M4 board
            ; DSK read sector example
            ; Duke 2016
           
            org    &4000
            nolist

DATAPORT        equ &FE00
ACKPORT        equ &FC00           

C_READSECTOR    equ &430B                       

start:        di
            ld    bc,&7F85                        ; GA select upper rom, and mode 1
            out    (c),c
            ld    a,(m4_rom_num)
            cp    &FF
            call    z,find_m4_rom    ; find rom (only first run)
            cp    &FF
            call    nz,read_sec
            ld    bc,&7F8D                        ; GA deselect upper rom, and mode 1
            out    (c),c
            ei
            ret
               
read_sec:        ld    bc,DATAPORT                    ; data out port
            out (c),c
            ld    a,&0B
            out    (c),a                        ; command lo
            ld    a,&43
            out    (c),a                        ; command    hi
           
            ; parameters hardcoded for now
           
            ld    a,0                            ; track 0
            out    (c),a                        ;
            ld    a,&c1                        ; sector 0
            out    (c),a                        ;
            ld    a,0                            ; drive 0
            out    (c),a                        ;
            ld    bc,ACKPORT
            out (c),c                            ; tell M4 that command has been send
         
            ld    a,(m4_rom_num)
            ld    bc,&DF00
            out    (c),a                        ; select M4 rom
            ld    hl,&FF02                        ; get response buffer address
            ld    e,(hl)
            inc    hl
            ld    d,(hl)
            ex    de,hl
            ld    de,sector_buf
            ld    bc,#512
            ldir
            ret
           
            ;
            ; Find M4 ROM location
            ;
               
find_m4_rom:
            ld    iy,m4_rom_name    ; rom identification line
            ld    d,127        ; start looking for from (counting downwards)
           
romloop:        push    de
            ld    bc,&DF00
            out    (c),d        ; select rom
           
            ld    a,(&C000)
            cp    1
            jr    nz, not_this_rom
           
            ; get rsxcommand_table
           
            ld    a,(&C004)
            ld    l,a
            ld    a,(&C005)
            ld    h,a
            push    iy
            pop    de
cmp_loop:
            ld    a,(de)
            xor    (hl)            ; hl points at rom name
            jr    nz, not_this_rom
            ld    a,(de)
            inc    hl
            inc    de
            and    &80
            jr    z,cmp_loop
           
            ; rom found, store the rom number
           
            pop    de            ;  rom number
            ld     a,d
            ld    (m4_rom_num),a
            ret
           
not_this_rom:
            pop    de
            dec    d
            jr    nz,romloop
            ld    a,255        ; not found!
            ret


m4_rom_name:    db    "M4 BOAR",&C4        ; D | &80
m4_rom_num:    db    &FF
sector_buf:    ds    512


jeje, honestly i not know how works the subrutine disk of the game and where is located the read function. My aproach in these day was ¿Are you the  subrutine that made i can't play the game?.  I kill you ->>> And change it with mine :) (after i interrogated it what memory ranges load in each level :).

The subrutine is located in &52d2, i made call to the rom where it find the asm in the rar. Then i simply look the level the user select in memory (&02f4) . And load the rom designated from cartridge.

Then i can add the levels of expansion disk adding more entry.

You can take a look if you want at asm.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:05, 17 November 16
Quote from: dragon on 19:26, 17 November 16
i
jeje, honestly i not know how works the subrutine disk of the game and where is located the read function. My aproach in these day was ¿Are you the  subrutine that made i can't play the game?.  I kill you ->>> And change it with mine :) (after i interrogated it what memory ranges load in each level :) .

The subrutine is located in &52d2, i made call to the rom where it find the asm in the rar. Then i simply look the level the user select in memory (&02f4) . And load the rom designated from cartridge.

Then i can add the levels of expansion disk adding more entry.

You can take a look if you want at asm.
Very nice, I guess with your work, the easist method would be to find the track/sector offsets for the disk image and make similar loader, reading the level from 0x2f4 and point to the right track, sector.

Maybe I will take a look just for fun, though I shouldn't, got so much other stuff I should do :)
Title: Re: Amstrad CPC WiFi
Post by: dragon on 11:58, 18 November 16
That if they not made decription or something else.


Always you can made a.bin for each level  from memory after the call. And load your .Bin from the sd :)


Ah another thing, game permit load/save. But i ignore It in the cartridge, because you can't save in rom. :)

anyway I will try. take a look at disc subrutine.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 21:16, 18 November 16
Quote from: Duke on 18:53, 17 November 16
If one could replace the "read sector" function with below, it could load from .dsk image. It takes about &90 bytes with my clumsy code ;) - that does not rely on any firmware functions.


            ; M4 board
            ; DSK read sector example
            ; Duke 2016
           
            org    &4000
            nolist

DATAPORT        equ &FE00
ACKPORT        equ &FC00           

C_READSECTOR    equ &430B                       

start:        di
            ld    bc,&7F85                        ; GA select upper rom, and mode 1
            out    (c),c
            ld    a,(m4_rom_num)
            cp    &FF
            call    z,find_m4_rom    ; find rom (only first run)
            cp    &FF
            call    nz,read_sec
            ld    bc,&7F8D                        ; GA deselect upper rom, and mode 1
            out    (c),c
            ei
            ret
               
read_sec:        ld    bc,DATAPORT                    ; data out port
            out (c),c
            ld    a,&0B
            out    (c),a                        ; command lo
            ld    a,&43
            out    (c),a                        ; command    hi
           
            ; parameters hardcoded for now
           
            ld    a,0                            ; track 0
            out    (c),a                        ;
            ld    a,&c1                        ; sector 0
            out    (c),a                        ;
            ld    a,0                            ; drive 0
            out    (c),a                        ;
            ld    bc,ACKPORT
            out (c),c                            ; tell M4 that command has been send
         
            ld    a,(m4_rom_num)
            ld    bc,&DF00
            out    (c),a                        ; select M4 rom
            ld    hl,&FF02                        ; get response buffer address
            ld    e,(hl)
            inc    hl
            ld    d,(hl)
            ex    de,hl
            ld    de,sector_buf
            ld    bc,#512
            ldir
            ret
           
            ;
            ; Find M4 ROM location
            ;
               
find_m4_rom:
            ld    iy,m4_rom_name    ; rom identification line
            ld    d,127        ; start looking for from (counting downwards)
           
romloop:        push    de
            ld    bc,&DF00
            out    (c),d        ; select rom
           
            ld    a,(&C000)
            cp    1
            jr    nz, not_this_rom
           
            ; get rsxcommand_table
           
            ld    a,(&C004)
            ld    l,a
            ld    a,(&C005)
            ld    h,a
            push    iy
            pop    de
cmp_loop:
            ld    a,(de)
            xor    (hl)            ; hl points at rom name
            jr    nz, not_this_rom
            ld    a,(de)
            inc    hl
            inc    de
            and    &80
            jr    z,cmp_loop
           
            ; rom found, store the rom number
           
            pop    de            ;  rom number
            ld     a,d
            ld    (m4_rom_num),a
            ret
           
not_this_rom:
            pop    de
            dec    d
            jr    nz,romloop
            ld    a,255        ; not found!
            ret


m4_rom_name:    db    "M4 BOAR",&C4        ; D | &80
m4_rom_num:    db    &FF
sector_buf:    ds    512


I dont't know exatly how he works. i lost one call dependant of three unknown variables in memory appear set outside  the subrutine. and what he does in the bucle

But he appears the read sector are located in &58c9.but it create the commands reading from disk :D .

I made a level 1 tracing until first loop  commented in english.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:15, 19 November 16
Quote from: dragon on 21:16, 18 November 16
But he appears the read sector are located in &58c9.but it create the commands reading from disk :D .

I made a level 1 tracing until first loop  commented in english.
Good work, looks like a bit of nightmare to get through all that code.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 12:32, 19 November 16
I don't think is so dificult, but i not know how he distinguis between levels.

Anyway the call in &58ce is very strange, is never used, depend from &57fd in memory.

edit:i know what he do 0=read from disk 1=save to disk :) .

O.k resumely, left apart interrputs cheking and that thigs of the fdd this is how laser squad read the levels on disk:

You press a number (1-6) we apart 4 now, is load saved game, for the rest.

---------------------------------------------------------------------------------------------------
subrutine recieve number equivalent to the number pressed. (level 1 example)

Initial_cylinder=(number_pressed*6)+2=08
Finish_cylinder=initial_cylinder+5=0D

Then we park the head of the fdd in the initial_cylinder (08)
We read the id, and after cheking we have in the correct cylinder with Initial_cylinder

we have this predifined array

Read_sector_table=46,00,00,00,00,00,49,2a,ff :

command_read_sector,status,cylinder,head,sector_number,sector_size,track_lenght_,lenght_gap_3,data_lenght. [0-9]

now we have another array, the result of read id:

Id_table=statusregister0,statusregister1,statusregister2,cylinder,head,sector_number,sector_size. [0-6]

Now, we take:

Read_sector_table[3]=id_table[3]
Read_sector_table[4]=id_table[4]
Read_sector_table[5]=((id_table[5] and f0)+1)
Read_sector_table[6]=id_table[6]
Read_sector_table[7]=Read_sector_table[5]+07

Rest of parameter Read_sector_table default.

And we send read sector :) we begining store it in &6367 after read sector we add +1000 this.

When initial_cylinder=Finish_cylinder we go out, if not. initial_cylinder=initial_cylinder+1 and we repeat procedure.



Now we need a program do these with sector  routine from duke (save/load is another history to look).







Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:49, 03 December 16
M4 Board firmware v1.1.0 beta 8 download here:
http://www.spinpoint.org/cpc/M4FIRM_v110b8.zip

Many changes to match AMSDOS behaviour, like seperate in/out headers, using 2k buffer for cas_out_char too and more.
(ie. now amsdos cas_in/out_char "fast copy" is possible with header manipulation, see example: https://github.com/M4Duke/M4examples/blob/master/fastcopy.s)

Hopefully all will gain better compatiblity, if I haven't introduced new bugs :)

Also I recommend anyone that cannot replace AMSDOS (rom 7) to use my modified lower rom (here: http://www.cpcwiki.eu/index.php/M4_Board).
Set M4 rom to pos to 6. Upload your original AMSDOS (or parados) rom to slot 6 (yes both 6!).
This way you will have more himem as you wont have two DOS' at the same time and better compatiblity.
If you want to use AMSDOS (floppy disk, HXC etc), just type |M4ROMOFF.

@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251): I will re-visit that game soon, when I get a bit more time :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 20:14, 03 December 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I was going to post an extrange error with an amsoft game "alm. Graf Spee", but i saw the b8 update, and now it works!.

Anyway i'm going to relate the extrange error:

with b7, if i don't load the modified lower rom, the game runs well. but if i use the modified lower rom, the game doesn't work, when the ship is about to be displayed on the map, the game enters and endless loop and don't work.

With b8 and the lower rom, it works.

by the way, is possible to have a spanish lower rom modified?  :-[

UPDATE1:

Another extrange behaviour, another game from Amsoft (i think all in basic), Sultan's Maze (spanish version), without M4 it works, with M4 it throws an error in line 210, "improper argument", this line has the symbol command in it... what can be this extrange error?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:19, 03 December 16
Quote from: Joseman on 20:14, 03 December 16
by the way, is possible to have a spanish lower rom modified?  :-[

I patched the Spanish lower rom aswell. You can get it here: http://www.cpcwiki.eu/index.php/M4_Board#Various_files

Quote from: Joseman on 20:14, 03 December 16
UPDATE1:
Another extrange behaviour, another game from Amsoft (i think all in basic), Sultan's Maze (spanish version), without M4 it works, with M4 it throws an error in line 210, "improper argument", this line has the symbol command in it... what can be this extrange error?

Can you give me a link to the dsk/files in question so I can check it out?
Thanks for the feedback.

Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:33, 03 December 16
Thankyou for the spanish rom!!!

here is the link for the game:

http://s000.tinyupload.com/index.php?file_id=67162882071074664148

Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:39, 03 December 16
Thanks, will take a look tomorrow.

Don't suppose anyone has a link for German cpc6128 lowerrom?
I have one called 6128w, but no idea what country that is, the extra characters don't look german atleast...
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:43, 03 December 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Here another game with the same problem with the symbol command...

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=2034
Title: Re: Amstrad CPC WiFi
Post by: SOS on 00:04, 04 December 16
Quote from: Duke on 23:39, 03 December 16
Don't suppose anyone has a link for German cpc6128 lowerrom?
I have one called 6128w, but no idea what country that is, the extra characters don't look german atleast...
There are no German-Lowerrom exists.
So the German-CPC's uses the english ROM.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:40, 04 December 16
Quote from: Joseman on 23:43, 03 December 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Here another game with the same problem with the symbol command...

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=2034 (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=2034)
Ok, quick fix for now, delete your autoexec.bas file and they should work fine.
Will investigate further...
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 18:16, 07 December 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Today I'm installing a M4 board that i bought you some months ago...

The board itself works, read the microsd, load games...

but if i try to upgrade the board, it just stays with the red light on and nothing happens...

if i reset the board happens the same, i just need to remove the microsd and erase the firmware files... then the board works again!!

the strange thing is that "m4firm.bin" gets erased by the M4, but "ESPFIRM.BIN" stays there and until its removed the m4 won't start...

what can be happening?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:03, 07 December 16
Hi @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)

Not sure, try using this upgrade http://www.spinpoint.org/m4diag.zip

It should make report.txt in the root. Maybe the ESP8266 just needs full chip erase or if something wrong, hopefully it will be in the report file.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:04, 07 December 16
Quote from: Duke on 19:03, 07 December 16
Hi @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)

Not sure, try using this upgrade http://www.spinpoint.org/m4diag.zip (http://www.spinpoint.org/m4diag.zip)

It should make report.txt in the root. Maybe the ESP8266 just needs full chip erase or if something wrong, hopefully it will be in the report file.

Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , already tried this, the same scenario, the m4 lights the red led and keeps going this way, report.txt is blank

More strange is: i have 3- M4 bought in the same order... 2 of then acts the same... the third i didn't try...

Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:55, 08 December 16
Quote from: Joseman on 21:04, 07 December 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , already tried this, the same scenario, the m4 lights the red led and keeps going this way, report.txt is blank

More strange is: i have 3- M4 bought in the same order... 2 of then acts the same... the third i didn't try...
In that case, try reformatting the microSD. Also be patient when running m4diag it takes a lot longer than usual. Do you power it via USB ?
Whats reported when you do |version?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:34, 08 December 16
Quote from: Duke on 06:55, 08 December 16
In that case, try reformatting the microSD. Also be patient when running m4diag it takes a lot longer than usual. Do you power it via USB ?
Whats reported when you do |version?

Yes, i tried several microSD and several formats, allways the same...

Yes, I power it via USB

I let the M4 about 20 minutes, but nothing...

Perhaps the problem is that it needs the upgrades one by one?

i know that the upgrade is not done because in that M4 the wildcards doesn't works...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:37, 08 December 16
Quote from: Joseman on 15:34, 08 December 16
Perhaps the problem is that it needs the upgrades one by one?

i know that the upgrade is not done because in that M4 the wildcards doesn't works...
If more recent version of M4 (with newer ESP-12F modules) you should only use v1.0.9 upwards. Wildcards are implemented on the M4 MCU side, and it seems it upgrades if it erases the M4FIRM.BIN file, but please check with |version. Another failure could be bad CRC of the firmware file, in which case it would not be flashed, but I'd expect the unzip to complain about that.
Please try this method for upgrading to ie. latest beta, remove the M4 from the CPC insert the microSD with both firmware files in root, and connect USB only.
If this still fails, I will try to do another diagnostics firmware for you, to determine the problem - most strange thing is you have 2 boards doing it and both ESP's have been flashed using this method by me. Otherwise I would think I had made a dodgy board.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 08:36, 09 December 16
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) ¿has actualizado con una SD vacía?
Has probado el comando |UPGRADE?
http://www.spinpoint.org/cpc/m4info.txt



----


@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) Do you use an empty sd card for updating?
Did you test |UPGRADE command?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 18:50, 09 December 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) @rcmolina (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1783)

At the moment can't do any testing, when i have spare time will try your advices!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:47, 10 December 16
M4 firmware v1.1.0 beta 9
Download http://www.spinpoint.org/cpc/M4FIRM_v110b9.zip

Changes:
More cas* function fixes.
Fix AUTOEXEC.BAS, now works with certain basic games that failed before (basic should be fully initialized now!).
Fix multiple network connections (ie. use SymbOS to chat on IRC and wget stuff at the same time).
Implemented |LS command. Works same as |DIR, except depending on your screen mode it will show files and folders in long names.
|cd will accept long filenames too.

If no serious errors reported this will be release version v1.1.0 aswell. Feedback appreciated.

Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 20:30, 10 December 16
Multiple connections in SymbOS work great now, thanks a lot for this update, Duke!
A few minutes ago I had Telnet, syMIRC and some WGET downloads running at the same time (three open connections). Really cool to see this on my little Amstrad CPC! :)
I also like the new |LS command!
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 05:13, 11 December 16
Quote from: Duke on 16:26, 07 May 16
Thanks, if I get a feeling that at least 10 people are interested, I'll source the components for those and see how it goes.

Ahh, post number 12 of this thread (first page)...

So I guess you were not expecting 10 times that amount (probably more) back then  :D

Thanks for the continued support and awesome Firmware updates  :)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:21, 11 December 16
Quote from: 00WReX on 05:13, 11 December 16
Ahh, post number 12 of this thread (first page)...

So I guess you were not expecting 10 times that amount (probably more) back then  :D

Thanks for the continued support and awesome Firmware updates  :)

Thanks.
Yes I was pleasantly surprised to learn that so many still use the real hardware and not only emulators :)
Originally I thought maybe a few developers would be interested as it offers a very easy solution to transfer code from PC to CPC (upload over WiFi in 1-2 secs. directly from your makefile).
- Just crossing 150 pcs... So of course I feel obligated to fix bugs and improve usage, there is still so much unused potential if I get the feel to add more. For now the goal is just that the promised features work well and think we are getting there.
Thanks to Prodatron's hard work with SymbOS and M4 implementation, things like copying files from/to real discs, write dsk images, unzipping files etc are now possible and saves me doing these implementations, that I had intended down the line :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:37, 11 December 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Just let you know that this actualization works on the 3 M4!!!!!

I think that the right procedure was format the microsd -> insert the microsd on the m4 and let it do the m4 folder -> extract de microsd -> copy on pc the 2 files --> insert the microsd back on the M4--> it works!!!

I believe that if i put the 2 files WITHOUT let the m4 do the m4 folder before, then it just won't update (1 hour waiting), but i think that this problem not always happens... it seems a nasty bug that only happens sometimes...

Title: Re: Amstrad CPC WiFi
Post by: remax on 17:50, 11 December 16
Quote from: Duke on 17:47, 10 December 16
M4 firmware v1.1.0 beta 9
Download http://www.spinpoint.org/cpc/M4FIRM_v110b9.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b9.zip)

Changes:
More cas* function fixes.
Fix AUTOEXEC.BAS, now works with certain basic games that failed before (basic should be fully initialized now!).
Fix multiple network connections (ie. use SymbOS to chat on IRC and wget stuff at the same time).
Implemented |LS command. Works same as |DIR, except depending on your screen mode it will show files and folders in long names.
|cd will accept long filenames too.

If no serious errors reported this will be release version v1.1.0 aswell. Feedback appreciated.


Can you implement versionning for beta files too ?


For some reason, the |ls command is not added, but i don't know if it's a flashing problem or something else...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:21, 11 December 16
Quote from: remax on 17:50, 11 December 16

Can you implement versionning for beta files too ?


For some reason, the |ls command is not added, but i don't know if it's a flashing problem or something else...
Noted, will see to add a build number aswell. But yes it must be some other problem latest zip linked above supports |ls cmd.
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 23:37, 12 December 16

Can you still get an M4 card?
I am amazed about the possibilities, and I would like to buy one. Some Spanish colleagues are also interested in this card.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:03, 13 December 16
Quote from: wilco2009 on 23:37, 12 December 16
Can you still get an M4 card?
I am amazed about the possibilities, and I would like to buy one. Some Spanish colleagues are also interested in this card.
Yes it is still possible.
Right now it seems the last batch of PCB's coming from China were lost in the mail (after waiting 3 weeks for customs processing!).
So there's a bit of a delay now unfortunately, as I don't think I will receive new pcb's until after xmas.
Send me a PM with what you need (connector type).
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 09:42, 14 December 16
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I know that this questions was answer before, but... i'm too lazy to search  :P

How many amperes use the M4 Board?

Thankyou!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:33, 14 December 16
Quote from: Joseman on 09:42, 14 December 16
How many amperes use the M4 Board?

Less than 500mA, so any USB power supply from 500mA up is fine.
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 12:44, 14 December 16
Dear colleagues,


I own an M4 board since June but, honestly, I have not give him too many use since  because of the problems to open certain DSK images and the impossibility to install SymbOS in my hardware. Right now, I just read that the new firmware increases the number of DSKs that can be opened and I will make the corresponding update these days...


In addition, yesterday I received the MX4 board and an X-MEM board and I will like to put them to work together with the M4 board. The thing is, where within this vast thread I could find the right info to start with this task (I mean what will be the best configuration to make them compatible?, the best ROM config?, etc). Can somebody help me and put links to the pages within this thread where these aspects were discussed or I will have to go through 109 pages of posts to find it? :o


Thank you in advance mates! ;)


Best regards
Title: Re: Amstrad CPC WiFi
Post by: reidrac on 14:58, 14 December 16
Quote from: jomicamp on 12:44, 14 December 16
Dear colleagues,


I own an M4 board since June but, honestly, I have not give him too many use since  because of the problems to open certain DSK images and the impossibility to install SymbOS in my hardware. Right now, I just read that the new firmware increases the number of DSKs that can be opened and I will make the corresponding update these days...


In addition, yesterday I received the MX4 board and an X-MEM board and I will like to put them to work together with the M4 board. The thing is, where within this vast thread I could find the right info to start with this task (I mean what will be the best configuration to make them compatible?, the best ROM config?, etc). Can somebody help me and put links to the pages within this thread where these aspects were discussed or I will have to go through 109 pages of posts to find it? :o


Thank you in advance mates! ;)


Best regards

This could be helpful: http://www.cpcwiki.eu/index.php/M4_Board
Title: Re: Amstrad CPC WiFi
Post by: dragon on 15:05, 14 December 16
I think i read m4 board need be power externally when use It with  other boards.


I have to try it, yesterday i recieve to the x-mem and the x4 board :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:08, 14 December 16
Quote from: dragon on 15:05, 14 December 16
I think i read m4 board need be power externally when use It with  other boards.


I have to try it, yesterday i recieve to the x-mem and the x4 board :)

Yes, you will need to power the m4 with the mini-usb connector. (setting the jumper to "usb")

I think that if you power the x4 board, then there is no need to power the m4 with the mini-usb...

Title: Re: Amstrad CPC WiFi
Post by: dragon on 15:40, 14 December 16
Quote from: Joseman on 15:08, 14 December 16
Yes, you will need to power the m4 with the mini-usb connector. (setting the jumper to "usb")

I think that if you power the x4 board, then there is no need to power the m4 with the mini-usb...


Is not posible Toto o Duke can made little cable that extracting power from the computer power supply To the x4 board or m4 board.?.


Having a 5a power supply.Don't make sense to me have to plug another power supply  :(
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:22, 14 December 16
The problem is there is a voltage drop on the MotherX4 board, dropping the voltage in some cases below what the AMS1117-3.3V regulator on the M4 needs to operate correctly.
That being said it may operate a bit out of spec, some have reported no issues powering it directly from the MX4 board, for me it works with MX4 when using external PSU connected to MX4. I can't remember my voltage readings, but it was a little higher with the external PSU.
In the next batch of M4's (whenever I receive the pcbs...) will probably be fitted with an AP2114-3.3V regulator instead, that should solve the issue.
If it works as expected, one could replace the AMS1117 and two caps. Or better solution use my adapter board (if one has that) and plug MX4 after M4.

@jomicamp (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1758) what CPC model you plan to use for it, then I can better advise on the configuration.
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:06, 14 December 16
Quote from: jomicamp on 12:44, 14 December 16
Dear colleagues,


I own an M4 board since June but, honestly, I have not give him too many use since  because of the problems to open certain DSK images and the impossibility to install SymbOS in my hardware. Right now, I just read that the new firmware increases the number of DSKs that can be opened and I will make the corresponding update these days...


In addition, yesterday I received the MX4 board and an X-MEM board and I will like to put them to work together with the M4 board. The thing is, where within this vast thread I could find the right info to start with this task (I mean what will be the best configuration to make them compatible?, the best ROM config?, etc). Can somebody help me and put links to the pages within this thread where these aspects were discussed or I will have to go through 109 pages of posts to find it? :o


Thank you in advance mates! ;)


Best regards


I wonder the same... I killed my working config in order to use the modified lower rom (for increased compatibility) but i have a lot of problems finding an optimal configuration for having both XMEM+CPCFW15+M4 Board with modified lower rom...
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 18:12, 14 December 16
Quote from: Duke on 16:22, 14 December 16
The problem is there is a voltage drop on the MotherX4 board, dropping the voltage in some cases below what the AMS1117-3.3V regulator on the M4 needs to operate correctly.
That being said it may operate a bit out of spec, some have reported no issues powering it directly from the MX4 board, for me it works with MX4 when using external PSU connected to MX4. I can't remember my voltage readings, but it was a little higher with the external PSU.
In the next batch of M4's (whenever I receive the pcbs...) will probably be fitted with an AP2114-3.3V regulator instead, that should solve the issue.
If it works as expected, one could replace the AMS1117 and two caps. Or better solution use my adapter board (if one has that) and plug MX4 after M4.

@jomicamp (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1758) what CPC model you plan to use for it, then I can better advise on the configuration.


I intend to use it in a CPC 6128 with spanish ROM


Thank you in advance!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:25, 14 December 16
Quote from: jomicamp on 18:12, 14 December 16

I intend to use it in a CPC 6128 with spanish ROM


Thank you in advance!

Ok in that case I would disable rom board function of X-MEM (put the jumper on NO).
And set up M4 as the picture shown here:
http://cpcwiki.eu/index.php/File:M4config6128.jpg (http://cpcwiki.eu/index.php/File:M4config6128.jpg)
-->
http://cpcwiki.eu/index.php/M4_Board (http://cpcwiki.eu/index.php/M4_Board#Various)  under Varius files


Meaning set M4 to rom6. Enable lowerrom replacement and upload the modified spanish lowerrom from above link.  Put original AMSDOS rom in slot 6.

That config works fine for me.

@remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)
What is CPCFW15 ? - if its another lowerrom replacement, it will not work together and you should disable XMEM romboard unless you have a CPC where you can replace rom 7. If you can replace rom, you can set M4 rom board to start at pos 32 after XMEM and set M4 rom itself directly to rom7.
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:29, 14 December 16
Quote from: Duke on 18:25, 14 December 16
Ok in that case I would disable rom board function of X-MEM (put the jumper on NO).
And set up M4 as the picture shown here:
http://cpcwiki.eu/index.php/M4_Board#Various (http://cpcwiki.eu/index.php/M4_Board#Various) files

Meaning set M4 to rom6. Enable lowerrom replacement and upload the spanish lowerrom. Put original AMSDOS rom in slot 6.

That config works fine for me.

@remax (http://www.cpcwiki.eu/forum/index.php?action=profile;u=314)
What is CPCFW15 ? - if its another lowerrom replacement, it will not work together and you should disable XMEM romboard unless you have a CPC where you can replace rom 7. If you can replace rom, you can set M4 rom board to start at pos 32 after XMEM and set M4 rom itself directly to rom7.


I forgot the 3, i meant FW 3.15. Well it works without disabling the XMEM romboard even with rom 6 for the relay. (that was my initial config). But i can't have the modified lower rom then...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:31, 14 December 16
Quote from: remax on 18:29, 14 December 16

I forgot the 3, i meant FW 3.15. Well it works without disabling the XMEM romboard even with rom 6 for the relay. (that was my initial config). But i can't have the modified lower rom then...

Ah yeah the relay rom is no use anymore, I will remove it (very outdated, I would have to make a new one for newer firmwares, if desired)
But yes, you would be using two lowerrom's if you use both the modified one and fw3.15
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:32, 14 December 16
Quote from: Duke on 18:31, 14 December 16
Ah yeah the relay rom is no use anymore, I will remove it (very outdated, I would have to make a new one for newer firmwares, if desired)
But yes, you would be using two lowerrom's if you use both the modified one and fw3.15


Well it works well, but i might be the reason why i didn't see the added command (|LS) with the update.
So i would be interessed in a new version :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:37, 14 December 16
Quote from: remax on 18:32, 14 December 16

Well it works well, but i might be the reason why i didn't see the added command (|LS) with the update.
So i would be interessed in a new version :)
Yes all new commands would be missing since v1.0.1 (or whenever I made it) + some may have different offsets.
Tbh. the lower rom replacemant makes a lot more sense, I could make a version that would use say slot 39 or something instead of rom 6. In that case if you wish to use both romboards you could put the lower rom to XMEM and remap M4 board to be after it.
If you don't need 64 roms, I suggest disable XMEM romboard for now and use above config for best compatiblity.
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:42, 14 December 16
Quote from: Duke on 18:37, 14 December 16
Tbh. the lower rom replacemant makes a lot more sense, I could make a version that would use say slot 39 or something instead of rom 6. In that case if you wish to use both romboards you could put the lower rom to XMEM and remap M4 board to be after it.


I would lose FW3.15 no ?


I tried to do without it (using autoexec.bas to set the mode and color and to remap the ù to |, but i miss functions like |HELP, the utopia equivalent being not as powerful).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:43, 14 December 16
Quote from: remax on 18:42, 14 December 16

I would lose FW3.15 no ?


I tried to do without it (using autoexec.bas to set the mode and color and to remap the ù to |, but i miss functions like |HELP, the utopia equivalent being not as powerful).
You would lose FW3.15 yes, cant have both lower roms at the same time :/
Title: Re: Amstrad CPC WiFi
Post by: SOS on 07:47, 15 December 16
Latest Firmware:
> |mkdir,"a b c"
> Ready
> |era,"a b c"
> A B C not found
> Ready
> |cd,"a b c"
> Ready

Please, could you fix that?
(Thanks)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:57, 15 December 16
Quote from: SOS on 07:47, 15 December 16
Latest Firmware:
> |mkdir,"a b c"
> Ready
> |era,"a b c"
> A B C not found
> Ready
> |cd,"a b c"
> Ready

Please, could you fix that?
(Thanks)

Thanks for the bug report.
I will fix it, but probably not until after christmas (got a week of vacation coming up!).

Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 12:49, 15 December 16
Quote from: Duke on 18:25, 14 December 16
Ok in that case I would disable rom board function of X-MEM (put the jumper on NO).
And set up M4 as the picture shown here:
http://cpcwiki.eu/index.php/File:M4config6128.jpg (http://cpcwiki.eu/index.php/File:M4config6128.jpg)
-->
http://cpcwiki.eu/index.php/M4_Board (http://cpcwiki.eu/index.php/M4_Board#Various)  under Varius files


Meaning set M4 to rom6. Enable lowerrom replacement and upload the modified spanish lowerrom from above link.  Put original AMSDOS rom in slot 6.

That config works fine for me.



Hi duke,


How is "enable lowerrom replacement and upload the modified spanish lowerrom from the above link" specifically made? I know I can find the lowerrom file in the cpcwiki page for the M4. I also know that I should set the M4 to slot 6 (in which I should upload the original AMSDOS for the case of exit). But in which ROM slot I should load the lowerrom replacement? or where should I place it to make it work?


Another question is: In which connector of the MX4 should I plug the M4 and the X-MEM for better compatibility? or there is no difference on that?


Thank you for your time and help!
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 13:07, 15 December 16
Quote from: jomicamp on 12:49, 15 December 16
Another question is: In which connector of the MX4 should I plug the M4 and the X-MEM for better compatibility? or there is no difference on that?

The MX4 slots are all in parallel, the position of cards is irrelevant.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:40, 15 December 16
Quote from: jomicamp on 12:49, 15 December 16
How is "enable lowerrom replacement and upload the modified spanish lowerrom from the above link" specifically made? I know I can find the lowerrom file in the cpcwiki page for the M4. I also know that I should set the M4 to slot 6 (in which I should upload the original AMSDOS for the case of exit). But in which ROM slot I should load the lowerrom replacement? or where should I place it to make it work?
In the example picture it is uploaded to slot 0, Enable lowerrom ticked and lowerrom slot set to 0. But you can use any slot you want.
Ie. if you pick slot 30, upload the modified lowerrom to that slot, and pick lowerrom slot 30.
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 17:18, 15 December 16
Quote from: Duke on 13:40, 15 December 16
In the example picture it is uploaded to slot 0, Enable lowerrom ticked and lowerrom slot set to 0. But you can use any slot you want.
Ie. if you pick slot 30, upload the modified lowerrom to that slot, and pick lowerrom slot 30.


Ok, now I understood, I apologize. I did not check the image properly... sorry for that!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:44, 17 December 16
Hi again @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Here again the annoying guy with bugs report  :P

a extrange bug again...

this time with the conversational adventure "Don quijote", source: cpc-power -> CNGsoft version (i tried the abraxas version too)

just in the first screen

if you type "ver" the game should say "como dices?" (what you said?)

but, with the m4, instead, it says "no" and change the color of the letters!!

in another place if you say "dormir" (sleep) the game should say "el tiempo pasa" (time goes by)

again with m4 it says "el b bruto....." (makes no sense)

really strange no?





Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 22:35, 17 December 16
how can i upgrade the ESP-Firmware ?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:42, 18 December 16
Quote from: DerSchatten on 22:35, 17 December 16
how can i upgrade the ESP-Firmware ?
copy both files "ESPFIRM.BIN" and the correspondent  "M4FIRM.BIN" to the SD-Card-Root.
You can do that via your PC or with the Web-Frontend you can copy the files to the CPC.

After that make a M4-Reset (Web-Frontend or Reset-Button on the M4). Wait a short time, the booting takes a Little bit longer.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 15:41, 24 December 16
Quote from: Duke on 16:22, 14 December 16
The problem is there is a voltage drop on the MotherX4 board, dropping the voltage in some cases below what the AMS1117-3.3V regulator on the M4 needs to operate correctly.
That being said it may operate a bit out of spec, some have reported no issues powering it directly from the MX4 board, for me it works with MX4 when using external PSU connected to MX4. I can't remember my voltage readings, but it was a little higher with the external PSU.
In the next batch of M4's (whenever I receive the pcbs...) will probably be fitted with an AP2114-3.3V regulator instead, that should solve the issue.
If it works as expected, one could replace the AMS1117 and two caps. Or better solution use my adapter board (if one has that) and plug MX4 after M4.

@jomicamp (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1758) what CPC model you plan to use for it, then I can better advise on the configuration.

I put all in the plus. x-mem,x-mass,m4. With my hyper 5A power supply. And it appear work, at least |time shows the time :) anyway  i need try all stuff,upgrade, symbos etc. etc.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 17:00, 27 December 16
Hi Duke, please, could fix the error from the pic?
I'm using the latest Firmware.

(The Firmware "ESPFIRM.BIN" 06.11.16 13:27 & "M4FIRM.BIN" 05.12.16 21:19 is without that error.)

Big thanks!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:44, 27 December 16
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
I'll try to check that game when I get a bit more time, sounds really odd.
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941)
Noted. Will fix soon.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 22:36, 27 December 16
Duke, btw. what happens when you type in |GETPATH - "unknown command" or the path?
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 03:04, 28 December 16
SOS,

I dont have a CPC wifi, but i cannot understand where the confusion lies.
The |CD command on a file should not work and is a little bit surprised that it should have thrown up an error.
It is possible that the |CD command may have matched against one of the directories and hence the |CAT showed its contents.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: SOS on 07:25, 28 December 16
Quote from: rpalmer on 03:04, 28 December 16
but i cannot understand where the confusion lies.
The |CD command on a file should not work and is a little bit surprised that it should have thrown up an error.
It is possible that the |CD command may have matched against one of the directories and hence the |CAT showed its contents.
The behavior of the code is changed.
With an older beta it works, that you can |CD to a Directory and the path is printed above the Content, you make |CD to an other Directory, and the other part is printed too (OK).
Now you make a |CD against a DSK-File and after that a "cat", so you can see the Directory of the DSK-File (and can start a BAS,BIN,... file from the DSK) (Great function!!!, OK in both beta's).
The Problem is, that the M4-CPU from the WIFI thinks, that is the original path, where the DSK-FIle is put. In the 06.11.16-Beta, the M4-CPU says that the actual path is the DSK-File.
So with the last beta the path is equal: "Directory with the DSK-File" = "Directory of the DSK-File", which is wrong and big problems begin, when you write Software for the M4-DOS....
Title: How to access the floppy drive when using the M4
Post by: jomicamp on 21:54, 29 December 16
Hi Duke,


I configure the ROM slots as you said and I updated the firmware and installed the patched lower ROM.


I have a couple more of doubts now:


1. By default the A drive is the SD card at the M4. How may access the internal drive then (for instance if I want to save a file or a BASIC program to the floppy)? I tried to do change to drive B but it is not working.


2. I wrote a BASIC program and given that I was not able to save it to the floppy, I tried to save it in a DSK file within the M4 as SAVE"filename.bas". I got the message ready but when you do cat the file is not in the DSK, Is it possible to save files like this to the M4?


Thanks a lot and sorry if these doubts are too simple..


Regards
Title: Re: How to access the floppy drive when using the M4
Post by: Duke on 23:13, 29 December 16
Quote from: jomicamp on 21:54, 29 December 16
1. By default the A drive is the SD card at the M4. How may access the internal drive then (for instance if I want to save a file or a BASIC program to the floppy)? I tried to do change to drive B but it is not working.
Type |m4romoff and disc drive is enabled and sd card disabled. If you want to copy stuff between floppy and microSD, use the excellent symbOS, symCommander.
Quote from: jomicamp
2. I wrote a BASIC program and given that I was not able to save it to the floppy, I tried to save it in a DSK file within the M4 as SAVE"filename.bas". I got the message ready but when you do cat the file is not in the DSK, Is it possible to save files like this to the M4?
You can save directly to sd card, I haven't implemented file write support inside DSK images yet, just save directly to sd card.
Title: Re: How to access the floppy drive when using the M4
Post by: jomicamp on 23:31, 29 December 16
Quote from: Duke on 23:13, 29 December 16
Type |m4romoff and disc drive is enabled and sd card disabled. If you want to copy stuff between floppy and microSD, use the excellent symbOS, symCommander.You can save directly to sd card, I haven't implemented file write support inside DSK images yet, just save directly to sd card.


Thanks for the Info.  ;D


I am waiting for a cable from TotO to connect the M4 to the MX4 with the X-MEM. Then I will install SymbOS and try what you say...


So I can save the files in the SD card always that I am out of a DSK file, right?


Regards
Title: Re: How to access the floppy drive when using the M4
Post by: Duke on 08:04, 30 December 16
Quote from: jomicamp on 23:31, 29 December 16
So I can save the files in the SD card always that I am out of a DSK file, right?
Yes.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 09:38, 30 December 16
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Is it possible to allow access to Drive B (a Floppy drive) without having to Exit the rom ?


Thanks    Ray
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:49, 30 December 16
Quote from: Audronic on 09:38, 30 December 16
Is it possible to allow access to Drive B (a Floppy drive) without having to Exit the rom ?
It's possible, but not convenient.
M4 rom was designed to completely replace amsdos, so it would have best possible compatiblity with existing software and usable even on CPC without FDC (464).
However I have thought of an easy method I could allow for sdcard/floppy disc access at the same time if the user chooses to run two DOS (both M4 and AMSDOS). So may add that sometime around.
Anyway in current versions, you can do this. Change M4 rom position to be after AMSDOS, ie. slot 8.
All basic commands now go to disc drives A & B.
If you want to copy files to SD card, use |FCP command. To dir SD card, use |LS, and you can also use |CD etc...
I would recommend using SymbOS M4 version instead, much easier and better!
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 10:57, 30 December 16

Hi Duke,
just a question: would it possible to add some kind of path variable / environment (somedays)? Like in MS-DOS (path=...)?
HAL6128
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:00, 30 December 16
Quote from: HAL 6128 on 10:57, 30 December 16
just a question: would it possible to add some kind of path variable / environment (somedays)? Like in MS-DOS (path=...)?
It's a good idea, it would be possible yes, if I can find the time implement it sometime.
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 23:10, 30 December 16
Quote from: Duke on 10:49, 30 December 16
It's possible, but not convenient.
M4 rom was designed to completely replace amsdos, so it would have best possible compatiblity with existing software and usable even on CPC without FDC (464).
However I have thought of an easy method I could allow for sdcard/floppy disc access at the same time if the user chooses to run two DOS (both M4 and AMSDOS). So may add that sometime around.
Hi Duke
Thanks
Ray
Title: Re: Amstrad CPC WiFi
Post by: SOS on 02:30, 01 January 17
Quote from: Duke on 10:49, 30 December 16
Anyway in current versions, you can do this. Change M4 rom position to be after AMSDOS, ie. slot 8.
All basic commands now go to disc drives A & B.
If you want to copy files to SD card, use |FCP command. To dir SD card, use |LS, and you can also use |CD etc...
Ok, when I do so, I can not start any Game from the SD-Card?!
So what is the advantage to set the M4-DOS on ROM 8?

(and Forget: Happy new year!!!  :) )
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:22, 01 January 17
Quote from: SOS on 02:30, 01 January 17
Ok, when I do so, I can not start any Game from the SD-Card?!
So what is the advantage to set the M4-DOS on ROM 8?
True, the point was only to enable both floppy drives, so you could copy files to sd card via |FCP command.
Better solution soon I expect.

Happy new year all.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:29, 01 January 17

A few screenshots of a new edge connector version of M4, with a 90 deg. angle available.
It's possible to solder an edge pcb on the backside and make it passthrough like old skool devices (I don't offer them though).

Only available on new orders (all existing orders are now prepared, except I am missing WiFi module for the last 5, which should arrive soonish!).

Also MX4 version now is updated with another voltage regulator, meaning it will work without external PSU in MX4 (unless of course the power draw is too big for your PSU).

Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 22:00, 04 January 17
Hello Duke,

It's possible to order one board with MX4 connector? ... I'm really very interested.

Thanks in advance.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:13, 04 January 17
Quote from: merlinkv on 22:00, 04 January 17
Hello Duke,

It's possible to order one board with MX4 connector? ... I'm really very interested.

Thanks in advance.

Yes it is, pm sent. Status is a couple of weeks before I can ship new ones (got most in stock, just missing wifi modules atm.).
Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 22:19, 04 January 17
Great!!!!

PM answered.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:20, 04 January 17

Here is another beta firmware for M4 Board, please note this is experimental and mostly recommended for people who want to help me, by providing feedback.

This new beta focus on integration with AMSDOS, so you can use floppy discs and microSD at the same time.

You should ideally have AMSDOS or PARADOS as rom 7 (default) and put M4 in slot 6 or below. To use floppy discs, you should not use my modified lower rom (an alternative will come later).

At boot up everything is the same, if you wish to read your floppy discs, type:
|DISC
And all AMSDOS commands go to floppy drive, like |A, |B, |dir, cat, load, save etc.
To switch back to M4/microSD, type
|SD

If used without AMSDOS or with my patched lowerrom for CPC6128 everything should be the same as before, with some minor improvements.

Issues to be dealt with:
|TAPE, this will only work if you have AMSDOS (664/6128..) and type |DISC first
New Lowerrom mod to force initialization of both M4 rom when AMSDOS is.
Probably more...

Download:
http://www.spinpoint.org/cpc/M4FIRM_v110b10.zip

Feedback / bug reports appreciated.

Lastly, anyone know if AMSDOS only exists in version 0.5 and 0.7 ? Is it 0.5 for DDI and 664 too?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 03:12, 05 January 17
Duke, can i ask you about a very strange feature?.


Is posible made aspecial lower rom  that when booting from m4 made a copy of a cartridge to the  m4 sd card and  nothing more?.


I was thinking about if  it is possible dumped the  White cartridges carts of trade in post that are made from the amstrad csd demostración box that  not are dumped, i have a few of It.


Without open the cartridge., Solder/unsolder the eeprom with the risk of Broken the cartridge.


Or best made a  |dumpcartridge :).


Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:21, 05 January 17
@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)
I have no idea what those carts are. Is it the actual CSD software you want dumped, or were the carts used for something else?
Maybe it contains it's own lowerrom already?  I guess I could put something together, but you would need to be sure that lowerrom of M4 is used and I don't know anything about plus carts, so some code to deal with that aspect would be needed too.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 10:30, 05 January 17
Just try! Use an alternative lowerrom with your CPC Plus. If you get the READY prompt you are done.

Plus cartridge is mapped at rom pages 128 and above, just mirrors the 128, 129 and 131 (not exactly sure) as lowerrom, basic and amsdos. if you have your own lower rom, basic and M4rom at the M4 rombanks and get the READY prompt just try to save the upper rom pages. I did long time ago a DSK for dumping in basic the lowerrom from system cart (To get spanish and french key layout). Can be modded to dump the rest of blocks... It's a modified version of ROM dumper example at Marco Vieth's CPCEMU 1.5 basic utils for real CPCs.


100 REM ROMGET (v2.0)
110 REM 3.9.1994
120 REM
130 MODE 1: CLEAR: DEFINT a-z
140 PRINT"ROMGET v2.0":PRINT"Run on a CPC to save the ROMs as files.": PRINT
150 PRINT"Insert disk with >= 50K free space": PRINT"and press a key ..."
160 CALL &BB18
170 adr=&A000: sh=adr+2: dh=adr+5: k=adr+15
180 h!=HIMEM: MEMORY &1FFF
190 FOR i=adr TO adr+&12: READ a$: POKE i,VAL("&"+a$): NEXT
200 POKE sh,0: POKE dh,&20: POKE k,&FC: CALL adr
210 POKE sh,&C0: POKE dh,&60: CALL adr
220 PRINT"Saving lower&upper-ROM (CPCXXXX.ROM) ..."
230 SAVE"!CPCXXXX.ROM",b,&2000,&8000
240 POKE k,7: CALL adr
250 IF PEEK(&6000)<>1 THEN PRINT"No AMSDOS-ROM found.": GOTO 280
260 PRINT"Saving AMSDOS-ROM (CPCADOS.ROM) ..."
270 SAVE"!CPCADOS.ROM",b,&6000,&4000
280 PRINT"Trying to find some other ROMs ..."
290 FOR i=1 TO 251:PRINT HEX$(i);
300 IF i=7 THEN 360
310 POKE k,i:CALL adr
320 IF PEEK(&6000)=&80 THEN 360
330 PRINT" ROM found -- ";
340 PRINT"Saving MYROM";HEX$(i,2);".ROM ..."
350 SAVE"!MYROM"+HEX$(i,2)+".ROM",b,&6000,&4000:PRINT
360 PRINT CHR$(13);:NEXT
370 PRINT:PRINT"bye."
380 MEMORY h!: END
390 DATA 21,00,C0,11,00,20,01,00,40,DF,0D,A0,C9,10,A0,00,ED,B0,C9

Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 10:42, 05 January 17
. (cannot delete!)
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 10:49, 05 January 17
hello


I'm interrested by A m4 BOARD WITH eDGE connector. is it possible ?


thanks

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:55, 05 January 17
Quote from: cyrillem on 10:49, 05 January 17
I'm interrested by A m4 BOARD WITH eDGE connector. is it possible ?
It is, I already replied to your email via forum yesterday. Send me a private message with your email address if you haven't received it.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 11:01, 05 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I installed the new version as i'm using the M4 intensely lately, will see if any problem emerge!

But now, i will tell you one weird error (not related with the new rom version) on a game, perhaps the weirdest thing that i saw with the M4...

The game is Kick Off, all the crack versions fail to load, some crack (like the abraxas crack) is normal that doesn't work, because the main file surpass the 40k's size and destroy the m4 rom (just throw an error of disc missing, ok, it's normal).

The problem come with all the rest of the cracks, they compressed the main file, now the file has 26-35 k's... and even some cracks (like twomag crack) load completely because the crack introduction appears and the game in this version is only 1 file!. But the error is on all of that versions: the CPC just display a red border and hangs... is really a weird weird thing... because i now that some cracks load correctly... perhaps a "multiface-type" protection of the game that hangs the M4?

sources:

http://www.cpc-power.com/
http://cpccrackers.free.fr/
http://www.velus.be/cpc-1273.html

Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:20, 05 January 17
This one works for me, when I set M4 rom to 7 (should be the same if you use modified lowerrom)
http://cpccrackers.free.fr/Downloads/WIZARD/KickOff_Wizard.rar (http://cpccrackers.free.fr/Downloads/WIZARD/KickOff_Wizard.rar)

This one too:
http://www.velus.be/cpc-1273.html (http://www.velus.be/cpc-1273.html)

Maybe its because you run M4 as rom6 without modified lowerrom?
Or what machine do you use?

Also regarding himem. With latest version and no AMSDOS (or other roms) I get himem 0xAAFB, which is significantly more than you get using AMSDOS.

Quote from: Joseman on 11:01, 05 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I installed the new version as i'm using the M4 intensely lately, will see if any problem emerge!

But now, i will tell you one weird error (not related with the new rom version) on a game, perhaps the weirdest thing that i saw with the M4...

The game is Kick Off, all the crack versions fail to load, some crack (like the abraxas crack) is normal that doesn't work, because the main file surpass the 40k's size and destroy the m4 rom (just throw an error of disc missing, ok, it's normal).

The problem come with all the rest of the cracks, they compressed the main file, now the file has 26-35 k's... and even some cracks (like twomag crack) load completely because the crack introduction appears and the game in this version is only 1 file!. But the error is on all of that versions: the CPC just display a red border and hangs... is really a weird weird thing... because i now that some cracks load correctly... perhaps a "multiface-type" protection of the game that hangs the M4?

sources:

http://www.cpc-power.com/ (http://www.cpc-power.com/)
http://cpccrackers.free.fr/ (http://cpccrackers.free.fr/)
http://www.velus.be/cpc-1273.html (http://www.velus.be/cpc-1273.html)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 11:31, 05 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Yes, i'm using the M4 Rom in slot 6, and not using the modified rom...

This is because that i decided to make all the games run without the modified rom, the reason for that is (weird too), some cracks doesn't work with the modified rom!!, (the same game works without the modified rom) yes, sounds strange i know!, if you want, i tell you what games doesn't work with the modified rom...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:41, 05 January 17
Quote from: Joseman on 11:31, 05 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Yes, i'm using the M4 Rom in slot 6, and not using the modified rom...

This is because that i decided to make all the games run without the modified rom, the reason for that is (weird too), some cracks doesn't work with the modified rom!!, (the same game works without the modified rom) yes, sounds strange i know!, if you want, i tell you what games doesn't work with the modified rom...
I see, problem is many games, even cracks, de-init all roms (to save himem) and re-init rom7 to use disc i/o to continue to load.
Thats why having M4 as rom 7 or using the modified lower rom (which inits 6 whenever there is a firmware call to init rom 7) is crucial to having high compatiblity with games.
Please list me games that doesnt work with modified lowerrom, it's always interesting to find the specific problems. Thanks.

Cracked kickoff from cpc-power works fine too btw.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 11:53, 05 January 17
Quote from: Duke on 11:41, 05 January 17
I see, problem is many games, even cracks, de-init all roms (to save himem) and re-init rom7 to use disc i/o to continue to load.
Thats why having M4 as rom 7 or using the modified lower rom (which inits 6 whenever there is a firmware call to init rom 7) is crucial to having high compatiblity with games.
Please list me games that doesnt work with modified lowerrom, it's always interesting to find the specific problems. Thanks.

Cracked kickoff from cpc-power works fine too btw.

Yes, i know that some cracks (and originals) reload only the rom 7, last week i tried to make work ThunderCats and all the versions didn't work because all are based on the original, yes, the original uses the firmware to load the game (but it re-init the rom 7) and the tape version, one file destroys the amsdos area... then no version is correctly made, because they are all lazy copies of the original with the credits of the "cracker"  :laugh:

I made an especial version of ThunderCats that soon will be uploaded to CPC-Power that works with the M4 (and mass storages) with 64k-128k detection and the files untouched (minus the file that destroy the amsdos area that is splitted in two), a clean "crack" copy, without lame messages and lame cheats, like all the cracks should be!!

Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:05, 05 January 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

What is the best slot to put the modified lower rom?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:09, 05 January 17
Quote from: Joseman on 12:05, 05 January 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

What is the best slot to put the modified lower rom?
It doesn't matter. Right now I am using slot 31.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 13:09, 05 January 17
Quote from: Duke on 09:21, 05 January 17
@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)
I have no idea what those carts are. Is it the actual CSD software you want dumped, or were the carts used for something else?
Maybe it contains it's own lowerrom already?  I guess I could put something together, but you would need to be sure that lowerrom of M4 is used and I don't know anything about plus carts, so some code to deal with that aspect would be needed too.


Are a demostration multicartridge made by amstrad used in the shop , are the same comercial games, But at same time, they are diferent at level code. They have White label, and work normally un plus computers.


http://www.cpcwiki.eu/index.php/Amstrad_CSD (http://www.cpcwiki.eu/index.php/Amstrad_CSD)


Only Pang is dumped un [size=78%]cpcmania website as i know.[/size]


I try first kaooverride solution :) .


Joseman yo have take a look at cpcrulez if there are a diferent crack.?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 23:03, 05 January 17
Quote from: Duke on 23:20, 04 January 17
Here is another beta firmware for M4 Board, please note this is experimental and mostly recommended for people who want to help me, by providing feedback.

This new beta focus on integration with AMSDOS, so you can use floppy discs and microSD at the same time.

You should ideally have AMSDOS or PARADOS as rom 7 (default) and put M4 in slot 6 or below. To use floppy discs, you should not use my modified lower rom (an alternative will come later).

At boot up everything is the same, if you wish to read your floppy discs, type:
|DISC
And all AMSDOS commands go to floppy drive, like |A, |B, |dir, cat, load, save etc.
To switch back to M4/microSD, type
|SD

If used without AMSDOS or with my patched lowerrom for CPC6128 everything should be the same as before, with some minor improvements.

Issues to be dealt with:
|TAPE, this will only work if you have AMSDOS (664/6128..) and type |DISC first
New Lowerrom mod to force initialization of both M4 rom when AMSDOS is.
Probably more...

Download:
http://www.spinpoint.org/cpc/M4FIRM_v110b10.zip (http://www.spinpoint.org/cpc/M4FIRM_v110b10.zip)

Feedback / bug reports appreciated.

Lastly, anyone know if AMSDOS only exists in version 0.5 and 0.7 ? Is it 0.5 for DDI and 664 too?

I install it with all connected c4cpc+m4+x-mem x-mass. And light are always on. After wait and wait i reset. In the sd card espfirm.bin was not deleted. I have to delete it manually to boot, but it appears work.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:20, 05 January 17
Quote from: dragon on 23:03, 05 January 17
I install it with all connected c4cpc+m4+x-mem x-mass. And light are always on. After wait and wait i reset. In the sd card espfirm.bin was not deleted. I have to delete it manually to boot, but it appears work.

If ESPFIRM.BIN is not deleted it wont be upgraded. Not a concern if you had a recent version already, since I havent updated that part for the last couple of updates. However not good it didn't flash it, probably you should try again with a powercycle and see if that would've worked.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 06:49, 06 January 17
Quote from: Duke on 23:20, 04 January 17
Here is another beta firmware for M4 Board, please note this is experimental and mostly recommended for people who want to help me, by providing feedback.
CAS_IN_CHAR seems to be broken.
I have no more success to load ASM-Files with MAXAM or with simple text-Viewer.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 11:43, 06 January 17
Quote from: Duke on 23:20, 05 January 17
If ESPFIRM.BIN is not deleted it wont be upgraded. Not a concern if you had a recent version already, since I havent updated that part for the last couple of updates. However not good it didn't flash it, probably you should try again with a powercycle and see if that would've worked.


Maybe i have a phisical problem not sure i have to try without expansions, my problem is my mx4 motherboard, the expansions connectors are to  hard when i insert the cards. To hard.


As i need  mount it/unmount It continusly. When i mount the cpc. I think this cause two left pins of the connector go up inside the connector. I try realocated It then with a screwdriver But not very Lucky. It also affct to x_mass and x-mem. :(.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:57, 06 January 17
Quote from: dragon on 11:43, 06 January 17

Maybe i have a phisical problem not sure i have to try without expansions, my problem is my mx4 motherboard, the expansions connectors are to  hard when i insert the cards. To hard.


As i need  mount it/unmount It continusly. When i mount the cpc. I think this cause two left pins of the connector go up inside the connector. I try realocated It then with a screwdriver But not very Lucky. It also affct to x_mass and x-mem. :( .
Yeah because of the not perfect fit between the female and male connectors you can easily bend the pins slighty when removing a card and then when you put it back in they dont match and pins are bend backwards.
Eitherway you can push the pins back again through the connector and straighten them with some tool.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:20, 06 January 17
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941), thanks. The bugs you found have been fixed now.

Here is v110 beta 11 (neverending story... if no solid bugs reported, this goes to release version!):
Download:
http://www.spinpoint.org/cpc/M4FIRM_v110b11.zip

|era non amsdos style filename fixed.
Bad in/iout header bug introduced in last version fixed.
Should work with CPC464 and DDI aswell now.
|tape works
And a new feature added:
Remote Run, you can now type a filename in the webinterface and execute it (will be implemented in cpc xfer soon).
- Should be useful for faster development from PC to CPC, simply upload and run via cpcxfer.

Edit: for those interested the github repo with source code for M4 ROM is updated with latest changes aswell: https://github.com/M4Duke (https://github.com/M4Duke)

Title: Re: Amstrad CPC WiFi
Post by: SOS on 22:26, 06 January 17
Triple LIKE  to you :D :D :D

I will check your Firmware tomottow  ;D
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 22:41, 06 January 17
Link doesn't work?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:52, 06 January 17
Quote from: Rennert on 22:41, 06 January 17
Link doesn't work?
Oups, corrected it now:
http://www.spinpoint.org/cpc/M4FIRM_v110b11.zip
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:39, 07 January 17
Hi Duke, Happy New Year and thanks for the continued updates.  :)

I just installed the latest Beta and was giving the 'Remote Run' a go.

I was just wondering if the CPC 'reset' was an expected behavior prior to executing the file.

I also noticed that regardless of what is entered (correct or incorrect filename, or even nothing in the field) the CPC will reset.
So just hitting the 'RUN' button without entering anything will reset the CPC.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:23, 07 January 17
Quote from: 00WReX on 07:39, 07 January 17
I was just wondering if the CPC 'reset' was an expected behavior prior to executing the file.

I also noticed that regardless of what is entered (correct or incorrect filename, or even nothing in the field) the CPC will reset.
So just hitting the 'RUN' button without entering anything will reset the CPC.

Thanks.  Yes it is expected behavior. What it does is temporarily replace the "autoexec.bas" filename with a filename of your choice and issue a reset so it gets executed at start up. It doesn't check if the file exist, also you need to add the file extension.
If it's a feature that will be used more than what I had in mind (development), I can of course add more checks to it.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:37, 07 January 17
Do you see a chance to separate (and new functions) of your Windows xfer-program without great efforts:
Idea:
a) dont' touch xfer
b) new program "cpcrun" (only makes the RUN)
c) new program "upload file xyz to Rom."

so e.g. you can do in a windows-bat:
upload "yancc.rom",3
upload "launcher.rom",4
cpcrun "yancc.bas"

And (when i'm here to write down my wishes  :D last-not least ),
d) download from cpc  (in web-frontend + Windows-bat)
e) dircpc (in web-frontend)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:46, 07 January 17
Quote from: SOS on 09:37, 07 January 17
Do you see a chance to separate (and new functions) of your Windows xfer-program without great efforts:
Idea:
a) dont' touch xfer
b) new program "cpcrun" (only makes the RUN)
c) new program "upload file xyz to Rom."

so e.g. you can do in a windows-bat:
upload "yancc.rom",3
upload "launcher.rom",4
cpcrun "yancc.bas"

And (when i'm here to write down my wishes  :D last-not least ),
d) download from cpc  (in web-frontend + Windows-bat)
e) dircpc (in web-frontend)

All that is pretty straight forward, but may aswell add it as options to cpc xfer.
d) is already possible if you know the path/file, ie type: http://cpc6128/sd/pathtomyfile/file.bin or use wget http://cpc6128/sd/pathtomyfile/file.bin
(just add the /sd/ prefix in lower case)
e) yeah this is the missing component, I can add a function, but its too much work for me to write a html/javascript parser it to display in browser.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:19, 07 January 17
Here is an updated version of CPC Xfer https://github.com/M4Duke/cpcxfer (https://github.com/M4Duke/cpcxfer)   
Windows binary included in the repo, linux users will have to recompile (remove the wsock32 from makefile and it should work).

Commands:
CPC M4 xfer tool v2.0.0 - Duke 2016/2017
xfer -u ipaddr file path opt            - Upload file, opt 0: no header add, 1: add ascii header
xfer -d ipaddr file path opt            - Download file, opt 0: leave header, 1: remove header
xfer -f ipaddr file slot name           - Upload rom
xfer -x ipaddr path+file                - Execute remote file
xfer -s ipaddr                          - Reset CPC
xfer -r ipaddr                          - Reboot M4

Example if your m4 has IP number 192.168.1.11

xfer -x 192.168.1.11 /games/zynaps/zynapsex.bas

Will run zynaps from given directory.  Want to leave it again you could reset the cpc by: xfer -s 192.168.1.11

In a development environment the idea is you ie. do the following to your makefile
xfer -u 192.168.1.11 mycode.bin / 0                      (to upload the file after compilation, additional files could be uploaded too)
xfer -x 192.168.1.11 /mycode.bin                          (to execute it).

If you are deving roms, they can be remotely uploaded too.
Ie.
xfer -f 192.168.1.11 yancc.rom 3 "YANCC"                 (upload to slot 3)
xfer -f 192.168.1.11 launcher.rom 4 "The Launcher"   (upload to slot 4)
xfer -r 192.168.1.11                                                 (Reboot M4 for changes to take effect)

Have fun!
Title: Re: Amstrad CPC WiFi
Post by: SOS on 13:39, 07 January 17
Mega-Thanks!!!  :D
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 15:19, 07 January 17
After installed ESPFIRM in Webinterface, can´t see the update button in settings. V11Beta
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:31, 07 January 17
Quote from: Rennert on 15:19, 07 January 17
After installed ESPFIRM in Webinterface, can´t see the update button in settings. V11Beta
Yes, I removed it. Because it only allowed to upload one file at a time & then reboots, and a full upgrade requires two files.
You can still use the regular file upload and upload both files, then do a M4 reset.
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 16:01, 07 January 17
Thanks, it works  :D

Is there any way to use ACMEDOS and M4 at the same time? Twice use the CD and DISC RSX, for use ACME must M4Romoff or romoff ACME for using M4.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:06, 07 January 17
Quote from: Rennert on 16:01, 07 January 17
Is there any way to use ACMEDOS and M4 at the same time? Twice use the CD and DISC RSX, for use ACME must M4Romoff or romoff ACME for using M4.
Tbh. I don't know anything about ACMEDOS or how it works. Does it need AMSDOS ? If not I think you could try to put it as ROM7 and M4 as ROM6 and use |DISC command to switch to ACMEDOS and |SD to switch to M4, but I am not sure if my "amsdos" detection will fail on ACMEDOS.

EDIT: just checked and it seems it needs AMSDOS. You could try this:
AMSDOS rom 7, ACMEDOS rom 6, M4 rom 5.
Then see if you can switch to ACMEDOS using |disc or |tape.
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 16:27, 07 January 17
Great, this works ;) /disc switched to XMass.
for real floppy or HxC use /A or /B command
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 19:50, 07 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

here is one game that doesn't work with the modified lower rom - Ghouls N Ghosts:

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=976 (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=976)

the first crack, CNG soft version, i think that there is more games... but i can't remember!

Without modified lower rom the game works like a charm, but with the lower rom, the game starts the tape when you press space on the title screen.

And talking about the Kick Off versions... another strange thing... the game refuses to work even with the new rom (typing |disc), no modified lower rom but from floppy!, the same, red border... i'm still pretty sure that it isn't a load error... but some thing between the M4 and the game code...

UPDATE!! I found a problem with the new rom! with Beta 9, the original version of Ghosts N Goblins, works (it has no protection), but with the last beta, it reset!

I'm a proud beta tester of M4  :P
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 22:31, 07 January 17
Quote from: Duke on 09:23, 07 January 17
Thanks.  Yes it is expected behavior. What it does is temporarily replace the "autoexec.bas" filename with a filename of your choice and issue a reset so it gets executed at start up. It doesn't check if the file exist, also you need to add the file extension.
If it's a feature that will be used more than what I had in mind (development), I can of course add more checks to it.

Cool, thanks for the explanation. :)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:31, 08 January 17
Quote from: Joseman on 19:50, 07 January 17
here is one game that doesn't work with the modified lower rom - Ghouls N Ghosts:

http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=976 (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=976)

the first crack, CNG soft version, i think that there is more games... but i can't remember!

Without modified lower rom the game works like a charm, but with the lower rom, the game starts the tape when you press space on the title screen.

Thanks good find. I took a look, and it is actually because CNG finds the right rom to re-init, elegantly, however this fails with the lowerrom mod because it assumes bad behaviour (init rom7 and insteads init rom6, but it does not init rom6 with &BCCE call).

I made a fix for that, attached a new lowerrom mod for 6128. Now it will init rom 6 with &BCCE, if it hasn't been initialized with rom 7 &BCCE call.

Btw. CNG's method of finding which disc rom to init, is as follows (good method if you need to do it to fix a game, it needs to be read and stored before wiping memory):
LD HL,(&BC78)
INC HL
INC HL
LD A,(HL)  <-- rom number to init.

I'll see if I can take a look at the other issues you reported later.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:09, 08 January 17
Quote from: Joseman on 19:50, 07 January 17
UPDATE!! I found a problem with the new rom! with Beta 9, the original version of Ghosts N Goblins, works (it has no protection), but with the last beta, it reset!
Works fine here with my regular CPC6128, with lowerrom mod2 / without lowerrom mod, as rom6 and as rom7...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:45, 08 January 17
Quote from: Joseman on 19:50, 07 January 17
And talking about the Kick Off versions... another strange thing... the game refuses to work even with the new rom (typing |disc), no modified lower rom but from floppy!, the same, red border... i'm still pretty sure that it isn't a load error... but some thing between the M4 and the game code...

Ok, here's what goes wrong.

The game does a re-init of all roms with KL_ROM_WALK and then does a HIMEM check.
When both AMSDOS and M4 is present, M4 will use 128 bytes of workspace, so we get AMSDOS workspace + 0x80.
If only M4 is present (set to rom7 or using lowerrom mod) we get a lot more himem than with AMSDOS.

So that is why it works with lowerrom mod or when directly replacing AMSDOS, with both it fails.

Here is the code:

KICK MEM CHECK FAIL
ORG &322F
LD    DE,&0040
LD    HL,&B0FF        <-- start initing roms from (try changing it to B07F when using amsdos = FAIL)
CALL &BCCB        <-- KL ROM WALK (init all roms!) return HL = himem
LD    BC,&5410
ADD    HL,BC
JR    NC,MEM_FAIL
LD    HL,&320A
CALL &BCD4
JR    NC,L324B
LD    A,&0000
CALL &001B
L324B:
LD    A,&00FF
CALL    &BC6B
RET
MEM_FAIL:
LD    A,&000C
CALL &429F        <-- set border raster color red
DI
ENDLESS: JR ENDLESS

EDIT: Added at patch so it only initializes the disc rom, to the "Kick Off (UK,F,G,S,I) (1990).dsk" which also had a plus patch.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:56, 08 January 17
Quote from: Duke on 08:31, 08 January 17

Btw. CNG's method of finding which disc rom to init, is as follows (good method if you need to do it to fix a game, it needs to be read and stored before wiping memory):
LD HL,(&BC78)
INC HL
INC HL
LD A,(HL)  <-- rom number to init.


Thankyou for all the explanations!!

one question, as today i'm a bit "slow"... what data we retrieve in the #BC78? i'm sure that i know it in the past  :laugh:

I have to leave today for a voyage, but i will go in depth with Kickoff do... but as i see, i was right, it do a simple protection check...

Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:00, 08 January 17
Quote from: Joseman on 13:56, 08 January 17
Thankyou for all the explanations!!

one question, as today i'm a bit "slow"... what data we retrieve in the #BC78? i'm sure that i know it in the past  :laugh:

I have to leave today for a voyage, but i will go in depth with Kickoff do... but as i see, i was right, it do a simple protection check...
@BC77 and the other redirected cas_* functions
RST <memory ptr>
which points to
<romhandler>, rom number

Not sure if it was a protection, I guess more like making sure there was enough memory for the game. Tbh. I don't know if it needs the disc rom(can you maybe save/load data ingame?).

Bon voyage :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:48, 08 January 17
About Laser Squad @WildW (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1937) & @dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)

Quote from: dragon on 12:32, 19 November 16
Now we need a program do these with sector  routine from duke (save/load is another history to look).

Finally re-visited this game.
Version attached that works on M4 (only) and supports 64KB computers.
run"ls"

@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251)
I took a simpler approach, when single stepping with WinApe (so nice to hack these days, thanks to this wonderful debugger!).
sub_routine &57FE  = load or save tracks.
D = Last track
E = First track
HL = destination address
Memory address (&57FD) = read or write.

It will read sectors c1 to c8 of each track.

I replaced &57FE with M4 sector reading & writing (requires M4 v1.1.0 beta 11).
And added a little startup function to retrieve the rom number of M4 and init M4 rom to setup its workspace.

Here is the patch, maybe useful for another time. I didn't clean it up (could be optimized):
        ; init
    org &260
    ld    a,1
    call    &bc0e        ; set mode 1
    ld    hl,(&BC78)
    inc    hl
    inc    hl
    ld    a,(hl)
    ld    (rom_no+1),a
    ld    c,a
    ld    hl,&260        ; himem
    ld    de,&40        ; lomem
    call    &bcce        ; init m4 rom (just needs 272 bytes without amsdos)
    jp    &363            ; jump to game init
   
        ; track read/write replacement

    org &57FE
    ld    bc,&7F85        ; upper rom sel + mode 1
    out    (c),c
               
    ld    bc,&DF00
rom_no:
    ld     a,&6            ; set on startup
    out    (c),a        ; select rom
    ld c,&c1        ; start sector
read_loop:
    push    de
    push    bc
    ld    d,e        ; track
    ld     e,0        ; drive
    push    hl
    ld    a,(&BC78)
    push af
    ld    a,&a4
    ld    (&BC78),a    ; force m4 "current" device detection
    ld    a,(&57FD)    ; read or write ?
    or    a
    jr    nz,write_sec
    call    &c03c    ; bios sector read
    jr    over
write_sec:
    call &c03f    ; bios sector write
over:
    pop    af
    ld    (&BC78),a    ; restore real value
    pop    hl
    ld    bc,&200    ; size
    add    hl,bc    ; increase addr
    pop    bc        ; c = sector
    pop    de
    ld    a,e        ;  current track
    cp    d        ; last track?
    jr    nz, not_last
    inc    c        ; increase sector?
    ld    a,&c9
    cp    c        ; last sector ?
    jr    nz,read_loop
    jr    done
not_last:
    inc    c        ; increase sector
    ld    a,&c9
    cp    c        ; C9 = last sector of track ?
    jr    nz, read_loop
    inc    e        ; increase current track
    ld    c,&c1    ; re-start sector
    jr    read_loop
done:
   
    ld    bc,&7F8D    ; deselect m4 rom, mode 1
    out    (c),c
    ret

I haven't tested all levels or saving, I am not really much into games (and have no idea what this is about) ;)

A nice improvement would be to do my patch ONLY if run from M4 and leave the FDC code, but since I patched it up already.....
Title: Re: Amstrad CPC WiFi
Post by: WildW on 22:33, 08 January 17
That's awesome =)  If I can get it to work. . .

I notice it needs the updated firmware. I downloaded this and started the update process via the web interface. As others noticed, the upgrade is removed from the web interface now, and I can't figure out how to perform the second upgrade.

I'm stuck with M4 v1.0.9 and ESP v1.1.0 . . . how do I do the M4 upgrade now? The |UPGRADE command just freezes the CPC and draws a little junk on screen. I copied the M4FIRM.BIN and ESPFIRM.BIN to the SD card but don't know how to make it upgrade now.

EDIT: Sorry, figured it out now, files in root of SD card, not in M4 folder!

Yay, game works great. You continue to be an absolute legend  :D
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:53, 08 January 17
Quote from: Duke on 15:00, 08 January 17
@BC77 and the other redirected cas_* functions
RST <memory ptr>
which points to
<romhandler>, rom number

What are you telling is that CNGsoft doesn't rely on that amsdos is always the rom that is managing the floppy? I mean, on all CPC's amsdos is always on rom 7, init this rom guarantee that the floppy is accesible on all the cpc range, we really don't need to ask if amsdos is number 7... but as i see in the code,  CNGsoft consider that not always will ROM 7 be the floppy / mass storage manager? hence he "asks" to the firmware what is the disc rom?

am i right?

Title: Re: Amstrad CPC WiFi
Post by: Jamie Gunn (Gunni) on 00:58, 09 January 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  I finally got some time to test out the board this weekend, works great! thanks for all your efforts!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:13, 09 January 17
Quote from: Joseman on 22:53, 08 January 17
What are you telling is that CNGsoft doesn't rely on that amsdos is always the rom that is managing the floppy? I mean, on all CPC's amsdos is always on rom 7, init this rom guarantee that the floppy is accesible on all the cpc range, we really don't need to ask if amsdos is number 7... but as i see in the code,  CNGsoft consider that not always will ROM 7 be the floppy / mass storage manager? hence he "asks" to the firmware what is the disc rom?

am i right?
You are correct, it's good way to do it.
Title: Re: Amstrad CPC WiFi
Post by: keith56 on 13:35, 09 January 17
Quote from: Duke on 08:13, 09 January 17
You are correct, it's good way to do it.


That's a very useful bit of info

I'm modifying ChibiAkuma(s) to work on 64k, and need to flush out the firmware to free up enough memory, but I need to get it back for disk loading - so this thread's a big help for making sure I'm doing it in a 'compatible' way


I'm basing my code on this:
http://cpctech.cpc-live.com/source/firmsave.html (http://cpctech.cpc-live.com/source/firmsave.html)
so please feel free to point out anything in there that will annoy the M4 -

Update:
Just reading through this thread, I'm a bit confused as to whether the M4 is replacing the disk-rom or in a separate bank (I'm seeing maybe there are multiple options?)

Can you advise? Should I be using KL_Rom_Walk to init all the roms? or can I just init the Disk one in bank 7 (or wherever it is - I'll use the code above to check that)?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 14:02, 09 January 17
Quote from: keith56 on 13:35, 09 January 17
Can you advise? Should I be using KL_Rom_Walk to init all the roms? or can I just init the Disk one in bank 7 (or wherever it is - I'll use the code above to check that)?
Please, use the Firmware-based Version KL_ROM_WALK, so ACMEDOS can be used, maybe Alberio-DOS can be used, and maybe other configuration, which we can't imagine in Januar 2017.
Title: Re: Amstrad CPC WiFi
Post by: keith56 on 14:05, 09 January 17
Understood! I will use the ROM WALK!

I was a little scared of it, because during my 'beginner' days of coding, I tried it and it did strange things - but I think that was probably a bad peice of example code... as you say, anything we can do to be as compatible is possible helps people use the game - and probably saves me a lot of debugging at some point!

Don't want to go off-topic here,so Moving my programming questions to this thread:
http://www.cpcwiki.eu/forum/programming/what-is-the-lowest-memory-method-of-reading-from-disk/
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:56, 09 January 17
Quote from: keith56 on 13:35, 09 January 17

That's a very useful bit of info

I'm modifying ChibiAkuma(s) to work on 64k, and need to flush out the firmware to free up enough memory, but I need to get it back for disk loading - so this thread's a big help for making sure I'm doing it in a 'compatible' way


I'm basing my code on this:
http://cpctech.cpc-live.com/source/firmsave.html (http://cpctech.cpc-live.com/source/firmsave.html)
so please feel free to point out anything in there that will annoy the M4 -

Update:
Just reading through this thread, I'm a bit confused as to whether the M4 is replacing the disk-rom or in a separate bank (I'm seeing maybe there are multiple options?)

Can you advise? Should I be using KL_Rom_Walk to init all the roms? or can I just init the Disk one in bank 7 (or wherever it is - I'll use the code above to check that)?

M4 rom does not need amsdos, so will save much memory if you do not init amsdos also, but both is no problem.
Depending on how much memory you have available, ROM_WALK is fine, but at the risk of taking up a lot of memory (depending on whatever roms the user has).

Maybe this is a better solution. Always init rom 7 (amsdos, if present) and only init. the rom that started the game, this could be M4, ACME or maybe something new.

Ie.
; on init

ld hl,(&bc78)
inc hl
inc hl
ld a,(hl)
ld (disc_start_rom+1),a
; maybe save AMSDOS drive too




; on re-init of firmware

....

ld c,7            ; init amsdos
ld de&40
ld hl,&b0ff
call &BCCE
ld    a,7
disc_start_rom:
ld    c,6       ; overwritten by init
cp    c         ; is it rom 7?
jr    z,only_amsdos
call &BCCE     ; init 2nd rom
only_amsdos:

...
Title: Re: Amstrad CPC WiFi
Post by: SOS on 14:58, 09 January 17
Quote from: keith56 on 14:05, 09 January 17
I was a little scared of it, because during my 'beginner' days of coding, I tried it and it did strange things - but I think that was probably a bad peice of example code.
Please ask in the programming-forum or PM, when you have troubles with e.g. the ROM-Walking :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:02, 09 January 17
Quote from: SOS on 14:02, 09 January 17
Please, use the Firmware-based Version KL_ROM_WALK, so ACMEDOS can be used, maybe Alberio-DOS can be used, and maybe other configuration, which we can't imagine in Januar 2017.

Hi

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), @keith56 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1886) , i want to talk about retrieve the firmware and use again the firmware routines for disc access after flush the entirely firmware...

some time i made a (unprotected) version of U.N.Squadron that use only one side of a disk, and a special loader that load every level (without corrupt the screen in every level)...

With floppy, all goes like a charm... the game itself destroy de firmware (even it uses de second bank on 128k machines), but with a routine that i found to restore the firmware the load of the levels work in floppy and the game is 100% free error.

The problem is that i made this version not only to work on floppy but in mass storages too... because of this i use KL_ROM_WALK, to activate AMSDOS and the ROM of the expansion that handles the mass storage... but there is an error...

is not enough to activate the roms... we need to tell in what directory where working and make the rom know that... but with ACMEDOS i never achieve this (and i'm afraid that this works in different ways on other mass storage managers)... i don't release this version of U.N.Squadron because of this...

my question is:

there is really a compatible way to make a multiload game compatible with ALL mass storage versions (past & future)?.

I'm very interested in this subject... i want to release U.N.Squadron (and other games).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:10, 09 January 17
Quote from: Joseman
is not enough to activate the roms... we need to tell in what directory where working and make the rom know that... but with ACMEDOS i never achieve this (and i'm afraid that this works in different ways on other mass storage managers)... i don't release this version of U.N.Squadron because of this...
With M4 such things is not stored CPC memory, so it wont have that problem. I reckon (but dont know) with ACMEDOS it will be stored in its ram workspace or somewhere in AMSDOS workspace, so you would have to locate where it's store, take a backup and restore it later.


Quote from: Joseman
my question is:

there is really a compatible way to make a multiload game compatible with ALL mass storage versions (past & future)?.
Probably not, without detecting each device and do specifics to them (like restoring a directory).
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 16:15, 09 January 17
Quote from: Duke on 15:10, 09 January 17
with ACMEDOS it will be stored in its ram workspace or somewhere in AMSDOS workspace, so you would have to locate where it's store, take a backup and restore it later.

trust me, i tried to save like crazy all the memory i can... i don't remember well but, &a000 to &bfff, but NOTHING worked ever!! (this version doesn't work on m4 by the way)...

when you have time (if you want), i can send you a copy and we can sort out the problem, but please, don't distribute the dsk until i upload the final version!

Title: Re: Amstrad CPC WiFi
Post by: SOS on 16:16, 09 January 17
Quote from: Duke on 15:10, 09 January 17
do specifics to them (like restoring a directory).
E. G. interesting are the differences how to get the actual path and restore them:
For M4DOS you can |getpath - save the reult and use it later for the restore with |CD,....
in ACMEDOS you can only do: patch &bb5a,  do an "|CD" and analyze the Output - BUT you can't do the result for a path-restore!
=> In ACMEDOS you can easy save the 16Bit value on &BE9D and restore them (very unusual, but very fast & very easy)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:23, 09 January 17
Quote from: Joseman on 16:15, 09 January 17
when you have time (if you want), i can send you a copy and we can sort out the problem, but please, don't distribute the dsk until i upload the final version!

I can't help with ACMEDOS, as I don't have xmass, but if you want me to take a look at something np. but it seems @SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) has a solution for you :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 16:37, 09 January 17
Quote from: SOS on 16:16, 09 January 17
=> In ACMEDOS you can easy save the 16Bit value on &BE9D and restore them (very unusual, but very fast & very easy)

Yes i know that (i spent an evening to understand how ACMEDOS works!, i tried to save all the memory from #A000 to #BFFF (that include #BE9D) but nothing worked :(
Title: Re: Amstrad CPC WiFi
Post by: SOS on 17:16, 09 January 17
Quote from: Joseman on 16:37, 09 January 17
Yes i know that (i spent an evening to understand how ACMEDOS works!, i tried to save all the memory from #A000 to #BFFF (that include #BE9D) but nothing worked :(

Ok , we are OT here, so we should please go to the XMASS-Thread, or PM
[ot]
After the following program, loading a game with BASIC is no Problem:

org &4000
di
ld hl,&8000
ld de,&c000
ld bc,&3fff
ldir
ld hl,&8000
ld (hl),&CC
ld de,&8001
ld bc,&3ffe
ldir
ld de,&8000
ld hl,&c000
ld bc,&3fff
ldir
ei
ret
[/ot]
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 17:46, 09 January 17
About Kick Off:

Quote from: Duke on 15:00, 08 January 17
Tbh. I don't know if it needs the disc rom(can you maybe save/load data ingame?).

Yes, there is a league option that can save & load the classification and the matchs results at any time... and with your patch it works on M4!!!

thankyou!!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 19:38, 09 January 17
Quote from: Duke on 09:09, 08 January 17
Works fine here with my regular CPC6128, with lowerrom mod2 / without lowerrom mod, as rom6 and as rom7...

Sorry to say that for me the last beta11 (rom6) don't work with ghost n goblins (original), it reset and it doesn't work with laser squad too, it hangs on "wich scenario?" selection, sometimes it show garbage on screen, sometimes resets (like ghost n goblins), but i doesn't work :(

UPDATE:

with lower rom V2 & B11: Ghost n goblings (original) works, laser squad: keeps hanging...


I have a theory: perhaps the B11 take up more ram than B9 and some games overwrite some code on B11 than didn't overwrite on B9?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:32, 09 January 17
Quote from: Joseman on 19:38, 09 January 17
Sorry to say that for me the last beta11 (rom6) don't work with ghost n goblins (original), it reset and it doesn't work with laser squad too, it hangs on "wich scenario?" selection, sometimes it show garbage on screen, sometimes resets (like ghost n goblins), but i doesn't work :(

UPDATE:

with lower rom V2 & B11: Ghost n goblings (original) works, laser squad: keeps hanging...


I have a theory: perhaps the B11 take up more ram than B9 and some games overwrite some code on B11 than didn't overwrite on B9?

For me (just tested again):

CPC6128 + M4 V1.1.0 B11 mounted as ROM 6.
Both games work.

CPC6128 + M4 V1.1.0 B11 mounted as ROM 6 and modified lowerrom (v2).
Both games work.

Maybe you have other roms that cause problems?

Also beta 11 uses same ram as before, 272 bytes without amsdos and 128 bytes with amsdos.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:35, 09 January 17
hi again!

tested again, again same results...

My cpc is a spanish 6128 with the X-Mem attached...

the x-mem has the rom option disabled...

no other roms loaded...

strange...


Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:59, 09 January 17
Quote from: Joseman on 21:35, 09 January 17
My cpc is a spanish 6128 with the X-Mem attached...

the x-mem has the rom option disabled...

no other roms loaded...
Very strange indeed, just tried with X-Mem attached aswell, both games works fine in both configs.
Are you sure you are using beta 11 and not beta 10 (that would explain alot).
Also for Laser Squad you need to run"ls   (not any of the other bas files).
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:05, 09 January 17
Quote from: Duke on 21:59, 09 January 17
Very strange indeed, just tried with X-Mem attached aswell, both games works fine in both configs.
Are you sure you are using beta 11 and not beta 10 (that would explain alot).
Also for Laser Squad you need to run"ls   (not any of the other bas files).

i think is beta 11, the zip was loaded from this thread... but maybe i download the wrong version or in the zip is  b10 by mistake?

can you point me to  a link that has the "correct" b11 version?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:17, 09 January 17
Quote from: Joseman on 22:05, 09 January 17
i think is beta 11, the zip was loaded from this thread... but maybe i download the wrong version or in the zip is  b10 by mistake?

can you point me to  a link that has the "correct" b11 version?
www.spinpoint.org/cpc/M4FIRM_v110b11.zip

Also getting goblins reset now when removing lower rom mod, could've sworn it worked fine just a bit ago... But laser squad is solid.
Will check what happens with goblins.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:36, 09 January 17
Quote from: Duke on 22:17, 09 January 17
Also getting goblins reset now when removing lower rom mod, could've sworn it worked fine just a bit ago... But laser squad is solid.
Will check what happens with goblins.

Sometimes with the rom part of the M4 (loading or unloading some roms - lower rom,etc..): if i reset the M4 it just not work... the rom is not correctly loaded or if it is... something goes wrong... but, if i turn off the CPC, turn off the M4 (not reset), turn on the CPC and turn on the M4, then all work correctly!.

Maybe is that what happens with goblins and your configuration?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:55, 09 January 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

UPDATE!!!!!

if i upload the dsk to the sd root, then i make |cd,"laser.dsk" -> run"ls.bas" IT WORKS!!!

BUT

if i copy the disc (with symbos) to: games/laser squad -> |cd,"games" -> |cd,"laser squad" -> run"ls.bas" it doesn't work!!!!!!!!!!!

perhaps you was loading it from a mounted dsk?



Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:00, 10 January 17
Quote from: Joseman
Maybe is that what happens with goblins and your configuration?
Yes seems like that was the issue. Will investigate.

Quote from: Joseman
perhaps you was loading it from a mounted dsk?

Yes it has to run from a .dsk file otherwise sector read / write is not working, then it should have been using file I/O.

EDIT:  About Ghost and Goblins, here is the problem - stupid game ! :)
It uses area &a600 - &a6?? for variables.  Not a problem, but it expects the area to be 00's at startup.
M4 will use A67C - A6FC, when amsdos at A700, so its filled with data, that make it crash or do other things and sometimes work :)

Fix for original .dsk image 
Edit Elite.bas
Change line 30 to:
30 load"p":load"code"
Add:
31 for i=&a600 to &a6fc:poke i,0:next
32 call &5000

Done.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 11:06, 10 January 17
Quote from: Joseman on 22:55, 09 January 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

UPDATE!!!!!

if i upload the dsk to the sd root, then i make |cd,"laser.dsk" -> run"ls.bas" IT WORKS!!!

BUT

if i copy the disc (with symbos) to: games/laser squad -> |cd,"games" -> |cd,"laser squad" -> run"ls.bas" it doesn't work!!!!!!!!!!!

perhaps you was loading it from a mounted dsk?


I can't try laser Squad until i mount the cpc, But in the begining  until menú levels laser Squad use the firmware to load.( You don't tell ir it load to level menu or not).
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 11:57, 10 January 17
Quote from: Duke on 06:00, 10 January 17
EDIT:  About Ghost and Goblins, here is the problem - stupid game ! :)
It uses area &a600 - &a6?? for variables.  Not a problem, but it expects the area to be 00's at startup.

:picard: How a coder that is being paid to do a game on a computer has this type of errors??, the guy simply doesn't initialize variables, and use the variables taking for granted that they will be 0  :picard: , this is almost the first thing that you learn when you start coding...

Or perhaps the guy was a genius and thought that if this area didn't have 0's then some kind of loader or copy-rom was present? I don't think that this is the case, because is a random protection, as you said, the game sometimes works!

Seeing that the game was half-cutted, and didn't have half of the things that the original game had (perhaps for running out of ram? because of this bad coding...), don't think that genius is the word...

is a pitty the lack of professionalism that some coders had in that years... is not a problem of time, is a problem of laziness-professionalism!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:40, 10 January 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Fwiw. I am not sure if that really is the original... I mean there is some weird (unused) basic code after it runs the code file.
Maybe it had something that cleared it before. The game imo. is quite well done (good scrolling, sprites, music), oh well :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 14:29, 10 January 17
Quote from: Duke on 12:40, 10 January 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Fwiw. I am not sure if that really is the original... I mean there is some weird (unused) basic code after it runs the code file.
Maybe it had something that cleared it before. The game imo. is quite well done (good scrolling, sprites, music), oh well :)

Yes, you're right, the game is not THAT bad for a 1986 tittle, but i can assure you that i felt cheated with this game back in the day for not have all the levels!

Here is another original copy from Abraxas - Zafiro version:

http://s000.tinyupload.com/index.php?file_id=80466123119132519822 (http://s000.tinyupload.com/index.php?file_id=80466123119132519822)

as you can see it's the same that with the other  copy, the same files, the same loader...

I'm pretty sure that another games from Elite (maybe in the first years) shared the same structure... (elite.bas, p.bin for the scr and code.bin for the code itself). It's the original copy without a doubt.

Sorry for the OT.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 16:58, 10 January 17
Great! Now we need some kind of repository for patched games!! Like C4CPC game pack  ;D

I'm very slow with my sockets lib for cpctelera, but I have the hope I will finnish it. I will collect some doubs I have and return here with them.
Title: Re: Amstrad CPC WiFi
Post by: David Hernandez Verdugo on 17:01, 12 January 17
Hi guys ! This is an incredible project, although I do not usually write I follow the progress. Congratulations!!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:50, 15 January 17
M4 Firmware v2.0.0 released.

Download here: http://www.cpcwiki.eu/index.php/M4_Board#Firmware (http://www.cpcwiki.eu/index.php/M4_Board#Firmware)
Or use the |upgrade rsx from your CPC.

I decided to bump the major version instead of making 1.1.0 release, as there was so many changes with all the betas.

Latest addition since last beta.
Fix issue with |ren and filenames with spaces
DSK image support for ROMDOS formats D1, D2, D10, D20, D40 and PARADOS 80

(See full change log at http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt))

No other bugs left that I can remember for the betas, so hopefully all good for now!
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 16:47, 15 January 17
Nice!
Just upgraded my card 5 minutes ago.
By the way, I just discovered that my m4 board works perfectly on my 6128plus computer but not on my 6128, even after cleaning a lot of times the contacts with alcohol, a rubber or an specific contact cleaner liquid: The card is very unstable on my 6128 and freezes or hangs randomly after any command.  Also tested both methods to power up the card: with external usb wire and with internal power.
So, the defective hardware here is my computer. Does anybody know any possible cause for this problem? capacitors? tracks? power supply of the computer? (I use an 2A external power supply!)

Makinavaja
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:37, 15 January 17
@makinavaja (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1919)

Maybe you have set M4 rom to 7, that could cause problems with a regular CPC6128. Try starting it without a microSD inserted, to see if its any ROM issue.

Other than that in all likelyhood even though your Edge connector looks clean, it may still need more cleaning.
Of course it could be the edge cable too.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:20, 15 January 17
Hi

Small Contribution:

With BonnyDos 'Addon2' rom (only this rom), we can use the |type command to see text files, it works really well with the M4!!

http://www.cpcwiki.eu/imgs/e/e1/BDOS_ROM_1.72.zip (http://www.cpcwiki.eu/imgs/e/e1/BDOS_ROM_1.72.zip)

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) do you think that this command can be implemented in the M4 ROM?


Title: Re: Amstrad CPC WiFi
Post by: SOS on 21:28, 15 January 17
Is a test-program for the M4-Card available?
e.g. sending 1000000 random-bytes to the M4, when it hungs, i have a hardware-issue.
=>
I have the problem, when the CPC hungs, it can be have different reasons (software faulty, bad-rom-config, CPC-Hardware faulty, M4-Hardware faulty, Power-Problems).
Power: What voltage do I need to measure with a multimeter? (other measurable Parameters?)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:27, 15 January 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135) should be no problem to add, probably next release and yeah its a handy command.

Quote from: SOS on 21:28, 15 January 17
Is a test-program for the M4-Card available?
e.g. sending 1000000 random-bytes to the M4, when it hungs, i have a hardware-issue.
=>
I have the problem, when the CPC hungs, it can be have different reasons (software faulty, bad-rom-config, CPC-Hardware faulty, M4-Hardware faulty, Power-Problems).
Power: What voltage do I need to measure with a multimeter? (other measurable Parameters?)
There's isnt an actual test program available. There's the diagnostics firmware, but it only checks basics are responding as it should.
But should be easy to create some tests if you want to verify its working proper.
Ie.
10 |httpget,"somethingoftheinternet": rem test CPC->M4->ESP, could also use |time
20 cat: rem test CPC->M4->SD   and vice versa
30 goto 10
If you want to check if only the hardware is OK you can of course up and download files, which will test M4, ESP and SD without the involvement of CPC (and dodgy connectors).
For voltage reading, you can read the USB/EXP jumper, that's 5 V input, 3.3V is labelled at the top row, aswell as gnd signals.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 08:35, 16 January 17
Quote from: Duke on 23:27, 15 January 17
For voltage reading, you can read the USB/EXP jumper, that's 5 V input, 3.3V is labelled at the top row, aswell as gnd signals.
How much space has the 5V Signal?, actual my power-supply give 4,83 Volt (to both M4+CPC). (to complete the question: The upper voltage value is 5,35 Volt when nothing connected (or the cpc only(?)).
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 08:40, 16 January 17
Quote from: Duke on 18:37, 15 January 17
@makinavaja (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1919)

Maybe you have set M4 rom to 7, that could cause problems with a regular CPC6128. Try starting it without a microSD inserted, to see if its any ROM issue.

Other than that in all likelyhood even though your Edge connector looks clean, it may still need more cleaning.
Of course it could be the edge cable too.
Hi Duke!
Seems more stable since I've removed the microsdcard... but:
- Wich kind of test can I do to verify this?
- Will you explain me what is that set rom option and value? how can I change it? wich value do I have to set then?

Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 09:03, 16 January 17
Ok, reading again the info I discovered what it is.
Lets test it during the day!

Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:35, 16 January 17
Quote from: SOS on 08:35, 16 January 17
How much space has the 5V Signal?, actual my power-supply give 4,83 Volt (to both M4+CPC). (to complete the question: The upper voltage value is 5,35 Volt when nothing connected (or the cpc only(?)).

Some numbers: TTL Chips will work between 4.75V and 5.25V. If the hardware has an LDO to create 3.3V then you definitely need to stay within these boundaries as the LDO chip most likely needs about 4.8V to work reliably. Problems will sometime occur in electronics if a sudden increase in current occurs, the voltage can then suddenly drop and cause things to crash or reset. Adding some chunky electrolytic capacitors can help against this.
Measuring a PSU (or battery) with no load doesn't really tell you anything useful. You should always have it connected to the load you intend using (turned on) to know what your PSU is really supplying.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:21, 16 January 17
My readings directly connected to the CPC is ~4.8V too (both CTM644 and an external 5V psu) so your reading is just fine and shouldn't cause any problems, but of course you could always try an external psu directly to the M4 board. In my experince 99% of the problems is due to the Edge connector, it goes from people not seeing the device at all to all sorts of issues until they have super cleaned it many times.
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 15:40, 16 January 17
Well, I tested today the board again on my 6128 and it seems that with the upgrade I did with the last version, the system is back to rom 6, and that made the card work ok on my 6128.

By the way, I have seen that the http://www.centpourcent.net/ shop is closed! :( Hope nothing bad has happened to Richard :(

So, new users looking for hardware to use symbos, ... where will they get it? because RAM boards and slot expansors are needed!
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 15:43, 16 January 17
By the way:
https://flic.kr/s/aHskSLHyRV

Its an album, pictures of 4 8bit computers connected to IRC! :D
Hope you like it, but all the desktop is lika a jungle full of wires!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:21, 16 January 17
Quote from: makinavaja on 15:43, 16 January 17
By the way:
https://flic.kr/s/aHskSLHyRV (https://flic.kr/s/aHskSLHyRV)

Its an album, pictures of 4 8bit computers connected to IRC! :D
Hope you like it, but all the desktop is lika a jungle full of wires!

Looks great :)
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 17:04, 17 January 17
hi again!

Today I tested again the board, but just connected directly to the rear amstrad6128 connector, not in the Mother X4 board.
And I have got again the same problems!  :doh: [edit]no matter if the power supply is external or internal [edit]
When I'm in the config web page, and I've got:
M4 CONFIG
- Enabled -> checked
- Rom number -> 6
- Rom board start -> 0
- Lower-rom Enabled -> not checked
- Lower-slot rom -> 31

Any idea about it? Just to resume:
- M4 board connected to the mother x4 together with the x-mem mx4 board(RAM) -> works perfectly
- M4 board connected alone -> fails, hungs randomly after any command, no matter if it is a |netstat or a cat
- M4 board connected on my 6128plus -> always works, alone or connected to the mother x4.
- Lo
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:56, 17 January 17
@makinavaja (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1919)

Yea that doesn't make much sense.

I can see on this picture https://www.flickr.com/photos/46349456@N08/32306991326/in/album-72157679224632055/
That you have edge connector version, connected to some converter PCB.

When connecting it to the CPC6128, do you use the cable from MX4 to this converter PCB or do you plug it directly in to the CPC?

Maybe worth trying with the cable as it seems that way you get good connection through MX4.
Title: Re: Amstrad CPC WiFi
Post by: makinavaja on 20:41, 17 January 17
Quote from: Duke on 17:56, 17 January 17

When connecting it to the CPC6128, do you use the cable from MX4 to this converter PCB or do you plug it directly in to the CPC?

Maybe worth trying with the cable as it seems that way you get good connection through MX4.
yes, I did it, and the result was the same: it didn't worked
The only extra stuff this amstrad 6128 have is the 3 1/2'' disk drive that replaced the original 3'' drive.  Can it be related with that?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:17, 17 January 17
Quote from: makinavaja on 20:41, 17 January 17
yes, I did it, and the result was the same: it didn't worked
The only extra stuff this amstrad 6128 have is the 3 1/2'' disk drive that replaced the original 3'' drive.  Can it be related with that?
Nah, that should not be a problem.

Guess you better ship it back to me so I can examine it, replace or fix it.
Title: Re: Amstrad CPC WiFi
Post by: ASiC on 23:16, 17 January 17
Now create a version for a 512K upgraded CPC  :P :P :P


Thank you very much for your commitment  :)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:50, 20 January 17
Hi duke. Do you have a photo of the edge connector version?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:27, 20 January 17
Quote from: zhulien on 15:50, 20 January 17
Hi duke. Do you have a photo of the edge connector version?

Yes sure, here is some of the 90 deg. version:
http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg138893/#msg138893

And there's two of the regular one here:
http://www.cpcwiki.eu/index.php/M4_Board

Let me know if you need any others, I probably have more pics :)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 21:03, 20 January 17
Has anybody thought about making a case for ours M4?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 13:30, 21 January 17
I like the look of the vertical version, any chance for a through connector though?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:32, 21 January 17
Quote from: zhulien on 13:30, 21 January 17
I like the look of the vertical version, any chance for a through connector though?
I've made the pads so it should be easy to solder an edge PCB on, to make it pass through. If there's the demand I can order 10 pcs, it would add another 2 euro to the price (because of low quantiy + shipping cost and 25% vat).
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 01:17, 26 January 17
Hi Duke,


Finally I received the cable to connect my M4 to the MX4 motherboard (also loaded with a X-MEM board). Now my goal is to set SymbOS 3.0 to work in my cpc 6128 using this setup.


Since you gave me some tips about the ROM configuration which would work better with this setup, there have been some changes in the firmware of the M4. The version 1.0.9 worked pretty well in my cpc 6128 during these months. However, I saw that you have introduced new firmware versions (mainly the 1.1.0 bx and 2.0).


The ROM structure I use is still the one you recommended me (M4 rom in slot 6 together with AMSDOS ROM and the patched low rom in slot 0). Under these conditions I have tested the firmware versions 1.1.0 b10 and 2.0 and none of those runs stable in my cpc. A lot of freezing events, screen colapses, etc, go on under these firmware versions. Moreover, I could not run most of the games I succesfully did with the 1.09 version. As my goal is to run SymbOS with the most internet tools I would be grateful if you could help me to clarify the following points:

1. What firmware version do you recommend me to use for these purposes? Is the 2.0 version ok?
2. Is the most proper way to update the firmware to unzip the corresponding packages in the root folder of the SD card? or is it better to unzip them in the m4 folder? 
3. Would be the ROM configuration you recommended me a couple of months ago still the most appropriate to be used with the latest versions of the firmware? If not what changes do you suggest me to implement?
4. What is the most proper SymbOS 3.0 preview version to use with the recommended firmware and my expansion setup? Is that the release candidate 1 made available by Podatron on Nov 14th 2016 in these forums? Or, is there a more recent release that you should recommend me? In such a case, can you post a link to it?
5. What is the most proper way to install SymbOs in the SD Card? Is it as simple as unzipping the corresponding package in the root folder of the SD Card? or should I create a SymbOS folder and unzip the content there?
6. What to do in regards to the symbos.ini and symbos1.ini files? Should I erase any of them? Should I let both?
7. What is the best option: powering the MX4 motherboard or only the M4 board?


As you see so many doubts only to put the things to work ...but I will appreciate your help.


Thank you in advance and best regards!!


Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:20, 26 January 17
Quote from: jomicamp on 01:17, 26 January 17
The ROM structure I use is still the one you recommended me (M4 rom in slot 6 together with AMSDOS ROM and the patched low rom in slot 0). Under these conditions I have tested the firmware versions 1.1.0 b10 and 2.0 and none of those runs stable in my cpc. A lot of freezing events, screen colapses, etc, go on under these firmware versions. Moreover, I could not run most of the games I succesfully did with the 1.09 version.
This should not be the case, same games should work as before, there should NOT be any freezes or anything else going on, so I suggest you work on these issues first. Have you disabled ROM board function of XMEM for starters?
Quote
1. What firmware version do you recommend me to use for these purposes? Is the 2.0 version ok?
V2.0.0 for all purposes :)
Quote
2. Is the most proper way to update the firmware to unzip the corresponding packages in the root folder of the SD card? or is it better to unzip them in the m4 folder? 
You have to extract to root of microSD, it wont help to put them into M4 folder.
If you are not on latest version, you can simply use |UPGRADE rsx.
Quote
3. Would be the ROM configuration you recommended me a couple of months ago still the most appropriate to be used with the latest versions of the firmware? If not what changes do you suggest me to implement?
Yes, it is. However if you wish to use disc / tape / sd from AMSDOS at the same time, I suggest you don't use any lowerrom modification.
Quote
4. What is the most proper SymbOS 3.0 preview version to use with the recommended firmware and my expansion setup? Is that the release candidate 1 made available by Podatron on Nov 14th 2016 in these forums? Or, is there a more recent release that you should recommend me? In such a case, can you post a link to it?
5. What is the most proper way to install SymbOs in the SD Card? Is it as simple as unzipping the corresponding package in the root folder of the SD Card? or should I create a SymbOS folder and unzip the content there?
6. What to do in regards to the symbos.ini and symbos1.ini files? Should I erase any of them? Should I let both?
There's a thread under software here about SymbOS, I think you can find all answers there.
Quote
7. What is the best option: powering the MX4 motherboard or only the M4 board?
Depends, for me it works fine to just power the MX4 motherboard, maybe in other configurations its better to power M4 seperately.
Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 16:33, 26 January 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Payment done for two M4 Wifi boards.

You have PM with shipment details  :)

Thanks again  :)
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 01:07, 27 January 17
Quote from: Duke on 10:20, 26 January 17
This should not be the case, same games should work as before, there should NOT be any freezes or anything else going on, so I suggest you work on these issues first. Have you disabled ROM board function of XMEM for starters?


I don´t know where these problems are coming from. But the good news are today I switched on the cpc and suddenly it is working fine with the 2.0.0 version (What happened to the intermediate versions between the 1.1.0 and the 2.0.0?)...and yes the ROM board function of XMEM was disabled...
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 01:11, 27 January 17
Quote from: Duke on 10:20, 26 January 17
There's a thread under software here about SymbOS, I think you can find all answers there.


Yes but in this thread Podatron introduces at least 3 different packages. Could you put a link to the most appropriate for the better performing internet functionalities such as irc, etc? Or just confirm if the correct package is the one called "Candidate Release 1"


Thanks a lot
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 01:15, 27 January 17
Quote from: Duke on 10:20, 26 January 17
However if you wish to use disc / tape / sd from AMSDOS at the same time, I suggest you don't use any lowerrom modification."


You mean to substitute the patched lower rom by the normal one or just let the empty the slot 0?


By doing so, is it possible that i have compatibility issues?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:28, 27 January 17
Quote from: jomicamp
Yes but in this thread Podatron introduces at least 3 different packages. Could you put a link to the most appropriate for the better performing internet functionalities such as irc, etc? Or just confirm if the correct package is the one called "Candidate Release 1"
Tbh. I can't remember which one is the latest of them, without re-reading the thread, lets see if @Prodatron (http://www.cpcwiki.eu/forum/index.php?action=profile;u=13) comes around :)
Quote
You mean to substitute the patched lower rom by the normal one or just let the empty the slot 0?
By doing so, is it possible that i have compatibility issues?
Just let it be empty or put lowerrom in slot 31 and disable it. And yes less games will work, however it shouldn't be that bad to re-enable it in the webinterface when needed.
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 16:00, 27 January 17
Quote from: jomicamp on 01:07, 27 January 17

I don´t know where these problems are coming from. But the good news are today I switched on the cpc and suddenly it is working fine with the 2.0.0 version (What happened to the intermediate versions between the 1.1.0 and the 2.0.0?)...and yes the ROM board function of XMEM was disabled...


Unfortunately the problems have come back... I have observed that the upgrade files unzipped in the root folder of the Sd Card dissappear from there after running a new M4 cycle... I asume it should be normal...


I am suspecting that the connectors in the cpc are not perfect yet...this weekend I will give them another cleaning round before trying anything else...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:35, 27 January 17
Quote from: jomicamp on 16:00, 27 January 17

Unfortunately the problems have come back... I have observed that the upgrade files unzipped in the root folder of the Sd Card dissappear from there after running a new M4 cycle... I asume it should be normal...
Yes, that is normal.
Quote
I am suspecting that the connectors in the cpc are not perfect yet...this weekend I will give them another cleaning round before trying anything else...
Yes.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 12:54, 29 January 17

Version 2 of the M4 ROM is awesome. It's great that I can now access my ROMDOS D20 DSK images via here. Great work Duke!

I have however found a couple of minor issues.


1. Whenever I run the |netstat command it seems to crash my 6128+ and in turn the CPC side of the M4 which needs to be power cycled or reset via the web interface to work again. The M4 would appear to have a network connection as the time has been set and can be confirmed by running |time and the web interface continues to work as expected.


2. In the 90's I used to use a tool by Antoine PITROU (Antoine of POW!) called S-DAF (http://www.cpc-power.com/index.php?page=detail&num=5045 (http://www.cpc-power.com/index.php?page=detail&num=5045)) to link and compress files together which was incredibly useful. However if I try to run any files created by this tool or the tool itself the CPC returns the error "Direct Command Found". All works as it should do via the HXC I have or a normal floppy.


Is there any way the files created by this tool could be made to work with the M4 please? Or does it use some trick/shortcuts etc in the AMSDOS ROM to achieve what it does?


The info page available in the tool has the following info if it helps:
[attach=2]


Not a big deal if this can't be made to work but thought I'd ask. It's taken me this long to remember what the tool was scratching my head trying to thing back 20+ years and only found it by searching through my utility disks!


Keep up the fantastic work.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:37, 29 January 17
Thanks, glad someone noticed the ROMDOS compatilibty (ya, you reported it :-) ). Should be useful 2+ disc games, as you can not switch .dsk images runtime.

Quote from: Maniac on 12:54, 29 January 17
1. Whenever I run the |netstat command it seems to crash my 6128+ and in turn the CPC side of the M4 which needs to be power cycled or reset via the web interface to work again. The M4 would appear to have a network connection as the time has been set and can be confirmed by running |time and the web interface continues to work as expected.
Weird issue. I will have to re-check on my 6128+ when I hook it up again (but I am fairly sure it works fine), right now it works fine on the CPC664 I am testing on.  - I may need your config.txt file, incase it's some particular parsing issue.
Quote
2. In the 90's I used to use a tool by Antoine PITROU (Antoine of POW!) called S-DAF (http://www.cpc-power.com/index.php?page=detail&num=5045 (http://www.cpc-power.com/index.php?page=detail&num=5045)) to link and compress files together which was incredibly useful. However if I try to run any files created by this tool or the tool itself the CPC returns the error "Direct Command Found". All works as it should do via the HXC I have or a normal floppy.
"Direct Command Found" often means that the file header is messed up (or missing).
Likely it is some compatilibty issue with M4-ROM in the cas* functions, I will investigate, always glad that have these reported, thanks.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 15:10, 29 January 17

Quote from: Duke on 14:37, 29 January 17
Thanks, glad someone noticed the ROMDOS compatilibty (ya, you reported it :-) ). Should be useful 2+ disc games, as you can not switch .dsk images runtime.
Weird issue. I will have to re-check on my 6128+ when I hook it up again (but I am fairly sure it works fine), right now it works fine on the CPC664 I am testing on.  - I may need your config.txt file, incase it's some particular parsing issue.


So after some other playing around which included uploading some ROM images to the M4 and not working I decided to disable the ROM elements of the XMEM and |netstat now works as expected. I appreciate you've told many others to do this but in previous versions of the M4 ROM this setup has functioned just fine for me. The thing that also made me switch off the XMEM ROM is that M4 didn't work in slot 6 after 2.0 either. Does now! Think this is a very true case of RTFM for me! ;)
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 20:12, 29 January 17
Hi


Just tring to use my board without success, help would be appreciated...
My configuration : CPC 6128 and the board plugged directly on the expansion port
I'm currently reading the post but damn : 128 pages !
I've seen on a  screen capture that I must see this text at boot : M4 Board vX, is it true ?
Actually this is not the case only the standard boot text.
I can say that I have two led ON at start, a red and a blue and after 1 or 2 sec, only the blue one.
The power jumper is on EXT


Any idea to help me ?


Thanks

Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:36, 29 January 17
Quote from: cyrillem on 20:12, 29 January 17
I've seen on a  screen capture that I must see this text at boot : M4 Board vX, is it true ?
Correct, it will display "M4 Board V2".
Quote
I can say that I have two led ON at start, a red and a blue and after 1 or 2 sec, only the blue one.
The power jumper is on EXT
Also correct behaviour.

Most likely, and I hate to say it again :) - You must clean your edge connector.

See picture of an edge connector I just cleaned today, the printer port on the left as comparison was also cleaned with just IPA.

Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 07:21, 30 January 17
I've seen that it was the main problem with our CPC, everything is fine now  :doh:
Thanks Duke
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 15:36, 30 January 17
Tested and working.

Many thanks, Duke.  :) :)
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 16:04, 31 January 17
Any ftp site to recommend with some apps to download ? My .dsk files doesn't functions : game start and I get an error about the disk and ask me to press Cancel Retry or Ignore


I've seen a post with an archive file available on amstrad.es on previous page but file doesn't exist anymore  ???
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:37, 31 January 17
Quote from: cyrillem on 16:04, 31 January 17
Any ftp site to recommend with some apps to download ? My .dsk files doesn't functions : game start and I get an error about the disk and ask me to press Cancel Retry or Ignore


I've seen a post with an archive file available on amstrad.es on previous page but file doesn't exist anymore  ???

When you get the Disc missing, you can fix it easy.
Use the modified lowerrom here:
http://www.cpcwiki.eu/index.php/M4_Board#Various (http://www.cpcwiki.eu/index.php/M4_Board#Various) files

Or set M4 rom as 7, if your cpc supports it.

Also these are good resources:
http://cpccrackers.free.fr/Downloads/ (http://cpccrackers.free.fr/Downloads/)
http://cngsoft.no-ip.org/cpc_lzx.htm (http://cngsoft.no-ip.org/cpc_lzx.htm)
and of course:
http://www.cpc-power.com (http://www.cpc-power.com)  (go after cracked version if possible).
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 20:42, 31 January 17
Thanks for this answer Duke


Some other questions :
1. I have uploaded a french firmware in slot 0, seems ok. At boot I can see some other informations like


RAM:128K | CRTC1 | FW3.12-FR


I have dowloaded AMSDOS v0.5 and uploaded in the slot 6 but in the web page, the slot continue to be empty so I don't know if upolad has been done correctly
Is it a bug ? Sorry, the problem in fact is that we need to enter a slot name or the name of the rom will not appeard in the rom boards webpage


2. I have tryed your modified lower rom but I don't know if it is ok as nothing can be see in the boot screen
is it possible to know something ? Nothing seems to have been modified about the keaboard. The "|" continue to write a "ù"


3. Why did you say "set M4 ROM as 7 if your cpc support it"
   1. is it an error to have used the slot 0 instead the slot 7 ?
   2 Why a cpc would not support it ?

4. Actually my configuration :
ROM 0 : the french firmware 3.12 FR
ROM 6 : AMSDOS 0.5


Tried a game and it is not better. Before these modifications if a run something I had a screen where I can choose unlimityd life or not and now nothing appears and the screen has artefacts on it

It's very very difficult.........
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:10, 31 January 17
To me it seems you have uploaded FW3.12 as lowerrom instead of the modified one. And yes you wont see the difference with the modified lower rom, but games that re-init rom 7 will work, instead of print disc missing or crashing.
Anyway tell me what CPC you use, then I will tell you best config.

As for using M4 rom in slot 7, all 464's can do this, all cpc plus can do this, and the cpc664's I tried can do this, and a few CPC6128 (MC020C) can do this. Regular CPC6128's don't disable the internal rom 7,  when romdis issued, so it cannot be replaced externally, however MC020C boards (or some) you can override rom 7.

Quote from: cyrillem on 20:42, 31 January 17
Thanks for this answer Duke


Some other questions :
1. I have uploaded a french firmware in slot 0, seems ok. At boot I can see some other informations like


RAM:128K | CRTC1 | FW3.12-FR


I have dowloaded AMSDOS v0.5 and uploaded in the slot 6 but in the web page, the slot continue to be empty so I don't know if upolad has been done correctly
Is it a bug ? Sorry, the problem in fact is that we need to enter a slot name or the name of the rom will not appeard in the rom boards webpage


2. I have tryed your modified lower rom but I don't know if it is ok as nothing can be see in the boot screen
is it possible to know something ? Nothing seems to have been modified about the keaboard. The "|" continue to write a "ù"


3. Why did you say "set M4 ROM as 7 if your cpc support it"
   1. is it an error to have used the slot 0 instead the slot 7 ?
   2 Why a cpc would not support it ?

4. Actually my configuration :
ROM 0 : the french firmware 3.12 FR
ROM 6 : AMSDOS 0.5


Tried a game and it is not better. Before these modifications if a run something I had a screen where I can choose unlimityd life or not and now nothing appears and the screen has artefacts on it

It's very very difficult.........
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 10:04, 01 February 17
exactly FW312 was uploaded as lower rom
Here is my configuration in attachment


About my amstrad : CPC 6128 with azerty keyboard


Do you need something else ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:33, 01 February 17
Quote from: cyrillem on 10:04, 01 February 17
exactly FW312 was uploaded as lower rom
Here is my configuration in attachment


About my amstrad : CPC 6128 with azerty keyboard


Do you need something else ?
No this is fine, if you want better compatiblity, you should replace FW312 with this one http://www.cpcwiki.eu/imgs/2/2d/Lower6128_mod-fr.zip

Now the game(s) that gave you disc missing, retry, ignore, cancel should work.
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 11:35, 01 February 17
I have checked the M4 interface and it is being a very positive surprise for me. It is very near to be the definitive mass storage interface for Amstrad CPC.

I have only a little questions about it:

- Does it have "CDT" support?
- Is it possible to load snapshots ("SNA")?
- Is it possible to copy files from 3" disk to the SD card and viceversa with the CPC?

Many thanks for everything, Duke.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:55, 01 February 17
Quote from: wilco2009 on 11:35, 01 February 17
- Does it have "CDT" support?
No. Would it be possible, maybe. I have not looked into it.
Quote
- Is it possible to load snapshots ("SNA")?
Not natively, unless some .SNA loader already exist.
Quote
- Is it possible to copy files from 3" disk to the SD card and viceversa with the CPC?
Yes, but for now only SymbOS supports that. I may add an RSX for it sometime, it would be  very easy.
Title: Re: Amstrad CPC WiFi
Post by: cyrillem on 19:00, 01 February 17
Quote from: Duke on 10:33, 01 February 17
No this is fine, if you want better compatiblity, you should replace FW312 with this one http://www.cpcwiki.eu/imgs/2/2d/Lower6128_mod-fr.zip (http://www.cpcwiki.eu/imgs/2/2d/Lower6128_mod-fr.zip)

Now the game(s) that gave you disc missing, retry, ignore, cancel should work.


I did that and it is better, i was able to lauch something  :D


Thanks Duke for your help
Title: Re: Amstrad CPC WiFi
Post by: Audronic on 23:07, 01 February 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

"Quote- Is it possible to copy files from 3" disk to the SD card and viceversa with the CPC?
Yes, but for now only SymbOS supports that. I may add an RSX for it sometime, it would be  very easy.."


If you could do this I am sure that it would be Very helpful.

Thanks       Ray
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 21:14, 02 February 17

I have tested the interface with more games and I have found some incompatibilities
- Titus, The Fox - CPC resets after load the game
- ninjawar - computer hangs.
- Lemmings - After mountains screen "Drive A: disc missing" message is shown.
- R-Type loads, but computer hangs when try to load the level 1.


Finally, I have an additional question, how is possible to change the disk when you are running a multidisk game?

Do you plan to add compatibility with |CPM command?



Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 21:19, 02 February 17

Quote from: wilco2009
quote author=wilco2009 link=topic=11977.msg140901#msg140901 date=1486066494]
Do you plan to add compatibility with |CPM command?
...If you add the CP/M Roms you can enter the OS via |EMS. Works fine
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:15, 02 February 17
Quote from: wilco2009 on 21:14, 02 February 17
I have tested the interface with more games and I have found some incompatibilities
- Titus, The Fox - CPC resets after load the game
- ninjawar - computer hangs.
- Lemmings - After mountains screen "Drive A: disc missing" message is shown.
- R-Type loads, but computer hangs when try to load the level 1.

Hi

All the "disc missing" messages in games are because the game itself reinit the amsdos rom (and only this rom), then the M4 rom stop working and the cpc come back to drive A to read the game... for example all the "xor" cracks and some other cracks (velus, etc), do this thing. I've been changing all the call #BCCE (reinit rom 7) to call #BCCB (reinit all the roms) and the 90% of this games start to work!

Almost all CNGSoft and Abraxas cracks work, for example big games like Turrican I & Turrican II work like a charm (cngsoft), and games like X-out, dragon's lair, etc, i achieved the load of this games changing the calls... Others like Thundercats i've made a custom loader, because all the cracks were based on the original (that reinits rom 7 but a call #BCCB didn't work because the game use problematic memory location) i think that with this modifications and cngsoft,abraxas cracks... about a 90% of the cpc games can run on the M4.

The way to go with the M4 are modified cracks and custon loaders... original games... i think that less than 10% can work without modification (M4 or any other mass storage solution)

The hangs on games are for the same, they use problematic memory, than collide with the M4 ROM, or (like kickoff) they look if any other ROM than AMSDOS is loaded and then stop to work (a little copy protection here), in this case there is need to modify the copy protection, in the case of kickoff (and all the easy copy protections) are easy: if the game turn on the carry flag to say "copy protection not passed, stop work", you only have to not activate the carry flag changing the instruction with a nop  :laugh: , some games are easy, other not (like super skweek 2), because they have a lot of copy protections on the game itself. But as i said... near the 100% of the games have a crack... the way is to use the crack or if the crack do not work, look what's the problem and path the crack itself, another people did the crack job in the past, why would us do another crack from an original game? (unless there is no crack or the crack is buggy), with 2000 - 3000 cpc games!! this will took ages!!! Some copy protection like bleepload, speed lock, hexagon... this protections can write almost on any ram position byte to byte! (reading complex tables and doing an infinite obscure calculations)  crack this games can take months!!!!! (128k's = 128.000 random bytes being write on memory, changing the position, encrypted...), it's just crazy do this job again, other did in the past!!
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 23:44, 02 February 17
Thanks joseman, it is very helpful.  :)


Quote from: HAL 6128 on 21:19, 02 February 17
...If you add the CP/M Roms you can enter the OS via |EMS. Works fine


Thanks HAL, It is very interesting to execute CPM. I will test it.


But what about the games that are using | CPM command to start.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:28, 03 February 17
@Audronic (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1169)
Ok, will add when I get some time.

@wilco2009 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=952)
Did you try to use the modified lowerrom from here (if you use a CPC6128, if you don't, try to set M4 rom to 7 instead 6). http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)   under Various Files
It is not possible to change .dsks while playing a game, in such cases I suggest you copy all the files from both discs if possible into a directory on the M4 and run it from there.
Or create a 796KB (or less) romdos dsk image (in ie. winape disc editor, it's great for this) and copy all the files there.

Yeah I did mean to add the |CPM command to start .dsks.... sometime :)

@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Do you upload the games you fix somewhere, so people can use them?
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 19:12, 03 February 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) Please, don't forget about the corruption of protected files on DSK images that we discussed by email a couple of weeks ago. That's probably preventing quite a few games from loading too.

I also have a few suggestions:

  - I think we can't copy files from a DSK image to a plain directory. Not a great deal as we can always use tools to extract files on our computers, but if there isn't really a real reason for this limitation it'd be nice to have the option to do it from the CPC.

  - Would it be too much work to add an RSX to dump a DSK image to a physical disc? I guess this can be all done on the M4ROM side? If so, I might even give it a go myself if I find the time to do learn some Z80 assembler (my experience with assembler was limited to the x86 and that was many years ago) and research the CPC internals.

  - What about a filesystem navigator on the Control web server? Not only it'd make much easier to navigate through big collections of files and save some typing, but it'd also allow to hot swap DSK images while running a game or application.

And on a related note: do you have any plans on releasing the sources of the M4's side of the firmware? Or at least the essential bare bones parts to provide a start to those interested in using your card to emulate completely different hardware? I was thinking about the possibility of simulating a memory expansion (I think I read on your blog that you don't think it's possible to do this at the same time that you simulate ROMs, but would it be possible if used for this only purpose or still not fast enough?) or even, just for the sake of it, simulating the FDC (on a CPC464). Or, I have to admit that I haven't looked at the datasheet or any other documentation of the ST32F407, but I guess that some of the signals that you made available on the other side of your card could be used to interface with other devices? If yes, that would make your board even more interesting.

Cheers!
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 19:16, 03 February 17
Quote from: wilco2009 on 23:44, 02 February 17
But what about the games that are using | CPM command to start.

I was looking at this myself too. With Duke's sources of the M4ROM (which already have some snippets of code for this, albeit commented out) and the commented disassembly of the AMSDOS ROM that is available online, someone with a little more knowledge of Z80's assembler and the CPC internals could probably get this easily done.

Although I guess that most of this type of games will rely on their own routines for accessing the disc drive directly and won't work anyways?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:09, 03 February 17
Quote from: luismcv on 19:12, 03 February 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) Please, don't forget about the corruption of protected files on DSK images that we discussed by email a couple of weeks ago. That's probably preventing quite a few games from loading too.
Thanks for reminding me, it had slipped my mind completely. Yeah the main issue is I implemented a .bas decryption so basic files saved with ,p paramter is decrypted on the fly (and appropriete flag set in the header) forgetting that binary files can also use this. Ideally I will revert this idea and pass them on as they should. Noted again !.
Quote
  - I think we can't copy files from a DSK image to a plain directory. Not a great deal as we can always use tools to extract files on our computers, but if there isn't really a real reason for this limitation it'd be nice to have the option to do it from the CPC.
I am working on a filecopy RSX to do tape<->disc<->sd, .dsk's should be supported aswell.
Quote
  - Would it be too much work to add an RSX to dump a DSK image to a physical disc? I guess this can be all done on the M4ROM side? If so, I might even give it a go myself if I find the time to do learn some Z80 assembler (my experience with assembler was limited to the x86 and that was many years ago) and research the CPC internals.
Originally it was one of my main plans (TFM kindly provided me with raw FDC disc I/O code for this purpose). When I started to look at it, I realized much more work would be needed on the Z80 side, especially with all the copyprotected discs, I kinda lost the motivation and since no-one was asking for it...
If you want to have a go, it would be great.
Quote
  - What about a filesystem navigator on the Control web server? Not only it'd make much easier to navigate through big collections of files and save some typing, but it'd also allow to hot swap DSK images while running a game or application.
I've talked about this before, I am not that good with javascript for the PC side, if anyone wants to help out, I'll gladly provide whatever functions needed (http requests), but parsing all the stuff in javascript and output it in html for a nice file tree, is not for me :)

Quote
And on a related note: do you have any plans on releasing the sources of the M4's side of the firmware? Or at least the essential bare bones parts to provide a start to those interested in using your card to emulate completely different hardware? I was thinking about the possibility of simulating a memory expansion (I think I read on your blog that you don't think it's possible to do this at the same time that you simulate ROMs, but would it be possible if used for this only purpose or still not fast enough?) or even, just for the sake of it, simulating the FDC (on a CPC464). Or, I have to admit that I haven't looked at the datasheet or any other documentation of the ST32F407, but I guess that some of the signals that you made available on the other side of your card could be used to interface with other devices? If yes, that would make your board even more interesting.
I will not at this time release my core sources, I have a few more projects lined up relying on this, simulating memory expansion is one of them.
For what it is worth, this is what I am working on currently in hardware terms for the cpc:
M4 lite. Same as M4 board, but without WiFi/USB, just romboard and mass storage + 64/128 memory expansion. I am pretty far with this, but having a big issue with the extended RAM, reading is perfect, but for some reason I always get the ram WR going through to the base memory, at first I thouht I wasn't asserting RAMDIS quick enough, but that's not it. I put the scope on, the LA and not found the reason yet. In the process of going through the 464 schematics step by step. If I don't solve that, it'll be canned. Otherwise it was intended as play games/whatever for CPC464/664 at low cost.
M7 Pro. Same as M4 board (with WiFi aswell). But with a lowcost 512KB ram expansion + some bonus, not ordered the prototype PCB for this yet, before I have that part working on M4 lite. So might be canned aswell if I get sick of it ;)

That being said every GPIO on the board is labelled, there's JTAG header and SWDIO, the datasheet is available and you can go right on programming it. And I'll be helpful if any info needed.
As for the extra connector, yes there is quite a few things, there's a serial port, it would be trivial to add a serial interface and use those pins from the CPC, there's a SPI interface aswell (though more tricky) and a bunch of GPIO's available.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 20:32, 03 February 17
Quote from: Duke on 20:09, 03 February 17
M4 lite. Same as M4 board, but without WiFi/USB, just romboard and mass storage + 64/128 memory expansion. I am pretty far with this, but having a big issue with the extended RAM, reading is perfect, but for some reason I always get the ram WR going through to the base memory, at first I thouht I wasn't asserting RAMDIS quick enough, but that's not it. I put the scope on, the LA and not found the reason yet. In the process of going through the 464 schematics step by step. If I don't solve that, it'll be canned. Otherwise it was intended as play games/whatever for CPC464/664 at low cost.
Some reading for you : http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/464-and-ram-extension/msg51890/#msg51890  ;)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 21:05, 03 February 17
Quote from: luismcv on 19:12, 03 February 17
  - I think we can't copy files from a DSK image to a plain directory. Not a great deal as we can always use tools to extract files on our computers, but if there isn't really a real reason for this limitation it'd be nice to have the option to do it from the CPC.
YANCC for M4DOS will support that.
I will release it in a few days.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:32, 03 February 17
Quote from: gerald on 20:32, 03 February 17
Some reading for you : http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/464-and-ram-extension/msg51890/#msg51890 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/464-and-ram-extension/msg51890/#msg51890)  ;)
Huge thanks gerald, I was going nuts about this. Everything looked right, but result didn't make any sense and was starting to tap into the mainboard signals. Something to try tomorrow!
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 11:58, 04 February 17
Quote from: Duke on 10:28, 03 February 17

@wilco2009 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=952)
Did you try to use the modified lowerrom from here (if you use a CPC6128, if you don't, try to set M4 rom to 7 instead 6). http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)   under Various Files
It is not possible to change .dsks while playing a game, in such cases I suggest you copy all the files from both discs if possible into a directory on the M4 and run it from there.
Or create a 796KB (or less) romdos dsk image (in ie. winape disc editor, it's great for this) and copy all the files there.

I have updated the firmware to 2.0 and I have activated the lowerrom and some of the game are working now.

- Titus, The Fox - CPC resets after load the game  - Still not working.
- ninjawar - computer hangs. - Now is working. :)
- Lemmings - After mountains screen "Drive A: disc missing" message is shown. - Now is working :)
- R-Type loads, but computer hangs when try to load the level 1. Still not working.

I was thinking about the possibility to change AMSDOS internally by a M4ROM. If the problem is that the program resets ROM 7, it will solve the problem, isn it?

Quote from: Duke on 10:28, 03 February 17
Yeah I did mean to add the |CPM command to start .dsks.... sometime :)

Nice!.  :)

By other hand, I have checked the CPM in ROM starting it with |EMS. It starts, but it searchs directly the floppy drive.  I think it is because it is using their self floppy disk access routines. Isn't?
will be not possible to use the SD for CPM, in the future?

Quote from: Duke on 10:28, 03 February 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Do you upload the games you fix somewhere, so people can use them?

It will be great. I have tried to search the Hexadecimal string "CD BC CB" with a hexadecimal editor in the "problematic" programs, to try to change it, but I didn't found it in any of them. Probably the programs are compressed or encrypted.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:19, 04 February 17
Quote from: wilco2009 on 11:58, 04 February 17
I was thinking about the possibility to change AMSDOS internally by a M4ROM. If the problem is that the program resets ROM 7, it will solve the problem, isn it?
You could physically remove the AMSDOS rom and put M4 ROM in slot 7, that should work. If it fixes those games I am not sure, there could be other reasons, ie. they still contain raw FDC access. Did you try to search for other cracks of those games?.
Quote
By other hand, I have checked the CPM in ROM starting it with |EMS. It starts, but it searchs directly the floppy drive.  I think it is because it is using their self floppy disk access routines. Isn't?
will be not possible to use the SD for CPM, in the future?
Sounds likely. About CPM, not sure how much work it would be, maybe that |EMS rom could be patched to support M4.

Quote
It will be great. I have tried to search the Hexadecimal string "CD BC CB" with a hexadecimal editor in the "problematic" programs, to try to change it, but I didn't found it in any of them. Probably the programs are compressed or encrypted.
You would have to search for CD CE BC and replace it with CD CB BC, although its not always a good solution if you have many roms in your rom board, game memory may be corrupted.
Also if you use the modified lowerrom there is no reason for this patch.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:25, 04 February 17
Quote from: Duke on 12:19, 04 February 17
You would have to search for CD CE BC and replace it with CD CB BC...

as Duke said, the cpc store the memory locations backwards (little endian notation), this is why you don't find CD BC CE, the correct syntax is CD CE BC
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:31, 04 February 17
Quote from: Duke on 10:28, 03 February 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Do you upload the games you fix somewhere, so people can use them?

yes, when i finish all the games from my list, i will do a zip and upload them
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:40, 04 February 17
Quote from: wilco2009 on 11:58, 04 February 17
- Titus, The Fox - CPC resets after load the game  - Still not working.
- ninjawar - computer hangs. - Now is working. :)
- Lemmings - After mountains screen "Drive A: disc missing" message is shown. - Now is working :)
- R-Type loads, but computer hangs when try to load the level 1. Still not working.

I was thinking about the possibility to change AMSDOS internally by a M4ROM. If the problem is that the program resets ROM 7, it will solve the problem, isn it?

Nice!.  :)

I think that the problem with this games are that they are complex games (titus de fox, lemmings), using possibly all the memory... for example i can't make work any version of Double Dragon I or Double Dragon II (Richard Aplin versions), i think that the problem is that this games use a loader near #A000-#Bxxx, and a simple modification on the amsdos rom, or more than one ROM loaded will prevent this type of games to work...

I'm pretty sure that even replacing amsdos rom with M4 rom, some games will not work, because of this, a little modification on some memory location that the game rely on it will make the game fail...

Is pretty clear that some games will need to reprogram the loader part to be rom/firmware friendly (for example to move the loader part to another location) and no amdos replacement (for mass storage) will work ever without doing this!

P.D. and i'm talking about games cracked, forget the original games to work on any mass storage solution unless a full FDC emulation solution is used, and i suspect that this imply to use the FDC internal cable (or expansion FDC connector) and not only the expansion port! ( @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) correct me if i'm wrong!)
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 14:05, 04 February 17
Quote from: Joseman on 12:40, 04 February 17
P.D. and i'm talking about games cracked, forget the original games to work on any mass storage solution unless a full FDC emulation solution is used, and i suspect that this imply to use the FDC internal cable (or expansion FDC connector) and not only the expansion port! ( @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) correct me if i'm wrong!)

It should be able to emulate the FDC on the expansion port on a CPC464, after all, the DDI-1 connects to it. It won't work on a 664 or 6128 because it'd would conflict with the internal one; you'd need to somehow disable this one first.
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 14:46, 04 February 17
Quote from: Duke on 20:09, 03 February 17
Originally it was one of my main plans (TFM kindly provided me with raw FDC disc I/O code for this purpose). When I started to look at it, I realized much more work would be needed on the Z80 side, especially with all the copyprotected discs, I kinda lost the motivation and since no-one was asking for it...
If you want to have a go, it would be great.
Well, I was thinking about something simpler, just using AMSDOS routines to write to the disc and for standard formats. Although now that I think about it, it might not be that useful as most of these discs' contents can probably just be copied at file level. Anyway, I'll try to find time to do some research about discs formats and copy protections (and if/how DSK files support them) even if it's just out of curiosity and see if I can encourage myself to try to write something.

Quote from: Duke on 20:09, 03 February 17
I've talked about this before, I am not that good with javascript for the PC side, if anyone wants to help out, I'll gladly provide whatever functions needed (http requests), but parsing all the stuff in javascript and output it in html for a nice file tree, is not for me :)
I see. Javascript is not my thing either. But even a simple http call that accepts a path would be useful, at least for hot swapping disc images, and could be easily called with curl or similar from a command line. And if you also add another to list the files and directories, it would allow anyone that feels like it to implement something more elaborate in Javascript, scripting or even some native UI for their favorite OS.

Quote from: Duke on 20:09, 03 February 17
I will not at this time release my core sources, I have a few more projects lined up relying on this,

Fair enough, was just wondering.

Quote from: Duke on 20:09, 03 February 17
For what it is worth, this is what I am working on currently in hardware terms for the cpc:
M4 lite. Same as M4 board, but without WiFi/USB, just romboard and mass storage + 64/128 memory expansion. I am pretty far with this, but having a big issue with the extended RAM, reading is perfect, but for some reason I always get the ram WR going through to the base memory, at first I thouht I wasn't asserting RAMDIS quick enough, but that's not it. I put the scope on, the LA and not found the reason yet. In the process of going through the 464 schematics step by step. If I don't solve that, it'll be canned. Otherwise it was intended as play games/whatever for CPC464/664 at low cost.
Would this memory expansion emulation ported to the original M4? That would be great.


Quote from: Duke on 20:09, 03 February 17
That being said every GPIO on the board is labelled, there's JTAG header and SWDIO, the datasheet is available and you can go right on programming it. And I'll be helpful if any info needed.
As for the extra connector, yes there is quite a few things, there's a serial port, it would be trivial to add a serial interface and use those pins from the CPC, there's a SPI interface aswell (though more tricky) and a bunch of GPIO's available.
Probably too much for me to start from scratch, but if I did:

    - Any risks of causing a catastrophic short between the M4 board and CPC and frying one or the other? Or are all the inputs and outputs current limited?

    - I think I read you put a protected boot loader on the STM that will always update the firmware from the SD card. So it should be almost impossible to end with a totally bricked board? And this same mechanism should be also enough to upload any experimental and alternative firmware, no need to use JTAG or anything else to program the flash?

Thank you very much!
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 14:50, 04 February 17
Quote from: SOS on 21:05, 03 February 17
YANCC for M4DOS will support that.
I will release it in a few days.

I didn't know about your project. Niiice. I used Norton Commander on MSDOS back then, and I still use Midnight Commander for some things on MacOS and Linux.
Title: Re: Amstrad CPC WiFi
Post by: Johnny Olsen on 01:49, 05 February 17
Quote from: Joseman on 22:15, 02 February 17
Hi

All the "disc missing" messages in games are because the game itself reinit the amsdos rom (and only this rom), then the M4 rom stop working and the cpc come back to drive A to read the game... for example all the "xor" cracks and some other cracks (velus, etc), do this thing. I've been changing all the call #BCCE (reinit rom 7) to call #BCCB (reinit all the roms) and the 90% of this games start to work!


Have you tried to patch the jump block and redirect the call &bcce to call &bccb rather than patch a lot of game ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:56, 05 February 17
Quote from: luismcv on 14:46, 04 February 17
Would this memory expansion emulation ported to the original M4? That would be great.
Probably not, I don't have the resources for it with the other stuff going on, and my initial gpio config wasn't ideal, meaning more precious clock cycles to do it.
Quote
Probably too much for me to start from scratch, but if I did:

    - Any risks of causing a catastrophic short between the M4 board and CPC and frying one or the other? Or are all the inputs and outputs current limited?

    - I think I read you put a protected boot loader on the STM that will always update the firmware from the SD card. So it should be almost impossible to end with a totally bricked board? And this same mechanism should be also enough to upload any experimental and alternative firmware, no need to use JTAG or anything else to program the flash?

There should be very little chance of frying anything hardware wise, if some contention is created for very long periods, I dunno. I have crashed it all 1000's of times, all CPC's still alive :)
And yeah the write protected bootloader should make it brick safe and of course you don't need to use jtag or st-link, just place the M4FIRM.BIN file on the microSD.
Though you can get a ST-Link (clone) for a few bucks, it sure beats moving the microSD around when testing :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:45, 05 February 17
And a small update.

M4 Firm V2.0.1 online (use |upgrade command or download from here: http://www.cpcwiki.eu/index.php/M4_Board#Firmware (http://www.cpcwiki.eu/index.php/M4_Board#Firmware)
- Fix (again) for |era and |ren (thanks @SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941)).
- Added |FCP command to copy between microSD and floppies.

|FCP,"src","dest"

Examples to copy all files from a 3" floppy in drive A.
|mkdir,"myfloppy"     <- create a directory (not needed of course)
|cd,"myfloppy"
|fcp,"A:*", "C:"         <- copies all files from A to myfloppy directory. Only wildcard supported is one * for all files.
You can also just copy single files and even change the destname.
|fcp,"A:myfile.bin", "C:myfile.new"

To copy a DSK file contents to floppy A:
|cd,"somedisk.dsk"
|fcp,"*","A:"

Drive B can be used too (untested), tape is not properly supported yet, but single filecopy to/from may work. (Tape is referenced with letter T:).

See screenshots for examples aswell.

Oh and of course to use this, you must have M4 rom below AMSDOS (ie. rom6) and do not enable the modified lowerrom.

Also note that the copy function uses a bit of ram (&8000 to &9AB6).
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 18:16, 05 February 17
 :) :) :)


The new FCP command sounds great!


Thanks again.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 18:42, 05 February 17

...by copying a binary file from a DSK to a real Disc I got a error message after starting the file "Line too long"? (Header transfer problem?)


The tool grows better and better :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:02, 05 February 17
Quote from: HAL 6128 on 18:42, 05 February 17
...by copying a binary file from a DSK to a real Disc I got a error message after starting the file "Line too long"? (Header transfer problem?)


The tool grows better and better :)
Thanks for testing, can you mail me the .dsk so I can check, the ones I tried could boot from floppy afterwards.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 19:35, 05 February 17

It's from the "defence" game (disk.bin).
By the way, since version 2. the game don't start from SD anymore. Weird.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:03, 05 February 17
Quote from: HAL 6128 on 19:35, 05 February 17
It's from the "defence" game (disk.bin).
By the way, since version 2. the game don't start from SD anymore. Weird.
Thanks, just tried and yes... Will investigate :/
You sure the "since version 2" is not a himem problem again? (Freeware defence.dsk v1.02 runs fine from the SD card here).
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:39, 05 February 17

Quote from: Duke on 20:03, 05 February 17
You sure the "since version 2" is not a himem problem again? (Freeware defence.dsk v1.02 runs fine from the SD card here).
hmpff... forgot, yes! :picard2: :picard: :doh:
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 23:43, 05 February 17
Quote from: Duke on 04:56, 05 February 17
Probably not, I don't have the resources for it with the other stuff going on, and my initial gpio config wasn't ideal, meaning more precious clock cycles to do it.

Not sure I understand, aren't all the GPIOs the same? Anyway, this reminds me to ask: what's the mapping between the M4 GPIOs and the CPC expansion port?


Quote from: Duke on 04:56, 05 February 17
Though you can get a ST-Link (clone) for a few bucks, it sure beats moving the microSD around when testing :)

Good point :) I had a look on ebay a definitely worth it.

Thanks once again!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:57, 05 February 17
Quote from: luismcv on 23:43, 05 February 17
Not sure I understand, aren't all the GPIOs the same? Anyway, this reminds me to ask: what's the mapping between the M4 GPIOs and the CPC expansion port?
Pretty much, though there is a few differences. Each GPIO port is mapped into 16 bits (GPIOA, GPIOB, GPIOC, GPIOD, GPIOE etc) and can be read/written in one instruction (ldrh/strh). So the more GPIO ports you have to read/write the more cycles it takes, ie. read A15-A0, read D7-D0 (two ports already) + important control signals like mreq, rd, wr, iorq, romen etc. Then flip bus direction (hi wasted cycles), then drive appropriate signals. Though the Z80 is slowmo compared to the Cortex-M4 you only have a certain amount of nanoseconds to do the important bits (like setting romdis or ramdis, driving datalines). While you can do most instructions in 1 cycle (6.25 ns) on the Cortex, writing GPIOS, addressing memory, doing jumps can take much more(up to 5 cycles). So every instruction counts :)

EDIT: Forgot the 2nd part of your question, if you look at the expansion connector on M4Board you will see labels like PE0,PE1....PD0 etc, those are the GPIO ports of the Cortex (PORT 'X' pin 'Y').
Title: Re: Amstrad CPC WiFi
Post by: SOS on 06:33, 06 February 17
Have i missed something?
What makes the new |wifi-RSX?
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 08:40, 06 February 17
Hi Duke !!! .. I just sent MP for buy one M4 board for me , thx :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:54, 06 February 17
Quote from: SOS on 06:33, 06 February 17
Have i missed something?
What makes the new |wifi-RSX?
|wifi,0 powers off wifi.
|wifi,1 powers it on again.
Title: Re: Amstrad CPC WiFi
Post by: Mrisopure on 21:53, 06 February 17
Hello, hello, I'm interested in an M4 board, Duke, I'll send you an MP to place the order.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:13, 06 February 17

Compability grows: With |DISC command and PDOS1.2 in ROM7 you can enter the |DRIVE command and the GUI of PDOS and you are able to work with it. I have a 3,5 inch disc on B. So I can use 720kByte (also in CP/M with RAMDOS.COM). The |CPM command also works if |DISC is applied before.
Applying the |FCP command you are able to copy files onto or from a real 720kByte (ROMDOS1) disc. I've tested it with another game (Vector) and it works fine.
Nice work!


(Would be great to have a CPM driver, but I assume then the SD card has to be partioned in order to use both possibilities :))
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 23:04, 06 February 17

Just another thought and I didn't dare to try it.
After changing with |CD into a DATA formatted DSK image, I was able to read a sector (sector 0) into RAM from the DSK image.
Is it possible to copy that sector to a real disc after applying the |DISC command?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:30, 06 February 17
Quote from: HAL 6128 on 23:04, 06 February 17
Just another thought and I didn't dare to try it.
After changing with |CD into a DATA formatted DSK image, I was able to read a sector (sector 0) into RAM from the DSK image.
Is it possible to copy that sector to a real disc after applying the |DISC command?
Yes it should be possible. Sector read/writing is supported to the DSK image, but yes it would a |DISC to change to real disc, so probably software to do it is lacking :)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 23:35, 06 February 17
Just tried it and it works :) (and destroyed the directory of my real disc :picard: ).
It is possible to copy a disc image to a real disc. The only thing is, always to switch between |disc (writing) and |sd (reading).
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 21:02, 07 February 17

|REN command is not working or I am doing something bad. It allways return the same error "Error ocurred."


For instance, I have a file in root directory called "NETSET.BAS", I'am trying to rename it with |REN,"NETSET.BAS","NET.BAS" but it allways returns the same error.


It happends for every file that I have tried.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:43, 07 February 17
Quote from: wilco2009 on 21:02, 07 February 17
|REN command is not working or I am doing something bad. It allways return the same error "Error ocurred."


For instance, I have a file in root directory called "NETSET.BAS", I'am trying to rename it with |REN,"NETSET.BAS","NET.BAS" but it allways returns the same error.


It happends for every file that I have tried.
Try |ren,"NET.BAS","NETSET.BAS"            It's "newfilename" , "oldfilename"
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 00:02, 08 February 17
Thanks,  :picard:


I have read the command description a lot of times and I didn't see it.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:25, 08 February 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

in my (almost) day by day work with the wonderful (yes i said it again) M4, i found something strange...

This time is with the simulator game Gunship, i found a cracked version of it, the game can save the pilot achievements and then you can load the pilot other day and continue playing with it...

This crack version uses the firmware to load and save the pilot (i don't know if the original game uses the firmware to do this too, i doubt it), with the M4 you go and save the pilot (you can choose the name of the pilot), the game saves the pilot and the game hangs... ok, you can think that the pilot was not saved but, if you reset the game and load the pilot, the pilot is loaded correctly!! (you know that because  you can use random names for the pilot and when you load, the name that  you chose is there!).

Summarizing, the M4 hangs the game saving a file with firmware, but it loads correctly and the game plays correctly...

If none of the two worked i could think that the game was incompatible with the M4 (for all the things we know), but when the save doesn't work correctly but the load works... mmmm... i suspect on a posible bug on the save method?

i can upload the game and if you want take a look on it?

P.D.: the crack use call #BCCB from the start i didn't change it
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 23:36, 08 February 17
I agree with the joseman opinion. M4 is wonderful. When more I use it, more I like it. :)


By other hand, I have a question. If you try to copy a file form a dsk to a standard folder or viceversa the system gives an error.
It could be very useful to extract files from a dsk.


Do you plan to implement it?


Another suggestion. Will be possible to use wilcards with the |copyf command?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:47, 08 February 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Please upload it, sounds like it is stuck on some flag not toggling as it should.

@wilco2009 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=952)
Yes, I should probably support it, no reason not to do it apart from laziness :)
But soon @SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) releases YANCC with M4 support and that will be possible.
Plus the normal filecopy stuff should be much neater.

.DSK image write ability (apart from sector writing) is on the list too.

There's no wildcard support on |copyf command yet, but may add it.

And thanks both for the props :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 01:45, 09 February 17
Hi again

Here is the game:

http://www.filedropper.com/gunship

*remember to delete the |disc on the .bas loader!

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:41, 09 February 17
Quote from: Joseman on 01:45, 09 February 17
Hi again

Here is the game:

http://www.filedropper.com/gunship (http://www.filedropper.com/gunship)

*remember to delete the |disc on the .bas loader!

Thanks. A quick look and yes, I need to fix a flag for cas out open it seems. Will do it in next firmware.

Quick fix attached  (just removed the flag check at &665 and &673) replace start.bin

Title: Re: Amstrad CPC WiFi
Post by: SOS on 18:43, 11 February 17
Announcement - I uploaded:
- Yet Another Norton-Commander Clone (YANCC) for ACMEDOS + M4DOS  http://www.cpcwiki.eu/forum/applications/yet-another-norton-commander-clone/ (http://www.cpcwiki.eu/forum/applications/yet-another-norton-commander-clone/)
- Filelauncher (ACMEDOS+M4DOS) http://www.cpcwiki.eu/forum/applications/filelauncher-(acmedosm4dos)/msg141282/#msg141282 (http://www.cpcwiki.eu/forum/applications/filelauncher-(acmedosm4dos)/msg141282/#msg141282)
Questions, Diskussions, Errors, Suggestions -> Please go to the separate threads
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 13:16, 12 February 17
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) awesome!  any chance that YANCC could also support the cartridge port SDCARD as well as HxC one at the same time as the others?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 13:55, 12 February 17
Quote from: zhulien on 13:16, 12 February 17
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) awesome!  any chance that YANCC could also support the cartridge port SDCARD as well as HxC one at the same time as the others?
My answer, see the YANCC-thread.
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 18:40, 12 February 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624). Could be possible to add a command to list the RSX commands presents in a ROM?
It could be very userful. Now I have installed ROM Manager in a slot only to know this.
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 19:42, 12 February 17
Hy, still having much fun with the M4, thanks so much for it, it is the best thing after the SF2.
Now i thought that it is time to bring my old Disks to a PC-Archive :)
But i run into a problem:

About the |FCP-Command.

The Command |FCP,"a:*","c:" is working great.
But when i try this with the B: Drive (|FCP,"b:*","c:") it always uses the A:-Drive for the Directory Listing and then tries to find the Files which shown from A: on B: and giving the "error occured" when not finding files from A: on the B:-Drive.
I am usign Verados (Parados Hack for VDOS-Format on B:) with an 720KB Drive on B:
When i copy single Files from B: (eg. |FCP,"b:mario.bin","c:") it is working great :)
Only Masscopy brings this error mentioned above.

Maybe it is not working with Parados? Or i missed that it only works with A:...

Thank you so much!
Tolkin
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:07, 12 February 17
@wilco2009 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=952) sure I'll probably add it soon.

@Tolkin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=81) I probably made a bug with drive B if it displays catalog of A drive when using * copy. Never tested with Drive B, as haven't got one setup. Will fix in next update.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:16, 12 February 17

Quote from: Duke on 23:30, 06 February 17
Yes it should be possible. Sector read/writing is supported to the DSK image, but yes it would a |DISC to change to real disc, so probably software to do it is lacking :)
I was able to make a DSK image dump from SD card to a real floppy, but not vice versa. The sectors keeps empty. Direct writing a sector of a DSK image is not supported, isn't it?

Just asking because you mentioned it above, but your instructions tells "C_WRITESECTOR      0x430C      Not implemented yet"?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:20, 12 February 17
Quote from: HAL 6128 on 22:16, 12 February 17
I was able to make a DSK image dump from SD card to a real floppy, but not vice versa. The sectors keeps empty. Direct writing a sector of a DSK image is not supported, isn't it?

Just asking because you mentioned it above, but your instructions tells "C_WRITESECTOR      0x430C      Not implemented yet"?

It is actually implemented (need to update the manual). How are you testing it?

Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:45, 12 February 17

I have written a small assembler (RSX) code (in ORGAMS) for basic. Just a sector read/write RSX see below and a small BASIC program:
The BASIC lines for copying SD>Floppy are simple, for writing I just changed |SD with |DISC



10 IF PEEK(&9000)=33 THEN 60
20 MEMORY &8FFF
30 LOAD"sector.bin
40 CALL &9000
50 END
55 :
60 CLS
70 |SD
80 FOR i=0 TO 39
90    FOR j=&C1 TO &C9
100       LOCATE 1,1:PRINT "Track:";USING"###";i;:PRINT " Sector:";HEX$(j)
110       |SECREAD,i,j
120       |DISC
130       |SECWRITE,i,j
140       |SD
150    NEXT j
160 NEXT i






      ORG &9000
;constants
kl_log_ext = &BCD1
;initialize RSX
          LD   HL,rsx_buffer
          LD   BC,jump_table
          CALL kl_log_ext
          RET
jump_table
      WORD name_table
          JP   secread
          JP   secwrite
name_table
      BYTE "SECREA","D"+&80
      BYTE "SECWRIT","E"+&80
      BYTE 0
;end of initialize RSX
;sector read RSX
secread
          LD   HL,rsx_error_msg-1
          CP   2        ;received two parameters (Track, Sector)
          JP   NZ,error_msg
          LD   IY,sector_track
          LD   A,(IX+&00) ;low-byte = sector
          LD   (IY+&00),A
          LD   A,(IX+&02) ;low-byte = track
          LD   (IY+&01),A
          LD   HL,read
          CALL action
          RET           ;return to BASIC
;sector write RSX
secwrite
          LD   HL,rsx_error_msg-1
          CP   2        ;received two parameters (Track, Sector)
          JP   NZ,error_msg
          LD   IY,sector_track
          LD   A,(IX+&00) ;low-byte = sector
          LD   (IY+&00),A
          LD   A,(IX+&02) ;low-byte = track
          LD   (IY+&01),A
          LD   HL,write
          CALL action
          RET           ;return to BASIC
;manipulating a sector (hl to be defined read/write)
action
          CALL &BCD4
          RET  NC
          LD   (faradr),HL
          LD   A,C
          LD   (faradr+2),A
          LD   E,0      ;drive A=0/B=1 (fixed 0)
          LD   IY,sector_track
          LD   A,(IY+&00)
          LD   C,A      ;sector number (&cx=data/&4x=system)
          LD   A,(IY+&01)
          LD   D,A      ;track 0-39
          LD   HL,&8D00
          RST  &18
      WORD faradr
          RET
read
      BYTE &84
write
      BYTE &85
faradr
      FILL 3,0
;end of sector read/write routines
;error messages
error_msg
          INC  HL
          LD   A,(HL)
          CALL &BB5A
          CP   0
          JR   NZ,error_msg
          RET
rsx_error_msg
      BYTE "parameter error.",0
sector_track
      FILL 2,0
rsx_buffer
      FILL 4,0

Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:56, 12 February 17
Quote from: HAL 6128 on 22:45, 12 February 17
I have written a small assembler (RSX) code (in ORGAMS) for basic. Just a sector read/write RSX see below and a small BASIC program:
The BASIC lines for copying SD>Floppy are simple, for writing I just changed |SD with |DISC

Thanks, that should work. I will check what is wrong.
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 00:24, 13 February 17
Thanks for the |FCP implementation :) and the Bugfixing!
You do such a great job!
Thank you!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:30, 13 February 17
A quick update to address some of the latest issues, M4 Firmware V2.0.2 beta 1
Download: http://www.spinpoint.org/cpc/M4FIRM_v202b1.zip
(Only M4FIRM.BIN is updated, ESPFIRM.BIN is still v2.0.1)
- Fix carry flag of CAS OUT CHAR @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
- Added tiny |M4HELP @wilco2009 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=952)
- Fix |FCP  when using wildcard on Drive B - I hope :) @Tolkin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=81)
- FIX C_WRITESECTOR for DSK images @HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) (handy dsk read/writer you made there.)

And I have not forgotten the other issues reported, just what I had time for now.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 10:59, 13 February 17
Quote from: Duke on 02:30, 13 February 17
- FIX C_WRITESECTOR for DSK images @HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) (handy dsk read/writer you made there.)
Thanks. It has to be expanded a little bit for full use, but how about implementing that feature in your ROM? :D ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:26, 13 February 17
Quote from: HAL 6128 on 10:59, 13 February 17
Thanks. It has to be expanded a little bit for full use, but how about implementing that feature in your ROM? :D ;D

Yeah, you could have a few options for full automation, like:
Data or System DSK ?
DSK name ?
Then use |copyf,"empty_data.dsk || empty_sys.dsk", $newname.  |cd,$newname . Start reading the disc/writing the DSK image. |cd,".." and loop.

Yeah I ought to implement it some time, for now your method is fine :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:44, 13 February 17
Quote from: Duke on 02:30, 13 February 17
- Fix carry flag of CAS OUT CHAR @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)

Strange... now the game hangs on save and load, the hang is somehow different... with the previous hang the cursor was blinking like hell... now it freezes totally, no save, no load :(



Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:04, 13 February 17
Quote from: Joseman on 13:44, 13 February 17
Strange... now the game hangs on save and load, the hang is somehow different... with the previous hang the cursor was blinking like hell... now it freezes totally, no save, no load :(
Worked fine here when I tested last night. Maybe you have some other roms creating problems?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:32, 13 February 17
Quote from: Duke on 14:04, 13 February 17
Worked fine here when I tested last night. Maybe you have some other roms creating problems?

No, i never use roms, only amdos (7) + M4Rom (6), (i never use the lower patch too)



Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:19, 13 February 17
Quote from: Joseman on 15:32, 13 February 17
No, i never use roms, only amdos (7) + M4Rom (6), (i never use the lower patch too)
Ok strange, it still works fine here :) (no lowerrom either, M4 rom6) - All I did was take disc A from your link and extracted the files to a subfolder and remove the |disc command.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:22, 14 February 17
Quote from: Duke on 16:19, 13 February 17
Ok strange, it still works fine here :) (no lowerrom either, M4 rom6) - All I did was take disc A from your link and extracted the files to a subfolder and remove the |disc command.

Hi again

I removed pilot.bin and then the game save & load correctly, but, if you save and load repeatedly the game will hang sooner or later, i don't know why, perhaps the file is not always correctly saved and then not correctly loaded... but is totally verified that the game hangs
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 23:01, 14 February 17
Hy Duke, this was fast.
I will be tomorrow evening alone with my CPC #late in the night... rooarr....:)#
I will test the |FCP with my B: Drive then and give Feedback.
You do a great job #Respect for this#  ;D

Bye an thank you very much!
Tolkin
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:26, 15 February 17
About Gunship and the save/load hang

I was thinking if the problem was with the game itself, but i've been  trying with the game on floppy, M4 connected, |disc, and the game never hangs.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), one doubt: When you do the |disc with the M4 connected, i presume you replace again the original amsdos routines, but the game do (from the start) a call #BCCB, i presume (again) that the M4rom is loaded and the routines are replaced after that. The game (on floppy and M4 and #BCCB) keeps saving and loding correctly, then the doubt about if the problem is the M4, the M4rom and the lack of memory is ruled out... what do you think?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:39, 15 February 17
Quote from: Joseman on 10:26, 15 February 17
About Gunship and the save/load hang

I was thinking if the problem was with the game itself, but i've been  trying with the game on floppy, M4 connected, |disc, and the game never hangs.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), one doubt: When you do the |disc with the M4 connected, i presume you replace again the original amsdos routines, but the game do (from the start) a call #BCCB, i presume (again) that the M4rom is loaded and the routines are replaced after that. The game (on floppy and M4 and #BCCB) keeps saving and loding correctly, then the doubt about if the problem is the M4, the M4rom and the lack of memory is ruled out... what do you think?
If you run it from disc, with M4 connected and it does a BCCB it should load/save from the microSD, so the pilot.bin would be modified on microSD and not the disc, correct?
I have tried to save/load repeatedly a few times when starting it from M4 and it didn't hang. How do I replicate it?
Maybe you could keep a copy of the corrupted pilot.bin and upload it? which imo. points to a memory conflict (workspace of M4 being compromised)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:47, 15 February 17
Quote from: Duke on 10:39, 15 February 17
If you run it from disc, with M4 connected and it does a BCCB it should load/save from the microSD, so the pilot.bin would be modified on microSD and not the disc, correct?
I have tried to save/load repeatedly a few times when starting it from M4 and it didn't hang. How do I replicate it?
Maybe you could keep a copy of the corrupted pilot.bin and upload it? which imo. points to a memory conflict (workspace of M4 being compromised)

But if i run it from floppy and the game do a #BCCB, then you're right, the M4 should start working again (and the floppy not accessible)... but the directory will be the root because i didn't use the directory of the game on HDD... but the game keeps saving on floppy!, it's clearly using the floppy because the slowness and the head sound... this is really strange... maybe i overlooked something... or i don't understand well what is going on with a call #BCCB and the M4!

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:49, 15 February 17
Quote from: Joseman on 10:47, 15 February 17
But if i run it from floppy and the game do a #BCCB, then you're right, the M4 should start working again (and the floppy not accessible)... but the directory will be the root because i didn't use the directory of the game on HDD... but the game keeps saving on floppy!, it's clearly using the floppy because the slowness and the head sound... this is really strange... maybe i overlooked something... or i don't understand well what is going on with a call #BCCB and the M4!
Or maybe it does a BCCE somewhere? Did you try to put a breakpoint on it?

EDIT: It doesn't do either, quick test in winape and put breakpoint on BCCE and BCCB. So that explains why it keeps reading/writing to disc.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:53, 15 February 17
Quote from: Duke on 10:49, 15 February 17
Or maybe it does a BCCE somewhere? Did you try to put a break point on it?

i think that i searched for it and didn't found any #BCCE, but maybe i didn't look well, but this doesn't make sense since the save/load works on the M4 (not always for me)

Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:30, 15 February 17
Quote from: Joseman on 10:53, 15 February 17
i think that i searched for it and didn't found any #BCCE, but maybe i didn't look well, but this doesn't make sense since the save/load works on the M4 (not always for me)
True, but it also doesn't use BCCB, so that explains it.

And another quick test with WinAPE, fill the memory below AMSDOS worksspace with some random bytes (-128+4 would be M4 rom workspace)... I don't see anything overwriting it when in the load/save dialog, before starting the actual game.
But when I start the game, this gets overwritten. So its using the himem upto AMSDOS workspace.
So if your hangs has to do with entering the game and going back, then load/Save stuff again, this is probably it.
How to fix ? - don't init amsdos and only M4 dos, then you will have no himem conflict.
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 21:28, 15 February 17
Hy Duke,
just checked the |FCP with the B:-Drive-masscopy.
Sorry to say that, but it isn´t working.
With Parados, or without Parados (pure Amsdos) in Rom7, i have no luck.
It still takes the Directory from the A:-Drive and then tries to copy these files, found in a:, from the B:-Drive.
Thanks for help :)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:08, 15 February 17

...I can confirm.


After starting the |FCP,"b:*.*","c:" command (both drives with floppies inserted) drive A had been activated and printed the directory of A, but then the routine is looking those files listed on drive B? and don't find them. Always error are occuring...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:39, 16 February 17
Ok, thanks both for the testing.

Looks like I better dig up a drive B and test the next fix, before releasing it :)
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 02:29, 17 February 17
Quote from: makinavaja on 16:47, 15 January 17
Nice!
Just upgraded my card 5 minutes ago.
By the way, I just discovered that my m4 board works perfectly on my 6128plus computer but not on my 6128, even after cleaning a lot of times the contacts with alcohol, a rubber or an specific contact cleaner liquid: The card is very unstable on my 6128 and freezes or hangs randomly after any command.  Also tested both methods to power up the card: with external usb wire and with internal power.
So, the defective hardware here is my computer. Does anybody know any possible cause for this problem? capacitors? tracks? power supply of the computer? (I use an 2A external power supply!)

Makinavaja


I had identical problems until I polished the connectors of the expansion bus. They were passivated with dark film connector´s cleaning solution was helping but too slow. Polishing yielded shining connectors in a question of minutes and the M4 got to work much more stable...


Help it works for you
Title: Re: Amstrad CPC WiFi
Post by: Duke on 03:49, 17 February 17
Another small update, M4 Firmware V2.0.2 beta 2
Download: http://www.spinpoint.org/cpc/M4FIRM_v202b2.zip
(Only M4FIRM.BIN is updated, ESPFIRM.BIN is still v2.0.1)

- Fix |FCP (again) when using wildcard on Drive B. This time I dusted of an old 3.5" drive and tested it !
- Fix for some .dsk images where multiple file entries aren't ordered (@luismcv). I should have seen that bug long ago.
- New |CD feature. You can now |CD into converted CPR dsk images (http://www.cpcwiki.eu/index.php/Converted_GX4000_Software). Of course only non plus games.
  Not sure if it is of much use. Maybe some people like the patches for joystick/pad only. Most likely the majority of converted games prefer M4 as ROM 7.
  So for good success rate, if using 464/664 or plus, set M4 rom to 7. If using CPC6128 use the modified lowerrom and have M4 in slot 6.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 20:56, 18 February 17
Quote from: Duke on 11:30, 15 February 17
So if your hangs has to do with entering the game and going back, then load/Save stuff again, this is probably it.

No, the game hangs going straight to save/load pilot as soon as the game is loaded.

anyway see my next post... i found one strange thing with the command FCP and symbos (and another bug)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 21:03, 18 February 17
Hi again!

Here one thing that i saw on another copy some days ago, but today with another copy the same...

if you copy with |FCP the size of the files are different than if you copy with symbos!! (at least with symcommander)

to the left with FCP, to the right with symcommander

see:

(http://i63.tinypic.com/swqwqp.jpg)

and another strange thing today copying one game, the files are copied with another extension:

(http://i64.tinypic.com/2mw6mmd.jpg)

what do you think?

Regards!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:27, 19 February 17
Quote from: Joseman on 21:03, 18 February 17
if you copy with |FCP the size of the files are different than if you copy with symbos!! (at least with symcommander)
I am guessing that SymbOS rounds the filesize up to 128 byte alignment rather than using the amsdos header size. Will check later, but I did do tests copying back and forth and comparing the original files and found no differences in size.
Quote
and another strange thing today copying one game, the files are copied with another extension:
Actually it's just how it's displayed, the file extension in AMSDOS is or'ed with flags (ie. read only for your example *). So just cosmetic, will see to parse the filename text output next time.
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 07:48, 19 February 17
Not sure if bug or just my fault, need more testing:


- If changing directory using partial name and "*", then |ls not showing at top with the full name
- Just playing with pacman emulator (with ROMs in dsk file): after !ls cpc6128 got hanged. Next attempt, after resetting I just tried executing without listing first and worked. M4 on ROM6, and no modified lower ROM .
- Playing around with another arcade emulator (I think it was invaders): after !ls the mode was changed and names did not displayed correct, anyway executing was ok.


Just a warning, wanted to know if someone experienced this kind of behaviour  :o

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:32, 19 February 17
Quote from: rcmolina on 07:48, 19 February 17
Not sure if bug or just my fault, need more testing:


- If changing directory using partial name and "*", then |ls not showing at top with the full name
- Just playing with pacman emulator (with ROMs in dsk file): after !ls cpc6128 got hanged. Next attempt, after resetting I just tried executing without listing first and worked. M4 on ROM6, and no modified lower ROM .
- Playing around with another arcade emulator (I think it was invaders): after !ls the mode was changed and names did not displayed correct, anyway executing was ok.


Just a warning, wanted to know if someone experienced this kind of behaviour  :o

Noted.  One thing, |LS command isn't really intended for displaying files within a DSK image, here it would be best to use cat or |dir to have amsdos compatible displaying.
Of course I can add some <am I inside a DSK code> to |ls and re-direct it to the regular dir/cat displaying.
Title: Re: Amstrad CPC WiFi
Post by: luismcv on 21:08, 19 February 17
Quote from: Duke on 03:49, 17 February 17
- Fix for some .dsk images where multiple file entries aren't ordered (@luismcv). I should have seen that bug long ago.

Thanks Duke! I've tried today a few of the images and they work now :)
Title: Re: Amstrad CPC WiFi
Post by: Freakbam on 22:54, 19 February 17
Great hardware, I'm looking forward to trying it
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:45, 19 February 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Here again the annoying guy with bug reporting  :laugh:

This time is with the game Dr. Doom's Revenge (original version)

source: http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=754

if i copy the game (side A is enough) to a directory with |FCP and run the game, the game loads but hangs when is displaying the initial texts

But if i copy the game with Symcommander, the game runs fine!

weird, no?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:57, 19 February 17
Quote from: Joseman on 23:45, 19 February 17
Here again the annoying guy with bug reporting  :laugh:
Always a pleasure :)
Quote
This time is with the game Dr. Doom's Revenge (original version)

source: http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=754 (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=754)

if i copy the game (side A is enough) to a directory with |FCP and run the game, the game loads but hangs when is displaying the initial texts

But if i copy the game with Symcommander, the game runs fine!

weird, no?

Yes, will need to check, to save me some time, can you tell what steps you did, just extracted the .dsk into a directory and then |FCP,"C:*","A:" and then run it from A: ?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 00:06, 20 February 17
Quote from: Duke on 23:57, 19 February 17
can you tell what steps you did, just extracted the .dsk into a directory and then |FCP,"C:*","A:" and then run it from A: ?

i wrote the dsk with CPCDiskXP to a 3,5" floppy, then i inserted it in the cpc,  make a directory on the SD, and copy it with '|fcp,"a:*","c:"'



Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:58, 27 February 17
Quote from: Joseman on 00:06, 20 February 17
i wrote the dsk with CPCDiskXP to a 3,5" floppy, then i inserted it in the cpc,  make a directory on the SD, and copy it with '|fcp,"a:*","c:"'

Thanks, I finally had a bit of energy to look at the issue.

Problem with that game is the basic files are saved with protection (save"blah.xxx",p") and amsdos cas_in_char seems to try and decrypt it when reading it (and the ptr tricks for fast copy messes it up), I managed to fix this issue, so protection is retained.
Other than that regarding filesizes there was non crucial bug, when copying files less than 2KB, one extra byte would be added (doesn't matter as AMSDOS reads the filesize in the header). Anyway that's fixed too.

Now I would like to check the "Chicago" game you posted screenshots from, to verify filesizes are 1:1. Can you link me to the dsk image for it ?
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 18:20, 27 February 17
Hi Duke!!

Thanks for your good work!!

Here is the dsk:
http://s000.tinyupload.com/?file_id=97132846648694753252 (http://s000.tinyupload.com/index.php?file_id=97132846648694753252)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:25, 27 February 17
Thanks again.

Quick test:

27-02-2017  18:23               264 CHICAGO.BAS
27-02-2017  18:23            16.512 CHICAGO1.BIN
27-02-2017  18:23            40.821 CHICAGO2.BIN

So M4 is correct about the filesizes.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:36, 27 February 17
M4 firmware v2.0.2 beta #3, download: http://www.spinpoint.org/cpc/M4FIRM_v202b3.zip (http://www.spinpoint.org/cpc/M4FIRM_v202b3.zip)
(ESP firmware still at v2.0.1).
Only fix of |FCP command with system protected files, removal of excessive byte with file sizes less than 2KB and display filenames with ascii characters only (no or'ed flags).


@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930):   I took a look at the S-DAF program. It does some dirty things with the header, which is why it doesn't work on M4 nor the files it creates.
Try typing load"S-DAF.BAS"  ... it will run the program straight away (!!!), because it overwrites &BC77 (cas_in_close). Quite a cool program btw. But not easy to make a fix for M4.
Title: Amstrad CPC WiFi
Post by: Maniac on 22:42, 27 February 17
Quote from: Duke on 22:36, 27 February 17

@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930):   I took a look at the S-DAF program. It does some dirty things with the header, which is why it doesn't work on M4 nor the files it creates.
Try typing load"S-DAF.BAS"  ... it will run the program straight away (!!!), because it overwrites &BC77 (cas_in_close). Quite a cool program btw. But not easy to make a fix for M4.

Thanks for taking a look @Duke - I thought it probably didn't something funny to do what it does! I'll try out your tip but I guess anything I created with it will still have to run via my HxC. If it's a lot of work and no one else is using it it just isn't worth your time and effort. But thank you anyway.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:06, 27 February 17
Quote from: Maniac on 22:42, 27 February 17
Thanks for taking a look @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) - I thought it probably didn't something funny to do what it does! I'll try out your tip but I guess anything I created with it will still have to run via my HxC. If it's a lot of work and no one else is using it it just isn't worth your time and effort. But thank you anyway.
No problem, maybe I will re-visit it later. I am quite intrigued by the load (and autorun) trick, never seen that on CPC before, just giving it a few rounds in WinApe before I call it a day :)
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 17:49, 05 March 17
Hi Duke !!! this is an offtopic:

it's about this hardware:

http://alabs.tech/usbtopia-item.html

it's an adaptor for USB joysticks on MSX  .. Could be possible this .. with some addon or firmware update with your M4 Board .. ? thx  :-X
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:58, 05 March 17
It should be possible to connect a usb mouse/keyboard to the usb socket, if I wrote drivers for it. Power would need to be reversed to the usb port with a 3 "legged" jumper or using a powered usb hub.
I actually did buy some mini usb->usb A converters sometime ago, to try it out, just haven't got around to it. Maybe some time.

Quote from: XeNoMoRPH on 17:49, 05 March 17
Hi Duke !!! this is an offtopic:

it's about this hardware:

http://alabs.tech/usbtopia-item.html (http://alabs.tech/usbtopia-item.html)

it's an adaptor for USB joysticks on MSX  .. Could be possible this .. with some addon or firmware update with your M4 Board .. ? thx  :-X
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 19:05, 05 March 17
Quote from: Duke on 17:58, 05 March 17
It should be possible to connect a usb mouse/keyboard to the usb socket, if I wrote drivers for it. Power would need to be reversed to the usb port with a 3 "legged" jumper or using a powered usb hub.
I actually did buy some mini usb->usb A converters sometime ago, to try it out, just haven't got around to it. Maybe some time.

Awesome !!! ... waiting for that , thx :)
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 21:13, 05 March 17
Hy Duke,
this weekend i had time to copy my disks to the SD-Card, unsing FCP.
Then i have to ckeck the loaders of the Programs, because i have to change a few things, because the Discs where Vortex Format, and there where |CAS and |Select für |Tape and |User... (but thats not the point here...)
I try loading a few Programs on the SD-Card i copied with |FCP from B-Drive to the SD-Card. On nearly all Files i have errors and failures. (Program crashes, Pictures are a Mess and so on.) But not on the Original disk, where the Files come from.
The next check was, i copy disks, which give me corrupt files on the SD-Card, on another Disk using CP/Ms NSweep (All Disks have no copy protected Files i try to transfer). And on the new copy everything is loading fine as on the Source Disk.

I think there is still a problem with the Mass Copy :(

Does other People have such Problems with the |FCP Copy or is it just a Problem with my "Charma" or "Spirit", then i will call a Priest.  :P

Thanks so much for help

Tolkin
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:13, 05 March 17
@Tolkin (http://www.cpcwiki.eu/forum/index.php?action=profile;u=81), can you upload or email me the files in question, so I can take a look ?
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 00:20, 06 March 17
Hello, no Problem, here is one Copied Disc.
In Aliens you see a half "Loading Screen" and in Game the Ripley Picture is not shown.
Hope this help.
Thanks so much
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:56, 06 March 17
Quote from: Tolkin on 00:20, 06 March 17
In Aliens you see a half "Loading Screen" and in Game the Ripley Picture is not shown.

Thanks. A quick test shows the file integrity is fine. Just dragged the files on a DSK in winape, aliens loading screen is fine, game looks fine.
So probably it's another issue (ie. himem). Probably if you use modified lower rom, problem will disappear. I will test later. It's not a |FCP problem.

EDIT: tested it on M4, and it runs fine for me (even without modified lowerrom). However it does put the loader high in memory, so if you have other roms enabled, that may cause an issue. I assume these files were copied with |FCP ?
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 21:40, 06 March 17
Hy Duke,
thanks for reply.
So i need a Priest right now! Anyone? }:)
Iam not at home this week, but i will check next weekend.
Thank you
Tolkin
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 22:47, 06 March 17
If there is another batch in preparation, I'm really interested in one  ;)
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 18:31, 07 March 17
Yeah .. i'm now testing my new M4 Board .... i have a question ... it's possible to LOAD a .CDT file ? , like a Real CPC ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:40, 07 March 17
Quote from: XeNoMoRPH on 18:31, 07 March 17
Yeah .. i'm now testing my new M4 Board .... i have a question ... it's possible to LOAD a .CDT file ? , like a Real CPC ?

It's not possible to use .CDT or tape files from M4. Also I don't think it will be easily possible, well yes for plain file loading games, patching the firmware should be OK, but I guess most tape loaders use direct access to the I/O.

@AxelStone (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2105): M4 is in production still as you know, but I seem to be always hopelessly behind. And when I finally catch up, I run out of something that takes longer than expected to arrive.
Title: Re: Amstrad CPC WiFi
Post by: cosa_nostra-6128 on 20:08, 07 March 17

I have tried loading the r type new version and it does not load when being protected .... is there any way to load it with the M4? If it can not, will it be possible in the future with some hardware update? Thank you
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:53, 08 March 17
Quote from: cosa_nostra-6128 on 20:08, 07 March 17
I have tried loading the r type new version and it does not load when being protected .... is there any way to load it with the M4? If it can not, will it be possible in the future with some hardware update? Thank you

A quick look, and it's using custom FDC loading. It is not going to work with a hardware update, only way is if the game was patched to firmware sector reading.
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 11:57, 08 March 17
Any game which has a custom FDC handler can be overcome with a patch to AMSDOS, but even then if the game's FDC Handler itself directly access the hardware then no amount of effort short of hardware will overcome that scenario.

If the former is possible, then there is the issue of RAM usage as that may become corrupt for the re-directed handler.

All of which which makes it complicated to handle games with special FDC requirements.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: keith56 on 12:15, 08 March 17
Quote from: Duke on 05:53, 08 March 17
A quick look, and it's using custom FDC loading. It is not going to work with a hardware update, only way is if the game was patched to firmware sector reading.

Back when I was looking for disk routines, user 'fano' gave a source which he said was the one used to direct read the disk in R-type - maybe this will help work out how to patch the game?

http://www.cpcwiki.eu/forum/programming/what-is-the-lowest-memory-method-of-reading-from-disk/
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 17:53, 08 March 17
Hi !!! , My M4 Board has been working good until now .. The CPC is reset continuously , I have cleaned the connectors, but I have not solved anything ...  ???
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:23, 08 March 17
Quote from: XeNoMoRPH on 17:53, 08 March 17
Hi !!! , My M4 Board has been working good until now .. The CPC is reset continuously , I have cleaned the connectors, but I have not solved anything ...  ???

Try remove the mircroSD card and see if it then works.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 18:31, 08 March 17
Quote from: Duke on 18:23, 08 March 17
Try remove the mircroSD card and see if it then works.

LoL .. removing miscroSD .. M4 Board Boot again  :o

But when insert microSD and Switch ON CPC .. The CPC is reset continuously
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:33, 08 March 17
Quote from: XeNoMoRPH on 18:31, 08 March 17
LoL .. removing miscroSD .. M4 Board Boot again  :o

Good, now insert the microSD to a PC and delete the files romslots.bin and romconfig.bin from m4 directory. Most likely you uploaded a ROM to slot 0 (replacing basic) or altered another setting in the romconfig (like lowerrom replacement).
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 18:36, 08 March 17
Quote from: Duke on 18:33, 08 March 17
Good, now insert the microSD to a PC and delete the files romslots.bin and romconfig.bin from m4 directory. Most likely you uploaded a ROM to slot 0 (replacing basic) or altered another setting in the romconfig (like lowerrom replacement).

That's the problem !!! .. now boot again .. ok Thx for support :)
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 14:59, 09 March 17
Hi Again .. i just downloaded some ROM games from here: http://www.cpcwiki.eu/index.php/ROM_List (http://www.cpcwiki.eu/index.php/ROM_List) , and upload to M4 Rom Slots ... by example:

Arkanoid ROM (http://www.cpcwiki.eu/imgs/6/66/Arkanoid.rom) - Launch from ROM with |ARKANOID , but ... game not boot ... Unknown Command error ..  :doh:

(http://bkn.byethost16.com/captura1.png?i=1)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:20, 09 March 17
Quote from: XeNoMoRPH on 14:59, 09 March 17
Hi Again .. i just downloaded some ROM games from here: http://www.cpcwiki.eu/index.php/ROM_List (http://www.cpcwiki.eu/index.php/ROM_List) , and upload to M4 Rom Slots ... by example:

Arkanoid ROM (http://www.cpcwiki.eu/imgs/6/66/Arkanoid.rom) - Launch from ROM with |ARKANOID , but ... game not boot ... Unknown Command error ..  :doh:

(http://bkn.byethost16.com/captura1.png?i=1)
Sounds like the ROM is not initialized. On CPC464, normally only roms 0-7 are initialized and CPC664/6128 roms 0-15, so if you used a rom slot outside that area it wont be initialized, unless you use booster rom or FW316 (lowerrom replacement).
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 17:36, 09 March 17
But Arkanoid it's on Slot 8 and LightForce it's on Slot 6 & 7
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:03, 09 March 17
Quote from: XeNoMoRPH on 17:36, 09 March 17
But Arkanoid it's on Slot 8 and LightForce it's on Slot 6 & 7
Show a screenshot from you rom settings and what machine are you using?  Overwriting rom 7 may be a bad idea...

EDIT: Just tried arkanoid rom and it works perfectly here on a CPC6128. See romconfig.[attachimg=1]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:04, 09 March 17
The basics of how to use ROMS on CPC and config with M4.

CPC464:
Rom slot 0:   -- This is occuppied by BASIC ROM internally in the CPC, it CAN be replaced with the romboard, but it must be with another BASIC rom!
Rom slots 1-7: -- Free to use
Rom slots 7-31: -- are NOT initialized by the standard system. Use a modified lowerrom (FW316) or booster rom (uploading in a slot below 8 ) to initialize these roms at startup.

It is highly recommended that you put M4 rom in slot 7, this will give you best possible compatiblity with games

CPC664/CPC464+/CPC6128+:
Rom slot 0:   -- This is occuppied by BASIC ROM internally in the CPC, it CAN be replaced with the romboard, but it must be with another BASIC rom!
Rom slots 1-6: -- Free to use
Rom slot 7:  -- Occupied by AMSDOS disc rom internally in the CPC, it CAN be overwritten with ie. parados or other disc rom, if access to disc drive is still wanted.
Rom slots 8-15: -- Free to use
Rom slots 16-31: -- are NOT initialized by the standard system. Use a modified lowerrom (FW316) or booster rom (uploading in a slot below 8 ) to initialize these roms at startup.

It is possible to set M4 rom to 7 for best compatiblity, however you loose simulataneos disc drive & sd card access, if you wish to keep both M4 and disc drive, set M4 rom to 6.

CPC6128:
Rom slot 0:   -- This is occuppied by BASIC ROM internally in the CPC, it CAN be replaced with romboard, but it must be with another BASIC rom!
Rom slots 1-6: -- Free to use
Rom slot 7:  -- Occupied by AMSDOS disc rom internally in the CPC, it CANNOT be overwritten on most CPC6128, with the exception of MC20C (iirc) motherboard. Do not use!
Rom slots 8-15: -- Free to use
Rom slots 16-31: -- are NOT initialized by the standard system. Use a modified lowerrom (FW316) or booster rom (uploading in a slot below 15 ) to initialize these roms at startup.

It's recommended to set M4 rom to 6.

------------
M4 Rom slot:
As for uploading a rom in same slot as M4 rom is set to, it's possible, but it will only be active, if you type |M4ROMOFF.

Lowerrom:
If "Lower-rom enabled", you must upload a lower rom to the corresponding slot or machine will reset/crash whatever.
It is recommended to use ie. slot 31 for lowerrom replacement, because if you decide to disable it, the slot will not be initialized in a normal system config (and lowerrom should not be initialized like a normal rom == crash).

If using a CPC6128 and having problems with game compatiblity it is recommend to use the modified lowerrom for M4 and put M4 rom in slot 6. Get modified lowerrom here: http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)
For other machines, simply set M4 rom to slot 7, if you want to use disc drive type |M4ROMOFF

Upgrading Basic v1.0 on CPC464 to Basic V1.1:
Both basic and lowerrom must be replaced or it will not work, download ie. the roms for CPC6128 from here: http://www.cpcwiki.eu/index.php/ROM_List
Upload OS rom to ie. slot 31 and tick "Enable lower-rom" and set it to slot 31.
Upload BASIC 1.1 rom to slot 0.

Hope it makes sense.
Title: Re: Amstrad CPC WiFi
Post by: Glook on 09:42, 10 March 17
perhaps wrong section...


i'm just finalized a 3d printed box for the M4 (greaaaaaaaaaaaaaaaaaaat cartridge !!! thanks Duke)

(https://s10.postimg.org/gsp77x5t5/IMG_20170310_080033_2.jpg)


(https://s10.postimg.org/ompstbdm1/IMG_20170310_085042.jpg)


(https://s10.postimg.org/w3z08j355/IMG_20170310_085103.jpg)


if you want the .stl : here they are !
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 11:48, 10 March 17
Really nice!


Thank you for sharing the stl files!
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 14:16, 10 March 17
...in order to reset the M4 would it possible to have a small cut out over the reset button (fingersize)?
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 20:10, 10 March 17
Thx for Sharing that printed box  :o
Title: Re: Amstrad CPC WiFi
Post by: Glook on 08:00, 11 March 17
Quote from: HAL 6128 on 14:16, 10 March 17
...in order to reset the M4 would it possible to have a small cut out over the reset button (fingersize)?
you can cut a "fingersize cut out" but it will be very badass look  ;)

i have included a v2 with a Reset Button (and minors improvements) printed in red pla, it's very smart !

(https://s1.postimg.org/49k15b71r/IMG_20170311_080136.jpg)


enjoy !
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 11:16, 11 March 17
I'm going to print this second version  :D
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 11:34, 11 March 17
Quote from: Glook on 08:00, 11 March 17
you can cut a "fingersize cut out" but it will be very badass look  ;)

i have included a v2 with a Reset Button (and minors improvements) printed in red pla, it's very smart !


enjoy !


Very nice box!


Can we get a photo from the side,  attached to the CPC?  Just to know if the card is still on air or rest on the table!
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 13:02, 11 March 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624),


I have managed today to upgrade to 2.01 firmware and tried to test the IFCP command. I noticed the following behavior :


My 6128 allows me to set M4 ROM in slot 7. With this configuration, when using IFCP command, I get a "Press PLAY then any key" message and copy does not start.
I tried to change the M4 ROM to slot 6 (without any modified lower rom) and IFCP works as expected.


Is there any way for IFCP to work with M4 ROM set to 7?


Many thanks for the great work you are doing for all CPC users!


Takis
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:36, 11 March 17
Quote from: Takis Kalatzis on 13:02, 11 March 17
My 6128 allows me to set M4 ROM in slot 7. With this configuration, when using IFCP command, I get a "Press PLAY then any key" message and copy does not start.
I tried to change the M4 ROM to slot 6 (without any modified lower rom) and IFCP works as expected.


Is there any way for IFCP to work with M4 ROM set to 7?
You could try to upload AMSDOS to ROM 8, it may work. Can't remember if I hardcoded the disc rom number or not :)
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 17:04, 11 March 17
Tested with AMSDOS in slot 8 and it works! Thanks, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)!


Should I permanently leave AMSDOS in slot 8 or put it only when I want to use IFCP command?


Takis
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:08, 11 March 17
Quote from: Takis Kalatzis on 17:04, 11 March 17
Tested with AMSDOS in slot 8 and it works! Thanks, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)!


Should I permanently leave AMSDOS in slot 8 or put it only when I want to use IFCP command?
Good. I think it should work well, maybe in some cases you need more himen, then you can switch it off.
Title: Re: Amstrad CPC WiFi
Post by: Tolkin on 20:50, 12 March 17
Hy Duke,
i want to leave my feedback on using |FCP when using B: Drive with Vortex Format.
I tried it this weekend and checked the Files again.
The Files are still ok and when i copy then back to Floppy they work as the Orginal Files.
So i think it is working fine.

So now i can start bringing my Vortex Floppys to the SD Card :)

The only thing i have to check on the Disk is, that the Files are not hide (like SystemFiles) or in another User-Area. But it is not a problem.
Before i start copying i use Parados for unhide the Files. I have not tested it with the User but it is no problem to bring all Files to User 0.

thanks for your cool Tool, your perfect Support and angagement :)

Thank you Duke!
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 13:45, 13 March 17
Hi Again , i have now a question about to power M4 Board ... i have M4 Board powered directly from the CPC ... This is safe for my CPC6128 .. ? thx
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:25, 13 March 17
Quote from: XeNoMoRPH on 13:45, 13 March 17
Hi Again , i have now a question about to power M4 Board ... i have M4 Board powered directly from the CPC ... This is safe for my CPC6128 .. ? thx

I assume you mean using a CTM644 monitor? - Sure no problem. I have mainly used a CTM644 and also a 5V 2A psu. But of course if you have other expansions also, it may be a good idea to use a bigger PSU (ie. 5V 3A).
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 16:57, 13 March 17
Quote from: Duke on 16:25, 13 March 17
I assume you mean using a CTM644 monitor? - Sure no problem. I have mainly used a CTM644 and also a 5V 2A psu. But of course if you have other expansions also, it may be a good idea to use a bigger PSU (ie. 5V 3A).

i don't have monitor .. my CPC it's connect to a TV CRT Sony Trinitron 14" , with this power supply , http://retrocables.es/tienda/index.php?id_product=168&controller=product&id_lang=4 (http://retrocables.es/tienda/index.php?id_product=168&controller=product&id_lang=4)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:07, 14 March 17

M4 Firmware v2.0.2 Release version, download here: http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)  or use |UPGRADE (if you haven't used v2.0.2 betas).

Changes since last beta:
Another fix for |FCP when copying protected files (thanks Phillipe for reporting and sending the dsk image)
Added SNA support, use |SNA,"filename.sna"

About SNA support, big thanks goes to Arkos for sharing the SNarkos source, from where I lifted Grim's routines to setup GA/CRTC/AY. Thanks !
For now it only supports snapshots up to 128KB, no plus features are or FDC code is setup.
Like SNarkos, 16 bytes of RAM is used to run the snapshots (0xFFF0).

Other than using the basic |SNA rsx, you can also use the Web interface remote run to start a snapshot, or CPC Xfer tool from a PC (http://cpcwiki.eu/index.php/CPC_M4_xfer_tool (http://cpcwiki.eu/index.php/CPC_M4_xfer_tool)), in similar way as files are executed now: xfer -x <cpcip> /mysnapshot.sna


Github repo with M4 rom source updated too, if anyone feels like adding more stuff to the SNA loader, feel free ;)
https://github.com/M4Duke/m4rom (https://github.com/M4Duke/m4rom)

EDIT: Forgot to mention, only SNA images without compression supported, so disable this option in WinApe etc (if others even support this), when making a snapshot.
Title: Re: Amstrad CPC WiFi
Post by: tpenalver on 07:49, 15 March 17
Great!!!!    :o :o :o :o :o :o
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 08:25, 15 March 17
Updating.. thx :)
Title: Re: Amstrad CPC WiFi
Post by: krusty_benediction on 09:23, 15 March 17
Hello,

I'm following the evolution of this card which seems more and more interesting and could replace the multicard combo (cpc/mini)booster/ramcard(or anything like that)/albiero storage with only one card.

booster cards allow to communicate with a PC by sending and reading streams of bytes: so it is possible to send data from CPC to PC if AFT is launched.
Amstrad CPC wifi allows to do HTTP get requests to retrieve files from any web server. However the communication is only in this direction.
- Is it technically possible (I have not seen that in the documentation) to do more complex HTTP requests (i.e. with forms) in order to be able to send data from the CPC to elsewhere ?
- Or is it technically possible to use booster compatible protocols except that the communication is done over ip instead of over serial port ?

I guess (or I hope ;) ) that all the next big CPC demos will all use musical trackloading (of course by directly addressing the FDC without using the firmware). So such demo will not be able to use DSK stored on the SD card of the card.
(Some issues exist for any old software that does the same thing).
Is it technically possible (or the hardware of the card does not allows that) to have an FDC emulator inside the card able to manipulate the DSK ? Using these programs on the cards instead of the real FDC would only consists in changing the communication port. I guess answer is know, but I lost nothing to ask ;)

The documentation states IP address should be static to speed up availability of the card. How long is it by doing DHCP ? Does the connection has to be done after each reset ?

Anyway, @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), good job for that.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:55, 15 March 17
Quote from: krusty_benediction on 09:23, 15 March 17

booster cards allow to communicate with a PC by sending and reading streams of bytes: so it is possible to send data from CPC to PC if AFT is launched.
Amstrad CPC wifi allows to do HTTP get requests to retrieve files from any web server. However the communication is only in this direction.
- Is it technically possible (I have not seen that in the documentation) to do more complex HTTP requests (i.e. with forms) in order to be able to send data from the CPC to elsewhere ?
- Or is it technically possible to use booster compatible protocols except that the communication is done over ip instead of over serial port ?

There's pretty much a full tcp/ip implementation that can be used via a socket's like api, examples on how to use it here:
https://github.com/M4Duke/M4examples
Prodatron already wrote a full network driver for SymbOS, making IRC and WGET possible.
It's trivial to write whatever http requests wanted using those or just direct tcp transfer, this completely bypasses the build in webserver.  I guess it's possible to make a booster like protocol, except M4 works in a different way, as response data is stored directly in the M4 ROM (which is really RAM) and not fetched using IN instructions, but you have to switch to M4 rom and ldir it to wherever its needed.
Quote
I guess (or I hope ;) ) that all the next big CPC demos will all use musical trackloading (of course by directly addressing the FDC without using the firmware). So such demo will not be able to use DSK stored on the SD card of the card.
(Some issues exist for any old software that does the same thing).
Is it technically possible (or the hardware of the card does not allows that) to have an FDC emulator inside the card able to manipulate the DSK ? Using these programs on the cards instead of the real FDC would only consists in changing the communication port. I guess answer is know, but I lost nothing to ask ;)
Technically it should be possible to use some other ports and emulate the FDC, infact the gotek drives use a weaker cortex MCU. If I could make it run along side the other things it's doing, I don't know, I don't know much about the FDC, but I think its possible.
Quote
The documentation states IP address should be static to speed up availability of the card. How long is it by doing DHCP ? Does the connection has to be done after each reset ?
I think the DHCP request depends on the Router too, its not that slow, probably a couple of seconds, but with manual IP its basically ready instantly.

Something else a side, I still have 64KB of available RAM on the MCU side, which I am thinking about how to make best use of.
In the current hardware I cannot do RAM emulation along with the other things, however one thing I was thinking about was making 4 dynamic roms, where you can write data using out commands (so writes will be slower) and read as a regular rom.
Or maybe I just save it for now until a good idea pops up :)
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 10:22, 15 March 17
Are you able to implement Multiface style functionality, controlled by the web interface?

Poke addresses into RAM, save memory contents to SD etc...

*dreams*
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:41, 15 March 17
Quote from: Skunkfish on 10:22, 15 March 17
Are you able to implement Multiface style functionality, controlled by the web interface?

Poke addresses into RAM, save memory contents to SD etc...

*dreams*
It's a possibility, switch mode via webinterface, trigger NMI and map part of the RAM with needed bootstrap code. But also sounds like a bit work and I am feeling lazy ;) ...
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 10:47, 15 March 17
I will personally put up a Bounty to inspire you to add this functionality....

Once complete I will send you one of the below:







[attachimg=1]
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 11:59, 15 March 17
What is needed for proper ram expansion emulator? Connect RAMDIS? bigger ram onboard? can the test pins be used to attach something and upgrade these V1.0 boards to whatever you change in a V2.0 for ram expansion?  :o


Yes, my vote is for ram expansion. SymbOS is asking for more. Also will be with future software!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:35, 15 March 17
Quote from: KaosOverride on 11:59, 15 March 17
What is needed for proper ram expansion emulator? Connect RAMDIS? bigger ram onboard? can the test pins be used to attach something and upgrade these V1.0 boards to whatever you change in a V2.0 for ram expansion?  :o
RAMDIS is connected, but the way I setup the GPIO's in current M4 board layout, there is no way I can maintain everything at once at the required speed. Second problem is 464/664's where a MREQ hack is required to avoid writing through to mainram, requiring very short ns response time, which would require some xtra logic to do it. Third not enough ram in the MCU (I could maybe provide 96KB with some hacking around).
So in short its not gonna happen with current hw :/
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 12:39, 15 March 17
One alternative can be a config param to split the ram for ROM emulation, so to enable 256kb of ram, the ROM slots are reduced to 16?


Also the 6128 special banking that is made with a PAL, has to be hacked at 464/664 bus...  :-X
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:46, 15 March 17
Quote from: KaosOverride on 12:39, 15 March 17
One alternative can be a config param to split the ram for ROM emulation, so to enable 256kb of ram, the ROM slots are reduced to 16?
Unfortunately the ROM emulation (with exception of the M4 rom) is using FLASHRAM, so it cannot be used as RAM.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 12:59, 15 March 17
Oh, game over :D
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 14:14, 16 March 17
(http://dumpfm.s3.amazonaws.com/images/20140711/1405099658581-dumpfm-BirdRaymond-poster01.jpg)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 19:04, 16 March 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I'd like to suggest including |HELP like command if there is enough room in M4 ROM. I think it is not much code. Thanks in advance.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:08, 16 March 17
It got an !M4HELP  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:29, 16 March 17
Quote from: MiguelSky on 19:04, 16 March 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I'd like to suggest including |HELP like command if there is enough room in M4 ROM. I think it is not much code. Thanks in advance.

I suspect you mean like the maxam/utopia |help  (displays all roms), |help,romnum (displays rsx commands for given rom) ?

Sure I can add it, maybe next time around.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 19:31, 16 March 17
Ah! I haven't realized it. It's new in last version but it seems only to work with M4 ROM. There is no description in the manual... Yes, this kind of RSX but with parameter to show other ROMs. Thanks, Duke :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:46, 16 March 17
Btw. noone used the |SNA rsx yet ? :)

-It's quite cool, if you have a game or demo that for some reason wont run on M4, you can load it up an emulator and make a snapshot and load it on M4.
I finally got to re-see NWC's unique demo using this method, I tried to use the buildin image-writer several times on the real machine to make the floppies, but it would always complain about some read error and abort (my 3" discs suck!).
Now I could load it in WinApe and do a snapshot of the parts I wanted to see on the real machine.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 21:05, 16 March 17
Quote from: Duke on 19:46, 16 March 17
Btw. noone used the |SNA rsx yet ? :)

-It's quite cool, if you have a game or demo that for some reason wont run on M4, you can load it up an emulator and make a snapshot and load it on M4.
I finally got to re-see NWC's unique demo using this method, I tried to use the buildin image-writer several times on the real machine to make the floppies, but it would always complain about some read error and abort (my 3" discs suck!).
Now I could load it in WinApe and do a snapshot of the parts I wanted to see on the real machine.

(http://bkn.byethost16.com/imagen/cap1.png)
(http://bkn.byethost16.com/imagen/cap2.png)

Unknown command .. ?  :-X
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:11, 16 March 17
Quote from: XeNoMoRPH on 21:05, 16 March 17
(http://bkn.byethost16.com/imagen/cap1.png)
(http://bkn.byethost16.com/imagen/cap2.png)

Unknown command .. ?  :-X
Download latest firmware from here: http://www.spinpoint.org/cpc/M4FIRM_v202.zip
Unpack the files to root of SD card.

You cannot use |upgrade to get the real v2.0.2 if you used the betas.. The server just checks the version number, therefore when using beta's you need to manually put them on the microSD card.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 21:17, 16 March 17
Sorry . now |SNA rsx works .. but in this case SNA from R-Type Remake 128 , Doesn't work. 

EDIT : if i take SNAPSHOT in game .. i can play then with M4 Board .. but when game access disk to finish or start to load another level crash hehe
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:42, 16 March 17
Quote from: XeNoMoRPH on 21:17, 16 March 17
EDIT : if i take SNAPSHOT in game .. i can play then with M4 Board .. but when game access disk to finish or start to load another level crash hehe
Yes that's the downside, you only get a instant grab of whats going on right now, if it later does reloading from disc or tape it will fail.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:33, 16 March 17
Quote from: Duke on 19:46, 16 March 17
Btw. noone used the |SNA rsx yet ? :)

I'm working this days on 2 games to bring them to the M4 / Mass storages, soon more news i hope.
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 00:06, 17 March 17
Hi @duke


I attempted to do an |upgrade last night on my m4 (was running 1.0.1 i believe) and it appeared to work correctly. It returned that it upgraded to 2.0.2 and said that I needed to reboot the m4 which I did using the reset button on the m4 card.

After that, the m4 blue & red lights stayed lit and the CPC did not boot.
So I put the SD card in my PC and removed the romslot files & tried again. So no luck.
Next step was to manually put the firmware in the root of the card and this time I was the WIFI led on briefly (I assume loading its firmware?) but still both Red & Blue leds stay on.
Any other steps I should try to get it back up and running?




Optic.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:16, 17 March 17
Quote from: opticpow on 00:06, 17 March 17
Next step was to manually put the firmware in the root of the card and this time I was the WIFI led on briefly (I assume loading its firmware?) but still both Red & Blue leds stay on.
Any other steps I should try to get it back up and running?
Sounds like it should with latest upgrade. You should let it run for a while and finally only blue led should light up, then its done and ready.

If this fails, try to use this upgrade: www.spinpoint.org/cpc/m4diag2.zip    Unpack to root and powercycle the CPC.

Does it work afterwards, do an |upgrade, if it fails send or paste the report.txt file contents created in root of the microSD
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 01:10, 17 March 17
Great! SNA loader is a big new feature. I remember when starting with capriceGP2x it was the only way to load games until I finished the disk and tape loader, and the virtual keyboard.


Some SNA packs where done. Also for the SymbOS SNA loader. Time to rescue them!
Title: Re: Amstrad CPC WiFi
Post by: tpenalver on 13:38, 17 March 17

Hi,



Thank you very much for your work, Duke !!!


Why can it be that some directories of the SD are displayed erroneously inside the cpc but well when I put the SD in a PC or in the mac?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:52, 17 March 17
Quote from: tpenalver on 13:38, 17 March 17
Why can it be that some directories of the SD are displayed erroneously inside the cpc but well when I put the SD in a PC or in the mac?

Do they display wrong when using |LS command too ?  - I haven't noticed it personally, perhaps you can give me names of those directories.
Ie. put the microSD in the PC and open a dos prompt and do dir E: >cat.txt     (or whatever drive letter your PC uses).
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 21:17, 17 March 17
Question: I've read that actually M4 doesn't support multiload games, this is, once a game is loaded dsk can't be accesed. Does this means that games that makes loads in 64kb systems as Robocop, Target Renegade, etc will not work on 464-664-464+?


Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:30, 17 March 17
Quote from: AxelStone on 21:17, 17 March 17
Question: I've read that actually M4 doesn't support multiload games, this is, once a game is loaded dsk can't be accesed. Does this means that games that makes loads in 64kb systems as Robocop, Target Renegade, etc will not work on 464-664-464+?
That's incorrect, of course any multiload game that uses systemcalls will work with M4 with the proper configuration. Ie. you can play, Robocop, Gryzor, Prince of Persia, Operation Wolf and tons of other multiload games, without problems. You would have to set M4 rom 7 or use the modified lowerrom for maximum compatilibty.
My estimate is atleast 90% of all games will work, if you use a proper cracked version. Which can be easily found of most games.
If there is any particular game that has much interest and doesn't work on M4, I'd be happy to fix it.
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 23:45, 17 March 17
Quote from: Duke on 23:30, 17 March 17
That's incorrect, of course any multiload game that uses systemcalls will work with M4 with the proper configuration. Ie. you can play, Robocop, Gryzor, Prince of Persia, Operation Wolf and tons of other multiload games, without problems. You would have to set M4 rom 7 or use the modified lowerrom for maximum compatilibty.
My estimate is atleast 90% of all games will work, if you use a proper cracked version. Which can be easily found of most games.
If there is any particular game that has much interest and doesn't work on M4, I'd be happy to fix it.


Really a great new, thanks! M4 rom 7 means version of the rom, right? so the best way to use M4 is to get fixed version of games in order to use them in any CPC  :) .
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:55, 17 March 17
Quote from: AxelStone on 23:45, 17 March 17

Really a great new, thanks! M4 rom 7 means version of the rom, right? so the best way to use M4 is to get fixed version of games in order to use them in any CPC  :) .
I meant to get best compatiblity, is to set M4 rom at rom slot 7 (can be done from the web interface). However it cannot be done with all CPC6128's (that don't support overriding rom 7), there you would need to use the modified lowerrom I made.
When downloading games, there is  good resources where you can get a cracked version if a game was protected in some way.

http://www.cpc-power.com/ (http://www.cpc-power.com/)   When you find a game, look for cracked version when downloading, it has it of most games.
http://cpccrackers.free.fr/Downloads/ (http://cpccrackers.free.fr/Downloads/)   Lots of good cracks.
http://cngsoft.no-ip.org/cpc_lzx.htm (http://cngsoft.no-ip.org/cpc_lzx.htm)  Great cracked and compressed games
And the games cd from MiguelSky, most I tried works straight up, its generally cracked file versions of the games. Really a good starting point.
So all in all you probably have more than 1000 games working right out of the box.
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 00:12, 18 March 17
Thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), as soon as I try my M4 I'll follow your instructions. I've just returned to CPC world after 30 years "retired", so most of those things are new for me  ;)
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 12:11, 18 March 17

Hi,
I think I have discovered a bug.

I was trying to copy a floppy disc with the files protected. The FCP command seems to work fine, but when I do a "cat" the result is the first character of the extension of all files is now "/".

Below you can find attached some pictures.

(https://lh3.googleusercontent.com/hzPXbrOoULCyDILFpvFvuAGpd8Yz4BfBPODggCrLVjSIXzcLcei2mdiSjZE9X8685AEcVzT-F2jDg27yepcFzVmJqtMbzCRvciT2E6mZtG4o3UDtrUGuZ0dd6_bE8j7HasW1NQ=w448-h336-no)

(https://lh3.googleusercontent.com/CrpcBRDmjxVWKHcT7rWgwtLzwtz-v5VDgBC1fw4ONFm7tcSyUGa-1uv7p2HagqOOZ6jcdmZp9qXug783rHQVE3kcXoP6xWi8rbPg_m71Zq8ZiTRcAPajkGTFfW1MEOXCuohV4Q=w448-h336-no)


By other hand, I have tested the new |sna command and it is really great!!   :D :D
Title: Re: Amstrad CPC WiFi
Post by: kik3 on 14:48, 18 March 17
Quote from: Skunkfish on 10:22, 15 March 17
Are you able to implement Multiface style functionality, controlled by the web interface?

Poke addresses into RAM, save memory contents to SD etc...

*dreams*
Ohhhh yeahh, great idea amazing[emoji1], save games in sna format on real machine so you can play from the same point later would be amazing, is my dream
Please duke

Enviado desde mi Redmi Note 3 mediante Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: wilco2009 on 23:45, 19 March 17

Searching in ebay a case for my M4 interface I have found this one:


http://www.ebay.es/itm/172444920126?_trksid=p2060353.m2749.l2649&var=471287162805&ssPageName=STRK%3AMEBIDX%3AIT (http://www.ebay.es/itm/172444920126?_trksid=p2060353.m2749.l2649&var=471287162805&ssPageName=STRK%3AMEBIDX%3AIT)


The size is perfect, the only problem is that the screew holes are not matching, but nothing without solution. Some silicone glue and it is ready,


I have also designed a label for him. If somebody likes it, I have attached the label to this message.


Following pictures are showing the result.


(https://lh3.googleusercontent.com/OjGwBzKGnsVJL8aXytM54Bx9jiMGF-c-FWUjrt0kREvyO9gZ_YNk09-ESBLCc13E_gqDJaK2SwEsoJM-H68wem04RV3uz-lyL-t21xL3aWMc0VYP1FqgU0jlSprEgBDGrp8nGA=w480-h221-no)


(https://lh3.googleusercontent.com/iHvFYBB7EQVymPTMTBEhrMs_ztuOb2kHoQl_pwoYCYAiNXlCvkzLcEAnhP_sfwRlxcNiSoZAZA2Egn7-b_PqDSDnMpUqrjWQR-K-BwIRIuzHB03bFOTIRiF0bGt28dX0ROP_Ng=w480-h367-no)
(https://lh3.googleusercontent.com/eXeVaCpuE4aUmEiAKjM7fj4-MNqp2k9DUKzh6ZOxfz034OjG-sjbfIteGjoKqPoYo2Ow6swufm9FDvKDEQcuOje7S2OZ3qN8_DSkfnR7CDBouI3BJ9tW1JpvoECt1SomEPXu6g=w480-h360-no)


(https://lh3.googleusercontent.com/j9QPKv1OQbpM9DAFbibddt687QKKhVz57uxcwlHofKwGs-ymLczIGHcUAomNWQw2pPJyx5qLZ9sWCFxScgQDfmnXd1JK-YiX9O0OwXAWqwTFx8hjXBdsS3n3kbUdRo8JcIWRMg=w480-h336-no)


Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 07:29, 20 March 17
Quote from: KaosOverride on 01:10, 17 March 17Some SNA packs where done. Also for the SymbOS SNA loader. Time to rescue them!
CPCGamesCD contains a folder named sta that contains a good bunch of sna files, and many of them are yours, KaosOverride ;)

EDIT: Here is the sna collection https://drive.google.com/open?id=0B3F0WyVULL0AU19IQUFQUldQU3M
Title: Re: Amstrad CPC WiFi
Post by: tpenalver on 08:37, 20 March 17
Quote from: Duke on 15:52, 17 March 17
Do they display wrong when using |LS command too ?  - I haven't noticed it personally, perhaps you can give me names of those directories.
Ie. put the microSD in the PC and open a dos prompt and do dir E: >cat.txt     (or whatever drive letter your PC uses).



Hello,

With the command | ls also went wrong, in the pc directories were shown well and without problems. I have formatted the SD card and everything looks good again and running at 100%.

I guess something happened on the SD card
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 19:48, 21 March 17
Hi!

as i told you, i was working on 2 loaders to bring 2 games to the m4/xmass/mass storages:

The work is finished, the games are "Adios a la casta 1" & "Adios a la casta 2", Javier Navarro allowed me to upload this versions of the games,  and not only that! he uploaded the versions to the official page!

Don't take care on the titles in spanish of this games, there is no need to traslate anything to english, they are one of the bests plataform games that the CPC has!. "Adios a la casta 2" strongly reminds me to blues brothers from amiga!

enjoy them!

source:

http://www.4mhz.es/2017/03/21/versiones-aalc-para-mass-storages/ (http://www.4mhz.es/2017/03/21/versiones-aalc-para-mass-storages/)

P.D.: One more to come... soon ;)
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 05:16, 25 March 17
Quote from: Duke on 00:16, 17 March 17
Sounds like it should with latest upgrade. You should let it run for a while and finally only blue led should light up, then its done and ready.

If this fails, try to use this upgrade: www.spinpoint.org/cpc/m4diag2.zip (http://www.spinpoint.org/cpc/m4diag2.zip)    Unpack to root and powercycle the CPC.

Does it work afterwards, do an |upgrade, if it fails send or paste the report.txt file contents created in root of the microSD


Hi Duke, I tried the diag firmware, still had the same problem. I used a clean card and uploaded the 2 files to the root. I left the 6128 for about 10 mins, and the red led never went off. Here is the contents of the report.txt:


ESP Flash SR: 0x00 0x00
ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!




Thanks,
Wayne
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:59, 25 March 17
Please try this one too (forgot the old isn't very informative):
http://www.spinpoint.org/cpc/m4diag4.zip

Thanks.

Quote from: opticpow on 05:16, 25 March 17

Hi Duke, I tried the diag firmware, still had the same problem. I used a clean card and uploaded the 2 files to the root. I left the 6128 for about 10 mins, and the red led never went off. Here is the contents of the report.txt:


ESP Flash SR: 0x00 0x00
ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!




Thanks,
Wayne
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 07:37, 25 March 17
Quote from: Duke on 06:59, 25 March 17
Please try this one too (forgot the old isn't very informative):
http://www.spinpoint.org/cpc/m4diag4.zip (http://www.spinpoint.org/cpc/m4diag4.zip)

Thanks.


Here is the updated report.txt


ESP Flash SR: 0x00
ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!
Chip Erase



Wayne
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:57, 25 March 17
Ok, thanks for testing, one last if you are up for it: http://www.spinpoint.org/cpc/m4diag5.zip

Seems like it gets stuck in read SR WIP toggle bit. Hopefully this will reveal more. Please let it run for atleast 5 minutes.

Thanks.
Quote from: opticpow on 07:37, 25 March 17

Here is the updated report.txt


ESP Flash SR: 0x00
ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!
Chip Erase

Title: Re: Amstrad CPC WiFi
Post by: opticpow on 09:08, 25 March 17
Quote from: Duke on 08:57, 25 March 17
Ok, thanks for testing, one last if you are up for it: http://www.spinpoint.org/cpc/m4diag5.zip (http://www.spinpoint.org/cpc/m4diag5.zip)

Seems like it gets stuck in read SR WIP toggle bit. Hopefully this will reveal more. Please let it run for atleast 5 minutes.

Thanks.


Ran for about 6-7 mins. The output:[size=78%]ESP Flash SR: 0x00[/size]

ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!
Chip Erase
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
Erasing area 0 - 000572B4
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:12, 25 March 17
Ok thanks, you probably should let it run even longer for it to complete.
But yeah seems like the ESP module is screwed up somehow, better send it back to me for replacement/fixing, but please let the test run 10 mins, because we should see WIP2 toggle timeout in the log too and once over that a bit more interesting info.

Quote from: opticpow on 09:08, 25 March 17

Ran for about 6-7 mins. The output:[size=78%]ESP Flash SR: 0x00[/size]

ESP Flash ID: 0x00E04016
ESP Upgrade CRC match!
Chip Erase
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
WIP Toggle timeout
Erasing area 0 - 000572B4

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:19, 25 March 17
Nevermind that, as I forgot encapsulate a timeout to another SR wait. You should be able to simply delete the ESPFIRM.BIN from the root. Do a |version, if it's still old version on the ESP I suppose its writeprotected somehow.
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 09:42, 25 March 17

Ok, I stopped that test and the report.txt was the same.


After removing the ESPFIRM.BIN, the red led goes off, put the CPC still does not boot. I just have the one blue led on the right. Removing the m4 allows the CPC to boot of course, and I've tested with just my X-MEM to confirm the edge connector is fine.


Any other ideas?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:45, 25 March 17
Quote from: opticpow on 09:42, 25 March 17
Any other ideas?
Hmm, you could try setting the power jumper to USB and connect M4 to a USB charger/psu and run the upgrade without it being connected to the CPC, incase it should be some power-issue.
I doubt it though, but worth a try.
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 10:28, 25 March 17
Quote from: Duke on 09:45, 25 March 17
Hmm, you could try setting the power jumper to USB and connect M4 to a USB charger/psu and run the upgrade without it being connected to the CPC, incase it should be some power-issue.
I doubt it though, but worth a try.


I have made progress. When disconnecting the m4 and connecting to USB, I noticed one of the Pins on the header, Pin 1, was pushed in, so not likely making contact with the connecting cable. After pulling it out, and reconnecting to the CPC, It now boots!


It is not loading any roms, which I guess it normal as nothing has been configured, but monitoring my DHCP server I don't see the ESP asking for an address with a configured config.txt,  so I guess the ESP is still not working correctly.


Am I able to modify the romconfig.bin to turn on the m4 rom so I can try an |upgrade?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:51, 25 March 17
Quote from: opticpow on 10:28, 25 March 17

I have made progress. When disconnecting the m4 and connecting to USB, I noticed one of the Pins on the header, Pin 1, was pushed in, so not likely making contact with the connecting cable. After pulling it out, and reconnecting to the CPC, It now boots!


It is not loading any roms, which I guess it normal as nothing has been configured, but monitoring my DHCP server I don't see the ESP asking for an address with a configured config.txt,  so I guess the ESP is still not working correctly.


Am I able to modify the romconfig.bin to turn on the m4 rom so I can try an |upgrade?

Did you try to run the upgrade again with just USB powersupply connected ?

Otherwise what does |version say?   You can safely delete romconfig.bin and romslots.bin to revert to default setup.
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 11:02, 25 March 17
Yes, the usb power seem to do the same thing.


There does not appear to be any RSX loaded, so no |version, upgrade etc.
Title: Re: Amstrad CPC WiFi
Post by: tpenalver on 17:50, 25 March 17

Every time I mark "Lower-Rom Enable" the cpc fails me with the M4
Does somebody knows why it could be?




(https://c1.staticflickr.com/4/3671/32800898574_7f3e5ea6c0_n.jpg) (https://flic.kr/p/RYvbo3)Captura de pantalla 2017-03-25 a las 17.31.12 (https://flic.kr/p/RYvbo3) by Tomás Peñalver (https://www.flickr.com/photos/tpenalver/), on Flickr
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:15, 26 March 17
@opticpow (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1075) I send you a PM, suggesting to return the M4 to me.

@tpenalver (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2017) Which CPC do you use? And is it the modified lowerrom you have uploaded? - If it is a CPC6128, please email me your romconfig.bin and romslots.bin files from M4 directory, then I can take a look and verify if the roms er OK. If it's a CPC464/664, the modified lowerrom probably wont work without uploading CPC6128 basic aswell.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:46, 26 March 17
Hi

From now i will start to put my Mass storage / M4 modifications for games here:

http://www.cpcwiki.eu/forum/games/modified-games-for-mass-storage-devices-from-joseman/

I think is a more convenient thread to do this because the games should work on all mass storage devices, not only M4!

Title: Re: Amstrad CPC WiFi
Post by: tpenalver on 19:31, 26 March 17
@tpenalver (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2017) Which CPC do you use? And is it the modified lowerrom you have uploaded? - If it is a CPC6128, please email me your romconfig.bin and romslots.bin files from M4 directory, then I can take a look and verify if the roms er OK. If it's a CPC464/664, the modified lowerrom probably wont work without uploading CPC6128 basic aswell.

Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624),

It is a CPC6128 and I use this ROM downloaded from the CPCwiki "os6128_mod_english.rom". I send you my files. Bin to see if you can help me. Thank you.
Title: Re: Amstrad CPC WiFi
Post by: opticpow on 14:08, 27 March 17
Quote from: Duke on 06:15, 26 March 17
@opticpow (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1075) I send you a PM, suggesting to return the M4 to me.

@tpenalver (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2017) Which CPC do you use? And is it the modified lowerrom you have uploaded? - If it is a CPC6128, please email me your romconfig.bin and romslots.bin files from M4 directory, then I can take a look and verify if the roms er OK. If it's a CPC464/664, the modified lowerrom probably wont work without uploading CPC6128 basic aswell.


Thanks @duke, I'll organise to send it back.

Wayne
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:25, 27 March 17
M4 firmware v.2.0.3 beta 1
Download: http://www.spinpoint.org/cpc/M4FIRM_v203b1.zip

Changes:
How to use the new web ui features, check this video:


Web interface only tested on Firefox, but hopefully works on other newer browsers.
Title: Amstrad CPC WiFi
Post by: dirtybb on 18:01, 27 March 17
Quote from: Duke on 17:25, 27 March 17
M4 firmware v.2.0.3 beta 1
Download: http://www.spinpoint.org/cpc/M4FIRM_v203b1.zip

Changes:

       
  • Added javascript/html5 based navigation to the webinterface, with multifile upload, download, remote run, delete & make directory.
  • Fixes with running binary files with remote run and improved by changing directory to actual remote folder aswell.
  • |FCP Fix dodgy filenames, removing system attributes.
How to use the new web ui features, check this video:


Web interface only tested on Firefox, but hopefully works on other newer browsers.

Awesome :)


Envoyé de mon iPhone en utilisant Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 18:29, 27 March 17
Quote from: Duke on 17:25, 27 March 17
M4 firmware v.2.0.3 beta 1
Download: http://www.spinpoint.org/cpc/M4FIRM_v203b1.zip

Changes:

       
  • Added javascript/html5 based navigation to the webinterface, with multifile upload, download, remote run, delete & make directory.
  • Fixes with running binary files with remote run and improved by changing directory to actual remote folder aswell.
  • |FCP Fix dodgy filenames, removing system attributes.
How to use the new web ui features, check this video:


Web interface only tested on Firefox, but hopefully works on other newer browsers.
Awesome work as ever! Can't wait to try it out!
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 20:00, 27 March 17
Quote from: Duke on 17:25, 27 March 17
Web interface only tested on Firefox, but hopefully works on other newer browsers.


Just to report, tried it out with Chrome, it works perfectly
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 21:04, 27 March 17


Wow! Works fine with Win 10 Edge. One step closer to a full cross-development environment (PC > CPC). Easy drag and drop!
Also the (only) 128kB Snapshot runs with one click... :o


The Web-Interface runs more smooth (without disruption / hanging) than before.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 21:42, 27 March 17
...forgot to mention that diving into a DSK is not possible from the Web-Interface. But that's ok, because otherwise I won't touch my CPC keyboard anymore :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:48, 27 March 17
Quote from: HAL 6128 on 21:42, 27 March 17
...forgot to mention that diving into a DSK is not possible from the Web-Interface. But that's ok, because otherwise I won't touch my CPC keyboard anymore :)
Yah, I know  8)   -If more than 2 people besides me will use this, that may be next.

Also if there is interest, I can upload the web-interface files to github in a format so you anyone can run and modify it on the SD cart, maybe someone is up for improving it, since my javascript/html skills aren't exactly my best.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 21:50, 27 March 17
Quote from: Duke on 21:48, 27 March 17
Yah, I know  8)   -If more than 2 people besides me will use this, that may be next.

Also if there is interest, I can upload the web-interface files to github in a format so you anyone can run and modify it on the SD cart, maybe someone is up for improving it, since my javascript/html skills aren't exactly my best.
It might have its uses but given you can use PC tools to extract the contents is if worth it?
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 21:51, 27 March 17
Quote from: Duke on 21:48, 27 March 17Yah, I know  8)    -If more than 2 people besides me will use this, that may be next.


Ahahaha :D
Count me in, was about to ask !
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:59, 27 March 17
Quote from: dirtybb on 21:51, 27 March 17

Ahahaha :D
Count me in, was about to ask !
Oups that's 2 already :)

@maniac  You are completely right, I guess it's just about convenience. Since the handling code is already in the M4 code, its "just" about telling the client code (javascript) to use it and make some path for it.
Title: Re: Amstrad CPC WiFi
Post by: krusty_benediction on 07:08, 28 March 17
Quote from: Duke on 21:48, 27 March 17
Also if there is interest, I can upload the web-interface files to github in a format so you anyone can run and modify it on the SD cart, maybe someone is up for improving it, since my javascript/html skills aren't exactly my best.

Does it means the web server runs on the CPC and not on the card ?
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 07:15, 28 March 17
Upgrading Firmware , thx Duke  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:27, 28 March 17
Nah it runs on the ESP chip, but all the html/javascript/images/fonts can be read from the microSD instead of the internal flash, where it's easy to modify.

Quote from: krusty_benediction on 07:08, 28 March 17
Does it means the web server runs on the CPC and not on the card ?
Title: Re: Amstrad CPC WiFi
Post by: dxs on 15:37, 29 March 17
Works flawlessly with Chrome!
Thanks a lot for the un-ending improvement of this awesome card! Now transfering files is way easier.
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 22:15, 29 March 17
The beta firmware seems to break YANCC... Or have I done something to break YANCC (more likely!)

Anyone else experiencing problems?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:42, 30 March 17
Quote from: Skunkfish on 22:15, 29 March 17
The beta firmware seems to break YANCC... Or have I done something to break YANCC (more likely!)

Anyone else experiencing problems?

Still works here :)  - What problem are you having?


On another note @rafa32gr (http://www.cpcwiki.eu/forum/profile/?u=1994) just send me a link to a very cool menu program he wrote for M4, that enables you to: Launch programs, copy files from floppy and to tape and you can download games directly from the internet too (yay)!
Link to his page: http://amstrad.esy.es/ (http://amstrad.esy.es/)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 08:49, 30 March 17
Quote from: Skunkfish on 22:15, 29 March 17
The beta firmware seems to break YANCC... Or have I done something to break YANCC (more likely!)

Anyone else experiencing problems?
Please check the attached Alpha(!) version, of the next YANCC-Release.
(I must test this version more intensive, but i hope, this version has no more errors and is the next release)
I changed some code, which may result in a better compatibility (other 2 users reported strange problems too).
You must install both ROM's to use this version!

(warning- don't forget: handle with care, it's an Alpha Version!)
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 10:40, 30 March 17
Quote from: Duke on 23:55, 17 March 17
I meant to get best compatiblity, is to set M4 rom at rom slot 7 (can be done from the web interface). However it cannot be done with all CPC6128's (that don't support overriding rom 7), there you would need to use the modified lowerrom I made.
When downloading games, there is  good resources where you can get a cracked version if a game was protected in some way.

http://www.cpc-power.com/ (http://www.cpc-power.com/)   When you find a game, look for cracked version when downloading, it has it of most games.
http://cpccrackers.free.fr/Downloads/ (http://cpccrackers.free.fr/Downloads/)   Lots of good cracks.
http://cngsoft.no-ip.org/cpc_lzx.htm (http://cngsoft.no-ip.org/cpc_lzx.htm)  Great cracked and compressed games
And the games cd from MiguelSky, most I tried works straight up, its generally cracked file versions of the games. Really a good starting point.
So all in all you probably have more than 1000 games working right out of the box.


I received my M4 allready, really a brilliant piece of hardware!!  ;) ;)  My CPC 464+ is at full work. However I've noticed that 128kb games efectively doesn't works  :( . I'm using games of CD games from MiguelSky, but when they need to load next stage they try to do from casette  ??? .


Is there any specific crack / fix to solve that? Perhaps I need to use another rom or update firmware?


Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:55, 30 March 17
Thanks.
Make sure you set M4 rom to 7 (now that you have CPC464+ thats fully possible). That should solve your problem.

Quote from: AxelStone on 10:40, 30 March 17

I received my M4 allready, really a brilliant piece of hardware!!  ;) ;)  My CPC 464+ is at full work. However I've noticed that 128kb games efectively doesn't works  :( . I'm using games of CD games from MiguelSky, but when they need to load next stage they try to do from casette  ??? .


Is there any specific crack / fix to solve that? Perhaps I need to use another rom or update firmware?


Thanks.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 11:00, 30 March 17
Quote from: AxelStone on 10:40, 30 March 17

I received my M4 allready, really a brilliant piece of hardware!!  ;) ;)  My CPC 464+ is at full work. However I've noticed that 128kb games efectively doesn't works  :( . I'm using games of CD games from MiguelSky, but when they need to load next stage they try to do from casette  ??? .


Is there any specific crack / fix to solve that? Perhaps I need to use another rom or update firmware?


Thanks.

Sorry .. I see that you speak of the 464+ ...

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:03, 30 March 17
Quote from: AxelStone on 10:40, 30 March 17

I received my M4 allready, really a brilliant piece of hardware!!  ;) ;)  My CPC 464+ is at full work. However I've noticed that 128kb games efectively doesn't works  :( . I'm using games of CD games from MiguelSky, but when they need to load next stage they try to do from casette  ??? .


Is there any specific crack / fix to solve that? Perhaps I need to use another rom or update firmware?


Thanks.
Not wishing to point out the obvious but I assume you have either got an external ram expansion, or fitted the extra 64k internally in your 464+ the m4 does not negate the need for the ram expansion to run 128k games.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:05, 30 March 17
Quote from: XeNoMoRPH on 11:00, 30 March 17
don't looking for load from Disc ..

Loading from disc is fine too, as long as they are loading files (or using firmware sector reading). Here it is important that you either have M4 at ROM7 or use the modified lowerrom(regular 6128). As they will most often re-init only ROM 7, so if M4 is at ie. pos 6, the file functions will not be re-directed to M4 (ie. you see disc missing or press play on tape).
Title: Re: Amstrad CPC WiFi
Post by: AxelStone on 19:44, 30 March 17
Quote from: Duke on 10:55, 30 March 17
Thanks.
Make sure you set M4 rom to 7 (now that you have CPC464+ thats fully possible). That should solve your problem.


Working perfect!! Thanks man  ;)
Title: Re: Amstrad CPC WiFi
Post by: rcmolina on 20:04, 31 March 17
Quote from: Duke on 00:42, 30 March 17
On another note @rafa32gr (http://www.cpcwiki.eu/forum/profile/?u=1994) just send me a link to a very cool menu program he wrote for M4, that enables you to: Launch programs, copy files from floppy and to tape and you can download games directly from the internet too (yay)!
Link to his page: http://amstrad.esy.es/ (http://amstrad.esy.es/)
;D


[/size]@[/size]rafa32gr (http://www.cpcwiki.eu/forum/profile/?u=1994), Great work!   for your consideration:
- directory length, not possible to navigate if bigger tan 11 chars..
- Not possible to change to first entries if you have many entries and need scrolling ¿?
- Should be possible to use Enter insted of Space to change to a directory?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 08:01, 01 April 17
Something's broken in the CD-Command:
With 2.00 Firmware: |cd,"EDENBL~2.DSK" works.
With 2.02+03b1 Firmware: |cd,"EDENBL~2.DSK" => "Unknown Directory".
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:52, 02 April 17
Quote from: SOS on 08:01, 01 April 17
Something's broken in the CD-Command:
With 2.00 Firmware: |cd,"EDENBL~2.DSK" works.
With 2.02+03b1 Firmware: |cd,"EDENBL~2.DSK" => "Unknown Directory".
Thanks for reporting.
Anyone else experinced this?  I cannot replicate it, so if anyone has a similar problem please upload or email me a DSK image that does this.

Just finished adding remote run to DSK & CPR DSK images, so would like to get that issue out the way aswell before I release it.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 17:18, 02 April 17
Quote from: Duke on 14:52, 02 April 17
Thanks for reporting.
Anyone else experinced this?  I cannot replicate it, so if anyone has a similar problem please upload or email me a DSK image that does this.

Just finished adding remote run to DSK & CPR DSK images, so would like to get that issue out the way aswell before I release it.

In my case .. i don't have any problems with that  :o

M4 v2.0.3
ESP v2.0.3
Title: Re: Amstrad CPC WiFi
Post by: SOS on 18:45, 02 April 17
Quote from: XeNoMoRPH on 17:18, 02 April 17
In my case .. i don't have any problems with that  :o
Strange, approx 80-90% of all DSK-Images has now the problem.
I will check it next weekend with a complete clean SD-Card and report it back (in a case of problem).
(Thanks)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:18, 02 April 17
Ok hopefully another problem as I haven't encountered a single .dsk with that error either.

Anyway I better keep it beta for now then :)

Here is M4 Firmware v2.0.3 beta 2: Download http://www.spinpoint.org/cpc/M4FIRM_v203b2.zip

Changes:

Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:33, 03 April 17


Hmm, |M4HELP shows a different list than the WebGUI. E.g. the GUI show the "M4-Board.ROM" on rom slot 6 and "ParaDOS.ROM" on 7, but |M4HELP shows "M4" on 5 and "ParaDOS" on 6? The lower ROM isn't counted?


By the way: doing a |M4HELP on romslot 5 (supposed to have the M4 rom there due to |M4HELP) brings just symbols, not the command list.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:50, 04 April 17
Quote from: HAL 6128 on 20:33, 03 April 17

Hmm, |M4HELP shows a different list than the WebGUI. E.g. the GUI show the "M4-Board.ROM" on rom slot 6 and "ParaDOS.ROM" on 7, but |M4HELP shows "M4" on 5 and "ParaDOS" on 6? The lower ROM isn't counted?


By the way: doing a |M4HELP on romslot 5 (supposed to have the M4 rom there due to |M4HELP) brings just symbols, not the command list.
Oups, you are right, it seems to only work properly in mode 2 :)   - Stupid bug, fixed for next time. Thanks.
Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 12:55, 04 April 17
Quote from: rcmolina on 20:04, 31 March 17
;D


@rafa32gr (http://www.cpcwiki.eu/forum/profile/?u=1994), Great work!   for your consideration:
- directory length, not possible to navigate if bigger tan 11 chars..
- Not possible to change to first entries if you have many entries and need scrolling ¿?
- Should be possible to use Enter insted of Space to change to a directory?


- Directory length is enough with 11 chars because in a cpc cat it dont show more than 8 chars
- I'm actually working in a directory listing as show at online part of the menu.
- In this night update it will be possible.


If some other things you need or like tell me.


Sorry for my very bad english, the program are still buggy but if you tell my where it fails i try to correct.

Title: Re: Amstrad CPC WiFi
Post by: dragon on 11:15, 06 April 17
Hi duke i have one question/sugestion. View the post of  the pace rs232. I was thinking. if maybe can be possible hack the roms. To substitute the access to the rs232 with m4.  Making the cpc conecting todo the viewdataservice online using wifi.


Or maybe emulating the rs232 or something other idea.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:22, 06 April 17
Quote from: dragon on 11:15, 06 April 17
Hi duke i have one question/sugestion. View the post of  the pace rs232. I was thinking. if maybe can be possible hack the roms. To substitute the access to the rs232 with m4.  Making the cpc conecting todo the viewdataservice online using wifi.
Sounds possible, though it might be quite some work to hack around those roms. Perhaps easier to write a client from scratch? - it looks kinda simple, but I dunno...

Quote
Or maybe emulating the rs232 or something other idea.
Hmm, well there is a serial port (pinheader) on the M4 board, I could allow access to it via an API, if there is interest. It's 3.3V of course.
Title: Re: Amstrad CPC WiFi
Post by: buzby on 15:16, 06 April 17
Good idea
This would be good as I have the M4 and the pace rs232


Sent from my iPhone using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:30, 06 April 17
Quote from: Duke on 12:22, 06 April 17
Sounds possible, though it might be quite some work to hack around those roms. Perhaps easier to write a client from scratch? - it looks kinda simple, but I dunno...
Hmm, well there is a serial port (pinheader) on the M4 board, I could allow access to it via an API, if there is interest. It's 3.3V of course.

I think is best hack the roms, Using the spi serial is buy a rasperri pi to make it work and cable adapter . is much funny make it work with m4 y easy to the people  i think

Really i not know how works a viewdata to make it from 0 ,But the these part of room I supuse recieve the data form  the cpc bus in parallel from the rs2r2. maybe the m4 can be programmed with software emulator that substitute rs232 hardware+modem?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:29, 06 April 17
Quote from: dragon on 18:30, 06 April 17
Really i not know how works a viewdata to make it from 0 ,But the these part of room I supuse recieve the data form  the cpc bus in parallel from the rs2r2. maybe the m4 can be programmed with software emulator that substitute rs232 hardware+modem?
If you find any documentation on Viewdata, I wont mind taking a look, it probably is close to telnet I guess, so maybe super easy to implement, maybe not. I could not find any real documentation on it.
Also do you have any links for viewdata currently in use?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 20:21, 06 April 17
Quote from: Duke on 19:29, 06 April 17
If you find any documentation on Viewdata, I wont mind taking a look, it probably is close to telnet I guess, so maybe super easy to implement, maybe not. I could not find any real documentation on it.
Also do you have any links for viewdata currently in use?


If i find something i tell you. I thinking is a variant of videotext.


I know one Page online compatible with the cpc thats because i suggest implement It.


http://www.retrocomputers.online/2013/11/18/lets-take-a-look-at-viewdata/ (http://www.retrocomputers.online/2013/11/18/lets-take-a-look-at-viewdata/)




http://www.retrocomputers.online/2016/08/20/more-photos-of-viewdata-on-the-amstrad-cpc/ (http://www.retrocomputers.online/2016/08/20/more-photos-of-viewdata-on-the-amstrad-cpc/)


http://www.ccl4.org
Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 21:51, 09 April 17

I just upload a new version of my M4 explorer.


When you explore SD, files are in a buffer created with |UDIR and a ASM routine that put then on a matrix
When you explore Floppy files are in a buffer created with firmware routine &BC9B CAS CATALOG and a ASM routine that put then o a matrix.


The result is that you can scroll in filelist (slow)


Other bugs are corrected and a mayor bug that let few memory before run any aplicattion was corrected


If you have any suggestion or have notice of another bug i am pleased to know about it


Thank you very much for the time you spend testing it.

Title: Re: Amstrad CPC WiFi
Post by: kik3 on 22:07, 09 April 17
Quote from: rafa32gr on 21:51, 09 April 17
I just upload a new version of my M4 explorer.


When you explore SD, files are in a buffer created with |UDIR and a ASM routine that put then on a matrix
When you explore Floppy files are in a buffer created with firmware routine &BC9B CAS CATALOG and a ASM routine that put then o a matrix.


The result is that you can scroll in filelist (slow)


Other bugs are corrected and a mayor bug that let few memory before run any aplicattion was corrected


If you have any suggestion or have notice of another bug i am pleased to know about it


Thank you very much for the time you spend testing it.
Thanks Mr rafa[emoji106] [emoji1]

Send from my cpc 6128

Title: Re: Amstrad CPC WiFi
Post by: Fedeo on 12:23, 11 April 17




Quote from: rafa32gr on 21:51, 09 April 17
I just upload a new version of my M4 explorer.


When you explore SD, files are in a buffer created with |UDIR and a ASM routine that put then on a matrix
When you explore Floppy files are in a buffer created with firmware routine &BC9B CAS CATALOG and a ASM routine that put then o a matrix.


The result is that you can scroll in filelist (slow)


Other bugs are corrected and a mayor bug that let few memory before run any aplicattion was corrected


If you have any suggestion or have notice of another bug i am pleased to know about it


Thank you very much for the time you spend testing it.



Hola rafa32gr!
After updating your M4 explorer, it does not appear to work properly on my 6128 Plus. When I try online the explorer suddenly closes and when I try to display a directory with a lot of dsk archives it freezes. All this didn't happen with the previous version.
Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 15:47, 11 April 17
Quote from: Fedeo on 12:23, 11 April 17





Hola rafa32gr!
After updating your M4 explorer, it does not appear to work properly on my 6128 Plus. When I try online the explorer suddenly closes and when I try to display a directory with a lot of dsk archives it freezes. All this didn't happen with the previous version.


Thank you very much for the feedback, in a few hours i will upload a new version , trying to correct all these bugs.





Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 22:48, 12 April 17
I do a little correction on the buffer to store directory data, and some other memory issues, if anybody think is better read direct from the disk and dont store it on an array, i'll change the way my app use directory data.


Thank you very much for your feedbak, and sorry for my very bad english.


all criticism are welcomed
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:00, 16 April 17

Quote from: Maniac on 18:29, 27 March 17
Awesome work as ever! Can't wait to try it out!


Finally found time to try this out after seeing the video of Overflow's new intro from Revision 2017. As I thought it would be it's awesome to upload files so easily and run them but I have found that it doesn't always seem to work. For example I extracted the file to run Overflow's new intro (http://quasar.cpcscene.net/lib/exe/fetch.php?media=tmp:logon_s_run_-_3d_meets_the_aging_bits.zip) using WinApe and uploaded it to a new Demos folder. I then refreshed the directory listing and clicked 'Run' next to the 'LOGON'S' file name. My 6128 Plus resets but the intro doesn't start it simply returns to the basic prompt.


If I try another intro "Battro" but Batman Group all works as it should do.


Tried switching the ROM from slot 6 to 7 but it makes no difference I'm afraid.


Appreciate it's still in beta but thought I should offer some feedback as I noticed. Also now I've tried using it I actually think being able to browse in to DSK images would be v useful!  :-[
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:52, 16 April 17
Quote from: Maniac on 22:00, 16 April 17

Finally found time to try this out after seeing the video of Overflow's new intro from Revision 2017. As I thought it would be it's awesome to upload files so easily and run them but I have found that it doesn't always seem to work. For example I extracted the file to run Overflow's new intro (http://quasar.cpcscene.net/lib/exe/fetch.php?media=tmp:logon_s_run_-_3d_meets_the_aging_bits.zip (http://quasar.cpcscene.net/lib/exe/fetch.php?media=tmp:logon_s_run_-_3d_meets_the_aging_bits.zip)) using WinApe and uploaded it to a new Demos folder. I then refreshed the directory listing and clicked 'Run' next to the 'LOGON'S' file name. My 6128 Plus resets but the intro doesn't start it simply returns to the basic prompt.


If I try another intro "Battro" but Batman Group all works as it should do.


Tried switching the ROM from slot 6 to 7 but it makes no difference I'm afraid.


Appreciate it's still in beta but thought I should offer some feedback as I noticed. Also now I've tried using it I actually think being able to browse in to DSK images would be v useful!  :-[

Yes, thanks. I noticed this too, this morning when I tried overflows new demo (runs fine from the cpc itself btw). I think it is because of the ' character in the filename, probably some html character translation I need to add for that too. Will be fixed in next firmware.
For what it's worth if you use beta 2, you don't need to extract the .DSK's you can just CD into them and run directly aswell.


For v2.0.3 beta #2 look here: http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262)   you can browse & run files inside DSK or CPR DSK's with it.

As for the problem SOS reported earlier, this was because of DSK having "Read only" system attribute set, so if you get a weird error cd'ing into a dsk make sure the "Read Only" attribute is turned off.
I will add a check for it in next firmware so in those cases they will be opened in "write protected" mode.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 00:22, 17 April 17

Quote from: Duke on 22:52, 16 April 17
Yes, thanks. I noticed this too, this morning when I tried overflows new demo (runs fine from the cpc itself btw). I think it is because of the ' character in the filename, probably some html character translation I need to add for that too. Will be fixed in next firmware.
For what it's worth if you use beta 2, you don't need to extract the .DSK's you can just CD into them and run directly aswell.


For v2.0.3 beta #2 look here: http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262)   you can browse & run files inside DSK or CPR DSK's with it.

As for the problem SOS reported earlier, this was because of DSK having "Read only" system attribute set, so if you get a weird error cd'ing into a dsk make sure the "Read Only" attribute is turned off.
I will add a check for it in next firmware so in those cases they will be opened in "write protected" mode.


Thanks for the update, I didn't quite look hard enough to see if you'd updated since the original post about this.


Interestingly after updating to Beta 2 and trying to launch Overflow's new intro via MS Edge it is now working! Still doesn't work via Chrome though so def looks like it's something around HTML handling which defers in various browsers. I have another example which starts with a # "Barbar" by Benediction which doesn't work from either browser.



Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:47, 17 April 17
Quote from: Maniac on 00:22, 17 April 17

Thanks for the update, I didn't quite look hard enough to see if you'd updated since the original post about this.


Interestingly after updating to Beta 2 and trying to launch Overflow's new intro via MS Edge it is now working! Still doesn't work via Chrome though so def looks like it's something around HTML handling which defers in various browsers. I have another example which starts with a # "Barbar" by Benediction which doesn't work from either browser.

Noted, will check, it's probably all the symbolic characters causing problems depending on the browser. I did only add the most obvious, like &/-/+/ /... 
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:03, 18 April 17
Quote from: Duke on 22:52, 16 April 17
Yes, thanks. I noticed this too, this morning when I tried overflows new demo (runs fine from the cpc itself btw). I think it is because of the ' character in the filename, probably some html character translation I need to add for that too. Will be fixed in next firmware.
For what it's worth if you use beta 2, you don't need to extract the .DSK's you can just CD into them and run directly aswell.


For v2.0.3 beta #2 look here: http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg143262/#msg143262)   you can browse & run files inside DSK or CPR DSK's with it.

As for the problem SOS reported earlier, this was because of DSK having "Read only" system attribute set, so if you get a weird error cd'ing into a dsk make sure the "Read Only" attribute is turned off.
I will add a check for it in next firmware so in those cases they will be opened in "write protected" mode.
Really? I have the dsk on both of my m4 boards and I can |cd into it and run this awesome Logon system demo with no issues.

M4 running 2.0.2 at the moment.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Maniac on 13:07, 18 April 17
Quote from: CraigsBar on 13:03, 18 April 17
Really? I have the dsk on both of my m4 boards and I can |cd into it and run this awesome Logon system demo with no issues.

M4 running 2.0.2 at the moment.
This was just via the web interface rather than |cd in to the DSK which as you say works just fine.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 13:51, 18 April 17
I upgraded flawlessly yesterday to 2.0.2 and I looooooooooooooooooooooove the |FCP command!


For a start, I uploaded the 3 games from 4mhz.es for use with mass storage devices and found that "Adios A La Casta Episode 2" hangs after the loading screen.


I asked Javier Navarro about it and they work for him but he has not the latest firmware installed on his M4.


Download link here (http://www.4mhz.es/download/aalc-e2-mass-storage-dsk/).
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:56, 18 April 17
I'd love  2 new commands, one to list the files in a dsk without having to |cd into it.... And one to extract files from a dsk including wildcards ☺️

Sent from my ONEPLUS 3t using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 17:28, 18 April 17


Quote from: robcfg on 13:51, 18 April 17
I upgraded flawlessly yesterday to 2.0.2 and I looooooooooooooooooooooove the |FCP command!


For a start, I uploaded the 3 games from 4mhz.es for use with mass storage devices and found that "Adios A La Casta Episode 2" hangs after the loading screen.


I asked Javier Navarro about it and they work for him but he has not the latest firmware installed on his M4.


Download link here (http://www.4mhz.es/download/aalc-e2-mass-storage-dsk/).



I've just extracted all 3 of these DSK files these using WinApe to new sub-directories for each and they seem to work fine for me too. I'm running the latest Beta.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:05, 18 April 17
OK, I admit it is a long time since I have been here and I have missed a lot (I've been focusing on my Amiga 600 with Vampire accelerator) however I am now back!

I see all these nice new commands (IDISC, |TAPE, ISD, IFCP etc)

but I am not able to get any of them to work :(

Idisc does nothing - it remains resolutely looking at the SD card
|sd might do something - if I could make it look at anything else OTHER than the SD card
|tape does nto work with FW3.16 as there is no tape support. Any chance of implementing tape support into the M8 rom?
|FCP does nothing at all

What am I missing. I am sure I am just being too stupid for words but it's kinda irritating.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:29, 18 April 17
Quote from: CraigsBar on 19:05, 18 April 17
OK, I admit it is a long time since I have been here and I have missed a lot (I've been focusing on my Amiga 600 with Vampire accelerator) however I am now back!

I see all these nice new commands (IDISC, |TAPE, ISD, IFCP etc)

but I am not able to get any of them to work :(

Idisc does nothing - it remains resolutely looking at the SD card
|sd might do something - if I could make it look at anything else OTHER than the SD card
|tape does nto work with FW3.16 as there is no tape support. Any chance of implementing tape support into the M8 rom?
|FCP does nothing at all

What am I missing. I am sure I am just being too stupid for words but it's kinda irritating.
OK. Sorted it... Needed parados in slot 7 and m4rom in 6.

Now it works

Awesome.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:26, 19 April 17
Hi Duke,

I think something broke between v2.03b1  &  v2.03b2.

With v2.03b2, if I load any game (an example is 1942) and once loaded perform a soft reset on the CPC.
The Auoexec.bas file is not read.  I have to reset the M4 to get it to work again.
I just went back to v2.03b1 to confirm it, the Autoexec.bas file is read on a soft reset on the CPC (Control, Shift + ESC).

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:15, 19 April 17
Quote from: 00WReX on 12:26, 19 April 17
With v2.03b2, if I load any game (an example is 1942) and once loaded perform a soft reset on the CPC.
The Auoexec.bas file is not read.  I have to reset the M4 to get it to work again.
I just went back to v2.03b1 to confirm it, the Autoexec.bas file is read on a soft reset on the CPC (Control, Shift + ESC).
Noted thanks. Probably because it |cd'ed into the folder/dsk and doesn't find the autoexec.bas there.... will fix.


It'll probably be a bit before the next release as I got lot of boards to build. Just got new PCB's and the reflow oven overheated with 3 complete boards, what a shitty day :/
Title: Re: Amstrad CPC WiFi
Post by: number-one on 20:27, 19 April 17
Hello,
I have the m4 board on CPC 6218 with the firmware V. 203b2.
I uploaded the rom "os6128 (French AZERTY) modded for M4" on Lower-rom slot 31 and enable it.
I uploaded the rom "Boulderdash.rom" on slot 1.

How can I launch a rom game ?

I copied "Skweek (F) (1989) [Original] (GAPS).dsk" and "Super Cauldron (UK,F,G) (1993) [Original].dsk" on the sd card.
I use "Disk menu" modified by Takis Kalatzis for following the dsk file.

Drive A://SWEEK~1.DSK
RUN"SWEEK   .BAS" (Nothing happens)
Drive A://SUPERC~1.DSK
RUN"DISC     .BAS" (dead screen and floppy drive reading)
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 22:55, 19 April 17
Sorry I can't read the 151 pages of this topic, I've only heard about this card from Krusty at the Revision. I'm interested in the SNA capabilities of this card. Basically, I'd like to inject SNApshots from PC to the CPC. It seems the reboot can be ordered from the PC, so I can directly compile on PC and transfert the SNA on CPC without touching it! Is this true?


I already have a Mother X4 and the HxC, so I'm no interested in the virtual drive and the SD Card, since I already have it. I guess as long as I don't use the special RSXs, I can do without?



Is there a website where all this is explained? I searched a bit but couldn't find anything (I may have searched too quickly, forgive me...).


Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:42, 20 April 17
Quote from: number-one on 20:27, 19 April 17
I uploaded the rom "Boulderdash.rom" on slot 1.

How can I launch a rom game ?
Type mode 2. |M4HELP,1 to display the RSX for the rom, that will be how you start it.
Quote from: number-one
I copied "Skweek (F) (1989) [Original] (GAPS).dsk" and "Super Cauldron (UK,F,G) (1993) [Original].dsk" on the sd card.
Most likely you should use cracked versions of those games, I notice the title says original, if they use any kind of protection/custom FDC loading, they will fail.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:51, 20 April 17
Quote from: Targhan on 22:55, 19 April 17
Sorry I can't read the 151 pages of this topic, I've only heard about this card from Krusty at the Revision. I'm interested in the SNA capabilities of this card. Basically, I'd like to inject SNApshots from PC to the CPC. It seems the reboot can be ordered from the PC, so I can directly compile on PC and transfert the SNA on CPC without touching it! Is this true?
Yes. You can upload and run SNA's from your PC. Or even just regular binaries

The tool to use is here (link to source code aswell). Webinterface can be used too:
http://cpcwiki.eu/index.php/CPC_M4_xfer_tool
Quote from: Targhan
I already have a Mother X4 and the HxC, so I'm no interested in the virtual drive and the SD Card, since I already have it. I guess as long as I don't use the special RSXs, I can do without?
MicroSD card is needed, the SNA's and WIFI config is stored on it, then executed. But M4 ROM can live together with AMSDOS/Parados. Just type |DISC to access disc drives instead (you can even put it in an autoexec.bas file on microSD, so its automated). Completely disabling M4 rom is also possible using |M4ROMOFF.
Quote from: Targhan
Is there a website where all this is explained? I searched a bit but couldn't find anything (I may have searched too quickly, forgive me...).
http://www.spinpoint.org/cpc/m4info.txt   the documentation.
http://www.cpcwiki.eu/index.php/M4_Board  some additional things here.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 03:41, 20 April 17
A FYI for all boards shipping now, I have changed the PCB layout(again). The size has been decreased to now match the MX4 "formfactor" (actually a bit smaller, 76.5 x 49.5), also so I could panalize two boards making it a bit faster to apply the solder paste.
Main changes are that WiFi and microSD are now on the backside of the PCB.  Removal of unused I/O pins (serial port still retained), rtc battery holder.
A plain reset button has been added aswell. This has the advantage over the M4 reset, that you can retain whatever path you are in.

[attach=2]
M4 edge connector version 2.4

[attach=3]
M4 IDC connector version, new vs old front.

[attach=4]
M4 IDC connector version, new vs old back.

[attach=5]
M4 & XMem inserted to MotherX4.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 05:46, 20 April 17
Ooh, that's nice.

Looks like I may have to order another... :-X

Thanks Duke, for continuing to upgrade both the software & hardware  ;) ...Awesome.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 07:34, 20 April 17
Quote from: 00WReX on 05:46, 20 April 17
Ooh, that's nice.

Looks like I may have to order another... :-X

Thanks Duke, for continuing to upgrade both the software & hardware  ;) ...Awesome.

Cheers,
Shane
I was just thinking the same!

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:24, 20 April 17
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) & @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Don't it's just a cosmetic change, mainly to make it easier for me to build (ie. I wont have to handsolder the wifi module anymore and can process two boards at a time).
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:42, 20 April 17
Aawwwww, but I want one.

Seriously, I realise it is cosmetic, I have been thinking about getting another for a while now.
I have a lot of Amstrads and not enough M4's   :P

Plus the added bonus of a 'CPC only' reset button is nice.  ;)

PM sent...

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:51, 20 April 17
Quote from: Duke on 08:24, 20 April 17
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) & @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Don't it's just a cosmetic change, mainly to make it easier for me to build (ie. I wont have to handsolder the wifi module anymore and can process two boards at a time).
@duke if I solder a battery holder onto the back, is the rtc functional or not?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:54, 20 April 17
Quote from: CraigsBar on 20:51, 20 April 17
@duke if I solder a battery holder onto the back, is the rtc functional or not?
Nope, I would have to add support for it in the software. Besides you need a clock, a resistor and 2 caps.
Title: Re: Amstrad CPC WiFi
Post by: Liamob1 on 22:11, 20 April 17
Apologies, if this has been discussed already previously... but has anybody managed to get an ATDT connection/BBS/Terminal to work using the m4 card?


Just a thought being, that it has WiFi capabilities and it can host custom ROMs like a terminal application, why wouldn't it be possible?  :P
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:28, 20 April 17
Quote from: Liamob1 on 22:11, 20 April 17
Apologies, if this has been discussed already previously... but has anybody managed to get an ATDT connection/BBS/Terminal to work using the m4 card?


Just a thought being, that it has WiFi capabilities and it can host custom ROMs like a terminal application, why wouldn't it be possible?  :P

I don't see any reason why it should not be possible, but someone would have to do the work :)
Title: Re: Amstrad CPC WiFi
Post by: Liamob1 on 22:32, 20 April 17
Quote from: Duke on 22:28, 20 April 17
I don't see any reason why it should not be possible, but someone would have to do the work :)


I may attempt this when mine arrives! I've seen that SymOS does something similar!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:20, 21 April 17
I'd love a cpc native IRC client just in case anyone fancies a challenge lol. SymIRC is great but an cpc native one would be amazing.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: SOS on 11:00, 22 April 17
YANCC new Version:

Changelog:
- Change of memory usage, so maybe some none reproduceable problems are solved
- Making Space for features, now you need everytime install both ROMs
  (without autoboot you can choose any rom-number, e.g. Launcher on 8, YANCC on 15)
- M4DOS: Floppy-Access (as drive C+D)
- M4DOS: MKDIR: Support of lower chars.
- AMSDOS+M4DOS: The copy of big-files (approx fro 35KB to 64KB) are boring slow (CAS_IN/OUT_CHAR speedup).
- AMSDOS+M4DOS(when AMSDOS present): 1:1 Copy of Fileheader
- Copy of protected binaries
- Small fixes

Download here: http://www.cpcwiki.eu/forum/applications/yet-another-norton-commander-clone/ (http://www.cpcwiki.eu/forum/applications/yet-another-norton-commander-clone/)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:47, 22 April 17
Is there anyway AmsDOS or ParaDOS (and possibly the lower rom) can be patched so that Ams/ParaDOS can be in slot 8 with m4 rom in 7 and they still get initialised in the right order? I find I am swapping the m4 rom between 6 and 7 for compatibility and floppy / copying  use.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:04, 22 April 17
Quote from: CraigsBar on 11:47, 22 April 17
Is there anyway AmsDOS or ParaDOS (and possibly the lower rom) can be patched so that Ams/ParaDOS can be in slot 8 with m4 rom in 7 and they still get initialised in the right order? I find I am swapping the m4 rom between 6 and 7 for compatibility and floppy / copying  use.

Sent from my ONEPLUS 3t using Tapatalk
It should work fine if you put AMSDOS/Parados in slot 8 and M4 in slot 7.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:31, 22 April 17
It just reboot loops.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 22:23, 24 April 17
Sorry if this is not the correct thread, if you think i must move it, i'll do it


I'm polishing a little my m4 explorer application, now it can play Arkos tracker songs  , local (pressing R key) and  online (pressing P key), but for this funcionality you must download tracker5.bin file or m4explorer.zip, because older m4.bas dont download it, 5 key stops the music.


If the file you trying to run is an .scr , it will show at full screen.


I introduced a little fre(0) checking at start to manage memory in one or other way, i expect this solve any of the problems people report me (in mi 6128 and my 464 it works fine)


Thank you very much for the time spend testing it.




P.D. If you want add more Arkos tracks, you must compile .bin file at 0x600 and rename it to .aks extension
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:53, 25 April 17
Quote from: CraigsBar on 19:31, 22 April 17
It just reboot loops.
Ok, will check, it should have worked :)

Quote from: rafa32gr on 22:23, 24 April 17
I'm polishing a little my m4 explorer application, now it can play Arkos tracker songs  , local (pressing R key) and  online (pressing P key), but for this funcionality you must download tracker5.bin file or m4explorer.zip, because older m4.bas dont download it, 5 key stops the music.

The download link on your page fails (404) http://amstrad.esy.es/menu/m4explorer.zip
Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 07:56, 25 April 17
Quote from: Duke on 06:53, 25 April 17
Ok, will check, it should have worked :)

The download link on your page fails (404) http://amstrad.esy.es/menu/m4explorer.zip (http://amstrad.esy.es/menu/m4explorer.zip)


Solved , i upload M4explorer.zip instead m4explorer.zip


Sorry  :doh:
Title: Re: Amstrad CPC WiFi
Post by: number-one on 09:44, 30 April 17
Hello,

with the lower6128_mod-fr enabled the  |DISC command show the content of the SD card.

I have CPC 6128 with the M4 (M4FIRM_v203b2), X-Mem Boards (READ ROM jumper NO position) and SYMBOS 3.0 CPC - RC1 16/11/14.
The wget command crash symbos.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:03, 01 May 17
Quote from: number-one on 09:44, 30 April 17
with the lower6128_mod-fr enabled the  |DISC command show the content of the SD card.
Yes, you need to disable the modified lowerrom if you wish to access floppy discs.

Quote
I have CPC 6128 with the M4 (M4FIRM_v203b2), X-Mem Boards (READ ROM jumper NO position) and SYMBOS 3.0 CPC - RC1 16/11/14.
The wget command crash symbos.
How do you type the URL with wget? (or perhaps paste the entire url) it should be with http:// prefix.
Title: Re: Amstrad CPC WiFi
Post by: number-one on 08:32, 01 May 17
How can I copy and paste in symbos ?

How can I kill a command running in symshell ?

Where I can find the last symbos user manual ?
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 08:58, 01 May 17
Quote from: number-one on 08:32, 01 May 17
How can I copy and paste in symbos ?

How can I kill a command running in symshell ?

Where I can find the last symbos user manual ?

Hi Number One,

You can download the last document from my site.

Copy/Paste is like Windows CTRL-C / CTRL-V
In the taskmanger you can kill a process. Be aware that you need a socket reset as well when the process was running a TCP or UDP connection.
(This can be done in the network daemon)

http://members.home.nl/evanzanten/msxorg/SymbOS%203%20install%20user%20and%20install%20guide.pdf (http://members.home.nl/evanzanten/msxorg/SymbOS%203%20install%20user%20and%20install%20guide.pdf)

Hope it helps.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 06:53, 13 May 17
Quote from: Duke on 07:36, 07 May 16
Hi guys,

I have hacked together an expansion board for the CPC, letting it connect to your home router/accesspoint via WiFi.
It also features a romboard and sd card for file access.

It's a bit rough at the moment, but the basics do work.

Please check it out at:
spinpoint.org – Duke's tech ramblings... (http://www.spinpoint.org/)

Let me know what you think - Any use, or plain madness :) - It was fun doing atleast.

Works on entire CPC range (from 464 to 6128+)

Regards,
Duke

Update!


Well, a year has gone bye since these famous first words..."Let me know what you think - Any use, or plain madness"

Wow, it sure was madness, in the best way possible.  Arguably the best expansion board ever to be released for the Amstrad CPC series.

So from that initial 'expression of interest', I'm assuming Duke did not think he would still be filling orders a year later.

So just for fun, how many have shipped after the 1st year Duke ?  I alone have three...

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:14, 13 May 17
Quote from: 00WReX on 06:53, 13 May 17
So from that initial 'expression of interest', I'm assuming Duke did not think he would still be filling orders a year later.

So just for fun, how many have shipped after the 1st year Duke ?  I alone have three...

Yeah still going strong, thanks, way beyond anything I ever imagined.

260 units (exactly!) shipped to date, 18 on order to be made, bringing the total to 278 and orders are still coming in every week. It's great to know there is so many people still using their CPC out there.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:36, 13 May 17
Quote from: Duke on 10:14, 13 May 17
Yeah still going strong, thanks, way beyond anything I ever imagined.

260 units (exactly!) shipped to date, 18 on order to be made, bringing the total to 278 and orders are still coming in every week. It's great to know there is so many people still using their CPC out there.

Nice  ;)
Thanks for the feedback on the M4's shipped  8)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: villain on 20:26, 13 May 17
Quote from: 00WReX on 06:53, 13 May 17
Arguably the best expansion board ever to be released for the Amstrad CPC series.

Arguably with the best support a CPC related product ever had!  ;D
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 23:54, 13 May 17
Indeed!


Sent from my iPhone using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 21:49, 15 May 17
Hi Duke (and all),

Very sorry for the delay in appearing here, but the truth is that due to family problems I have been off from the retro world and without the strength to continue.

Now things are coming back to normality and I'm starting again ...

I received the two M4 long ago (I can not remember if I told you) and today I have set up one of them.

I have updated the firmware to version 2.0.3b2 and the connection of the M4 with the PC is perfect. Now I want to put a few ROMs in the M4 but I have read that I need to put the ROM of the M4 in slot 7 ... where can I get the ROM of the M4? Is it a ROM or BIN file?

Thanks in advance & Kind Regards

Edit: Solved ... is inside the board ...  :picard:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:43, 16 May 17
Quote from: merlinkv on 21:49, 15 May 17
Now I want to put a few ROMs in the M4 but I have read that I need to put the ROM of the M4 in slot 7 ... where can I get the ROM of the M4? Is it a ROM or BIN file?
Please look at http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Under: The basics of how to use ROMS on CPC and config with M4

I think many are confused how to set it up best possibly for their configuration.
It's not easy to give a "this is best configuration", because it depends, if you want best game/demo/programs compatiblity OR best compatibility with accessing real discs and copying stuff back and forth.
Probably, best solution is to configure it for the use you have in mind for your task.
If you want to run games/demos/apps in best compatibility, you set M4 rom at 6 (or 7 if possible) and add the modified lowerrom (only if you cannot replace rom 7).
If you want to copy stuff from discs, run stuff on discs, you disable the modified lowerrom (or set M4 rom to anything below rom 7, if it was set to rom 7) and use |disc to switch to disk interface.
In worst case use |m4romoff if something doesn't want to load.
Title: Re: Amstrad CPC WiFi
Post by: Salvo B on 18:21, 16 May 17
Well, finally I found the time to have some fun with Duke's board, running binary files via WiFi on the Cpc sounds magic!

Anyway, I was about to 3d print the case linked to this topic, but my revision of the board has the second reset button, so could please anyone tell me the exact distance between the two buttons to adapt the file?

Sorry if I don't take the measurements on myself, but I'm out for a few days and meanwhile I'd like to give the distance of the buttons to a friend that will print the case for me, so when I'll be back I'll find it printed and ready for use :)

Thanks
Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 21:57, 16 May 17
Finally I have all working great !!!  :D :D

ROM Number: 6
Lower ROM Enabled: YES
Lower ROM Slot: 14

...
Slot 3: MAXAM
Slot 4: LAUNCHER
Slot 5: YANCC
...
Slot 8: ARKOS
Slot 9: SNARKOS
...
Slot 14: FW316UK (X-MEM 32 ROMs)
...
Slot 30: PROTEXT

I will continue testing ... but for now I think is one of the best (if not the best) interface made for CPC's.

Thanks Duke.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 23:23, 16 May 17
Just a quick word to say that this board is FANTASTIC. I've just received it yesterday, and I'm very, very impressed at what it can already do. Drag'n'dropping binary, DSK, SNA to a PC browser and being able to play all of them is awesome.


Now I'll try to find some time to integrate this to my cross-dev toolkit. Integrating a CPC Reset + SNA loading shouldn't be a problem, thanks to all that's already been done.


Thanks a lot for your awesome work!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 01:14, 17 May 17
Quote from: Salvo B on 18:21, 16 May 17
Anyway, I was about to 3d print the case linked to this topic, but my revision of the board has the second reset button, so could please anyone tell me the exact distance between the two buttons to adapt the file?
The new PCB is also smaller, so the old case(s) will not fit.

Quote from: Targhan on 23:23, 16 May 17
Now I'll try to find some time to integrate this to my cross-dev toolkit. Integrating a CPC Reset + SNA loading shouldn't be a problem, thanks to all that's already been done.
You could add the following lines to your makefile, say as "exec":
xfer -u <ipaddr> code.sna / 0
xfer -x <ipaddr> /code.sna

make
make exec
Or something, unless you are using an IDE of course.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 22:04, 17 May 17
It's working! It's working! Funny, transferring the SNA is almost instantaneous, now what takes a bit of time is the reset itself :). Awesome!
Title: Re: Amstrad CPC WiFi
Post by: Salvo B on 21:23, 24 May 17
I Got the following rom configuration, On slot 0 I've loaded the rom downoaded from the cpcwiki page of the m4 board, I can read/write the files and SNA from the sd card and when I want to use disks i turn off the m4rom and I get Parados.

I've tried to load the QuickCMD rom on slot 15 and this doesn't works, plus I can't understand how to configure the rom board to get running SymbOS too...

Can someone please give me some hints? Can Parados, the lower rom and SymbOS live togheter? Why QuickCMD doesn't works?

Why I can't get any useful info typing |m4help,slotnumber?

Thanks in advance :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:29, 24 May 17
Quote from: Salvo B on 21:23, 24 May 17
Can someone please give me some hints? Can Parados, the lower rom and SymbOS live togheter? Why QuickCMD doesn't works?
SymbOS doesn't care about the rom configuration as far as I know, so likely you have some other issue (like using the correct INI file)?
I haven't QuickCMD rom.
Quote
Why I can't get any useful info typing |m4help,slotnumber?
There's a bug in the v2.0.3 beta about this command, for it to work properly use screen mode 2.
Title: Re: Amstrad CPC WiFi
Post by: Salvo B on 06:28, 25 May 17
Quote from: Duke on 22:29, 24 May 17
SymbOS doesn't care about the rom configuration as far as I know, so likely you have some other issue (like using the correct INI file)?
I haven't QuickCMD rom.There's a bug in the v2.0.3 beta about this command, for it to work properly use screen mode 2.
I forget t mention that I'd like to run the ROM version, that's why I talk about the rom configuration
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 22:00, 31 May 17
Maybe I'm in a mistake but looks like there is no ROM version of symbos 3.0 until it's in beta, so any rom version will not have any M4 support. Just run the files from M4 sdcard.


Other thing:


Another amazing use for the M4




Sorry because it's in spanish but the idea is easy. Lower rom and basic in M4 romslot 0 and you override the cart booting. Then use a rom dumper like the romget from cpcemu to grab the roms 128-135, build a cpr and win!!!


Now we have an easy way to dump Chade HQ2 without breaking the cart!! We just need some cooperation...
Title: Re: Amstrad CPC WiFi
Post by: NiNxPe on 08:33, 02 June 17
A dump of SCi - Chase HQ 2 : And the dream come true  ???
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:47, 03 June 17
Quote from: NiNxPe on 08:33, 02 June 17
A dump of SCi - Chase HQ 2 : And the dream come true  ???


So we will be able to never play it with an appeased mind  :D
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 19:01, 03 June 17
Haven't followed this thread (at all), so sorry if someone already asked this:

Has anyone started developing an online multiplayer game for the CPC now?  :)

"CPC World"  ::)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 01:14, 04 June 17
Quote from: mr_lou on 19:01, 03 June 17
Haven't followed this thread (at all), so sorry if someone already asked this:

Has anyone started developing an online multiplayer game for the CPC now?  :)

"CPC World"  ::)


Some time ago when I was playing with some Wiznet modules, Spectranet developer told me to try to port the Spectank game. With the M4 WiFi I focused to start porting the BSD sockets lib to SDCC/Cpctelera but recently I lost the pendrive with the latest updates. Until I recover motivation to redo a lot of work, I have used the little time I have playing with concepts that ended making the video above, dumping a GXcart with the M4 xD


The spectank is a fun game, client server oriented. The server can be run at a Raspberry Pi, and makes all the IA and game evaluation. The clients are mere terminals, send keystrokes to the server and "plays" the levels and sprites. The client receives messages from the server which can be initialization messages of tilemap, sprites etc, and later update messages, of sprites changin coordinates, the animation of the sprite, etc.


A nice concept of 8bit netplay. Change tanks with soldiers, rotational movement with directional, firetank with bullets, and grenades as secondary fire like commando or ikary, and you have CPC Call Of Duty 2D xD


Pity is that you need UDP....
Title: Re: Amstrad CPC WiFi
Post by: Edoz(MSX) on 15:29, 04 June 17

Quote from: mr_lou on 19:01, 03 June 17
Haven't followed this thread (at all), so sorry if someone already asked this:

Has anyone started developing an online multiplayer game for the CPC now?  :)

"CPC World"  ::)




i did 2 multiplayer games, battleship and snake.


Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 15:41, 04 June 17
Quote from: Edoz(MSX) on 15:29, 04 June 17
i did 2 multiplayer games, battleship and snake.

https://m.youtube.com/watch?v=L3arrALdYcU (https://m.youtube.com/watch?v=L3arrALdYcU)

That is awesome!!!
I actually think I've seen this video before, and then forgot about it...  I'm getting old.
I can see there are lots of things to play with, once I find the time to actually it out....
Title: Re: Amstrad CPC WiFi
Post by: villain on 16:28, 05 June 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Would it be possible to implement a search function to the web UI? It's a quite hard and boring job to browse through hundreds of directories and another thousand of subdirectories to find a specific file. :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:59, 05 June 17
Quote from: villain on 16:28, 05 June 17
Would it be possible to implement a search function to the web UI? It's a quite hard and boring job to browse through hundreds of directories and another thousand of subdirectories to find a specific file. :-)
It will be possible, with a bit of work :)   - maybe sometime, first I should get back to fixing the bugs of 2.0.3 beta 2 and make it a release version.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:05, 06 June 17
Quote from: CraigsBar on 11:47, 22 April 17
Is there anyway AmsDOS or ParaDOS (and possibly the lower rom) can be patched so that Ams/ParaDOS can be in slot 8 with m4 rom in 7 and they still get initialised in the right order? I find I am swapping the m4 rom between 6 and 7 for compatibility and floppy / copying  use.

I just tested it on my CPC6128+.

M4 as ROM7 and uploaded AMSDOS to rom 8. Works fine here with v2.0.3b2.
|disc and it switches to disk.
[attach=2]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:14, 06 June 17
Firmware v2.0.3 release version ready. Get it here: http://www.cpcwiki.eu/index.php/M4_Board

For users who have not upgraded to v2.0.3 beta, you can simply use |upgrade command.
If you use v2.0.3 beta 1 or 2, you must manually download the firmware and unpack the files to root of your microSD.

Following small fixes was added since beta 2:

Fix autoexec.bas launching when soft-resetting inside a .DSK (@00WReX).
Fix |cd into .dsks with write protection attribute set (@SOS).
Fix web interface remote run for filenames using html encoded characters (@Maniac).
Fix |M4help, using all screen modes, doh (@HAL 6128).
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 11:28, 06 June 17
Quote from: Duke on 11:14, 06 June 17
Firmware v2.0.3 release version ready. Get it here: http://www.cpcwiki.eu/index.php/M4_Board

For users who have not upgraded to v2.0.3 beta, you can simply use |upgrade command.
If you use v2.0.3 beta 1 or 2, you must manually download the firmware and unpack the files to root of your microSD.

Following small fixes was added since beta 2:

Fix autoexec.bas launching when soft-resetting inside a .DSK (@00WReX).
Fix |cd into .dsks with write protection attribute set (@SOS).
Fix web interface remote run for filenames using html encoded characters (@Maniac).
Fix |M4help, using all screen modes, doh (@HAL 6128).
Great stuff, fantastic continued support of this!
Title: Re: Amstrad CPC WiFi
Post by: villain on 19:22, 06 June 17
Quote from: Duke on 23:59, 05 June 17
It will be possible, with a bit of work :)   - maybe sometime, first I should get back to fixing the bugs of 2.0.3 beta 2 and make it a release version.

If it happens "sometime" I will still be a very satisfied costumer!  ;D
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:28, 07 June 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Thankyou for your work and this piece of hardware called M4

I installed one of the M4 i bought on a cpc of a friend of mine and he is using now the cpc ALL DAYS (since 1994 he didn't touch a CPC)

I'm thinking on installing another 2 M4, one for another friend of mine, and other for a CPC464 first version (keys are a little different than more new revisions, even i think that it has the older GA) that i bought on a second-hand market (the original owner filled the CPC with game stickers  :laugh: ), a very cute CPC, but for this CPC i will wait for your M5 (with RAM expansion)  ;)

I tell you this because you must now that your work is being used for new (old) users, and the M4 is doing a great work with my friends!!


Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:55, 07 June 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Thanks for kind words, it is the feedback and knowing the device is actually being used that drives the motivation, to continue to build it (and yes I am sick of that part :) ) and add updates.

As for the next gen "M4", I finally today finished the routing of the PCB, much time had been spent getting it all correct in first go, it probably wont, but it doesn't stop me from trying!
Over the weekend I will polish and double check everything again, then order the PCB's after that there is probably many months to finish the software.
So it is not something to come very soon and it may be quite different to what you expect (I will say no more!).
Title: Re: Amstrad CPC WiFi
Post by: rafa32gr on 12:09, 09 June 17
Quote from: Duke on 22:55, 07 June 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Thanks for kind words, it is the feedback and knowing the device is actually being used that drives the motivation, to continue to build it (and yes I am sick of that part :) ) and add updates.

As for the next gen "M4", I finally today finished the routing of the PCB, much time had been spent getting it all correct in first go, it probably wont, but it doesn't stop me from trying!
Over the weekend I will polish and double check everything again, then order the PCB's after that there is probably many months to finish the software.
So it is not something to come very soon and it may be quite different to what you expect (I will say no more!).




I will buy you any kind of cpc expansion you make.
Thank you very much for your work.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 13:56, 09 June 17
Quote from: Duke on 22:55, 07 June 17
@Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135)
Thanks for kind words, it is the feedback and knowing the device is actually being used that drives the motivation, to continue to build it (and yes I am sick of that part :) ) and add updates.

As for the next gen "M4", I finally today finished the routing of the PCB, much time had been spent getting it all correct in first go, it probably wont, but it doesn't stop me from trying!
Over the weekend I will polish and double check everything again, then order the PCB's after that there is probably many months to finish the software.
So it is not something to come very soon and it may be quite different to what you expect (I will say no more!).

But .. then  , Are you saying that you are going to build a new M4 Board ... with new hardware improvements with respect to ...  we have now ?
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 15:44, 09 June 17
Quote from: Joseman on 13:28, 07 June 17I tell you this because you must now that your work is being used for new (old) users, and the M4 is doing a great work with my friends!!
Yes, and that is why I always reccommend buying M4 to new users at amstrad.es forum
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:20, 09 June 17
Quote from: XeNoMoRPH on 13:56, 09 June 17
But .. then  , Are you saying that you are going to build a new M4 Board ... with new hardware improvements with respect to ...  we have now ?
Maybe, I make no promises. It will be compatible with M4 and also act as ram expansion and add a few other interesting things. That is if it works out and I don't get tired of/abandon the project, for now I have only designed the prototype board and programmed it in my head :)

Teaser....
Title: Re: Amstrad CPC WiFi
Post by: mr_lou on 07:35, 10 June 17
Quote from: Duke on 18:20, 09 June 17
Maybe, I make no promises. It will be compatible with M4 and also act as ram expansion and add a few other interesting things. That is if it works out and I don't get tired of/abandon the project, for now I have only designed the prototype board and programmed it in my head :)

Where's the sign-up for the waiting list?  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:54, 10 June 17
Oh well, since I was silly enough to talk about it, I may as well spit out some details, in general it is not so interesting if you have a M4 + XMEM already.
The prototype board in shape is designed to fit inside a GX4000 console, unplug the Z80 cpu and plug it into the "GalaXy" board (what does GX4000 mean anyway?). The board then plugs into the Z80 socket on the mainboard.
It's equipped with a USB port, with the intention to fit in a wireless mouse/keyboard transceiver, bringing the GX4000 to a fully usable CPC+ without soldering 100 wires in :)
Mainly because I wanted to have a compact cpc, that can be on my desk along the PC.
Some other things should become possible with this system (databus exchange) which was not possible via the expansion port.
It will also be possible to fit internally to a regular CPC, but less interesting of course. Some revisions will need a mirrored pcb layout (CPC+).
Anyway it may all fail, I may loose interest etc.
Title: Re: Amstrad CPC WiFi
Post by: ASiC on 10:27, 10 June 17
I think I've just had a tiny orgasm...


This is AWESOME!
Please keep working on it!


Have you got plans of emulating the disk drive as well?
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 10:51, 10 June 17
im having a very very slow wifi connection.
a few minutes...always. what i do wrong ?  :picard2:
Title: Re: Amstrad CPC WiFi
Post by: SOS on 11:47, 10 June 17
An RJ45-Cable-LAN-Option would be cool.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:57, 10 June 17
Quote from: ASiC on 10:27, 10 June 17
Have you got plans of emulating the disk drive as well?
This is one of those things that may become possible, but I don't have any plans for it initially.

Quote from: radu14m on 10:51, 10 June 17
im having a very very slow wifi connection.
a few minutes...always. what i do wrong ?  :picard2:
What does the signal strength say when you do a |netstat command?  And which firmware version?

Quote from: SOS on 11:47, 10 June 17
An RJ45-Cable-LAN-Option would be cool.
I agree, but not worth the extra work imo.
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 05:52, 11 June 17
signal strength after |netstat command : 0xC2
firmware version is 2.0.3
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:16, 11 June 17
Quote from: Duke on 09:54, 10 June 17
Oh well, since I was silly enough to talk about it, I may as well spit out some details, in general it is not so interesting if you have a M4 + XMEM already.
The prototype board in shape is designed to fit inside a GX4000 console, unplug the Z80 cpu and plug it into the "GalaXy" board (what does GX4000 mean anyway?). The board then plugs into the Z80 socket on the mainboard.
It's equipped with a USB port, with the intention to fit in a wireless mouse/keyboard transceiver, bringing the GX4000 to a fully usable CPC+ without soldering 100 wires in :)
Mainly because I wanted to have a compact cpc, that can be on my desk along the PC.
Some other things should become possible with this system (databus exchange) which was not possible via the expansion port.
It will also be possible to fit internally to a regular CPC, but less interesting of course. Some revisions will need a mirrored pcb layout (CPC+).
Anyway it may all fail, I may loose interest etc.


Only one sugestion, as you can use wirelless game pad with the board, implement some type of hardware reset  posibility command thought the usb. The idea is you can reset It to change cartridge in the c4cpc without switchi It off manually every time.


These is ever a bad design in a modern consoles with wirelless function. You can play a Game from sofa  But you need all times go to the console to reset in multicartridges.


Maybe reset the z80 can do the job?.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:10, 11 June 17
Quote from: radu14m on 05:52, 11 June 17
signal strength after |netstat command : 0xC2
firmware version is 2.0.3
Signal seems fine. Not sure what the problem is. Is the slowdown when you access the web interface or when you download something?
Maybe you have a network IP conflict. You could try to use DHCP option to see if it disappears?
Some other user reported if I remember correctly that norton firewall was blocking access to the web interface, so maybe if you have some kind of fw/antivirus running on the PC, you may need to add an exception.


Quote from: dragon on 18:16, 11 June 17

Only one sugestion, as you can use wirelless game pad with the board, implement some type of hardware reset  posibility command thought the usb. The idea is you can reset It to change cartridge in the c4cpc without switchi It off manually every time.


These is ever a bad design in a modern consoles with wirelless function. You can play a Game from sofa  But you need all times go to the console to reset in multicartridges.


Maybe reset the z80 can do the job?.
Maybe a Z80 reset can do the trick, I dunno, maybe a bus reset is needed, which cannot be done without soldering a wire I think. The gamepad option has crossed my mind, however I will only add one USB port and I will aim at using logitech unified receiver, so you can have both mouse and keyboard with one wireless dongle, so adding a gamepad then it would be without keyboard/mouse.
I can probably setup one of the extra keys on the usb keyboard to trigger a Z80 reset.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 20:40, 11 June 17
Maybe you don't need another USB, simply support a bluethoot USB :) . Then you can support two devices?.


I know a project in atari that uses a bluethoot keyboard chip to comunicate with pc.


http://www.retrogamenetwork.com/2014/05/26/new-hardware-hack-brings-wireless-bluetooth-capabilities-to-stock-atari-2600-joystick-controller/ (http://www.retrogamenetwork.com/2014/05/26/new-hardware-hack-brings-wireless-bluetooth-capabilities-to-stock-atari-2600-joystick-controller/)


The interesting part, is the board they use in the pad, support  coonect two to one USB devices. And  you can wire the Keys you need to gamepads.
Title: Re: Amstrad CPC WiFi
Post by: Phantomz on 21:44, 11 June 17
Quote from: Duke on 09:54, 10 June 17
The prototype board in shape is designed to fit inside a GX4000 console, unplug the Z80 cpu and plug it into the "GalaXy" board (what does GX4000 mean anyway?). The board then plugs into the Z80 socket on the mainboard.
It's equipped with a USB port, with the intention to fit in a wireless mouse/keyboard transceiver, bringing the GX4000 to a fully usable CPC+ without soldering 100 wires in :)
Mainly because I wanted to have a compact cpc, that can be on my desk along the PC.
Some other things should become possible with this system (databus exchange) which was not possible via the expansion port.
It will also be possible to fit internally to a regular CPC, but less interesting of course. Some revisions will need a mirrored pcb layout (CPC+).
Anyway it may all fail, I may loose interest etc.

Good luck with this.  8)

I hope that it doesn't fail and that you don't loose interest, keep up the good work.  ;)
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 02:14, 15 June 17
Hi,

My M4 board just arrived recently and it's a terrific little board but I have some slight issues.

From the CPC side it works perfectly with only one glitch and that is it won't work from external 5V. I am using in straight into the expansion port and that works fine. I previously added a wire inside the CPC6128 from internal 5 Volts to the 5 Volt edge connector due to voltage drop issues with another project. The fact the is doesn't work with my external 5Volts supply (USB plugpack wallwart) is probably just a faulty power supply.

The real problem is with the WiFi http server. I have M4 and ESP8266 Version 2.0.3 and it connects to the local access point with no trouble (I disabled encryption - can the M4 work with encryption?).

When I connect using a PC and browser the pages time out with a message that server reset the connection. HOWEVER if I hit the cross button to stop the page download before it times out I can see that the page has loaded - apparently completely.

I used a header sniffer and I noticed the server is responding HTTP 1.0 rather than HTTP 1.1
I don't have software here at the moment to view the server response as one file including header and response.

MY memory of the HTTP standard is a little rusty so this is what I was thinking -

I seem to remember that HTTP 1.0 had to respond with an extra header Content-Length: and if that is not calculated correctly the connection will hang and then time out.

Like this -
HTTP/1.0 200 OK\r\nContent Lenght: xxx\r\n\r\ncontent goes here
Where the double \r\n (\r\n\r\n) is the division between header and content
From memory this became optional with 1.1 but you had to add a double \r\n at the end
HTTP/1.1 200 OK\r\n\r\ncontent goes here\r\n\r\n
I went looking for the source to try the changes. I also noticed some html errors in the shmtl (SSI) code as well that I want to fix up but I can't find the source and I would probably have trouble recompiling it as I haven't worked with this ARM chip before.

I see that the Content-Length: is still included in HTTP1.1 so perhaps the best solution is to have a correct content length response and one \r\n at the end of the content.

Perhaps I should just set up a php server here and use a url in fileGetContents() to see the complete data transaction but then I sill don't know where the code is or how to re-compile the source.

Any tips / suggestions would be appreciated.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:19, 15 June 17
Quote from: RobertM on 02:14, 15 June 17
The real problem is with the WiFi http server. I have M4 and ESP8266 Version 2.0.3 and it connects to the local access point with no trouble (I disabled encryption - can the M4 work with encryption?).
It supports encryption, wep/wpa/wpa2.
Quote
When I connect using a PC and browser the pages time out with a message that server reset the connection. HOWEVER if I hit the cross button to stop the page download before it times out I can see that the page has loaded - apparently completely.
Afaik. Content-length is not obligatory for HTTP 1.0. *EDIT* Actually you may be right or "Otherwise, the body length is determined by the closing of the connection by the server." from https://www.w3.org/Protocols/HTTP/1.0/spec.html#BodyLength

Guess it may be up to the browser implementation, from what I know firefox, chrome and IE have no problems with the web server.
What browser are you using?

One thing that may an issue, is if you use a slow microSD card and have lot of files on it, when using the "file browser". A class-10 or better microSD is a plus. A weak WiFi signal may be at cause too, have you checked signal value with |netstat?
Quote
I went looking for the source to try the changes. I also noticed some html errors in the shmtl (SSI) code as well that I want to fix up but I can't find the source and I would probably have trouble recompiling it as I haven't worked with this ARM chip before.
I have not released the source for the ARM mcu nor the ESP. Only the Z80 part (https://github.com/M4Duke/ (https://github.com/M4Duke/))
You can use the microSD to host the webserver, rather than the build in FS I made into the ESP flash.
It can be accessed by adding /sd to the IP, ie. http://192.168.1.10/sd/index.shtml (http://192.168.1.10/sd/index.shtml)  or whatever (all links should have /sd). If you want I can upload the web pages somewhere, if you want to modify them.
If you find any errors in the shtml, I'll be happy to include them with the next firmware update.

Lastly, your M4 was shipped with v2.0.3 beta (that goes for any M4 board shipped before 2017-06-06, that states v2.0.3). I suggest you update it to the release version v2.0.3 as it has some fixes. You can download it here:
http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 07:37, 18 June 17
Quote from: Duke on 20:10, 11 June 17
Signal seems fine. Not sure what the problem is. Is the slowdown when you access the web interface or when you download something?
Maybe you have a network IP conflict. You could try to use DHCP option to see if it disappears?
Some other user reported if I remember correctly that norton firewall was blocking access to the web interface, so maybe if you have some kind of fw/antivirus running on the PC, you may need to add an exception.



i did not manage to solve it.
i have avg,and i add the exception to the adress: http://cpc6128/ (http://cpc6128/)
also i set a fixed IP adress, hdcp=0.


what is wrong ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:45, 18 June 17
Quote from: radu14m on 07:37, 18 June 17

i did not manage to solve it.
i have avg,and i add the exception to the adress: http://cpc6128/ (http://cpc6128/)
also i set a fixed IP adress, hdcp=0.


what is wrong ?
As I said earlier:
Is the slowdown when you access the web interface or when you download something?
Maybe you have a network IP conflict. You could try to use DHCP option to see if it disappears?

Sorry,  I don't stand much chance to solve your problem with the info's given. What is it that is slow and takes minutes to complete?
What browser are you using? have you tried disabling avg? etc.
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 20:21, 19 June 17
the slowdown is always, when accesing the cpc from pc via google chrome, when change the m4 settings or when a file is downloaded.
no network ip conflict is present, as i have only the cpc connected.
dhcp option does not change the time acces.


it takes about 3-5 min to load the page from cpc.
i disable the avg, no difference.
im out of ideeas, what caould it be.


thanks Duke !
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:05, 22 June 17
Update!
Firmware v2.0.4 beta 1. Get it here: http://www.spinpoint.org/cpc/M4FIRM_v204b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b1.zip)

This is very beta / experimental and might contain bugs :)

Two new commands, this is for CPC PLUS users only (I have only CPC6128+, so CPC464+ is untested).

|CTRUP,"filename.cpr" 
Uploads a CPC+ cartridge image into M4 flash. Max. used size is 256KB (is there any bigger than 128KB?)

|CTR
Executes whatever cartridge image that is uploaded to flash.

Mostly I think this will be useful for developers of CPC+ cartridge games, as you can remotely upload and run carts, so quick for testing.

How ?

First create a basic file on the microSD, that does:
10 |CTR

save"autoexec.bas"

Now use the cpc xfer tool (http://cpcwiki.eu/index.php/CPC_M4_xfer_tool (http://cpcwiki.eu/index.php/CPC_M4_xfer_tool)):

Upload the file

xfer -u ipaddr ctrfile.bin / 0

The file can be either plain binary or cpr format, but filename must be "ctrfile.bin"

xfer -r ipaddr

Reset to flash the image, once done autoexec.bas will run.

Maybe I will make another method to do remote upload/running, if anyone is going to need it.

Short vid, showing the uploading and launching of a few games.



@radu14m (http://www.cpcwiki.eu/forum/index.php?action=profile;u=724): Sorry I didn't notice your reply until now, when I made a new post.
I have no idea what the problem is. I haven't heard about it before. Has it been like this since you got it? - Also have you tried to use another computer to access the web interface, ie. use a smartphone, to see if the problem is the same?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 21:12, 22 June 17
Yes, probably the New made with last nocart versión are all 512kb + probably some i made with a custom loader for levels. But i don't know who are.





Also my cartridge with all operating systems. Buts It the same.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 23:55, 22 June 17
Got mine, a friend bough for one for me too.
I will have access in late September  :picard:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:16, 23 June 17
Quote from: dragon on 21:12, 22 June 17
Yes, probably the New made with last nocart versión are all 512kb + probably some i made with a custom loader for levels. But i don't know who are.
Also my cartridge with all operating systems. Buts It the same.

Ok, thanks, I was thinking of native CPC plus games (that makes use of RMR2), converted CPR games, should work if you just use |cd,"whatever.cpr", unless it uses a particular modified disk rom. I guess if anyone finds it useful I could make switch in the webui, that allocates the last 16 regular roms to the cartridge 256 KB part, bringing it to a 512KB total.
Title: Re: Amstrad CPC WiFi
Post by: krusty_benediction on 16:57, 23 June 17
For the lazy guyz who want to type less on their CPC, I have started bndsh which is a ROM that adds functionalities to the BASIC prompt.
It is not finished, there are still some bugs and my investment on the project will depend on the feedback of users (if there are users) and my own usage of my CPC.

The main functionalities of interest for CPC Wifi owner are the ability
- to go inside folders with a unix like syntax and not an RSX syntax (i.e cd myfolder instead of |cd,"myfolder)
- to run a program only by typing its name (i.e. myprog.ram instead of run"myprog.ram)
- to autocomplete folders/filename with TAB key

The current version uses extra memory, I have no idea how it reacts on a CPC with 64 or 128Kb of memory (I am pretty sure it writes in the memory bank accessible with 0xc0)

The ROM is here: https://github.com/rgiot/bndsh/blob/master/BNDSH.ROM (https://github.com/rgiot/bndsh/blob/master/BNDSH.ROM)
The manual is here: https://github.com/rgiot/bndsh (https://github.com/rgiot/bndsh)
Feel free to use the issue tracker https://github.com/rgiot/bndsh/issues to post bugs (even those I know) or modification requests (https://github.com/rgiot/bndsh/issues%20to%20post%20bugs%20(even%20those%20I%20know)%20or%20modification%20requests)
fee free to propose pull requests to fix bugs or add functionalities; the software will improve faster as I plan to focus my coding time to other CPC projects
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 18:42, 23 June 17
Quote from: krusty_benediction on 16:57, 23 June 17
my investment on the project will depend on the feedback of users (if there are users) and my own usage of my CPC.


Of course a rom of this type is very useful for users of the M4!!

You have all my feedback possible BUT, this months i'm out of home, only job until september.

I'll not have time to test the rom or give you any feedback, but i'll follow this project closely!

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 05:19, 24 June 17
Only had time for a quick test, and it was a bit 'hit & miss'.
Some games appear to be OK.
But Burnin Rubber goes to a blank screen when you select 1 to play.
Panza kick boxing has some strange screen flashing behaviour.
Erratic behaiour with Navy seals.
All a bit strange.
They all appear to initially load OK (title screen).

I copied my .CPR files directly from the C4CPC.

Tested on an AZERTY 6128 Plus and a QWERTY 464 Plus

Standard 'Plus' cart and M4 with no lower ROM enabled.

Seems to have even corrupted the couple of ROM games I had installed on the M4.

I can't narrow it down at the moment. Hmmm.
Everything else works fine from the M4 just as it did on fw 2.0.3

Looks like the flash never gets cleaned even with a fw upgrade/downgrade as after this I can still immediately hit |ctr and load the game.
This itself seems to have caused some issues with corruption, and some strange power on screen flashes.


Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:36, 24 June 17
Quote from: 00WReX on 05:19, 24 June 17
Only had time for a quick test, and it was a bit 'hit & miss'.
Some games appear to be OK.
But Burnin Rubber goes to a blank screen when you select 1 to play.
Panza kick boxing has some strange screen flashing behaviour.
Erratic behaiour with Navy seals.
All a bit strange.
They all appear to initially load OK (title screen).

I copied my .CPR files directly from the C4CPC.

Tested on an AZERTY 6128 Plus and a QWERTY 464 Plus

Standard 'Plus' cart and M4 with no lower ROM enabled.

Seems to have even corrupted the couple of ROM games I had installed on the M4.

I can't narrow it down at the moment. Hmmm.
Everything else works fine from the M4 just as it did on fw 2.0.3

Thanks for the feedback. I tested with the dumps from here: http://www.cpcmania.com/GX4000-Games/Games.htm
Maybe it could be a format problem (if those work for you too?). They are all 128KB in size only.

I will have to test it some more myself, if it corrupts your other roms there is clearly a bug in my code.

Quote
Looks like the flash never gets cleaned even with a fw upgrade/downgrade as after this I can still immediately hit |ctr and load the game.
This itself seems to have caused some issues with corruption, and some strange power on screen flashes.

That's correct. The 256KB of flash I use for the cartridges was not used before (nor erased).
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 09:00, 24 June 17
Great work supporting real .CPR!!!


Is the M4 mirroring the roms? 128kb ones looks like are 4 times repeated as a full 512kb. 256 also repeating 2 times. Don't know if the Basic and Amsdos mirror is also mandatory for the cartridges working fine...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:07, 24 June 17
Quote from: KaosOverride on 09:00, 24 June 17
Great work supporting real .CPR!!!


Is the M4 mirroring the roms? 128kb ones looks like are 4 times repeated as a full 512kb. 256 also repeating 2 times. Don't know if the Basic and Amsdos mirror is also mandatory for the cartridges working fine...
Thanks. Actually I don't setup any mirrors, though that would be easy to add.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:06, 24 June 17
Hmmm. Looks like you are all having more success than me. I cannot get any game to load. Just this sort of crap....
(https://youtu.be/GPwvcSMRlmA)
[/url]

Sent from my ONEPLUS 3t using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:11, 24 June 17
On a happier note however the Benediction shell rom will live in slot 1, it is amazing :)

With my Patched Cart in the C4CPC I can use c4cpc as a command to open the c4cpc menu and select a cart game so it's pretty damn fine anyway.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:37, 24 June 17
Quote from: CraigsBar on 12:06, 24 June 17
Hmmm. Looks like you are all having more success than me. I cannot get any game to load. Just this sort of crap....
https://youtu.be/GPwvcSMRlmA (https://youtu.be/GPwvcSMRlmA)
No idea, other than could it be there is several cpr's in circulation of the same games, for me every game from here works(except plotting, not looked into why yet):
http://www.cpcmania.com/GX4000-Games/Games.htm (http://www.cpcmania.com/GX4000-Games/Games.htm)

I pretty much ignore the headers in the cpr format, so maybe if they are differently formatted (swapping the blocks) it could be the problem.
Anyone else tried it out?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:26, 24 June 17
OK. I have tried every CPR I can find, 2 different sd cards, 3 different m4 boards and 2 different plus machines. I must be missing something and I have not got a single cpr to run on any of the above multitude of combinations. 🙁

Edit: hopefully I won't be so stupid come the actual release rather than a beta.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:59, 24 June 17
Quote from: CraigsBar on 15:26, 24 June 17
OK. I have tried every CPR I can find, 2 different sd cards, 3 different m4 boards and 2 different plus machines. I must be missing something and I have not got a single cpr to run on any of the above multitude of combinations. 🙁

Edit: hopefully I won't be so stupid come the actual release rather than a beta.

Weird stuff. My head is spinning  ??? -  Nah you didn't miss an actual release, there is only one beta so far with this.
Are you using the original "burning rubber with basic and amsdos"-card to boot the CPC+?
And thanks for taking the time to test.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:07, 24 June 17
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) & @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)

Can you please test http://www.spinpoint.org/cpc/M4FIRM_v204b2.zip   . Hopefully all your problems will disappear... Thanks !
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 00:10, 25 June 17
Quote from: Duke on 07:19, 15 June 17
It supports encryption, wep/wpa/wpa2.Afaik. Content-length is not obligatory for HTTP 1.0. *EDIT* Actually you may be right or "Otherwise, the body length is determined by the closing of the connection by the server." from https://www.w3.org/Protocols/HTTP/1.0/spec.html#BodyLength (https://www.w3.org/Protocols/HTTP/1.0/spec.html#BodyLength)
 
(https://www.w3.org/Protocols/HTTP/1.0/spec.html#BodyLength)I also now remember having to use a header Conection:Keep-alive ro something like that.
(https://www.w3.org/Protocols/HTTP/1.0/spec.html#BodyLength)
QuoteGuess it may be up to the browser implementation, from what I know firefox, chrome and IE have no problems with the web server.
What browser are you using?
I am using DevFox which is based on FireFox and is the latest Build. FireFox (also the latest) had the same issues.

Quote
One thing that may an issue, is if you use a slow microSD card and have lot of files on it, when using the "file browser". A class-10 or better microSD is a plus.
I am using a 32GB class 10 micro sdHC. It's a non-name brand that I haven't speed tested. Perhaps I will speed test it.

Quote
A weak WiFi signal may be at cause too, have you checked signal value with |netstat?
|netstat shows Signal: 0xC6

Quote
I have not released the source for the ARM mcu nor the ESP. Only the Z80 part (https://github.com/M4Duke/ (https://github.com/M4Duke/))You can use the microSD to host the webserver, rather than the build in FS I made into the ESP flash.
It can be accessed by adding /sd to the IP, ie. http://192.168.1.10/sd/index.shtml (http://192.168.1.10/sd/index.shtml)  or whatever (all links should have /sd). If you want I can upload the web pages somewhere, if you want to modify them.
If you find any errors in the shtml, I'll be happy to include them with the next firmware update.
Ok I will set up the files on the sd card and experiment. I can add an extra \r\n ad see it that helps

[qoute]
Lastly, your M4 was shipped with v2.0.3 beta (that goes for any M4 board shipped before 2017-06-06, that states v2.0.3). I suggest you update it to the release version v2.0.3 as it has some fixes. You can download it here:
http://www.cpcwiki.eu/index.php/M4_Board
(http://www.cpcwiki.eu/index.php/M4_Board)I am not understanding the above. Is there both a version called "2.0.3" and another version called "2.0.3 beta" ?? I will chech the link.
(http://www.cpcwiki.eu/index.php/M4_Board)Thank you very much for your response. Is it possible to send the SHTML files to me in a zip?
(http://www.cpcwiki.eu/index.php/M4_Board)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 00:10, 25 June 17
As far as I know, there are some different .CPRs of the same game because of:


-Dumping the cart at full addresing, so a 128kb romchip is read as 512kb with repeated blocks
-Carts from the Gx4000 demostrator, which are mostly cutdown versions, like some Pang dumps
-Correct 128kb dump extracting the romchip or manipulating a 512kb dump.


The rom mirrors can give problems if the game uses out of logic tricks to select rom pages. Same as partial IO decoding, using unofficial IO ports because you save some ASM ins...
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 09:25, 25 June 17
Thanks Duke.

I just quickly tried Beta 2.

Still hit and miss for me...but...
With the initial beta, Navy seals and Panza kick boxing would fail with a flashing / garbled screen. But now appear to be OK.

I do say 'appear' because I have not played any game much beyond getting into the game and have a quick 'look' around.

With Burnin' Rubber the main screen / menu loads up just fine, and plays the music fine.  But when I start a game, after a few seconds it freezes.
And when it does this even the reset on the M4 board does not work.
I tried it again, and this time it went to a blank screen after pressing fire to start.

Pang does not work, the intro screen is garbled and then it just goes to blank screen. Again the M4 reset button also does nothing.
Trying it again and the initial screen looked ok, but it went to a blank screen a locked up.

Switchblade brings up all the loading screens and intro's fine, then crashes with a garbled screen.

I also downloaded Pang and Burnin' Rubber from CPCmania but the still no go.

The results for those that fail are not consistent either.
Sometimes they fail slightly differently each time...it's almost like some sort of timing issue.

Robocop 2 seems fine.

Fire and Forget 2 seems fine.

No others tested yet.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: gerald on 09:33, 25 June 17
Quote from: KaosOverride on 00:10, 25 June 17
As far as I know, there are some different .CPRs of the same game because of:


-Dumping the cart at full addresing, so a 128kb romchip is read as 512kb with repeated blocks
-Carts from the Gx4000 demostrator, which are mostly cutdown versions, like some Pang dumps
-Correct 128kb dump extracting the romchip or manipulating a 512kb dump.


The rom mirrors can give problems if the game uses out of logic tricks to select rom pages. Same as partial IO decoding, using unofficial IO ports because you save some ASM ins...
To my knowledge, none of the released game make use of the rom mirroring. If any of them did, it would not work on C4CPC.
C4CPC always show as a 512k ROM.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:24, 25 June 17
@RobertM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1086)
I uploaded the web files here:
http://www.spinpoint.org/cpc/m4webfiles.zip (http://www.spinpoint.org/cpc/m4webfiles.zip)

Compare to the output of the webinterface to understand whats generated for the various <!--#?-->

I have always used firefox for the webinterface, though I must admit that I am no longer on latest version, since they abandoned Java. Will have to check with latest version one of them days.

@KaosOverride (http://www.cpcwiki.eu/forum/index.php?action=profile;u=431)
Thanks, that could be part of the explanation. Will try to see if I can find other "padded/mirrored" dumps to see if it makes any difference.


@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518)
Thanks again for the comprehensive testing.
Unfortunately your results are not the same as mine. All the games works for me, I started each one and tried to play a bit (ok not much as I am shitty gamer!).
I also tested with several revisions of M4 board. So if we are using same dumps that leaves:
Different CPC+ (asic revision) or different version of the "Burning Rubber+Basic+Amsdos" rom having some impact.
Will try to source another CPC+ and hopefully I will have similar problems, so I can work it out, right now I have no idea what to try.
CPC reset (on v2.4 pcb's) should reset the cart game to restart. M4 reset to restart to basic.

@gerald (http://www.cpcwiki.eu/forum/index.php?action=profile;u=250)
I agree, as every game (except plotting) works fine for me, without any mirroring.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 18:15, 25 June 17

Thought I'd give this a go and I've had very mixed results.


At first I did wonder if there was some kind of conflict between me M4 and the other hardware I've got installed so I removed my C4CPC and X-Mem but the results are consistent with or without them. These are cart images I tried, all of which work fine with my C4CPC (these are the images provided by Gerald on the SD card shipped with it):


Robocop II - works
Navy Seals - screen goes black and nothing further happens
Pang - screen goes black and nothing further happens
Switchblade - works until try to start game after intro sequence
Crazy Cars II - Gfx corrupt on title screens but main game works
Fire & Forget II - Same as Crazy Cars II
Tennis Cup II - seems ok but I can't play it
Panza Kick Boxing - works
Copter 271 - starts but when you try to start it restarts the cart
Klax - works
Dick Tracy - Gfx corrupt throughout
World of Sports - Crashes with corrupt gfx
Operation Thunderbolt - works
No Exit - works
Pro Tennis Tour - works
Tin Tin On The Moon - Intro sequence works but then blank screen when try to start game
Batman The Movie - works
Mystical - Starts but then gfx corrupt when starting game
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 18:28, 25 June 17
Quote from: gerald on 09:33, 25 June 17
To my knowledge, none of the released game make use of the rom mirroring. If any of them did, it would not work on C4CPC.
C4CPC always show as a 512k ROM.

So a 128Kb or less (I did a 32Kb CPR with firmware and a Softbreumen made autorun ROM with a game) is expanded to 512Kb. But is AMSDOS ROM at 131 (0x83) and 7 (0x07) mirrored at 0x17  0x27 0x37 0x47 0x57 0x67 0x77? If no game reads this other mirrors and is just a partial decoding glitch then is fine.

Unfortunately I'm moving to a new home and I cannot plug any hardware for now :( Last time was when I made the video of dumping a GX4000 game thanks to the M4 firmware and basic ROMs overriding the cartridge but maintaining the full cart at rom 128 and above.

After 2 weeks I think I will be able to play a bit with this.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:20, 25 June 17
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)
Thanks for the testing, it's interesting but even more confusing :)

I am just doing some more tests, using my only other plus card (burning rubber without basic/amsdos), see if that has any effect. PANG plays fine with it, I noticed that was one the games which failed for both you and 00WReX. Oh well I'll probably not figure out the issue until I can reproduce it myself.
Fwiw. I tried using the 512KB version on CPC power and no change, so the CPR's themselves are hardly at fault.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 22:44, 25 June 17
Thanks Duke.

This was what was used for the latest test.

M4 board rev 2.1 with only the M4 reset button.
The M4 is on FW 2.0.4beta2
All ROMs blank on the M4.  No other expansions fitted.
AZERTY 6128 Plus with an MC0122E revision mainboard.
The standard BASIC/AMSDOS - Burnin' Rubber cartridge that comes with the Plus.

For some games that crashed, it definetely mesed with the M4 reset.
The LEDs would flicker quickly but no reset.

I think I need to make a more comprehensive checklist (or even a video would probably be good, but not my strong point).

I also should do a complete side by side comparison with my 464 Plus (although this actually has the same mainboard revision as the 6128 Plus).

I did try a few on the 464 Plus on the original beta, but in normal circumstances I don't have either Plus permanently setup, so I have to get them out for testing.

Also, just to confirm.
I have no other issues with any of the M4 boards I have (3x boards, 2x ver2.1 and 1x ver2.4).
Everything else I have tried on them works just fine on either an original CPC or the Plus.
The only issue is with the Plus games.

Out of interest, what changed from beta 1 to beta 2, as 2 games (possibly more), Navy seals and Panza kick boxing 100% failed on multiple tries with beta 1.
On beta 2 they worked 100% of the time with multiple tries.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:05, 25 June 17
Quote from: 00WReX on 22:44, 25 June 17
M4 board rev 2.1 with only the M4 reset button.
The M4 is on FW 2.0.4beta2
All ROMs blank on the M4.  No other expansions fitted.
AZERTY 6128 Plus with an MC0122E revision mainboard.
The standard BASIC/AMSDOS - Burnin' Rubber cartridge that comes with the Plus.
Thanks for the info's.
My QWERTY CPC6128+ is a MC0122D revision. Everything else is the same as I tried.
Quote
For some games that crashed, it definetely mesed with the M4 reset.
The LEDs would flicker quickly but no reset.
Impossible :) well I guess not, but have not experinced that, must have crashed the code bad.. Hmm actually that could indicate something, something causing the code on M4 board to crash.
Quote
I think I need to make a more comprehensive checklist (or even a video would probably be good, but not my strong point).

I also should do a complete side by side comparison with my 464 Plus (although this actually has the same mainboard revision as the 6128 Plus).

I did try a few on the 464 Plus on the original beta, but in normal circumstances I don't have either Plus permanently setup, so I have to get them out for testing.
Thanks, don't do it if its too much trouble as it is, I am the only one out of four (you, craig and maniac) that has it all working perfectly.

Quote
Out of interest, what changed from beta 1 to beta 2, as 2 games (possibly more), Navy seals and Panza kick boxing 100% failed on multiple tries with beta 1.
On beta 2 they worked 100% of the time with multiple tries.

Some changes to the startup code.
Actually here is another, with a few fixes, it wont change anything in regards to the cpc+ games not working for you, I think.
http://www.spinpoint.org/cpc/M4FIRM_v204b3.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b3.zip)
It fixes a bug that cleared the lowerrom in normal startup, making it impossible to use another CPC+ cart for bootup (ie. burning rubber without basic and firmware/lowerrom).
And also remaps physical roms 1 and 3 to logical 0 and 7. This way I could use the "burning rubber+basic" as ctr image, working fine aswell for me.

Thanks again.

EDIT: Forgot to mention, whatever ROM setup you have initially, it doesn't matter, once it switches to CTR mode they are all cleared.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:41, 26 June 17
Ok, got home from work and decided to give things a go again.
Really random results and the M4 reset button was pretty much not resetting the board for most things.
I decided that I should clean the centronics connectors with Isopropyl Alcohol. No change.
I then dug out my only other Centronics connector to MX4 ribbon cable.
This actually changed things a bit... I was no longer having the reset button issues.
And my .CPR experience was now a lot like those of 'Maniac'.

I tested all the CPRs...

Barbarian II - works.
Batman The Movie - works.
Burnin' Rubber - Blank screen after intial menu screen.
Copter 271 - start screen OK but when you try to start the game it restarts the cart.
Crazy Cars II - Works.
Dick Tracy - works.
Fire & Forget II - works.
Klax - works.
Mystical - works.
Navy Seals - Varying results. But tends to keep resetting.
No Exit - works.
Operation Thunderbolt - works.
Pang - Varying results, but never works.
Panza Kick Boxing - works.
Pinball Magic - screen corruption.
Pro Tennis Tour - works.
Robocop 2 - works.
Skeet sSoot - works.
Switchblade - Goes through intro then blank screen.
Tennis Cup II - Looks like it works but cannot play it.
The Enforcer - works.
Tin Tin On The Moon - works
Wild Streets - works.
World Of Sports - Crashes with flashing screen / corrupt screen.

During testing, my Commodore 1084S monitor that I use with the Plus went 'Pop', but that's another story  ::)

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:42, 26 June 17
@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518)

Thanks a lot. Glad the results are more consistent now. I will compare with Maniacs, see what makes sense, maybe I can debug one of the trouble games (ie. pang) to see what is different from the others and maybe figure out what I should look into :) Thanks!

Sorry about your 1084S, its a good monitor!
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 11:37, 29 June 17

2 questions:- Did anybody managed to make OCP Art Studio work with the M4Board ? The software runs well, but freezes (at best) when I try to load a file. This is strange because I was always told the software was cleanly opening/saving files.


- Also, would it be possible to have the A drive be the SDCard, and B a normal drive (or the opposite)?
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 12:08, 29 June 17
Targhan,

The only way the "Drives" can be swapped is through hardware for the floppy drives only.
To get the SD card to be "A" you would need to patch the disc rom to call another routine in a support ROM with the SD card routines to read the SD Card just like a floppy disc.
It can be done, but is really difficult to get working with many "Games" as they use virtually all of the available RAM. This means that support ROM routines will loose its own workspace.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:18, 29 June 17
Quote from: Targhan on 11:37, 29 June 17
2 questions:- Did anybody managed to make OCP Art Studio work with the M4Board ? The software runs well, but freezes (at best) when I try to load a file. This is strange because I was always told the software was cleanly opening/saving files.


- Also, would it be possible to have the A drive be the SDCard, and B a normal drive (or the opposite)?

Art studio should work fine, I ran it from a sub directory earlier and could save and load images just fine. Be sure to run it from a sub dir, not a .dsk file.

As for the A/B thing, I suppose it's possible, though not super easy, much hacking about to be done.

EDIT: You may have to set M4 rom to 7 if you can or use the modified lower rom. (I dont remember)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:02, 30 June 17
Well, one can use OCP with patched ROM number. Mine uses ROM 6 instead of ROM 7, so I can use another DOS and have 700K on B. One can patch it to M4 ROM.

Title: Re: Amstrad CPC WiFi
Post by: Targhan on 13:42, 01 July 17
Thanks for your answers. I struggled a bit but managed to get it working! Thanks !
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 14:02, 01 July 17
After some more use, I have two suggestions:
- Would it be possible to change the current folder read on CPC directly from the PC web interface? Instead of having to type ùCD,"whatever" on CPC...
- On the web interface, you can drag'n'drop files. Could it be possible to do the same with folders?


Thanks again.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:36, 01 July 17
Quote from: Targhan on 14:02, 01 July 17
- Would it be possible to change the current folder read on CPC directly from the PC web interface? Instead of having to type ùCD,"whatever" on CPC...
Yes, someone else requested such feature from the xfer tool, shouldn't be much of a problem. (todo list)
Quote
- On the web interface, you can drag'n'drop files. Could it be possible to do the same with folders?
Probably, I am not a very skillful web programmer, I did manage to hack together the current UI, but I would like encourage someone more used to javascript/xhtml to add such features.
The entire web ui is downloadable here:
http://www.spinpoint.org/cpc/m4webfiles.zip

One can test locally, adding /sd/ prefix to all links.  And accessing the web ui via http://ip or netbios name/sd/index.shtml
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 02:23, 02 July 17
Quote from: Duke on 16:24, 25 June 17
@RobertM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1086)
I uploaded the web files here:
http://www.spinpoint.org/cpc/m4webfiles.zip (http://www.spinpoint.org/cpc/m4webfiles.zip)
Thanks.

The board is working fine now. I did an firmware update (with what I thought was the same version) and it works fine now. I can see the files/settings/control etc pages. I wasn't seeing all the page before as the JavaScript wasn't working for some reason.

I would like to just write some custom pages that I would make available for anyone else and access them through 192.168.1.3/sd/
There are two minor issues -

1) I am used to a normal server setup where there is a default index page but I don't see a default. I have tried index.htm index.html and index.shtml I have had a (quick) look at files you sent and the SSI tags like <!--#tz--> (&lt;!--#tz--&gt;) will be fine. Are there others that I wont see in the shtml files??
2) On the files page the links are clickable which is perfect for web pages but the URL have a problem due to URLENCODE characters that are not needed. In (really really) old versions of HTML (that Noah used on the ark) links weren't put in quotes so extra chars were needed like href=%2Fmy%20page.htm (href=%2Fmy%20page.htm) but for the last 2000 years we have been using quotes href="/my page.htm". The links in the "files" page are like this href="/sd%2Fexample.shtml" (href="/sd%2Fexample.shtml")when it really needs to be just href="/sd/example.shtm"
I will write up some pages to do things. It's just so so good that this little board can serve web pages to. I will be having fun :)

I will let you know what I come up with, I am old hand at HTML - I started with version 1.0
Thanks again.

Title: Re: Amstrad CPC WiFi
Post by: RobertM on 02:30, 02 July 17
PS: The time seem to be one hour ahead. I changed to an NTP server in my country and it's the same (one hour ahead of real time).
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 07:53, 02 July 17
Hi Duke,

My previous .cpr tests were on my 6128 Plus.
Today I ran the same tests (using the same M4 board) on my 464 Plus.
Every file worked (except 'Plotting', but you already know about that one).
None of the odd behaviour with certain games, all appeared to work just fine.
Even 'Tennis Cup II' that on my previous test (6128 Plus) would appear to work but unable to play, worked and I could play the game.

One interesting note (maybe).
Pang, which I had previously experienced mixed results, worked perfectly (loaded three times and played fine).
This was the .cpr from my C4CPC.
I had previously also downloaded it from CPCmania.
That version, brings up the initial 'PANG' text screen (but it is missing the 'Ocean' logo, and then immediately goes into a game, bypassing all the other screens. I tried loading this three times and received the same result every time.

To me, it is still almost like a timing sort of issue.
Or, probably a silly question, just throwing it out there...
Is there any pins on the M4 that are used with the .cpr files that are not utilised for regular use.
I'm still wondering if I have a connector issue on the 6128 Plus, with possibly a single pin or something.
When running the M4 normally all appears fine though.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 09:46, 02 July 17
Quote from: RobertM on 02:30, 02 July 17
PS: The time seem to be one hour ahead. I changed to an NTP server in my country and it's the same (one hour ahead of real time).


You have to set your timezone correctly. The NTP server doesn't tell you what your timezone is, it just gives you the accurate meridian time.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 12:11, 02 July 17
Quote- Would it be possible to change the current folder read on CPC directly from the PC web interface? Instead of having to type ùCD,"whatever" on CPC...
Yes, someone else requested such feature from the xfer tool, shouldn't be much of a problem. (todo list)


Awesome. I don't know how you would be implement this, but I think of two ways:
- Either a full path to type with a "go to" button.
- Or "go to current folder" in the explorer of the web interface.


I'd like to help, but I'm no web developer, sorry.
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 23:28, 02 July 17
Quote from: pelrun on 09:46, 02 July 17

You have to set your timezone correctly. The NTP server doesn't tell you what your timezone is, it just gives you the accurate meridian time.
Yes, We are GMT+10 here so I entered 10 but it shows an extra hour ahead as though I entered 11 instead of 10. Can I check if it can tunnel through the boundary firewall ?? Perhaps NTP is blocked. Hmm now that I think of that I should check the firewall settings in the boundary modem.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:40, 02 July 17
Quote from: RobertM on 02:23, 02 July 17
1) I am used to a normal server setup where there is a default index page but I don't see a default. I have tried index.htm index.html and index.shtml I have had a (quick) look at files you sent and the SSI tags like <!--#tz--> (&lt;!--#tz--&gt;) will be fine. Are there others that I wont see in the shtml files??
When re-directing to microSD it does not default to any file, so you will have to add it with the link, ie /sd/index.shtml.
There shouldn't be other tags than those I use in the files.

Quote
2) On the files page the links are clickable which is perfect for web pages but the URL have a problem due to URLENCODE characters that are not needed. In (really really) old versions of HTML (that Noah used on the ark) links weren't put in quotes so extra chars were needed like href=%2Fmy%20page.htm (href=%2Fmy%20page.htm) but for the last 2000 years we have been using quotes href="/my page.htm". The links in the "files" page are like this href="/sd%2Fexample.shtml" (href="/sd%2Fexample.shtml")when it really needs to be just href="/sd/example.shtm"
I will write up some pages to do things. It's just so so good that this little board can serve web pages to. I will be having fun :)
If you make any good fixes, feel free to share them, I will be happy to update the internal fs, if I have screwed anything up or something can be done smarter.
And good you got it all working, have fun ;)

Quote from: 00WReX on 07:53, 02 July 17
To me, it is still almost like a timing sort of issue.
Or, probably a silly question, just throwing it out there...
Is there any pins on the M4 that are used with the .cpr files that are not utilised for regular use.
I'm still wondering if I have a connector issue on the 6128 Plus, with possibly a single pin or something.
When running the M4 normally all appears fine though.
Thanks for the test results, similar to mine. Don't supposed you have the MC0122D motherboard in your 464+ ?
Other than that, yeah I think it's a timing issue too, I have done some more work on it and have it sync'ed with reset now, still need to debug a few things, but hopefully it will work better for those where it didn't work for all games (probably MC0122E boards).
There isn't any other pins in use for CPC+ rom mapping, that isn't used for everything else.
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 23:57, 02 July 17
Quote from: RobertM on 23:28, 02 July 17
Yes, We are GMT+10 here so I entered 10 but it shows an extra hour ahead as though I entered 11 instead of 10. Can I check if it can tunnel through the boundary firewall ?? Perhaps NTP is blocked. Hmm now that I think of that I should check the firewall settings in the boundary modem.
I think I answered my own question - seems to be some local problems with accessing a NTP server.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 00:18, 03 July 17
QuoteThanks for the test results, similar to mine. Don't supposed you have the MC0122D motherboard in your 464+ ?
Other than that, yeah I think it's a timing issue too, I have done some more work on it and have it sync'ed with reset now, still need to debug a few things, but hopefully it will work better for those where it didn't work for all games (probably MC0122E boards).
There isn't any other pins in use for CPC+ rom mapping, that isn't used for everything else.

Both my 464 Plus & 6128 Plus happen to have the same revision mainboard - MC0122E

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 15:17, 03 July 17
Quote from: RobertM on 23:28, 02 July 17
Yes, We are GMT+10 here so I entered 10 but it shows an extra hour ahead as though I entered 11 instead of 10. Can I check if it can tunnel through the boundary firewall ?? Perhaps NTP is blocked. Hmm now that I think of that I should check the firewall settings in the boundary modem.


I'm +10 too (Brisbane) and had the correct time on mine, so I knew you had some other issue :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 18:42, 03 July 17
Just for info with the cart emulation my motherboard is a MC0122C in a 6128 Plus.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:51, 04 July 17
Quote from: 00WReX on 00:18, 03 July 17
Both my 464 Plus & 6128 Plus happen to have the same revision mainboard - MC0122E
Quote from: Maniac on 18:42, 03 July 17
Just for info with the cart emulation my motherboard is a MC0122C in a 6128 Plus.

Thanks guys, there goes my motherboard theory :)
Here is a new beta, with cart loading tied to reset, hopefully it works better, a small issue was fixed too, so now "plotting" game also works for me:
http://www.spinpoint.org/cpc/M4FIRM_v204b5.zip 

A small basic program to quickly upload and test the carts (be aware it uses autoexec.bas, so backup existing or rename it).
http://s000.tinyupload.com/?file_id=05169518012522975507

Sorry no other fixes or addition for now...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:02, 05 July 17
[ot]OFFTOPIC[/ot]

Some pictures of my next board, just finished assembling the first prototype.

[attach=2]
[attach=3]
[attach=4]
Fitted in the console, and the case closes fine :)

Now if only I had some more time...
Title: Re: Amstrad CPC WiFi
Post by: MissionComplete on 21:10, 05 July 17

Is it possible to make directories on floppy disks? I tried with |mkdir, but I couldn't. Even if you use the command "|disc" and the current drive is floppy a: or b:, "|mkdir" always makes the directory in the sd card. If this is not possible now, I think it would be nice and usefull in the future  ::)


Another question about manage files between SD and FD, if you let me. I noted that the command "|FCP" doesn't work with files which has names with more than 8 characters, like "exampl~1.dsk". It is necessary rename the file to be able to copy it.


Thank you for your work!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:57, 05 July 17
Galaxy board? M4 for a gx4000?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:31, 06 July 17
Quote from: MissionComplete on 21:10, 05 July 17
Is it possible to make directories on floppy disks? I tried with |mkdir, but I couldn't. Even if you use the command "|disc" and the current drive is floppy a: or b:, "|mkdir" always makes the directory in the sd card. If this is not possible now, I think it would be nice and usefull in the future  ::)
It is not possible for discs, M4 rom does not contain any disc specific functions, all that is re-directed to amsdos/parados. If you want to do this you need to find a rom which supports ms-dos (or whatever) disk format, if this exists. It's beyond the scope of M4 rom that only provides functions for microSD & WiFi.
Quote
Another question about manage files between SD and FD, if you let me. I noted that the command "|FCP" doesn't work with files which has names with more than 8 characters, like "exampl~1.dsk". It is necessary rename the file to be able to copy it.
I see. Probably it would be best to simply drag and drop these files via the Web interface, again because I don't add support for other disc formats from floppy.

Quote from: CraigsBar on 23:57, 05 July 17
Galaxy board? M4 for a gx4000?
Yes, M4 + wireless usb keyboard/mouse + ram expansion and more (If I ever finish it). Of course it's not limited to GX4000.
Title: Re: Amstrad CPC WiFi
Post by: ASiC on 08:10, 06 July 17
Quote from: Duke on 06:31, 06 July 17

Yes, M4 + wireless usb keyboard/mouse + ram expansion and more (If I ever finish it). Of course it's not limited to GX4000.


Will it be possible to add support for USB game controllers please?
Title: Re: Amstrad CPC WiFi
Post by: Querubin on 08:52, 06 July 17
Hi Duke,


Having the board for a few months now.


One question. It would be possible to implement keyboard shortcuts on the ROM to have fast load/save savestates?.


It would be refall in love again with the CPC because I am a bad gamer.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:56, 06 July 17
Quote from: ASiC on 08:10, 06 July 17

Will it be possible to add support for USB game controllers please?
It'd be possible yes, but probably at the cost of no usb keyboard/mouse (logitech unified, unless they do one that supports a controller aswell).

Quote from: Querubin on 08:52, 06 July 17
One question. It would be possible to implement keyboard shortcuts on the ROM to have fast load/save savestates?.
You mean like on the fly snapshots, like multiface 2 and the like. It's not easily possible I am afraid, I did do some work on it long time ago, but had some issues with issuing the NMI. Maybe sometime in the future, I'll pick up on it again :)

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 09:28, 06 July 17


Quote from: Duke on 06:31, 06 July 17

Yes, M4 + wireless usb keyboard/mouse + ram expansion and more (If I ever finish it). Of course it's not limited to GX4000.

Oh wow. I will certainly want some of these.

2 cpcs
2 plus machines
Gx4000
Justcpc

I guess that will be 3 or 4 at least. Even if the cpc ones don't use the the USB keyboard the Gx4000 and justCPC ones will.


Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: keith56 on 09:53, 06 July 17
Quote from: Duke on 06:31, 06 July 17
Yes, M4 + wireless usb keyboard/mouse + ram expansion and more (If I ever finish it). Of course it's not limited to GX4000.

I'm all for anything that upgrades the GX4000 into a full CPC! I'm not keen on rewriting my games to support carts - and developing for 64k systems is painful!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:03, 06 July 17
So true, 64 KB suxx. 512 KB rulez!

Title: Re: Amstrad CPC WiFi
Post by: Querubin on 17:45, 06 July 17
Quote from: Duke on 08:56, 06 July 17Maybe sometime in the future, I'll pick up on it again :)
Yes, save or load snapshots.

Thanks for your reply.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 09:33, 09 July 17
Quote from: Duke on 23:51, 04 July 17
Thanks guys, there goes my motherboard theory :)
Here is a new beta, with cart loading tied to reset, hopefully it works better, a small issue was fixed too, so now "plotting" game also works for me:
http://www.spinpoint.org/cpc/M4FIRM_v204b5.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b5.zip) 

A small basic program to quickly upload and test the carts (be aware it uses autoexec.bas, so backup existing or rename it).
http://s000.tinyupload.com/?file_id=05169518012522975507 (http://s000.tinyupload.com/?file_id=05169518012522975507)

Sorry no other fixes or addition for now...

Hi Duke,
Well this is really interesting. Today I got out the 6128Plus (the one I've had the main issues with) and loaded (firstly) 'Plotting' as that was the fix you mentioned. It worked fine.
So then I tested the games I had previously had issues with, and they all worked... :o ???
World Of Sports, was the only one that initially did not work, but on retrying it, it did work. Tried them all a second time...all good.
I would be interested in what 'Maniacs' tests would be like on this new M4 fw.
Is it possible the fix for 'Plotting' has helped ?  :)

Cheers,
Shane


And just to confirm. I upgraded to beta5 before these tests.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:45, 09 July 17
Quote from: 00WReX on 09:33, 09 July 17
Hi Duke,
Well this is really interesting. Today I got out the 6128Plus (the one I've had the main issues with) and loaded (firstly) 'Plotting' as that was the fix you mentioned. It worked fine.
So then I tested the games I had previously had issues with, and they all worked... :o ???
World Of Sports, was the only one that initially did not work, but on retrying it, it did work. Tried them all a second time...all good.
I would be interested in what 'Maniacs' tests would be like on this new M4 fw.
Is it possible the fix for 'Plotting' has helped ?  :)

Cheers,
Shane


And just to confirm. I upgraded to beta5 before these tests.
Great, thanks for testing.
I think what helped was the sync'ing to reset, so instead of enabling the cart lower rom, clearing ram and jumping to 0x0. A hardware reset is performed and starting the cart, as "lowerrom" from the cart is forcefullly mapped at 0-3FFF. Also for plotting iirc. it was expecting to see physical cart rom 1 at logical rom 1 (so it would be mapped to all logical roms, kinda like basic rom is on cpc, when no other roms are overwriting it).

Good news, hopefully others have similar results. Other fun thing, is I managed to start Barbarian 2 cart on my regular cpc6128, I suppose it uses no plus feats at all :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 11:50, 09 July 17
Quote from: Duke on 11:45, 09 July 17
Great, thanks for testing.
I think what helped was the sync'ing to reset, so instead of enabling the cart lower rom, clearing ram and jumping to 0x0. A hardware reset is performed and starting the cart, as "lowerrom" from the cart is forcefullly mapped at 0-3FFF. Also for plotting iirc. it was expecting to see physical cart rom 1 at logical rom 1 (so it would be mapped to all logical roms, kinda like basic rom is on cpc, when no other roms are overwriting it).

Good news, hopefully others have similar results. Other fun thing, is I managed to start Barbarian 2 cart on my regular cpc6128, I suppose it uses no plus feats at all :)

I'll try to give this a go at some point but times limited this weekend! Report coming soon...
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:08, 09 July 17
Awesome. Thanks Duke.
Also, with all the success I got adventurous  and ran the 'barbar' demo that I copied  from the C4CPC to the M4.
This is a 256kb .cpr file.  It also worked perfectly.  ;)


Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 21:07, 09 July 17

Quote from: Duke on 11:45, 09 July 17
Great, thanks for testing.
I think what helped was the sync'ing to reset, so instead of enabling the cart lower rom, clearing ram and jumping to 0x0. A hardware reset is performed and starting the cart, as "lowerrom" from the cart is forcefullly mapped at 0-3FFF. Also for plotting iirc. it was expecting to see physical cart rom 1 at logical rom 1 (so it would be mapped to all logical roms, kinda like basic rom is on cpc, when no other roms are overwriting it).

Good news, hopefully others have similar results. Other fun thing, is I managed to start Barbarian 2 cart on my regular cpc6128, I suppose it uses no plus feats at all :)


Sorry to say that things for me are worse with Beta 5 of this firmware.


Robocop II - Crashes at the title screen - no longer able to get to the game
Navy Seals - starts and displays
Pang - screen goes black and nothing further happens
Switchblade - works
Crazy Cars II - Gfx corrupt on title screens and when games starts it crashes
Fire & Forget II - Gfx corrupt on title screen and then goes blank
Tennis Cup II - seems ok but I can't play it
Panza Kick Boxing - some gfx seem corrupt/out of place
Copter 271 - starts to display Loricels logo but crashes
Klax - works
Dick Tracy - Title screen and music displayed by when select Music/Fx Sound it crashes
World of Sports - Shows a black screen
Operation Thunderbolt - Shows a black screen
No Exit - Title screen and menu work but then shows a black screen and stops
Pro Tennis Tour - no longer works
Tin Tin On The Moon - Intro sequence works but with corrupt gfx and now games seems to work
Batman The Movie - title screen shows but then goes to a black screen and stops
Mystical - Starts but then crashes when starting game
Burnin Rubber - Starts but then goes to a black screen and stops
Plotting - Starts and displays title screens but when try to start game crashes
Pinball Magic - Starts but you can't play as ball drops out everytime


If I quickly switch off and back on again with power switch some games like World of Sports start but crash soon after.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 22:34, 09 July 17
Hmm, interesting, I did not think of re-testing on my 464Plus as they previously worked on that...but maybe I should give it a go on that again to see if anything has changed.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:28, 09 July 17
Upgraded to b5 and definitely better results. Tested pang. Loads but crashes when starting a game. Navy seals work sometimes and sometimes not. Robocop2 works fine everytime switchblade no joy I'm afraid.


All carts downloaded from WWW.GX4000.CO.UK

Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:04, 10 July 17
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) & @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Thanks for testing again.
Beats me what is wrong, I think I will leave this feature for now, until I sometime can pick up another CPC+ and hopefully have similar issues myself.
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 09:21, 10 July 17
Quote from: Duke on 06:04, 10 July 17
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) & @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482)
Thanks for testing again.
Beats me what is wrong, I think I will leave this feature for now, until I sometime can pick up another CPC+ and hopefully have similar issues myself.
Now that I have a M4 I'll see if I can find the problem through some test programs.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) ran my rmr2 test and it passed, so I'll try more testing and see if I can find it.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:34, 10 July 17
Quote from: arnoldemu on 09:21, 10 July 17
Now that I have a M4 I'll see if I can find the problem through some test programs.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) ran my rmr2 test and it passed, so I'll try more testing and see if I can find it.

Cool, thanks. Yes the test passed for me, but it may not pass for those that have problems, for me every plus game works perfectly, so hopefully you have a CPC+ where some games fail :)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:35, 10 July 17
Phew, just tested all games again on my 464Plus.
All worked with the occasional lockup on loading.  Retrying worked on those.
The only issue observed was that the 'OCEAN' logo on the initial screen for 'Navy Seals' gets corrupted, although everything else loads and the game seems OK.
I tried re-loading this a number of times with the same result.

Another pair of eyes looking into is cool, as this is a really nice addition to the M4 board.  :)

So with FW2.0.4beta5  tested on both my 464 & 6128 Plus, I have almost a 100% success rate, with the odd glitch.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:58, 12 July 17
Quote from: 00WReX on 11:35, 10 July 17
Phew, just tested all games again on my 464Plus.
All worked with the occasional lockup on loading.  Retrying worked on those.
The only issue observed was that the 'OCEAN' logo on the initial screen for 'Navy Seals' gets corrupted, although everything else loads and the game seems OK.
I tried re-loading this a number of times with the same result.

Another pair of eyes looking into is cool, as this is a really nice addition to the M4 board.  :)

So with FW2.0.4beta5  tested on both my 464 & 6128 Plus, I have almost a 100% success rate, with the odd glitch.

Cheers,
Shane
One question... What's your setup.... Ram expansion? C4cpc? M4 roms etc....

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 09:29, 13 July 17
Quote from: CraigsBar on 23:58, 12 July 17
One question... What's your setup.... Ram expansion? C4cpc? M4 roms etc....

M4 board rev 2.1
The M4 is on FW 2.0.4beta5
All ROMs blank on the M4 (execpt for the M4 ROM itself).  No other expansions fitted.
QWERTY 464 Plus with an MC0122E revision mainboard.
AZERTY 6128 Plus with an MC0122E revision mainboard.
The standard BASIC/AMSDOS - Burnin' Rubber cartridge that comes with the Plus.

Intentionally had no expansions fitted and did not use the C4CPC during testing.

If you are having really bad results and have another ribbon/centronics connector to try, I would possibly give that a go a as a long shot.
I was starting to get some erratic behavior initially and swapped my cable. This solved most things.

I had previously not observed any issues with that cable/connector with an M4 prior to the 2.0.4 fw, but it must have a dodgy connection after being plugged and unplugged many times.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 10:03, 13 July 17
Hi Duke and others.

I have been watching this thread and thought I would throw my 2 cents worth in.

I have the earlier CPC6128 so I don't have specific points but I thought I would share some experience that may help with the "works sometimes - sometimes not" intermittent results.

I made a mass storage device consisting of a IDE adapter on the expansion port and used a Compact Flash to IDE converter to run the CF in IDE mode.

It didn't work for ages so I plugged in a real IDE Hard Disk and that would work sometimes. The problem with the hard drive was that it was sucking too much current and dropping the voltages. I have edge connectors that are bad for this problem at the best of times. I converted to pin headers and it would work more often but still failed at times. I soldered in a wire from the 5V to the main board to the 5V on the edge connector. It then worked all the time.

I then went back to the CF and it didn't work. The problem was that my choice of chips (LVTTL and the CF was CMOS) left only a 0.1V noise margin. Decoupling caps (0.1uF) don't really help with this because they don't store much energy so a sustained burst of activity will consume the stored energy and then the voltage will drop. Add a larger cap like 10uF - 100uF will help but only if there is enough voltage to start with.

The fix was to run the 3.3V chips at their limit of 3.6V

I also noticed that the CPC6128 I have has a jumper or marking for selecting CMOS or (I assume) NMOS. I suspect this is for the CPU.

I haven't really looked into the design of the M4 board so I hope this help with the intermittent results.

By the way I abandoned my IDE project as Dukes solution is far better :)
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 14:00, 13 July 17
Quote from: RobertM on 10:03, 13 July 17
I also noticed that the CPC6128 I have has a jumper or marking for selecting CMOS or (I assume) NMOS. I suspect this is for the CPU.
Oooh, pictures please. Or does it match one of the pictures from the 'mainboard revisions' page on the wiki?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:56, 13 July 17
@RobertM (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1086)

Thanks for the input. I am fairly sure that is not the issue here, everything beside the CPC+ RMR2 rom emulation works for every CPC or the M4 would be an instant crash.
CPC+ RMR2 rom emulation, does not consume any more power than using ROMS in CPC mode.

A factor on CPC+ that could be the cause of the issues, that's the acid stream, that would mess up things if it glitches I think. Also I think there is different versions of the ASIC (something about the color shown when started without cartridge).
Hard for me to debug, when everything works on my CPC+, even with MotherX4 and XMEM connected at the same, all only powered from only the CPC+ monitor.

Anyway, those with problems could try to issue a |wifi,0 to power off the wifi module (biggest power draw on the board) before starting games with |ctr.  I doubt it changes anything, also results seem consistent for those with problems.

When I get some more time, I'll write a cart verification program, that say checksums the cart roms 1000 times or something to see if any read error occur.
Title: Re: Amstrad CPC WiFi
Post by: chouimat on 16:48, 13 July 17
What is the shipping cost for shipping 1 board with edge connector to Canada?
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 18:09, 13 July 17
Quote from: arnoldemu on 14:00, 13 July 17
Oooh, pictures please. Or does it match one of the pictures from the 'mainboard revisions' page on the wiki?

In the pic here - http://www.cpcwiki.eu/imgs/f/f1/CPC6128_PCB_Top_%28Z70290_MC0020B%29.jpg

Look for Copyright and just above that is a resistor labeled  R154 and in a box beside it says "CMOS ONLY"

The schematic shows it as a 4k7 resistor as a pull up on the CPU /IORQ with the text "(HS-CMOS >USE)"

There are some chips that are specified as 74LSxx and some that are specified as 74HCxx. There are also some that are specified as 74LSxx OR 74HCxx.

The CPU is ONLY specified as a NMOS version and from memory the early CMOS version wasn't yet released in the early 80's
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:31, 13 July 17
Quote from: chouimat on 16:48, 13 July 17
What is the shipping cost for shipping 1 board with edge connector to Canada?
3.5 euro (unregistered) shipping.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:00, 13 July 17
Further testing. And the majority of the 128k cart images from the c4cpc sd card now work. 😉
Title: Re: Amstrad CPC WiFi
Post by: gerald on 21:23, 13 July 17
Quote from: Duke on 14:56, 13 July 17
When I get some more time, I'll write a cart verification program, that say checksums the cart roms 1000 times or something to see if any read error occur.
I've attached a 256k version of the C4CPC cartridge test cpr if you do not find the time  ;)
The 16 first rom slot except 0 are filled with pseudo random data and are checked :
- 1st quick pass, only the 4 1st byte of the page
- then all page in place
- then all page after copy with LDIR to RAM

The 2 last one are done endlessly
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:46, 13 July 17
Quote from: gerald on 21:23, 13 July 17
I've attached a 256k version of the C4CPC cartridge test cpr if you do not find the time  ;)
The 16 first rom slot except 0 are filled with pseudo random data and are checked :
- 1st quick pass, only the 4 1st byte of the page
- then all page in place
- then all page after copy with LDIR to RAM

The 2 last one are done endlessly

Cool, thanks a lot gerald, very nice tester  8)

Here is my result, interesting to see what the others get.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:28, 13 July 17
Quote from: CraigsBar on 21:00, 13 July 17
Further testing. And the majority of the 128k cart images from the c4cpc sd card now work. [emoji6]
May I ask what you changed please?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:12, 13 July 17
Quote from: Maniac on 22:28, 13 July 17
May I ask what you changed please?
Only the cpr images I was using. I deleted the 512kb ones from gx4000.CO.UK and copied the full set of 128k cprs from my c4cpc sd card. These seems to work much better on my m4 (rev 2.4) board.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Maniac on 23:22, 13 July 17
Quote from: CraigsBar on 23:12, 13 July 17
Only the cpr images I was using. I deleted the 512kb ones from gx4000.CO.UK and copied the full set of 128k cprs from my c4cpc sd card. These seems to work much better on my m4 (rev 2.4) board.

Sent from my ONEPLUS 3t using Tapatalk
Ah, ok. Thanks for the info. I was wondering if you had cleared ROM slots from the M4. Unfortunately I've already done what you've just done and had the issues I've reported! I'll try to run the diag tool @Gerald has provided and see what it reports when I get a mo.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:38, 13 July 17
Quote from: Maniac on 23:22, 13 July 17
I was wondering if you had cleared ROM slots from the M4.
No need to do that, in latest beta I clear all ROM slots internally when switching to cart mode via |CTR.

Look forward to see your results from gerald's test.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 00:28, 14 July 17

Quote from: Duke on 23:38, 13 July 17
No need to do that, in latest beta I clear all ROM slots internally when switching to cart mode via |CTR.

Look forward to see your results from gerald's test.


I get different results depending on if I have my C4CPC or original system cart inserted.


With the C4CPC after a fresh upload of the diag cart image:
[attach=2]
After a reboot and running of autoexec.bas selecting option 27 to start current image:
[attach=3]
After a few cycles of the test:
[attach=4]


With my original system cart inserted all seems good:
[attach=5]


With the above in mind I tried a couple of the cart images that hadn't been working. Pang now starts but I still can't play it as it crashes, Robocop 2 works again and Navy Seals now starts.


Things are sometimes better if I power-cycle the 6128 Plus (M4 is powered separately) and I'm guessing this is due to the way things are reset as the cart image seems to start straight-away!
Title: Re: Amstrad CPC WiFi
Post by: gerald on 09:37, 14 July 17
It look like the ROMDIS from M4 is not long enough to fully mask the ROM access to the cartridge.
When the C4CPC is used, the faster logic compared to a regular EPROM have time to override the M4 data just before the Z80 fetch it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:11, 14 July 17
Thanks @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930), very interesting
Quote from: gerald on 09:37, 14 July 17
It look like the ROMDIS from M4 is not long enough to fully mask the ROM access to the cartridge.
When the C4CPC is used, the faster logic compared to a regular EPROM have time to override the M4 data just before the Z80 fetch it.
Yes, or probably it is not early enough?  As it will keep ROMDIS until RD goes high. Will see what I can do to optimize the loop.
Thanks.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 11:34, 14 July 17
Quote from: Duke on 10:11, 14 July 17
Thanks @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930), very interestingYes, or probably it is not early enough?  As it will keep ROMDIS until RD goes high. Will see what I can do to optimize the loop.
Thanks.
I think you should extend it a bit after RDs goes high.
The OEn that goes to the cartridge is a mix of Z80 RDn, MREQn, memory configuration register and ROMDIS, so it is always late compared to the Z80 RDn.
According to the Z80 datasheet, the data is read on the clock edge that will make the RDn goes high. So if you're fast enough to release the ROMDIS there is a chance for the OEn to get active few ns.
The fact that failing pages change over heating time hints that we are on the edge (pun intended) for this timing. A nop in your handling function may do the trick.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:30, 14 July 17
I also tried the ROMtest, with pretty much the same results as Maniac.
All good with the standard cart, but erratic with the C4CPC, and sometimes crashed spectacularly during testing.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:00, 19 July 17
A quick question.. When loading modern games from a directory on the m4 sd card (not tried with dsk files) does anyone else get screen corruption when loading title screens.

I should add that the games play perfectly so it seems to be only the graphic loading screens.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:02, 19 July 17
Quote from: CraigsBar on 21:00, 19 July 17
A quick question.. When loading modern games from a directory on the m4 sd card (not tried with dsk files) does anyone else get screen corruption when loading title screens.

Sent from my ONEPLUS 3t using Tapatalk
Examples attached from chibi akumas and vector vaults(https://uploads.tapatalk-cdn.com/20170719/127824c60cdbe1f1243a40be3f064d9b.jpg)(https://uploads.tapatalk-cdn.com/20170719/5176deb2c7ebcae6c57c78f0358cbd16.jpg)(https://uploads.tapatalk-cdn.com/20170719/c586e0d749102f840ae16639192ed194.jpg)

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:27, 20 July 17
Hi Craig, sorry for crappy photo, but I had VectorVaults already on my M4 so just tried it again.

I do not see the loading corruption like you did.

[attachimg=1]

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:31, 20 July 17
Was that loaded from a dsk file mounted or the files extracted to a folder?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 12:55, 20 July 17
Quote from: CraigsBar on 12:31, 20 July 17
Was that loaded from a dsk file mounted or the files extracted to a folder?

Sent from my ONEPLUS 3t using Tapatalk

Oh sorry, yes it was loaded from a .dsk not extracted to a directory/folder on the M4.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:59, 20 July 17
Quote from: 00WReX on 12:55, 20 July 17
Oh sorry, yes it was loaded from a .dsk not extracted to a directory/folder on the M4.

Cheers,
Shane
Yeah, from dsk works fine here too. But chibi akumas is a RomDOS disc format so I don't think the m4 supports it mounted. So I extracted the files and like vector Vaults you can see the result. Both games play fine so it's not a biggy .

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:09, 20 July 17
Quote from: CraigsBar on 12:59, 20 July 17
Yeah, from dsk works fine here too. But chibi akumas is a RomDOS disc format so I don't think the m4 supports it mounted. So I extracted the files and like vector Vaults you can see the result. Both games play fine so it's not a biggy .
RomDos format is supported.

Will check later to see if there is an  issue with those two.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:12, 20 July 17
Oooh. I will test the dsk files then and not bother extracting them in future lol.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:36, 20 July 17
Quote from: Duke on 13:09, 20 July 17
RomDos format is supported.


Which formats are supported aside of Data and Romdos on a DSK file? I couldn't find a "List of Formats" in the Wiki page. Sorry for asking.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:11, 20 July 17
Quote from: GUNHED on 15:36, 20 July 17

Which formats are supported aside of Data and Romdos on a DSK file? I couldn't find a "List of Formats" in the Wiki page. Sorry for asking.
Only system, data, romdos (D1/D2/D10/D20/D40) and parados 80.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 18:18, 20 July 17
Quote from: Duke on 16:11, 20 July 17
Only system, data, romdos (D1/D2/D10/D20/D40) and parados 80.
Any chance of adding parados 41 for 203k dsk images?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:10, 20 July 17
Quote from: CraigsBar on 13:12, 20 July 17
Oooh. I will test the dsk files then and not bother extracting them in future lol.

Sent from my ONEPLUS 3t using Tapatalk
OK I spoke too soon. With dsk files vector Vaults crashes back to basic after the 2nd loading screen and chibi akumas ep1 loads the menu with no titlescreen and then hangs when loading the game. Damnit

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 19:49, 20 July 17
Quote from: CraigsBar on 19:10, 20 July 17
OK I spoke too soon. With dsk files vector Vaults crashes back to basic after the 2nd loading screen and chibi akumas ep1 loads the menu with no titlescreen and then hangs when loading the game. Damnit

Sent from my ONEPLUS 3t using Tapatalk
OK. I have now got the same problems on both 2.0.3 and 2.0.4b5 and on m4 revisions 2.4e and 2.0 I just don't get it. I have also tried with the m4 rom in either 6 or 7 and on 2 different machines.... A 4128+ and a schneider cpc6128 it's the same on both

https://youtu.be/Kb70c1ZP15k

https://youtu.be/gvW7AavdcyU
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:53, 20 July 17
Quote from: CraigsBar on 18:18, 20 July 17
Any chance of adding parados 41 for 203k dsk images?
It may work already? It may be the same as parados 80, just with 41 tracks... I haven't checked.

Quote from: CraigsBar on 19:49, 20 July 17
OK. I have now got the same problems on both 2.0.3 and 2.0.4b5 and on m4 revisions 2.4e and 2.0 I just don't get it. I have also tried with the m4 rom in either 6 or 7 and on 2 different machines.... A 4128+ and a schneider cpc6128 it's the same on both

I tested both Chibi Akumas and Vector Vault, both running from .dsk and from directory.
Both work fine.  I did notice with Chibi Akumas, the loading screen was missing when running from the DSK (will check more when I get time), but otherwise the loading screens were fine, no corruption.
Test was on CPC6128+, M4 as rom 7, Xmem connected.

You don't have any other roms that maybe the issue ?

EDIT: just saw your videos. Have you tried with M4 rom set to 7?... Maybe its something with M4 and Parados.  Nope, tested that too. Works fine. M4 as rom 6 and parados as rom 7.
You have other hardware connected??
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:55, 20 July 17
Quote from: Duke on 19:53, 20 July 17
It may work already? It may be the same as parados 80, just with 41 tracks... I haven't checked.


I tested both Chibi Akumas and Vector Vault, both running from .dsk and from directory.
Both work fine.  I did notice with Chibi Akumas, the loading screen was missing when running from the DSK (will check more when I get time), but otherwise the loading screens were fine, no corruption.
Test was on CPC6128+, M4 as rom 7, Xmem connected.

You don't have any other roms that maybe the issue ?

EDIT: just saw your videos. Have you tried with M4 rom set to 7?... Maybe its something with M4 and Parados.  Nope, tested that too. Works fine. M4 as rom 6 and parados as rom 7.
You have other hardware connected??
Tested both with other hardware and without I've deleted all other roms. Reformatted the sd card on a Windows xp machine. OK chibi now works with zero changes from the video recording gonna check vector Vaults again


Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:56, 20 July 17
Quote from: CraigsBar on 20:55, 20 July 17
Tested both with other hardware and without I've deleted all other roms. Reformatted the sd card on a Windows xp machine. OK chibi now works with zero changes from the video recording gonna check vector Vaults again


Sent from my ONEPLUS 3t using Tapatalk
Oh FFS not working anywhere again.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:23, 20 July 17
Quote from: CraigsBar on 20:56, 20 July 17
Oh FFS not working anywhere again.
hmm, one thing maybe the files got corrupted somehow? Have you tried redownloading the dsks? probably isnt it.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:41, 20 July 17
Quote from: Duke on 21:23, 20 July 17
hmm, one thing maybe the files got corrupted somehow? Have you tried redownloading the dsks? probably isnt it.
Yeah. Tried them on multiple sd cards they all behave the same. The dsk files work on emulators and when written to disk they work on the cpc and plus.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:03, 20 July 17
Quote from: CraigsBar on 21:41, 20 July 17
Yeah. Tried them on multiple sd cards they all behave the same. The dsk files work on emulators and when written to disk they work on the cpc and plus.
FAT32? Also just to rule out everything (noticed you used a schneider too). Have you tried another cable?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 22:22, 20 July 17
Would you mind opening your CPC and taking pictures of the PCB?


Just to be sure it's not an incompatibility due to certain chips made by certain manufacturers.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:59, 20 July 17
OK.... After a long night of frustration... I found the answer.... |fcp seems be to blame. I emptied the folders on the sd card. Then extracted the dsk files with winape rather than copying them from. Physical media... Everything now nows fine

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:22, 20 July 17
Quote from: CraigsBar on 22:59, 20 July 17
OK.... After a long night of frustration... I found the answer.... |fcp seems be to blame. I emptied the folders on the sd card. Then extracted the dsk files with winape rather than copying them from. Physical media... Everything now nows fine
Good, suppose you copied it from ROMDOS format with |FCP. I'll have to test that sometime.
Also it seems I introduced a bug in the dsk loading, because if I downgrade to v2.00 (didn't try the ones between). Chibi Akumas loading screen is showing again. Will have to narrow that down.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:25, 20 July 17
Now to extract vector Vaults with winape and see if that is fixed too. That is a normal data disc so I think fcp has a general issue.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:44, 20 July 17
Quote from: Duke on 23:22, 20 July 17
Good, suppose you copied it from ROMDOS format with |FCP. I'll have to test that sometime.
Also it seems I introduced a bug in the dsk loading, because if I downgrade to v2.00 (didn't try the ones between). Chibi Akumas loading screen is showing again. Will have to narrow that down.
Both work fine when using winape to extract them (https://uploads.tapatalk-cdn.com/20170720/2a661387e9738e16354a4d236c00c40a.jpg)(https://uploads.tapatalk-cdn.com/20170720/9eb36e6d24020c1a65eaa7160918f566.jpg)(https://uploads.tapatalk-cdn.com/20170720/c3c6b1b9a3146e5efbdbe6a582b67d9b.jpg)

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:45, 20 July 17
Clean out dupe post.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:43, 21 July 17
Quote from: Duke on 16:11, 20 July 17
Only system, data, romdos (D1/D2/D10/D20/D40) and parados 80.


That's quite impressive. Any chance to add Vortex Format (704 KB on B)?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:32, 21 July 17
Quote from: GUNHED on 14:43, 21 July 17
Any chance to add Vortex Format (704 KB on B)?
I haven't forgotten about it, was in the process but got side tracked with other things  ;) Got a bit of catching up to do on various bugs when I get some more time.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 01:44, 22 July 17
Oops.. i think I have found another Bug in 2.0.4b5....


Whilst testing some Symbos Configs with Shaun this evening I noticed that Saving Symbos Settings (Or closing the Symbos Control panel) is not possible... It hangs the M4 with the SD Access light lit needing a M4 reset to recover the machine.


On 2.0.3 with the exact same SD card and Symbos Configuration all is good.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:32, 22 July 17
Quote from: Duke on 22:32, 21 July 17
I haven't forgotten about it, was in the process but got side tracked with other things  ;) Got a bit of catching up to do on various bugs when I get some more time.


Yes! I Just saw! Things like !CTR are a dream!!! Looks like you work 36/9 at the M4 and not only 24/7 :D
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:47, 23 July 17
Not a bug as such. But is there any reason why protext cannot edit the /m4/config.txt file locally? It is perfectly able to open and save files in subdirectories but with config.txt it just shows a blank document. Does the default file have some weird encoding that protext (in prog mode) cannot handle?

Edit: sorry, all I seem to be doing is reporting issues at the moment. All of which are minor and in no way detract from the awesomeness of the m4 board.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:51, 23 July 17
Quote from: CraigsBar on 15:47, 23 July 17
Not a bug as such. But is there any reason why protext cannot edit the /m4/config.txt file locally? It is perfectly able to open and save files in subdirectories but with config.txt it just shows a blank document. Does the default file have some weird encoding that protext (in prog mode) cannot handle?
The config.txt file is plain ASCII. Protext uses AMSDOS header for it's files.
Noted the other bug you reported, thanks.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 16:12, 23 July 17
Quote from: Duke on 15:51, 23 July 17
The config.txt file is plain ASCII. Protext uses AMSDOS header for it's files.
Noted the other bug you reported, thanks.
I thought Program mode in protext was plain ascii with no headers. When I get home tonight I'll try retyping it in protext and saving it in protext program mode. If that works it'll be awesome ;)

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:29, 23 July 17
Quote from: CraigsBar on 16:12, 23 July 17
I thought Program mode in protext was plain ascii with no headers. When I get home tonight I'll try retyping it in protext and saving it in protext program mode. If that works it'll be awesome ;)
Yeah I tested this some time ago, and it does put on an AMSDOS header when saving and expecting it when loading too. Using cpcxfer app you can add the header for Protext (1).
Saving it from within protext should work too, but you can't edit it on a PC afterwards without screwing it up.
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 17:00, 23 July 17
Think I may have spotted a bug.


Downloaded Batman - The Caped Crusader with Plus patch from CPC-power, extracted with cpcdiskxp, then tried to drag and drop em with a browser (latest Firefox on OSX). It renamed some of the file extensions and made them fail to load.


Copying directly to SD worked fine though, so not a show stopper.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 17:38, 23 July 17
Quote from: Duke on 16:29, 23 July 17
Yeah I tested this some time ago, and it does put on an AMSDOS header when saving and expecting it when loading too. Using cpcxfer app you can add the header for Protext (1).
Saving it from within protext should work too, but you can't edit it on a PC afterwards without screwing it up.
I am never gonna edit it on a pc anyway. I guess I need to decide if I wanna use protext or the symbos notepad the. I swapped the name of my router with the symbos notepad, and that worked fine E.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:04, 23 July 17
Is there anyway the m4 rom can be modified so that when it is in slot 7 it does not clear the screen on boot up but still suppresses the f1 f2 menu for a plus?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:45, 23 July 17
Quote from: Shaun M. Neary on 17:00, 23 July 17
Downloaded Batman - The Caped Crusader with Plus patch from CPC-power, extracted with cpcdiskxp, then tried to drag and drop em with a browser (latest Firefox on OSX). It renamed some of the file extensions and made them fail to load.
Thanks, I will check it out.

Quote from: CraigsBar on 20:04, 23 July 17
Is there anyway the m4 rom can be modified so that when it is in slot 7 it does not clear the screen on boot up but still suppresses the f1 f2 menu for a plus?
It's not the M4 rom clearing the screen on CPC+, it is the CPC+ lowerrom. You can upload the lowerrom from a regular CPC6128 and that will fix it.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:38, 23 July 17
Quote from: Duke on 22:45, 23 July 17

It's not the M4 rom clearing the screen on CPC+, it is the CPC+ lowerrom. You can upload the lowerrom from a regular CPC6128 and that will fix it.


Should parados not do the same thing when installed in Slot 7 then? yet it does not?



Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:02, 24 July 17
Quote from: CraigsBar on 23:38, 23 July 17

Should parados not do the same thing when installed in Slot 7 then? yet it does not?
True, I don't know what it does to prevent the boot up clear screen, maybe patch something in ram.

Edit: Ah, it's because of the CPC plus init vector mine uses mc_start_program to return to basic like the amsdos for cpc+.
Attached a build of M4ROM that does the same as parados for the cpc+ init vector. Just copy it to root of the microSD.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:19, 24 July 17
Quote from: Duke on 00:02, 24 July 17
True, I don't know what it does to prevent the boot up clear screen, maybe patch something in ram.

Edit: Ah, it's because of the CPC plus init vector mine uses mc_start_program to return to basic like the amsdos for cpc+.
Attached a build of M4ROM that does the same as parados for the cpc+ init vector. Just copy it to root of the microSD.
Works a treat.. Many many thanks. (https://uploads.tapatalk-cdn.com/20170724/1557d8cc4bc04aa058ed86e84bd7130e.jpg)

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 05:47, 25 July 17
Wow! that photo is enormous! :P

In other news... I am looking forward to playing with this wifi board myself.

Duke? Did you get my message with email details etc.? I haven't heard anything back from you since I replied to your first message.  8)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:29, 25 July 17
Quote from: CraigsBar on 23:19, 24 July 17
Works a treat.. Many many thanks.
No problem will make it default when I make the next release build.
Btw. be careful with Utopia before M4 rom, it has some commands  (|ren & |era iirc.) that it catches if set before M4, which will make them not work properly.


Quote from: blackdalek on 05:47, 25 July 17
Duke? Did you get my message with email details etc.? I haven't heard anything back from you since I replied to your first message.  8)
Yes yes, sorry. Once I got confirmation, next reply is when it is ready.
Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 09:57, 25 July 17
aha, I see. ;D
Title: Re: Amstrad CPC WiFi
Post by: dragon on 22:51, 26 July 17
i have mounted the 6128 plus with the m4 after very long time, and i have problems with it. (m4 is in slot 6).


I go to test the asm from the im2 bug thread.

So i compile it with winape i generated 2.bin, as it start in &9000 i do:

Load"name.bin",&9000 And the cpc respond me "name.BBB not found" ¿BBB?.  :-\ (rename it to .BBB not works). No matter what cartridge image i use in c4cpc. When i put off m4 it load.bin returns. Rom7 is the same.

I have the bin in the sd root.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:25, 26 July 17
Of course that should work.
Does the file have an AMSDOS header?
You can attach it here if I should test it.

EDIT:
Just ran latest IM2 bug test. It was np.
First assemble with winape, then go to basic in winape:
save"test.bin",b,&9000,&100,&9000
Edit disc, drag the file to somewhere.
Open M4 webinterface, drag the file.
Run it
Or memory &8fff:load"test.bin":call &9000

I don't see a problem?

Quote from: dragon on 22:51, 26 July 17
I go to test the asm from the im2 bug thread.

So i compile it with winape i generated 2.bin, as it start in &9000 i do:

Load"name.bin",&9000 And the cpc respond me "name.BBB not found" ¿BBB?.  :-\ (rename it to .BBB not works). No matter what cartridge image i use in c4cpc. When i put off m4 it load.bin returns. Rom7 is the same.

I have the bin in the sd root.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 00:22, 27 July 17
Its not necesay the file exist.

Type one file that not exist. (as single instruction outside the list of  instructions)

load"a.bin"

return me A   .BBB not found.

He should be a.bin not found. no?.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:50, 27 July 17
Quote from: dragon on 00:22, 27 July 17
return me A   .BBB not found.

He should be a.bin not found. no?.

Ah ok, I thought you couldn't load an actual file. Yes that's bug if the file isn't found, thanks.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 12:44, 28 July 17
It fails to sometimes with direct load he not found the file .bbb (.bin)with the correct name,but others works.



Is rare :) but is always with direct comand the bug, not with a list of instructions.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:51, 28 July 17
Quote from: dragon on 12:44, 28 July 17
It fails to sometimes with direct load he not found the file .bbb (.bin)with the correct name,but others works.

Is rare :) but is always with direct comand the bug, not with a list of instructions.

It's never happened to me :) The file not found extension fuck up was just a parsing bug (cosmetical), having fixed that now.
Maybe you don't use 8.3 filenames. I still keep that for now for amsdos functions, so saving a file like "my-basic-test-2017.bas" will not load with AMSDOS because it exceeds, 8.3.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:50, 29 July 17
Quote from: Shaun M. Neary on 17:00, 23 July 17
Think I may have spotted a bug.


Downloaded Batman - The Caped Crusader with Plus patch from CPC-power, extracted with cpcdiskxp, then tried to drag and drop em with a browser (latest Firefox on OSX). It renamed some of the file extensions and made them fail to load.


Copying directly to SD worked fine though, so not a show stopper.

I tested this now, and for me it does not rename any file extensions.
The only difference is that due to 8.3 SFN filenames, the '+' sign is not allowed so the files"LOADER+.BAS", "LOADP1+.BAS" & "LOADP2+.BAS" will display as "LOADER~1.BAS", "LOADP1~1.BAS" & "LOADP2~1.BAS" when using CAT command.
However if you do a |ls command, it will be correct filenames.
The game works fine aswell using batman1.bas (not batman.bas, because it can't find batman.scr, which is not on the disk) and batman2.bas.
Maybe it's some difference with the MAC/Firefox encoding, don't suppose you could do a screenshot of the wrong filenames after transferring them? both with cat and |ls. Might give me some idea to what's going on.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:45, 29 July 17

New firmware V2.0.4 beta 6 for M4 board.

Download http://www.spinpoint.org/cpc/M4FIRM_v204b6.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b6.zip)

- Fix parsing bug when file not found ( @dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251) )

- Many DSK fixes, now games like Chibi Akumas (http://www.chibiakumas.com/) show loading screen (again), games with fragmented blocks work (ie. Ninja Grannies (http://www.cpcwiki.eu/forum/games/unreleased-games-by-clockwize/) and other games from @Joseman (http://www.cpcwiki.eu/forum/index.php?action=profile;u=135))
  Hopefully all games that do no require writing works from DSK rather than running them as files. Let me know if that is not the case :)

- WEB UI, now you can pick  "CD ON CPC" when using file browser or from Control, to change the directory on CPC itself ( @Targhan (http://www.cpcwiki.eu/forum/index.php?action=profile;u=110) & @krusty_benediction (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1579) )
  Besides using the webui a http req (ie. wget) can also change directory like this: http://ipnum/config.cgi?cd2=/DEMOS (http://ipnum/config.cgi?cd=/DEMOS) or even into a DSK file.
  Also [..] in the file browser was changed to [BACK] and [.] to [REFRESH] to make it more obvious.

- |ls now supports DSK images too (will probably garbage up if using ASCII art though). (@krusty_benediction (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1579))
 
- |httpget will use attachment filename, rather than url if present (@krusty_benediction (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1579))

- New command |dskx - DSK extract.
  With this you can extract dsk images to files.
  Usage |dskx,"somedisk.dsk","/mypath" and all files are extracted to given path.

- CPC plus init, no longer clears screen ( @CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482) ).

Did I forget any bugs?  (oups @GUNHED (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2029), not implemented vortex dsk image support yet...) 
 
As for the new CPC+ cart feature, I have not fixed it yet.
Just bought a CPC464+ which I will probably get next week. Hopefully I will see some of the trouble others have and put on the LA, and check my timings.
Title: Re: Amstrad CPC WiFi
Post by: dirtybb on 13:46, 29 July 17

Many thanks duke, this update rocks !

Quote from: Duke on 12:45, 29 July 17
- New command |dskx - DSK extract.
  With this you can extract dsk images to files.
  Usage |dskx,"somedisk.dsk","/mypath" and all files are extracted to given path.
Luv that :D
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 14:13, 29 July 17

hi


for me, on old cpc 6128 fr, i have multiple reset on power on with only m4 card on 204b6


breiztiger
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:17, 29 July 17
Quote from: breiztiger on 14:13, 29 July 17
for me, on old cpc 6128 fr, i have multiple reset on power on with only m4 card on 204b6
It did not do this before?

Depending on how old your previous firmware was, you may have to delete the files romconfig.bin and romslots.bin from M4 folder.
Sounds like a ROM either at pos 7 or lowerrom.
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 14:25, 29 July 17

i have return with 204b5 without reset anymore


i haven't lowerrom or rom at pos 7
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:34, 29 July 17
Quote from: breiztiger on 14:25, 29 July 17
i have return with 204b5 without reset anymore


i haven't lowerrom or rom at pos 7

Ok, strange. Thanks for the feedback.

Another huge change in this build is, that all the lowlevel drivers was changed to a new api/definitions from STM (LL drivers rather than SPL), so I can easier port it to Galaxy board.
So it's possible there is some bug somewhere. Just it works fine for me on my CPC6128, will check the rest of the CPC's later.

EDIT: Ran a quick test through cpc's: 2 x CPC6128, 2x CPC664, 1x CPC464, 1x CPC6128+.  No problems encountered.  Anyone else having issues let me know.
@breiztiger (http://www.cpcwiki.eu/forum/index.php?action=profile;u=612): Do you have any particular ROM setup or other things (like autoexec.bas) ?
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 15:25, 29 July 17

no, stock m4 without other roms


and no autoexec
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 00:17, 30 July 17
Quote from: Duke on 06:50, 29 July 17
I tested this now, and for me it does not rename any file extensions.
The only difference is that due to 8.3 SFN filenames, the '+' sign is not allowed so the files"LOADER+.BAS", "LOADP1+.BAS" & "LOADP2+.BAS" will display as "LOADER~1.BAS", "LOADP1~1.BAS" & "LOADP2~1.BAS" when using CAT command.
However if you do a |ls command, it will be correct filenames.
The game works fine aswell using batman1.bas (not batman.bas, because it can't find batman.scr, which is not on the disk) and batman2.bas.
Maybe it's some difference with the MAC/Firefox encoding, don't suppose you could do a screenshot of the wrong filenames after transferring them? both with cat and |ls. Might give me some idea to what's going on.


Will give it another go in the morning. I was running it using the web interface though so unsure if that makes any difference?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 17:29, 30 July 17
hi Duke, I got a new memory card having had one die... it is a 64gb 80x one, but doesn't seem to be recognised by the M4 card, are there capacity limits for the microsd cards on the M4?  doing a cat gives a size of ??? but trying to save always gives file opened errors.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:39, 30 July 17
It needs FAT32, that means 32 GB is the upper size limit.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 19:08, 30 July 17
Quote from: GUNHED on 18:39, 30 July 17
It needs FAT32, that means 32 GB is the upper size limit.
FAT32 limit us 2TB
The 32GB limits is surely coming from the SD driver.
SDHC max capacity is 32GB. You need a SDXC compatible driver to go up to 2TB
Original  SD (SDSC in latest standard) was limited to 1GB.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:51, 30 July 17
That's what I mean. More than 32 GB cards will not have FAT32 any longer.
Title: Re: Amstrad CPC WiFi
Post by: gerald on 20:50, 30 July 17
Quote from: GUNHED on 19:51, 30 July 17
That's what I mean. More than 32 GB cards will not have FAT32 any longer.
:-\
Can you explain why they should not have FAT32 any longer?
FAT32 support up to 2TB (Could do more, but not recommended)
SDXC support up to 2TB and identify itself as a SDXC. What prevent the use of a FAT32 file system, assuming that the driver on the M4 understand what a SDXC is ?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 21:32, 30 July 17
thanks, seems there are some utils to re-format the sdcard and i might give it a try...  ( https://www.raspberrypi.org/documentation/installation/sdxc_formatting.md )

Aside from that, I also updated from my very old M4 ROM to the latest, and it appears somewhere it lost the ability to work with the x-mem.  what i was doing (which worked) was putting the x-mem at 0-31 and the m4 at 32+, but the m4 was still somehow putting it's ROM at position 6.  now booting with both, causes the disc drive to wirr...
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 21:33, 30 July 17
gerald,

The capacity of SD cards (in particular microSD) are expected to have exFAT used (See example here http://envoydatamemory.com/datasheets/EN-L0J%20Industrial%20microSD%20Card%20Spec%20Rev1.6.pdf (http://envoydatamemory.com/datasheets/EN-L0J%20Industrial%20microSD%20Card%20Spec%20Rev1.6.pdf)).

While FAT32 can indeed access upto 2^32  sectors, there is also design of the card that needs to be taken into account and as i understand exFAT is better at handling this.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 21:43, 30 July 17
Hi Duke


I want a M4 to my 6128


Regards
Title: Re: Amstrad CPC WiFi
Post by: keith56 on 00:17, 31 July 17
Quote from: rpalmer on 21:33, 30 July 17
The capacity of SD cards (in particular microSD) are expected to have exFAT used

Exfat is patented by Microsoft, see
https://www.microsoft.com/en-us/legal/intellectualproperty/mtl/exfat-licensing.aspx

a lot of devices don't support it for this reason, but if you reformat your SD card to Fat32 (you'll probably need a linux live cd - as I think windows will refuse to do it - even though it can read 64gb fat32 sd cards)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:38, 31 July 17
Yes, the current SDIO driver only supports up to SDHC.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 11:14, 31 July 17
Quote from: gerald on 20:50, 30 July 17
:-\
Can you explain why they should not have FAT32 any longer?


They need to have FAT32 because the M4 card does (as far as I know) only support FAT32 file-system, but not f.e. NTSF.  ::)
Title: Re: Amstrad CPC WiFi
Post by: mcleod_ideafix on 19:35, 31 July 17
Hi, Duke. Some folks at the Amstrad CPC 464 facebook group have told me to write a reply here in order to ask you for a M4 board with edge connector. Is it available?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:05, 31 July 17
Quote from: ayasystems on 21:43, 30 July 17
I want a M4 to my 6128
I send you PM.

Quote from: mcleod_ideafix on 19:35, 31 July 17
Hi, Duke. Some folks at the Amstrad CPC 464 facebook group have told me to write a reply here in order to ask you for a M4 board with edge connector. Is it available?
I still make them, but lead time is 4-5 weeks before they can be ready.
Send me a private message with your email address and tell me what connector you want on your M4.
Title: Re: Amstrad CPC WiFi
Post by: Fabrizio Radica on 15:37, 02 August 17
Quote from: Duke on 20:05, 31 July 17
I send you PM.

I still make them, but lead time is 4-5 weeks before they can be ready.
Send me a private message with your email address and tell me what connector you want on your M4.

me too for my 6128 (no centronics)  :)

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 01:29, 03 August 17
Hey Duke, this is an idle musing LOL


As the Proposed (And I really hope it makes it into production) Galaxy board fits directly into the z80 socket with the z80 then sitting in the galaxy board. does this mean that firmwares could be made available for other z80 based machines to make use of the Galaxy board with the correct drivers etc....?


If so my order will go up from 4ish to 6ish


having now got a 100% functional Speccy +3 and awaiting the arrival of my first ever MSX machine (a Philips NMS 8250) I was wondering if the Galaxy could (or would be able to) bring Wifi and Mass Storage to these 2 machines as well.


Particularly useful on the MSX as Symbos is available for it!
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 06:15, 03 August 17
Hi Duke. I am wondering if anyone has asked for the feature to send a file to the cpc and have it automatically execute in ram? If it is possible now what is the best way to? It will be good to assemble on pc direct to cpc when developing.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:13, 03 August 17
Quote from: CraigsBar on 01:29, 03 August 17
As the Proposed (And I really hope it makes it into production) Galaxy board fits directly into the z80 socket with the z80 then sitting in the galaxy board. does this mean that firmwares could be made available for other z80 based machines to make use of the Galaxy board with the correct drivers etc....?
Yes, that would be possible.
Quote from: CraigsBar on 01:29, 03 August 17
having now got a 100% functional Speccy +3 and awaiting the arrival of my first ever MSX machine (a Philips NMS 8250) I was wondering if the Galaxy could (or would be able to) bring Wifi and Mass Storage to these 2 machines as well.
I have recently acquired a msx and +3 aswell :)  - So it is something I have been thinking about too.  Realistically though I am not sure I will ever find the time. I am kinda tied up with work for the next couple of months, so don't expect anything soon.

Quote from: zhulien on 06:15, 03 August 17
I am wondering if anyone has asked for the feature to send a file to the cpc and have it automatically execute in ram? If it is possible now what is the best way to? It will be good to assemble on pc direct to cpc when developing.
With the cpcxfer program you can remotely upload and run files from the PC, though not uploading it directly to ram, but it is very convenient and fast for developing on a PC and testing directly on the CPC.
https://github.com/M4Duke/cpcxfer
http://www.cpcwiki.eu/index.php/CPC_M4_xfer_tool

Add it to your makefile as an option and you can test your code in a second.
Title: Re: Amstrad CPC WiFi
Post by: keith56 on 11:17, 03 August 17
Quote from: Duke on 08:13, 03 August 17
Yes, that would be possible.I have recently acquired a msx and +3 aswell :)  - So it is something I have been thinking about too.  Realistically though I am not sure I will ever find the time
I'd be very interested in +3 and/or MSX support too!

Remember, I live in Japan, if donations of MSX hardware would help encourage you, let me know and I'll see what I can do!
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 11:59, 03 August 17
I'd like an M4 for MSX if you could make one work.  For most part it seems the same CPU pins are brought out for the MSX cart port as the CPC expansion bus.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:26, 03 August 17
Quote from: keith56 on 11:17, 03 August 17
I'd be very interested in +3 and/or MSX support too!

Remember, I live in Japan, if donations of MSX hardware would help encourage you, let me know and I'll see what I can do!

Thanks.

Quote from: zhulien on 11:59, 03 August 17
I'd like an M4 for MSX if you could make one work.  For most part it seems the same CPU pins are brought out for the MSX cart port as the CPC expansion bus.
Actually its the follow up board to M4, see http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg146222/#msg146222
It's twice as powerful as the M4 (Cortex-M7 460 DMIPS and 576 KB of SRAM, allowing it to act as RAM expansion too)
It plugs directly to the Z80 cpu socket, so no need for special connectors.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 16:57, 03 August 17

Quote from: Duke on 12:26, 03 August 17
Actually its the follow up board to M4, see http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg146222/#msg146222 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg146222/#msg146222)
It's twice as powerful as the M4 (Cortex-M7 460 DMIPS and 576 KB of SRAM, allowing it to act as RAM expansion too)
It plugs directly to the Z80 cpu socket, so no need for special connectors.
Is it only for a CPC Plus?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:59, 03 August 17
Quote from: HAL 6128 on 16:57, 03 August 17
Is it only for a CPC Plus?
No, any CPC, although it may need a different physical shape for some models.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 18:57, 03 August 17
Sorry to bring this us again, I am trying to code a simple start of day desktop in autoexec.bas and for this to work I really want to be able to have the output of |time stored in a variable for display in a large font routine.

Can something like |timevar be added or perhaps included in an extension rom?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:08, 03 August 17
Quote from: CraigsBar on 18:57, 03 August 17
Sorry to bring this us again, I am trying to code a simple start of day desktop in autoexec.bas and for this to work I really want to be able to have the output of |time stored in a variable for display in a large font routine.

Can something like |timevar be added or perhaps included in an extension rom?
Just use the short assembler (hex codes) routine I made for you, if you can find the old thread.
I am sure someone in here can help putting it in to a variable if peek(x+1.2.3.4...) isn't working :)

EDIT found it, here it is again:

10 FOR a=&9000 TO &908A
20 READ b: POKE a,b
30 NEXT
40 CALL &9000
50 IF PEEK(&908A) = 255 THEN PRINT"M4 not found!"
60 MODE 2
70 PRINT "TIME IS : ";
80 LOCATE 1,2:FOR n=0 TO 8:PRINT CHR$(PEEK(&908B+n));:NEXT
90 CALL &BD19: REM frame
100 CALL &9000:REM refresh time
110 GOTO 80
120 DATA &F3,&1,&84,&7F,&ED,&49,&3A,&8A,&90,&FE,&FF,&CC,&4B,&90,&FE,&FF,&C4,&1F,&90,&1,&C,&7F,&ED,&49,&1,&0,&DF,&ED,&49,&FB,&C9,&1,&0,&DF,&ED,&79,&3E,&2,&1,&0,&FE,&11,& 24,&43,&ED,&79,&ED,&59,&ED,&51,&1,&0,&FC,&ED,&49,&21,&2,&FF,&5E,&23,&56,&EB
130 DATA &1,&3,&0,&9,&11,&8B,&90,&1,&16,&0,&ED,&B0,&C9,&F3,&FD,&21,&82,&90,&16,&7F,&D5,&1,&0,&DF,&ED,&51,&3A,&0,&C0,&FE,&1,&20,&1C,&3A,&4,&C0,&6F,&3A,&5,&C0,&67,&FD,&E5,&D1,&1A,&AE,&20,&D,&1A,&23,&13,&E6,&80,&28,&F5,&D1,&7A,&32,&8A,&90,&C9
140 DATA &D1,&15,&20,&D3,&3E,&FF,&C9,&4D,&34,&20,&42,&4F,&41,&52,&C4,&FF


Now anyone how to turn?
FOR n=0 TO 8:PRINT CHR$(PEEK(&908B+n));:NEXT

Into a variable as a$ ??
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:02, 03 August 17
Simple solution to turn it into a variable:

80 B$="":LOCATE 1,2:FOR n=0 TO 8:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:26, 03 August 17
Quote from: Duke on 20:02, 03 August 17
Simple solution to turn it into a variable:

80 B$="":LOCATE 1,2:FOR n=0 TO 8:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$

Yep that works.... Do we have some magic for the date too?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:46, 03 August 17
Quote from: CraigsBar on 21:26, 03 August 17
Yep that works.... Do we have some magic for the date too?
Sure, just increase n var in the loop to get the entire time-date stamp:

80 B$="":LOCATE 1,2:FOR n=0 TO 18:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$


Also do a:

1 memory &8fff

Or basic may overwrite the code and result in a crash.

EDIT:
The entire time-date stamp is just stored at &908B ->  every time you make a call to &9000
The format is:
hh:mm:ss yyyy-mm-dd

So you will just have to parse it how you like similar to line 80.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 13:44, 14 August 17
I just had the time to test the new 2.0.4 Beta6, and the "CD ON CPC" option is awesome. Thanks, it's going to be very useful!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 20:17, 15 August 17
I have reverted to 2.0.3 as for me at least symbos is completely unusable in the 2.0.4 betas [emoji53]

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Targhan on 13:13, 20 August 17
Small question (sorry if it has been asked before, the thread is 176-page long!): on the PC webpage, clicking on a file that is on the SD card results in a "404 not found" file. Would it be possible to download to the PC a file that would be on the SDcard?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:52, 20 August 17
@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482) & @Targhan (http://www.cpcwiki.eu/forum/index.php?action=profile;u=110)

Thanks.

Both issues should be fixed now with:

M4 Firmware v2.0.4 beta 7
, download at:
http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 22:29, 20 August 17
Quote from: Duke on 21:52, 20 August 17
@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482) & @Targhan (http://www.cpcwiki.eu/forum/index.php?action=profile;u=110)

Thanks.

Both issues should be fixed now with:

M4 Firmware v2.0.4 beta 7
, download at:
http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip
Great news.... I know what I am testing shortly!

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 16:21, 21 August 17
Quote from: CraigsBar on 22:29, 20 August 17
Great news.... I know what I am testing shortly!

Sent from my ONEPLUS 3t using Tapatalk
Hmmmm. Still no joy with running symbos from the m4 sd card with 2.0.4b will capture a video of the failure tonight when I get home.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:23, 21 August 17
Quote from: CraigsBar on 16:21, 21 August 17
Hmmmm. Still no joy with running symbos from the m4 sd card with 2.0.4b will capture a video of the failure tonight when I get home.

Ok. I tested yesterday running symbOS and using symIRC, all was fine (CPC6128 and xmem and on CPC464+ with xmem). Maybe it's some other problem..
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 19:16, 21 August 17
Clicking on a file to download it works perfectly, thanks!! Asking for a feature and having it coded the next day, now that's what I call support :).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:14, 21 August 17
Quote from: Targhan on 19:16, 21 August 17
Clicking on a file to download it works perfectly, thanks!! Asking for a feature and having it coded the next day, now that's what I call support :) .
Actually it was already working earlier, but due to adding some javascript uriencode function in the html it was broken (whenever I added that), so it was an easy one ;)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:32, 21 August 17
Quote from: Duke on 18:23, 21 August 17
Ok. I tested yesterday running symbOS and using symIRC, all was fine (CPC6128 and xmem and on CPC464+ with xmem). Maybe it's some other problem..
It works fine on the exact same setup with 2.0.3 booting from the sd card not rom

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: AlexD on 10:15, 23 August 17
Hi,
I tested M4 wifi with SymbOS.
My configuration:
CPC 6128plus, XMEM, M4 wifi.
parados 1.2


M4 firmwares tested: 2.03 and 2.0.4 beta 7


Network is OK (chat, ...) but problems occur when using SymIRC (with both firmware)
Connection is established, some packets are received (let's say 6-8 2048 packets), but then connections is lost or closed.


I tried to connect to different IRC server (most of the time I use chat.freenode.net).


Once connection is closed, SymbOS is still alive, but if then I click the disconnect button on SymbIRC, the system freeze.



Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:18, 23 August 17
@AlexD (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1234)

Thanks for the report. Will check same configuration when my CPC6128+ is not in pieces anymore.
What cartridge is used? (Plain basic + amsdos ?)

Also there is newer version of SymIRC than the one included with SymbOS package, IIRC. there was some bugs. I forgot the link.
Title: Re: Amstrad CPC WiFi
Post by: AlexD on 14:48, 23 August 17
I use the standard CPC cartridge, I downloaded SymbIRC from http://members.home.nl/evanzanten/appstore/

Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 17:03, 01 September 17
Got my M4 board today. Very pleased with the device.

Just one question, and this may be a stupid question, but how do I "insert a different disk side" without resetting the CPC back to the command interface to |cd to the new disk? For example, in a game or demo which requires side 2 of the disk during the execution of the program?
Am I missing something? Can disk image swapping somehow be done through the web interface "on the fly" while the CPC is running a program?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:50, 01 September 17
Quote from: blackdalek on 17:03, 01 September 17
Am I missing something? Can disk image swapping somehow be done through the web interface "on the fly" while the CPC is running a program?
Yes with latest beta, you can change disc via the web interface, press [CD ON CPC] when you have selected the disc.

You can download the beta firmware here: www.spinpoint.org/cpc/M4FIRM_v204b7.zip
Unpack to root of SD card (or drag and drop the files after unpacking via the web interface). Reset M4 (or power cycle the CPC).
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:17, 05 September 17
Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.

Craig.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Bryce on 13:31, 05 September 17
Quote from: CraigsBar on 13:17, 05 September 17
Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.

Craig.

Sent from my ONEPLUS 3t using Tapatalk

Are you swapping both the upper and lower ROM0's? If you don't swap both it will crash.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:46, 05 September 17
Yep. I tried both the y
664 pair and 6128 pair from the winape package as well as the cpc wiki rom list.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Bryce on 13:49, 05 September 17
Does the M4 allow you to replace the lower ROM? I wasn't aware of that feature.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:26, 05 September 17
Yes it does.

Sent from my ONEPLUS 3t using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:43, 05 September 17
Quote from: CraigsBar on 13:17, 05 September 17
Is there any technical reason why a m4 won't let me replace rom0 on a tall key cpc 464 to run basic 1.1?

I've tried both the cpc6128 and cpc664 dumps but both cause a crash on boot.
Have you tried with M4 directly connected (no mx4 and xmem) ?
Works for me on Schneider CPC 464 "tall key" with GA 40007 (using Basic and OS rom from 6128).
If not, I would say bad contacts on the edge connector.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:51, 05 September 17
Awesome, thanks next time I catch up with my c64 gurus cpc tall key I'll Polish the connector again

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: pelrun on 11:37, 08 September 17
I've been having major crashing problems with my CPC for ages now. After a *lot* of mucking around, I figured out it doesn't happen when the M4 doesn't start up the wifi (e.g. I pull the sd card out so it starts up unconfigured). External power didn't help at all. Happens less when the M4 is the only thing connected to the expansion port, but when it's in the MotherX4 it's no good.

I've done some other projects personally using the ESP8266, and in those I've invariably had a large capacitor across the 8266's power pins to make them start reliably. The M4 doesn't have such a capacitor, only a small decoupling cap. Adding a 100uF electrolytic across the pads on the back of the board has made it rock solid much better than it was.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 09:18, 09 September 17
Now that I can use my m4 again, can I suggest using the configured M4 NetBIOS name to set the esp8266 hostname? My dhcp server registers hostnames into the local dns, but the m4 only shows up as the default "ESP_xxxxx", and there's rather a few of those already on my network :)
Title: Re: Amstrad CPC WiFi
Post by: ||C|-|E|| on 10:57, 09 September 17
Quote from: pelrun on 11:37, 08 September 17
I've been having major crashing problems with my CPC for ages now. After a *lot* of mucking around, I figured out it doesn't happen when the M4 doesn't start up the wifi (e.g. I pull the sd card out so it starts up unconfigured). External power didn't help at all. Happens less when the M4 is the only thing connected to the expansion port, but when it's in the MotherX4 it's no good.

I've done some other projects personally using the ESP8266, and in those I've invariably had a large capacitor across the 8266's power pins to make them start reliably. The M4 doesn't have such a capacitor, only a small decoupling cap. Adding a 100uF electrolytic across the pads on the back of the board has made it rock solid.

Thanks, that was very interesting to read and definitely a super-simple mod  :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:33, 09 September 17
Quote from: pelrun on 11:37, 08 September 17
I've been having major crashing problems with my CPC for ages now. After a *lot* of mucking around, I figured out it doesn't happen when the M4 doesn't start up the wifi (e.g. I pull the sd card out so it starts up unconfigured). External power didn't help at all. Happens less when the M4 is the only thing connected to the expansion port, but when it's in the MotherX4 it's no good.

I've done some other projects personally using the ESP8266, and in those I've invariably had a large capacitor across the 8266's power pins to make them start reliably. The M4 doesn't have such a capacitor, only a small decoupling cap. Adding a 100uF electrolytic across the pads on the back of the board has made it rock solid.
Which way round is the cap?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: pelrun on 12:46, 09 September 17
Positive is on the right of the photo, next to C14.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:41, 10 September 17
Quote from: pelrun on 12:46, 09 September 17
Positive is on the right of the photo, next to C14.


Thanks. Applied. Lets see how it goes....
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:42, 10 September 17
Should this modification be applied to every M4 card, or is it needed only in few circumstances?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:20, 10 September 17
Quote from: GUNHED on 13:42, 10 September 17
Should this modification be applied to every M4 card, or is it needed only in few circumstances?
I am just seeing if it helps with stability on my cpc 6128.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:17, 10 September 17
Quote from: GUNHED on 13:42, 10 September 17
Should this modification be applied to every M4 card, or is it needed only in few circumstances?
Only if you have stability problems. I guess it will depend on your powersupply if it can deliver the small bursts when wifi is transmitting fast enough. There's already a 10uF cap on the power of the wifi and a 0.1uF on the wifi board itself. I for one don't have that issue testing with multiple power supplies.
That being said I have read of plenty of people having issues with ESP8266 rebooting in other projects, the normal fix is a 10uF-100uF cap.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 19:21, 10 September 17
It's not exclusively a powersupply issue. I've tried several, *and* my lab bench supply to no avail. I've also gone through and minimised the voltage drops everywhere else in my setup (including a 0.2v drop in my 6128's power switch - the internal contacts were dark brown with 30 years of gunk!)

It's simply too far away from the 8266, and a local 10uF is too small to handle the fast 400mA current spikes the 8266 generates at startup.

Also, 8266 modules are notoriously variable, and what might work fine on one unit can be completely inadequate on another. Realistically you need at least 47uF near the module (and that's in addition to the 0.1uF-10uF ceramic decoupling cap, you need both) to cope with the different sensitivities of individual modules.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 19:56, 10 September 17
One other thing I've just thought of to check - there's an LDO regulator (AMS1117) on the board to supply the needed 3.3v rail, and these regulators generally *require* a tantalum or electrolytic cap on the output in order to prevent the regulator from oscillating. The M4 is using a ceramic cap there instead. Unfortunately, ceramics aren't appropriate for this because they've got negligible ESR (and this is one of the few places you actually *need* some ESR.) There are regulators that are designed to work with a ceramic output cap, but this isn't one of them.


A big transient spike (for instance when the 8266 starts up) could be causing the regulator to ring really badly. I guess I need to break out the oscilloscope...



http://www.ti.com/lit/an/slva115/slva115.pdf (http://www.ti.com/lit/an/slva115/slva115.pdf)
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 22:05, 10 September 17
Ah that makes a lot of sense.

I had one power supply, USB PlugPack / WallWort that had a higher current rating and didn't work. Only half the HTTP page would send then stop.

I haven't had a good look at the schematic but two things come to mind -

1) As mentioned, a large cap (100uF or so) across the ESP8266 as these can have very high peak currents.

2) I will always use a high precision 3.6 Volt regulator when mixing 3.3v chips with 5v chips as it improves the noise margin dramatically - most 3v3 chips are fine to run at 3v6 but check the specs.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 03:58, 11 September 17
Quote from: pelrun on 19:56, 10 September 17
One other thing I've just thought of to check - there's an LDO regulator (AMS1117) on the board to supply the needed 3.3v rail, and these regulators generally *require* a tantalum or electrolytic cap on the output in order to prevent the regulator from oscillating. The M4 is using a ceramic cap there instead. Unfortunately, ceramics aren't appropriate for this because they've got negligible ESR (and this is one of the few places you actually *need* some ESR.) There are regulators that are designed to work with a ceramic output cap, but this isn't one of them.
Actually some AMS1117 datasheets say that you can use ceramic, ie:
http://www.szjzsic.com/upfile/AMS1117.pdf
Obviously the 1117 on M4 is a clone of some sort and the safer choice would have been a 22uF tant.  So you may be right, depending on the clone 1117 specs.
I later replaced the LDO with a  AP2114H due to the drop-voltage of the AMS1117 that could pose a problem when used in MX4. The AP2114 datasheet also states it can use ceramics.
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 06:33, 11 September 17
I thought these boards were hand soldered???

Ceramics often fracture and fail if hand soldered.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:07, 11 September 17
Quote from: RobertM on 06:33, 11 September 17
I thought these boards were hand soldered???

Ceramics often fracture and fail if hand soldered.

All SMD components are put on with a tweezer into the solder paste, then baked in the reflow oven.
Only hand soldering is connectors (+esp module on older boards) and removing solder bridges after reflowing.

Btw. here is a few examples of ldo boards with AMS1117 all using ceramics, so either newer versions of the AMS1117 only needs very low ESR or all the designs are bad, being fully possible.


Title: Re: Amstrad CPC WiFi
Post by: Bryce on 07:53, 11 September 17
Using a tantalum capacitor is the recommendation, in order to improve the quality of the output, however the part will work with any capacitor at the output, it just won't be as good. The manufacturers of those cheap 1117 boards don't care how good the output is and know that their standard customer for this type of board doesn't have the knowledge to know better either, so they slap on whatever was on offer at the local Shenzen market.
When a datasheet says "required", that usually  means "required to achieve the values we claimed above", not necessarily required to get the part working.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:04, 11 September 17
Quote from: Bryce on 07:53, 11 September 17
Using a tantalum capacitor is the recommendation, in order to improve the quality of the output, however the part will work with any capacitor at the output, it just won't be as good. The manufacturers of those cheap 1117 boards don't care how good the output is and know that their standard customer for this type of board doesn't have the knowledge to know better either, so they slap on whatever was on offer at the local Shenzen market.
When a datasheet says "required", that usually  means "required to achieve the values we claimed above", not necessarily required to get the part working.
Yup I get that and I should have used a tantalum being on the safe side because buying a bunch of 1117's from China I have no clue of the manufacturer and what its exact specs is.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:17, 11 September 17
I am pondering to add the 100uF cap for future boards.
From the feedback I have had very few people had issues with their boards (out of 320)  aside from the usual "edge connector" needs cleaning and in some cases a faulty board (dodgy connection, loose microsd slot, broken power switch or esp8266 flash going wonk).
Every board is tested for about 20-30 minutes with micro sd and wifi before I ship it off.
But if it can help in some cases, why not, it will only look a bit silly with the piggy back :)
Title: Re: Amstrad CPC WiFi
Post by: AlexD on 14:06, 11 September 17
Don't know about this hardware patch but what I read may explain why I encounter some problems with my m4 wifi.
I get some disconnections (while using SymIRC but also wget, even on small file size). This happen after "a certain time" which is variable but tend to lower whith time (e.g. when I try wget first attempt are downloading more packets that the second when etc.)
Should I try to add a capacitor ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:40, 11 September 17
Quote from: AlexD on 14:06, 11 September 17
Don't know about this hardware patch but what I read may explain why I encounter some problems with my m4 wifi.
I get some disconnections (while using SymIRC but also wget, even on small file size). This happen after "a certain time" which is variable but tend to lower whith time (e.g. when I try wget first attempt are downloading more packets that the second when etc.)
Should I try to add a capacitor ?
I doubt it's your problem. Because if the ESP8266 crashes the CPC would eventually lockup when the M4 tries to get more data from it (in fact I should make it reboot the ESP if it times out, something to do sometime). - You can also check if the web interface is still there, if it is, the ESP isn't crashed.
But sure worth a try, if you have a 100uF cap handy, your result would be interesting.
Title: Re: Amstrad CPC WiFi
Post by: AlexD on 16:15, 11 September 17
Indeed it is probably not crashed as I can trigger a wget command again.
Will try to find a capacitor to test it
Title: Re: Amstrad CPC WiFi
Post by: villain on 18:41, 11 September 17
Quote from: Duke on 08:17, 11 September 17


...with their boards (out of 320)


You really sold 320 boards? Absolutely impressive and for sure the most succesful piece of hardware after the CPC's commercial era. Congrats! ;-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:09, 11 September 17
Quote from: villain on 18:41, 11 September 17

You really sold 320 boards? Absolutely impressive and for sure the most succesful piece of hardware after the CPC's commercial era. Congrats! ;-)
Thanks - Actually 332, but only 320 shipped. A few more weekends...

There is probably other boards that have done just aswell or better, like C4CPC, XMEM and MX4.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:14, 12 September 17
Quote from: villain on 18:41, 11 September 17

You really sold 320 boards? Absolutely impressive and for sure the most succesful piece of hardware after the CPC's commercial era. Congrats! ;-)

Not sure about the most successful bit. The MegaFlash sold around 370 and I'm sure some of TotOs boards may have sold more.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 19:29, 12 September 17
I have problems with the last beta firmware....


When I change ROM number (m4rm) and push the button Set the checkbox labeled as "m4en" is saved as blank always.


As you can see in the sorce code the submit buttons are out of FORM TAG.


Regards!




Title: Re: Amstrad CPC WiFi
Post by: pelrun on 15:43, 14 September 17
Urgh, still having issues with my M4.


Any attempt to use a lower rom fails catastrophically - it basically never boots completely, and there's all sorts of graphical corruption and half-successful attempts at displaying the boot screen or just blank blue, and invariably constant reboots. If I connect the M4 directly to the CPC I find I can get it to fairly reliably boot if I've got a finger on the PB1/RD pin (yay body capacitance). Removing the finger sends it back into reboot hell again. I've reworked the connector without any noticable change to the behaviour. Turning the lower rom off lets it boot, but it's probably just because the M4 isn't using the bus as much.


The X-MEM gives me a stable system if I use it to do the lower rom replacement, even if it's right at the back of the MotherX4.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:07, 14 September 17
@ayasystems (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2278)
Thanks for the feedback, will look into when I have time to do the next update

@pelrun (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1106)
What CPC & which firmware are you using for M4?

Maybe your M4 board is faulty. You are welcome to send it back so I can check it up or send you a replacement.

Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 19:47, 14 September 17
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624): could it be the Z80?
@pelrun (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1106): Which Z80 do you have?
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 09:30, 15 September 17
I'm running a 6128 with v2.0.3, although I had 2.0.4 beta on it before I tried a few older firmwares with the same result and just |upgraded back to the latest release.


The Z80's an ST Z8400AB1, datecode 8904.


(I've had it since '86, but it got repaired once when I blew the 8255 and AY with a static discharge through the joystick port. I guess they just swapped the whole board out. Also explains why it was booting up as "Amstrad" when I *know* it originally was "Awa".)

Title: Re: Amstrad CPC WiFi
Post by: gaos74 on 22:25, 17 September 17
Hi guys

Totally noob here having purchased a  CPC 6128 off ebay.

I already ordered a M4 board from Duke because this project is so innovative!

I am reading this thread and I am now at page 30 (151 to go).

Some questions:

- What are the limitations in the terms of images compatibility compared with a Gotek/Hxc setup?
- Will I be able to save games as I would when using a 3" disk?
- Do I understand correct that it will not work without Internet connection? I will not be able to play games when I am out of wifi range?

Thanks in advance for your help.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:40, 18 September 17
Quote from: gaos74 on 22:25, 17 September 17
- What are the limitations in the terms of images compatibility compared with a Gotek/Hxc setup?
Games that use direct disc I/O (ie. copyprotected games) will not work. You will need to find cracked versions of those.
Quote
- Will I be able to save games as I would when using a 3" disk?
You can save directly to the microSD as if it was a disk. You cannot save into a .DSK image yet.
Quote
- Do I understand correct that it will not work without Internet connection? I will not be able to play games when I am out of wifi range?
No, you don't need to use the WiFi connection. It is not needed if you only want to use the microSD or rom board.
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 15:31, 19 September 17
What is the last firmware released?


As i can see at http://www.spinpoint.org/cpc/m4info.txt the last release is [size=78%]M4FIRM_v204b6.zip   [/size]


But there are a [/size]http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip)[size=78%] b7 file!!




Where I can find an updated change log and know what is the last release?




Regards!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:34, 19 September 17
http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip is latest (v2.0.4 beta 7)

Sorry forgot to update m4info.txt

Only 1 fix (the other for craig didn't work).
You can download files again via the webinterface by clicking on them.

Work is keeping me too busy atm. to dig deeper into some of the issues that needs to be taken care of by the next update.
So it will probably be a while...

Quote from: ayasystems on 15:31, 19 September 17
What is the last firmware released?


As i can see at http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt) the last release is [size=78%]M4FIRM_v204b6.zip   [/size]


But there are a http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b7.zip)[size=78%] b7 file!!




Where I can find an updated change log and know what is the last release?




Regards!!
[/size]
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 18:37, 19 September 17
Í will update the wiki




Regards
Title: Re: Amstrad CPC WiFi
Post by: dragon on 17:17, 29 September 17
I have a problem with my m4 i can't connect it to the router or the mobile access point, always return me no ap found no  matter what name i put. And sometime the plus not boot with it fitted.

i view the blue light of wifi go one little when cpc power up, but then it go off.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:18, 29 September 17
Quote from: dragon on 17:17, 29 September 17
I have a problem with my m4 i can't connect it to the router or the mobile access point, always return me no ap found no  matter what name i put. And sometime the plus not boot with it fitted.

i view the blue light of wifi go one little when cpc power up, but then it go off.
And obviously you are 100% sure your network settings are correct (ssid, password, ip)?
If so try to update with v2.3 firmware on the microSD, see if it reflashes the ESP without problems.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:34, 29 September 17
I have try creating a local nework with my mobile (to no affect the the other devices in my router) to make test.

I put ssid=H
pasword=amstradcpc

And it return me first conecting and latter  ap not found.

ssid=H
pw=amstradcpc
name=AMSTRAD
dhcp=1
ip=192.168.113.106
nm=192.168.113.23
gw=255.255.255.0
dns1=8.8.8.8
dns2=8.8.8.4
tz=2
ntp=ntp.inet.tele.dk

I have update manually the version 2.03 it update, but same result
I have put a parados cartridge without c4cpc and same.
sd works fine.

I format the card and nothing.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:45, 29 September 17
You have netmask and gateway swapped. Not that it matters since you are using DHCP.
I haven't tried using a mobile as access point. Is it the same when you try to connect to your Router?
Title: Re: Amstrad CPC WiFi
Post by: dragon on 19:41, 29 September 17
I have donwoload the test firmware,someone suggest it me in telegram. they have solve it after swap gateway.

Finally i can download games from internet.

:)
Title: Re: Amstrad CPC WiFi
Post by: merlinkv on 22:29, 01 October 17
It's possible to use the M4 & X-MEM boards together?

I've tried several times in the past without positive results ... The 6128 starts and works but crashes randomly ....

I'm asking because is very interesting to use the 576K RAM drive ...  :)
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 02:25, 02 October 17
Have you disabled the ROM on the X-MEM, by moving the "READ ROM" jumper to "NO"? It's necessary, as you can't have both cards trying to supply the same rom numbers (although alternatively you can tell the M4 to start it's roms at 32). You'll also need to set the boot rom switch to CPC.
Title: Re: Amstrad CPC WiFi
Post by: DerSchatten on 20:17, 02 October 17
please, I need any information to the Hardware of the M4 Board for my Webside:

.) how high is the clock frequency of the MCU with which she runs
.) How many RAM have the Board
.) how large is the ROM area

thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:51, 03 October 17
Quote from: DerSchatten on 20:17, 02 October 17
.) how high is the clock frequency of the MCU with which she runs
.) How many RAM have the Board
.) how large is the ROM area
168 MHz
192KB RAM
1 MB FLASH
Title: Re: Amstrad CPC WiFi
Post by: Fabrizio Radica on 08:44, 03 October 17
Quote from: Duke on 06:51, 03 October 17
168 MHz
192KB RAM
1 MB FLASH

Uhm... i've a question:
It's possible to expand CPC ram with M4 in the future?

ciao!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 09:26, 03 October 17
Yes, with the M7 board, so its thread (somewhere).  :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 09:07, 11 October 17
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

I'm playing with the M4 and the command C_READDIR (asm), i can for now read the entire dir and display its entries, but there is 3 bytes at the start of the dir entry that i don't know what they mean... At the moment I differentiate the folder entries by the ">" char, but what are the rest of the bytes for?

another thing, the format of the dir entry is a little weird, how can i format this entry:

"file               . bin            1k"

to only "file.bin"

Is there any rule to make it easy?

thankyou!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:44, 11 October 17
Quote from: Joseman on 09:07, 11 October 17
I'm playing with the M4 and the command C_READDIR (asm), i can for now read the entire dir and display its entries, but there is 3 bytes at the start of the dir entry that i don't know what they mean... At the moment I differentiate the folder entries by the ">" char, but what are the rest of the bytes for?

They echo the command you send + the response size. You can just skip them or use them to validate the reply is proper.

Quote
another thing, the format of the dir entry is a little weird, how can i format this entry:

"file               . bin            1k"

to only "file.bin"

Is there any rule to make it easy?


If you send C_READDIR command with an argument, this argument is the max filename length to be returned.
Ie. to display long filenames in mode 2 with |ls,  I use 80 - 4 (for the size). Then filename as displayed in that width.

Also using this option you can avoid the "space" padding
Just set max filename length to 12 if you don't need long filenames, with that option it should not use space padding.

Without an argument it uses 8.3 filenames, formatted similar to AMSDOS.

Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:02, 11 October 17
BTW how are you programming the M4?

it's a pain to make things blind on winape and then copy to cpc, and see it not working... then again to winape...  :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:13, 11 October 17
Quote from: Joseman on 12:02, 11 October 17
BTW how are you programming the M4?

it's a pain to make things blind on winape and then copy to cpc, and see it not working... then again to winape...  :laugh:

I use cpcxfer (https://github.com/M4Duke/cpcxfer), takes like <2 secs to transfer and execute on the CPC from the PC :)
Of course I don't use WinApe for the assembly but sdasz80, so I compile via command line and can just send the binary straight to the CPC and execute it.

It would be nice if one could send it directly from WinApe/Arnold etc. after assembling to test on the real CPC.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:28, 11 October 17
Just a thought that might make it easier for you if you assemble with WinApe.

From the WinApe documenation:
Quote
write [direct] filename[,exec_address]Direct generated code output to a file. For write direct the output is sent to a file on a disc image, and an optional execution address exec_address can be specified. For write without direct the output is sent to a file in the Windows file system.
You can write directly to the windows filesystem to output the binary.
Now just open a command prompt to where the file is written and have a copy of cpcxfer there, then use.
xfer -u yourm4ip joseman.bin / 0
xfer -x yourm4ip /joseman.bin

To test on the real CPC. 
You can also put those into a batch file and simply double click it from windows.

Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:07, 11 October 17
Quote from: Duke on 12:28, 11 October 17
Just a thought that might make it easier for you if you assemble with WinApe.

From the WinApe documenation:You can write directly to the windows filesystem to output the binary.
Now just open a command prompt to where the file is written and have a copy of cpcxfer there, then use.
xfer -u yourm4ip joseman.bin / 0
xfer -x yourm4ip /joseman.bin

To test on the real CPC. 
You can also put those into a batch file and simply double click it from windows.

yes i saw this option on winape, but the file generated is not executable by the cpc because it hasn't amsdos header (i need to insert it on a dsk and then extract again)... and the option [,exec_address] only works with write direct i think...

maybe i'm wrong or not using it correctly?

Title: Re: Amstrad CPC WiFi
Post by: SOS on 13:25, 11 October 17
Quote from: Joseman on 09:07, 11 October 17
I'm playing with the M4 and the command C_READDIR (asm), ...
Maybe you can use the |UDIR-RSX, which is also present in ACMEDOS (so you can do the programming in Winape) and
maybe in future OS's.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:39, 11 October 17
Quote from: SOS on 13:25, 11 October 17
Maybe you can use the |UDIR-RSX, which is also present in ACMEDOS (so you can do the programming in Winape) and
maybe in future OS's.

i don't know so much about RSX commands and his implementation on an ASM program... are you sure that this RSX works exactly the same on AcmeDos & M4?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:45, 11 October 17
Quote from: Joseman on 13:07, 11 October 17
yes i saw this option on winape, but the file generated is not executable by the cpc because it hasn't amsdos header (i need to insert it on a dsk and then extract again)... and the option [,exec_address] only works with write direct i think...

maybe i'm wrong or not using it correctly?

You are right. I added option to cpcxfer to add a binary header.

It's done this way:
xfer -u <m4ipaddr> myfile.bin / 2 <start addr> <exec addr>

Attached working sample for WinApe. Just edit the runm4.bat file and change the IP address to yours, then you can run the file by double click on runm4.bat after assembling with WinApe.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 14:49, 11 October 17
Quote from: Duke on 14:45, 11 October 17
You are right. I added option to cpcxfer to add a binary header.

It's done this way:
xfer -u <m4ipaddr> myfile.bin / 2 <start addr> <exec addr>

Attached working sample for WinApe. Just edit the runm4.bat file and change the IP address to yours, then you can run the file by double click on runm4.bat after assembling with WinApe.

Thankyou!!!

I will try later and tell you about it!
Title: Re: Amstrad CPC WiFi
Post by: SOS on 15:53, 11 October 17
Quote from: Joseman on 13:39, 11 October 17
i don't know so much about RSX commands and his implementation on an ASM program... are you sure that this RSX works exactly the same on AcmeDos & M4?
There are small differences, e.g. M4 has longer Dir-Names, ACMEDOS another Patch-Adress.
You must take a look, what MassOS do you use (if ACMDOS then PatchAdress=&be9a, if M4DOS then PatchAdress=&bea3).
The Advantage is, that you can develop it in WinApe and when it's error-free you can convert it for M4-DOS.
And not to forget, it runs on M4DOS + ACME :)

The |UDIR documentation can be found in "m4info.txt"

So PM me, than i can help you more...
Title: Re: Amstrad CPC WiFi
Post by: dxs on 21:40, 11 October 17
Maybe some sort of bug ? The ùupdate rsx sometimes returns straight to the ready prompt, skipping the "you're OK" message.
Still wondering how we spent so many years without the M4  ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:48, 11 October 17
Quote from: dxs on 21:40, 11 October 17
Maybe some sort of bug ? The ùupdate rsx sometimes returns straight to the ready prompt, skipping the "you're OK" message.
Probably, I didn't add too many error messages (lazy). Maybe DNS didn't resolve, I'll add it to the todo list.
Title: Re: Amstrad CPC WiFi
Post by: msmthng on 13:24, 19 October 17
hi, how can i change the dsk file when a program (started from the sd) is running on the cpc?
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 13:28, 19 October 17
Quote from: msmthng on 13:24, 19 October 17
hi, how can i change the dsk file when a program (started from the sd) is running on the cpc?

I don't think it's possible from the CPC itself, but it may be possible from the web interface.
Title: Re: Amstrad CPC WiFi
Post by: msmthng on 13:32, 19 October 17
Quote from: Skunkfish on 13:28, 19 October 17
I don't think it's possible from the CPC itself, but it may be possible from the web interface.
Changing the dsk on the webinterface doesn't change the dsk visible by the running program.

Gesendet von meinem HUAWEI VNS-L31 mit Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 13:36, 19 October 17
Ah, you're right.

I think the only option is to create a single directory and copy all files from both disks into there, cross fingers and hope it works!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:38, 19 October 17
Quote from: msmthng on 13:32, 19 October 17
Changing the dsk on the webinterface doesn't change the dsk visible by the running program.
Actually when using latest beta, you can use "CD on CPC" to change discs via the web interface while the CPC is running.
However putting all files in a single directory or a bigger DSK is probably a better solution, if possible.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:22, 24 October 17
Just toying a bit with setting up a convenient development environment for quick testing.
Was about to make a plugin for "Notepad++", to assemble and upload/run files, when I found there's an excellent plugin already for Notepad++, NPPExec where you can add multiple scripts.
So it was super easy to setup.
1st script for assembling a file via RASM (http://www.cpcwiki.eu/forum/programming/rasm-z80-assembler-in-beta/ (http://www.cpcwiki.eu/forum/programming/rasm-z80-assembler-in-beta/)).
2nd script for uploading & executing the file on the CPC.
3rd script for resetting the CPC.
Afterwards they can be assigned to whatever keys, I use F5 assemble, F9 upload and execute, F10 reset.

[attachimg=1]

Still needs a bit of tweeking, as I need to pass the start address and entrypoint to the upload script, to add the AMSDOS header (should be solved when I get that working from RASM).
Also need script to load it up for debugging in WinApe, think the binary needs to be injected to a .dsk first and pass the sym table from rasm output aswell.
Eitherway, the simple scripts below, should anyone find it useful (Windows only!).

Notepad++ is free a can be downloaded here: https://notepad-plus-plus.org/download/ (https://notepad-plus-plus.org/download/)
NPPexec plugin here: https://sourceforge.net/projects/npp-plugins/files/NppExec/ (https://sourceforge.net/projects/npp-plugins/files/NppExec/)

Scripts (I have RASM and cpcxfer in same dir as the source code, but easily changed if desired)

Assemble with RASM

cd $(CURRENT_DIRECTORY)
rasm $(FILE_NAME) -o  $(NAME_PART)

Run on CPC (IP 10.0.0.38, start address 0x1000, entrypoint 0x1000, modify for your needs!)

cd $(CURRENT_DIRECTORY)
xfer -u 10.0.0.38 $(NAME_PART).bin / 2 1000 1000
xfer -x 10.0.0.38 /$(NAME_PART).bin

Reset CPC

cd $(CURRENT_DIRECTORY)
xfer -s 10.0.0.38
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:44, 25 October 17
Hi there!


Is it possible to deactivate (maybe a jumper?) the feature of the M4 to reset the CPC? It's no fun if you go to a meeting and somebody makes fun out of you to reset your CPC (just because you don't look at this guy sitting at a laptop and laughing... ehm hacking your CPC I mean).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:08, 25 October 17
Quote from: GUNHED on 17:44, 25 October 17
Is it possible to deactivate (maybe a jumper?) the feature of the M4 to reset the CPC? It's no fun if you go to a meeting and somebody makes fun out of you to reset your CPC (just because you don't look at this guy sitting at a laptop and laughing... ehm hacking your CPC I mean).
When you leave for the meeting, do |wifi,0 to turn off the WiFi and |wifi,1 when you are back :)
I could implement a password for the web server, sometime ....
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 10:52, 26 October 17
Thanks! I was not aware that it's that easy.  :)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:17, 05 November 17
This may have been asked before but is there any possibility of cpm support for the mass storage? And perhaps WiFi?

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:50, 14 November 17

Because of the two new very cool CPC plus demos from roudoudou & overflow, I had to make a small firmware update to support 512KB CPR's.

Both demos now run with M4 firmware v2.0.4 beta 8: Download from http://www.spinpoint.org/cpc/M4FIRM_v204b8.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b8.zip)

If wanting to use 512KB CPR (cartridges images) you will have to sacrifice the upper 16 roms of the M4 romboard.
To do this, go to ROMS and tick "only 16 roms" (your upper 16 roms will be lost).
If this option is not ticked, only the first 256KB of the CPR image will be used (enough for all commercial games)

[attach=2]

Also added the ability to upload and start cartridges from the webinterface - soon to be added to cpcxfer aswell.
Remember to do a M4 reboot after uploading a .CPR/.BIN cartridge image, before it will be programmed into the M4 flash.

[attachimg=2]

No other additions or fixes this time (sorry!), work keeping me too busy. I just had to watch these new amazing productions on the real hardware :)

@CraigsBar (http://www.cpcwiki.eu/forum/index.php?action=profile;u=482):
Sorry for late reply, but I wanted to dig a bit more into it before giving a reply.
From what I reversed from AMSDOS rom, it should be possible to have CPM with M4 mass-storage support with some effort.
Easist would be to just support .DSK images for running CPM. A bit more work to add support to the FAT32 fs, but surely also possible.
However, not sure I can be motivated to do the effort for 1 or 2 people. Is anyone using CPM much these days on CPC?

EDIT:
cpcxfer updated too (v2.0.3) (https://github.com/M4Duke/cpcxfer/)
To upload a cartridge image, use:
xfer -c <ipnum> filename
To program it:
xfer -r <ipnum>
To start it when done
xfer -p <ipnum>

Ie:

xfer -c 10.0.0.38 Eerie_Forest_(Logon_System_2017).cpr
xfer -r 10.0.0.38
xfer -p 10.0.0.38

Lastly updated the beta 8 archive, as I found a bug when uploading via webinterface (probably noone downloaded it yet..).
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:46, 16 November 17
Well, I would be interested in CP/M support too. If you like I can provide the CP/M Plus source code with support for the Dobbertin hard-disc.  :)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:32, 20 November 17
Christmas is coming soon and I have something on my wish list:  :D
In the ROM-List of Web-Frontend, there are buttons "Remove" / "Upload".
Is it possible to add "Disable" / "Enable" and see the actual status of the Rom ("enabled")?
(Thanks ;-) )
Title: Re: Amstrad CPC WiFi
Post by: SOS on 11:02, 20 November 17
2 compatibility-questions:
- M4 + XMEM:
  I can't get it together. I've tested:
  Switch M4-Config-Site - switch off "Enabled".
  XMEM: The ROM-Active-Jumper: Change it on every possible position.
  (maybe interesting: without M4 and open jumper on the XMEM, the ROMS are partial loaded (Screen corrupt, but e.g.|maxam works)).
- Has anyone the M4-Card and ACMEDOS with a CF-Card in use?
  I only can get them to function, if i use a DOM instead of a CF-Card.
  Without M4 and with XMEM the CF-Card works :o

Thanks
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:16, 20 November 17
Quote from: SOS on 11:02, 20 November 17
2 compatibility-questions:
- M4 + XMEM:


Works fine here. No ROMs on the M4.


Quote from: SOS on 11:02, 20 November 17
- Has anyone the M4-Card and ACMEDOS with a CF-Card in use?


ACME-DOS was made for the X-MASS using the DOM, nothing else. Try SymbOS instead and report if it works. Else you have to make a hardware check. Good luck.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:28, 20 November 17
Quote from: GUNHED on 17:46, 16 November 17
If you like I can provide the CP/M Plus source code with support for the Dobbertin hard-disc.  :)

Thanks. For now I will not need it, as if I ever do it, it wont be anytime soon ;) - Noted 2 persons are interested!

Quote from: SOS on 09:32, 20 November 17
In the ROM-List of Web-Frontend, there are buttons "Remove" / "Upload".
Is it possible to add "Disable" / "Enable" and see the actual status of the Rom ("enabled")?
Sure.
You can already use |romset,romnum,0 to disable a rom and |romset,romnum,1 to re-enable it. Will add it to the web-interface when I give the rom part a needed overhaul anyway.

Quote from: SOS on 11:02, 20 November 17
2 compatibility-questions:
- M4 + XMEM:
  I can't get it together. I've tested:
  Switch M4-Config-Site - switch off "Enabled".
  XMEM: The ROM-Active-Jumper: Change it on every possible position.
  (maybe interesting: without M4 and open jumper on the XMEM, the ROMS are partial loaded (Screen corrupt, but e.g.|maxam works)).
- Has anyone the M4-Card and ACMEDOS with a CF-Card in use?
  I only can get them to function, if i use a DOM instead of a CF-Card.
  Without M4 and with XMEM the CF-Card works :o

M4 + XMEM
The normal way, would be to disable romboard function of XMEM, using the the "Read ROM" jumper, setting it to no.
However if you have a CPC where you can replace ROM7 (ie. 464/464+/6128+), you can set M4 rom to 7 and make no other roms are uploaded (M4 will only drive roms that are uploaded and enabled).
Thus you could use the roms of the XMEM instead, which does not drive ROM7.
You can also move the M4 romboard start position to 32, so the roms come right after XMEM roms, but you will need the M4 to be initialized somehow to use mass storage (ROM7 would work if possible).
If you switch off enabled in "ROMS" setup of M4, that means M4 rom will not be enabled.

M4 + XMASS

Not having an XMASS, I haven't done any tests, but the logical way to do it, would be:
M4 < XMASS < AMSDOS
Ie. M4 rom to 5
Xmass (acmedos) rom in 6
AMSDOS in rom 7

Now when you boot up, M4 will have the amsdos jump vectors (last initialized), if you do |disc, you theoretically should shift to XMASS. Use |SD to switch back to M4.
Hmm probably not what you asked, CF-card vs DOM, maybe a power consumption issue?

Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 07:51, 21 November 17
Oh, I'm intersted too in a CP/M Driver. So count at least 3 persons.

M4 Card and XMASS with a CF-Card / DOM don't work together somehow. I also had trouble and it ends in freezing the computer even if I use routines which send datas directly via OUT to the port (embedded as a RSX from Basic). (But this could also mean that my programming knowlede is not very skilled :))
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:48, 21 November 17
Quote from: HAL 6128 on 07:51, 21 November 17
M4 Card and XMASS with a CF-Card / DOM don't work together somehow. I also had trouble and it ends in freezing the computer even if I use routines which send datas directly via OUT to the port (embedded as a RSX from Basic). (But this could also mean that my programming knowlede is not very skilled :) )
With DOM+CF, my Schneider can boot (only when I remove the XMEM  ??? ).
ACMEDOS doesnt work with the CF and connected M4-Card. When I remove the M4, ACMEDOS works with the CF-Card.
Interesting, when i connected the CF-Card and the M4-Card, and when i load the first LBA-Sector:
Original: "X-MASS   FAT16"
Actual: "-AS  FT6"   (http://www.cpcwiki.eu/forum/Smileys/SoLoSMiLeYS1/shocked.gif)
With Code-Change No.4283, and try 863 i see: "XMS A1" (not really an advance)
No, switching to 8Bit-Mode changes nothing.
All goes ok, when i remove the M4-Card or change the CF-Card to a DOM-Module.
(I think it's not a Power-Problem? I'm Using for my CPC6128 + M4+XMASS+CF-Card+HXC one 90Watt, 2A on 5V Power-Supply "Phobya")


Btw. Symbos seems to be have troubles too :P
(Disc error (Code 05), Unsupported Media or Partition)

(Meanwhile TotO gave me the tip, how M4+XMEM worked together: Switch the ROM-Start to 32 on the M4, the "Enabled"-Switch is not enough)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:24, 21 November 17
There is also the option to use CPR's with the M4 (all ROMs disabled, so can have CPR's have 512 KB) while the X-MEM has its ROMs active. Honestly, this setup remains to be tested (I will do so soon).
Title: Re: Amstrad CPC WiFi
Post by: TotO on 17:14, 21 November 17
Quote from: SOS on 09:48, 21 November 17Original: "X-MASS   FAT16"
Actual: "-AS  FT6"   (http://www.cpcwiki.eu/forum/Smileys/SoLoSMiLeYS1/shocked.gif)
With Code-Change No.4283, and try 863 i see: "XMS A1" (not really an advance)


Look the X-MASS not properly initialised during the boot to switch from 16bit to 8bit mode.
So, the issue is reading one byte each two bytes. (what you wrote)

Title: Re: Amstrad CPC WiFi
Post by: SOS on 19:26, 21 November 17
Quote from: TotO on 17:14, 21 November 17

Look the X-MASS not properly initialised during the boot to switch from 16bit to 8bit mode.
So, the issue is reading one byte each two bytes. (what you wrote)
Yes, it's my assumption too, but the previous "switch to 8Bit" from arnoldemu, which works on the "ACMDOS-Format"-Problem didn't work in this case  :(
I will post my cleaned-code at the weekend (next days i have no time).
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 10:19, 22 November 17
Quote from: SOS on 19:26, 21 November 17
Yes, it's my assumption too, but the previous "switch to 8Bit" from arnoldemu, which works on the "ACMDOS-Format"-Problem didn't work in this case  :(
I will post my cleaned-code at the weekend (next days i have no time).

I just want to clear up the confusion in my mind:

1. X-MASS with CF card replacing DOM. This boots ok and ACMEDOS works fine?
2. M4 + X-MASS with CF card replacing DOM. This has the missing bytes you describe?

When using configuration 2, you tried the code to enable 8-bit mode and the result changed but bytes were still missing?

It is hard to diagnose the problem without having the same hardware. I have a M4 and X-MASS but no CF. Which CF and adaptor cable are you using?

It is possible that you need these things:
1. configure 8-bit mode
2. configure PIO mode
3. prevent this changed when power on/off
4. turn off power management in CF.

If I can get the same CF then I can diagnose and find a fix for you.

I will check that I really did give you the code for 8-bit mode enable. It needs "1" in the features register.


Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 10:30, 22 November 17
The full set is (untested, hopefully I got it right):


;; enable 8-bit mode
ld a,&40 ;; lba
ld bc,&fd0e
out (c),a

ld bc,&fd09
ld a,1
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a


;; disable cache
ld a,&40 ;; lba
ld bc,&fd0e
out (c),a

ld bc,&fd09
ld a,&82
out (c),a


ld a,&ef
ld bc,&fd0f
out (c),a

;; set pio

ld a,&40 ;; lba
ld bc,&fd0e
out (c),a

ld a,0            ;; may need to be 1
ld bc,&fd0a
out (c),a

ld bc,&fd09
ld a,&3
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a


;; disable power on reset of defaults at soft reset

ld a,&40 ;; lba
ld bc,&fd0e
out (c),a


ld bc,&fd09
ld a,&66
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a



;; disable advanced power management

ld a,&40 ;; lba
ld bc,&fd0e
out (c),a


ld bc,&fd09
ld a,&85
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a



;; disable extended power operations

ld a,&40 ;; lba
ld bc,&fd0e
out (c),a


ld bc,&fd09
ld a,&89
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a

;; disable power level 1 commands

ld a,&40 ;; lba
ld bc,&fd0e
out (c),a


ld bc,&fd09
ld a,&8a
out (c),a

ld a,&ef
ld bc,&fd0f
out (c),a

Title: Re: Amstrad CPC WiFi
Post by: SOS on 22:06, 25 November 17
Quote from: arnoldemu on 10:19, 22 November 17
1. X-MASS with CF card replacing DOM. This boots ok and ACMEDOS works fine?
2. M4 + X-MASS with CF card replacing DOM. This has the missing bytes you describe?

Meanwhile  i received a lot of CF-Cards and tested again (M4+XMASS):
Not booting (CPC has a black screen):
- Sandisk 256MB
- Sandisk 1 GB
- SD XC - SD2CF Adapter
Boots, but not able to switch on 8 Bit
- Toshiba 512MB
- Transcent 512MB
Works! (without separate "Switch to 8-Bit-Mode")
- Cheap China 4GB
- Hama 256MB
- Hama 2GB
(So i can continue my work with the China/Hama-Cards)


Separate Test with the Transcent:
XMEM+XMASS:    ACMEDOS works!
M4+XMASS:        ACMEDOS + Symbos didn't work

(what really confuses me  :-\ )

Your "Switching to 8Bit-Mode" generally works, i've reproduce a szenario in the "XMASS"-Thread (how it looks with and without your code).
I can't get the Toshiba & Transcent up and running with your additional codes (PIO, Power Management, ...).

I'm using this adapter:
https://www.ebay.de/itm/CF-weiblich-2-5-Zoll-IDE-44-Pin-Adapter-Konverter/182343730408?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649 (https://www.ebay.de/itm/CF-weiblich-2-5-Zoll-IDE-44-Pin-Adapter-Konverter/182343730408?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649)


Hmmm, off-topic: Can you detect the Symbiface vs. XMASS? (I think it's better to init the 8Bit-Mode on XMASS in the boot-process)
Title: Re: Amstrad CPC WiFi
Post by: sachapr on 09:37, 03 December 17
Hi Duke,


Sorry if I am asking something that has been already discussed but I have been trying to fibd it and I did not. Is it possible some how to write a DSK directly to a disc? As an exact copy sector by sector, the same way DSK-CPC utility did it between a 3,5" drive and a 3" drive.


Thank you very much.


Best regards,
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 12:58, 03 December 17
sachpar,

I take it you mean all on the CPC to copy the image to a 3inch drive.?

if not then there is special software (CPCDiskXP, get it here http://www.cpcmania.com/cpcdiskxp/cpcdiskxp.htm (http://www.cpcmania.com/cpcdiskxp/cpcdiskxp.htm)) on a PC to copy a .DSK to a 3.5 inch disk and by using an external 3.5 drive on the CPC you can copy this to a 3inch disk with software sush as Discology.

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: sachapr on 16:22, 03 December 17
Yes, right, I mean in the cpc with M4 board. Take a dsk and dump it to a 3" disk as it is sector by sector.
Thanks!!


Best regards,
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:21, 03 December 17
Quote from: sachapr on 16:22, 03 December 17
Yes, right, I mean in the cpc with M4 board. Take a dsk and dump it to a 3" disk as it is sector by sector.
Thanks!!

There's this little program made by @HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg141353/#msg141353 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg141353/#msg141353)

It will only work for non-copy-protected discs, but should do fine for writing sector to sector from a dsk image.
I meant to do a utility for this, but (free) time is not on my side currently.
Title: Re: Amstrad CPC WiFi
Post by: sachapr on 22:12, 03 December 17
Thank you, Duke.


I have tried to compile the code for sector.bin with Orgams (roms installed) on M4 board but no success, i have error messages with RET instruction and if I remove RET instructions and try to compile with CTRL+2 the CPC resets... I am not an expert as you have realised...😜
Lets see if HAL 6128 is so kind to send me his litle utility already compiled...


Other capability that will be very nice to have, although not sure if it will be dificult to implement is the possibility of wifi printing from the CPC, just an idea...


Thank you very much for your work and support.


Best regards,
Title: Re: Amstrad CPC WiFi
Post by: Patrick on 16:03, 04 December 17
sachapr,
May be you can try this tool (http://www.symbos.de/appinfo.htm?00015). It needs SymbOS but it seems pretty easy to run it with M4, either in ROM or file version. Trying SymbOS is on my todo list.
Title: Re: Amstrad CPC WiFi
Post by: sachapr on 10:32, 05 December 17
Thank you, Patrick. I did not know about that tool.
I will try but I am not sure if SymbOS is going to work very well with only 128 kb...I will tell you how it goes.


Best regards,
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 14:52, 05 December 17
Quote
I have tried to compile the code for sector.bin with Orgams (roms installed) on M4 board but no success, i have error messages with RET instruction and if I remove RET instructions and try to compile with CTRL+2 the CPC resets... I am not an expert as you have realised...

Orgams is a bit picky with surrounding whitespace when parsing your code; sometimes it will get confused and think an instruction is a label. In my (extremelly short) experience, adding a space after the RET should fix it.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 08:21, 06 December 17
Whoa this thread has gone huge... and with so many views!
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:05, 06 December 17
Well, the M4 is a great card and Duke is a great guy, so it was obvious they'd have a great thread  8)


Congratulations Duke!


Did you ever imagine that the M4 would be so successful?
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:22, 08 December 17
Quote from: Duke on 20:50, 14 November 17
Because of the two new very cool CPC plus demos from roudoudou & overflow, I had to make a small firmware update to support 512KB CPR's.

Both demos now run with M4 firmware v2.0.4 beta 8: Download from http://www.spinpoint.org/cpc/M4FIRM_v204b8.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b8.zip)

Hi Duke, after playing around with some other things (and forgetting about Beta 8  :doh: ), tonight I grabbed out the 6128 Plus and gave it a go.

First up, I really like that you included the Beta version in the boot message.  :)

Then I tried the 2 new 512k .cpr demos (after ticking the box on the browser interface to only allow 16 ROM slots).
The 'CRTC3' demo played beautifully, but the 'eerie forest' demo crashed to a blank screen after the character begins running.
I tried it a few times and re-uploaded the .cpr but the same result.
I also tried the same .cpr on the C4CPC on a GX4000 and it ran fine.

Because it's been a while, I ran through a quick load of most of the 'Plus' games and they all ran fine.

Cheers,
Shane

CRTC3 is nice...  ;)

[attachimg=1]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:51, 08 December 17
@robcfg (http://www.cpcwiki.eu/forum/index.php?action=profile;u=4) : Thanks. No, I did not :)  And I am fairly tired of building them too :doh: oh well.

@00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) : Thanks for the feedback. I just had someone else report the opposite (CRTC3 failed and Eerie forest works fine).
Both ran fine for me on my 6128+ and Eerie forest ran fine on my CPC464+ too (CRTC3 refuses to work with XMEM on 464+, because of some missing mem mode, it claims).
I use the burning rubber/basic cartridge, I've not had time to look into the issue with M4 and C4CPC yet, so this is unchanged as to earlier betas.
Anyway, I will revisit it when I get some time on my hands, probably do a verification of the written data, maybe it sometimes fails to erase &/ program properly.

Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 02:31, 09 December 17
Hi Duke,

I was using the standard 'Burnin Rubbber/Basic cart for my tests, not the C4CPC.
No other expansions and no ROMs at all installed on the M4.
I also just tried it on my 464+ and the same result.

I also tried both methods of running the cartridge, firstly via the browser interface,
and then uploading the demo to the SD and using the CLI commands '|ctrup' and '|ctr'.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: francouai on 16:37, 09 December 17
OMG!! 188 pages here.. I cannot read all.  :doh:


The 'CRTC3' demo crash for me too.
just during the jumping scrolling letters.
I tried to CTRUP one more time and same crash on the same part.

I know it is BETA FW, so give more time to DUKE to fix few bugs.

I'm so happy with my M4. The must have card. :blank:
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 16:40, 09 December 17
Hi, I am experimenting with calling a server rapidly to see if it is viable to cater for multiplayer arcade gaming on the CPC.  At the moment though my server seems to service lots of clients consistently, but only really at about 5 calls per second each client.  For some games this is likely ok, but then I'm wondering... with a CPC's general lower framerate than PCs... a PC that might have 20 calls per second to service a game, would 5 be ok on a CPC?  I am not even certain I can consistently get 5 calls per second from the CPC, but I think it should be possible.  For now i have a very rudimentary synchronous loop that counts missed call opportunities. I have also created a JS POC of the same which gives terrible results on firefox, but good results on chrome.  I am using an OK ISP (not top of the range, but not budget either).  Localhosted WAMP I can consistently get 10 calls per second serviced. but then my actual server starts to degrade beyond that (additional calls with multiple clients at the same time).

(I wasn't sure if this should be posted here, or a separate thread in programming since I am using the M4 from the CPC).

Julian
Title: Re: Amstrad CPC WiFi
Post by: number-one on 09:02, 10 December 17
Hello I want a remote shell access on my CPC 6128 old to my linux computer by telnet.


Here my problem with symtel (http://www.cpcwiki.eu/forum/applications/symbos-cpc-updates-and-infos/msg152951/#msg152951) (symbos telnet client)


Duke, do your telnet client below can make this ? I am very interested


https://www.youtube.com/watch?v=v_E7iINGBFE
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:23, 10 December 17
@number-one (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2133)
You can give it a try, you will need to assemble it (use maxam or winape):
https://github.com/M4Duke/M4examples/blob/master/tcp.s

You will have to manually set the port number in line 475 to match with your server.

It's more a proof of concept, but maybe you can improve it a bit, if it works for you.
Title: Re: Amstrad CPC WiFi
Post by: number-one on 15:45, 10 December 17



A friend assembled tcp.s for me.


Always these strange characters same as symtel.
(see the picture attached)



Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:19, 10 December 17
Quote from: number-one on 15:45, 10 December 17


A friend assembled tcp.s for me.


Always these strange characters same as symtel.
(see the picture attached)

Maybe it's the character encoding of the telnet daemon that isn't plain ascii?
If possible you could try to run wireshark and capture the packets going to the M4, by setting filter HOST <ip num of M4/CPC>
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 18:15, 10 December 17
Quote from: Duke on 17:19, 10 December 17
Maybe it's the character encoding of the telnet daemon that isn't plain ascii?
If possible you could try to run wireshark and capture the packets going to the M4, by setting filter HOST <ip num of M4/CPC>
Looking at the bytes it's 'telnet negotiation'.

http://www.faqs.org/rfcs/rfc855.html (http://www.faqs.org/rfcs/rfc855.html)
https://tools.ietf.org/html/rfc854 (https://tools.ietf.org/html/rfc854)

quite a lot of rfcs explain various additions:
https://tools.ietf.org/html/rfc652 (https://tools.ietf.org/html/rfc652)
https://tools.ietf.org/html/rfc1073 (https://tools.ietf.org/html/rfc1073)

in relation to some other telnet server:

http://mud-dev.wikidot.com/telnet:negotiation (http://mud-dev.wikidot.com/telnet:negotiation)

ff,fd is the first two bytes. It's not a BOM and it's not UTF-8 encoding, so looks like telnet negotiation data to me.

symtel needs to be updated to support it or ignore it.

first two bytes are "IAC" and "DO".
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 18:30, 10 December 17
Quote from: zhulien on 16:40, 09 December 17
Hi, I am experimenting with calling a server rapidly to see if it is viable to cater for multiplayer arcade gaming on the CPC.  At the moment though my server seems to service lots of clients consistently, but only really at about 5 calls per second each client.  For some games this is likely ok, but then I'm wondering... with a CPC's general lower framerate than PCs... a PC that might have 20 calls per second to service a game, would 5 be ok on a CPC?  I am not even certain I can consistently get 5 calls per second from the CPC, but I think it should be possible.  For now i have a very rudimentary synchronous loop that counts missed call opportunities. I have also created a JS POC of the same which gives terrible results on firefox, but good results on chrome.  I am using an OK ISP (not top of the range, but not budget either).  Localhosted WAMP I can consistently get 10 calls per second serviced. but then my actual server starts to degrade beyond that (additional calls with multiple clients at the same time).

(I wasn't sure if this should be posted here, or a separate thread in programming since I am using the M4 from the CPC).

Julian
How much data is transferred for each call?
Are you handling the data on each interrupt on the cpc?
Are you using a central PC server and all the CPCs are clients or is it peer-to-peer?
Is it non-blocking ports and are you using threads to handle the requests?

Networking gaming is involved, packets drop or arrive out of order and there is quite a lot of logic to make sure all the clients agree on the same values. It's easier with local networking because often you don't suffer these problems. If you use a PC as a server it can take all the logic and tell the CPCs the information and all they need to do is pass their inputs to the PC and let it decide what they should do.
The CPC then runs the graphics, plays the sound and accepts the servers word for what is right or not.



Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:07, 03 January 18
Quote from: arnoldemu on 18:30, 10 December 17
How much data is transferred for each call?
Are you handling the data on each interrupt on the cpc?
Are you using a central PC server and all the CPCs are clients or is it peer-to-peer?
Is it non-blocking ports and are you using threads to handle the requests?

Networking gaming is involved, packets drop or arrive out of order and there is quite a lot of logic to make sure all the clients agree on the same values. It's easier with local networking because often you don't suffer these problems. If you use a PC as a server it can take all the logic and tell the CPCs the information and all they need to do is pass their inputs to the PC and let it decide what they should do.
The CPC then runs the graphics, plays the sound and accepts the servers word for what is right or not.


At this moment brute force from CPC RSX commands, no interrupts.  M4 though ultimately can fetch in the background so I am hoping that it will take almost no CPC time to fetch the statuses from the server, only to play the game itself (actually more like a full-screen protocol of commands so the CPC is like a gfx terminal).  Not peer to peer.  The server is PHP-based but non-blocking.  I am not using Node.js as it is not supported on most hosting providers here at least. MMOL (as many as a server can handle and a CPC I guess :D )... 4?  At this moment I am experimenting with minimal transmission of data, under 50 bytes back and forth.  Depending on the type of game and type data going, coordination challenges change - I doubt any decent CPC internet game will be an FPS with player movement prediction will be required - but... even if my slow server can handle 4 players at 5 data updates per second, it is not too bad for some types of arcade games.  I'd like my server to handle more than 4 players only though too.  So, after some more CPC side performance tests,  back to the server.  Seems my current ISP caps the requests at 5 per second from Melbourne no matter how many clients (tested up to 4 as a mix of CPC and browser simulating calls).  From Philippines and Indonesia they get exactly 1 call per second - you can simulate my server performance from your location here:  http://8bitology.net/itp/ (http://8bitology.net/itp/) FPS: frames per second, IPS: Game Loop Iterations per second, CPS: Server Calls per second.


At the minute a lot of assumptions and possibilities, but no definites.  If a hosted server on my budget is too bad for any purpose except in a local city, then... it may only be good in a LAN environment with a PC running WAMP, however... my test with WAMP is worst (in a different way).  I can get 10 calls per second in my LAN with 1 client, but add a second, they both get about 3 to 4 calls per second, so my PC sucks as a server using 'WAMP'.  Of course the server is all PHP code and LAMP likely will work better, but lets see what happens... If it can be hosted that's better as then people can join the lobby and join games with players instead of having to create a LAN session with just CPCers.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 10:49, 11 January 18
Hi , Duke !!! .. any new firmware update in a near future .. ?  :D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:55, 12 January 18
Quote from: XeNoMoRPH on 10:49, 11 January 18
Hi , Duke !!! .. any new firmware update in a near future .. ?  :D
Sorry, not in the near future. But I will be back :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 18:32, 13 January 18
Watched @chinnyhill10 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=984) 's vid last night on this board. I agreed with all he said and I was amazed once again at its magnificence :) Pity he didn't remember the absolutely great price.
Title: Re: Amstrad CPC WiFi
Post by: ComSoft6128 on 18:42, 13 January 18
What vid?
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 19:01, 13 January 18
https://www.youtube.com/watch?v=osG5Gw1YX9Y
Title: Re: Amstrad CPC WiFi
Post by: ComSoft6128 on 19:04, 13 January 18
Cheers for that. I recently purchased the M4 but haven't had the time to look at it. This will be useful. :)


Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 19:05, 13 January 18
Oh, do watch it, it's a great intro to the device!

Sent from my HTC 10 using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: chinnyhill10 on 22:52, 13 January 18
Quote from: Gryzor on 19:05, 13 January 18
Oh, do watch it, it's a great intro to the device!

Sent from my HTC 10 using Tapatalk


Even if I claim the main chip is an FPGA when it is not and I have now found out there is cart support in Beta which I could have shown. Bah!

Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 23:25, 13 January 18
I still enjoyed the video very much, even though I've used it extensively [emoji3]

Yes, the FPGA comment made me go "hmm?", but it didn't affect much, so...

Sent from my HTC 10 using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: chinnyhill10 on 12:17, 14 January 18
Quote from: Gryzor on 23:25, 13 January 18

Yes, the FPGA comment made me go "hmm?", but it didn't affect much, so...



Always a danger when I'm dealing with modern stuff. I can poke around inside old machines and generally have a good idea of what is what. New stuff is all magic dust and rainbows to me!  :D
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 06:52, 15 January 18
Easiest way to tell is: if the chip doesn't say Xilinx, Altera or Lattice, it's not an FPGA (there are a couple of others, but you will probably never see them). Every other big chip is most likely a microcontroller.

Title: Re: Amstrad CPC WiFi
Post by: Targhan on 21:18, 26 January 18
I had success in transfering many SNAs, but for some reason, this one can't. Saved with Winape, "format 2", 64k. I tried format 1, 3 too, the CPC displays "error occurred" every time. If it's possible for you, can you quickly check what is wrong? Thanks a lot!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:58, 26 January 18
Quote from: Targhan on 21:18, 26 January 18
I had success in transfering many SNAs, but for some reason, this one can't. Saved with Winape, "format 2", 64k. I tried format 1, 3 too, the CPC displays "error occurred" every time. If it's possible for you, can you quickly check what is wrong? Thanks a lot!

There's a bug when using remote .sna start if using > 8.3 filenames. Krusty had that issue recently, it would start from the CPC itself though. Will check it tomorrow, if that's not the issue.

EDIT: tested it. Yes that seems to be the problem. When I issue |sna,"PlayerAT1.sna" from the CPC itself it works. Renaming it to "PlayAT1.sna" and launching it remotely it works too.
So for now, please use 8.3 filenames, when wanting to remote start SNA's. Will fix in next upgrade.
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 22:07, 26 January 18
Hi Duke
Is there a new batch going on this year?
I'd love to have one precious  ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:16, 26 January 18
Quote from: roudoudou on 22:07, 26 January 18
Hi Duke
Is there a new batch going on this year?
I'd love to have one precious  ;)

Sorry I've gotten quite a bit behind (unfortunate events).
I am working my way down the list.  9 more and I get to yours, I will run out of some components soon, but new ones are on their way, so hopefully in about 2 weeks.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 01:13, 27 January 18
Thanks for the help!!
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 16:44, 28 January 18
Is there a chance to play Chibi Akuma 2 (four disks) with the M4?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:04, 28 January 18
Quote from: Jungsi on 16:44, 28 January 18
Is there a chance to play Chibi Akuma 2 (four disks) with the M4?
Sure, just extract them all to one directory. IIRC, that's what I did when I played it.
Title: Re: Amstrad CPC WiFi
Post by: George Schizas on 21:15, 28 January 18
This forum post has become a bit awkward, but I don't see any other way to do this...


My WiFi expansion board hasn't able to start for a while (it has worked in the past), and I'm afraid it's something to do with the hardware, most probably the extension port of my 6128. When I move the WiFi board about, sometimes one light turns on, sometimes the other one, sometimes all three, but even in those rare cases, the M4 ROM doesn't load.


Is there something that can be done for this? Both to make it work, and to make it stable?


The hardware version is 2.1, it's using the edge connector, and I think I've put the latest non-beta release of the firmware (certainly a 2.x edition).


Just to be clear: I wouldn't even mind getting a second WiFi expansion board - just the chance to demonstrate a 30 year old computer being able to connect to the Internet just tickles my fancy way too much. I'm also open to having my Amstrad go a preventative repair (the bottom of the mainboard has began to bubble, and I'm sure that a lot of the connectors do have some corrosion on them).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:33, 28 January 18
Quote from: George Schizas on 21:15, 28 January 18
My WiFi expansion board hasn't able to start for a while (it has worked in the past), and I'm afraid it's something to do with the hardware, most probably the extension port of my 6128. When I move the WiFi board about, sometimes one light turns on, sometimes the other one, sometimes all three, but even in those rare cases, the M4 ROM doesn't load.


Is there something that can be done for this? Both to make it work, and to make it stable?
Imo. it all points to bad contacts on your edge connector of the CPC.
The blue led with the text "ON", should be on at all time when the CPC is powered, if it isn't there's a bad contact on the power line of the expansion port and likely many other signals.
So first advice is to clean the expansion port, ie. using an eraser and IPA. In all likelyhood it will work fine after that.
The 2nd led with DD, should only light briefly when the CPC is loading or at boot time.
Anyway try cleaning the connector thoroughly first. And tell me the behaviour of those two leds, if it still fails.

Quote
(the bottom of the mainboard has began to bubble, and I'm sure that a lot of the connectors do have some corrosion on them).
That sounds bad, could you take a picture so we can see what it looks like ?
Title: Re: Amstrad CPC WiFi
Post by: George Schizas on 10:28, 29 January 18
Quote from: Duke on 21:33, 28 January 18
Imo. it all points to bad contacts on your edge connector of the CPC.

That's my opinion as well.

Quote from: Duke on 21:33, 28 January 18
So first advice is to clean the expansion port, ie. using an eraser and IPA. In all likelyhood it will work fine after that.

What's IPA?

Quote from: Duke on 21:33, 28 January 18
That sounds bad, could you take a picture so we can see what it looks like ?

Since my photos are about 16 MB, I've uploaded them to imgur, here:
https://imgur.com/a/fZ9Xz (https://imgur.com/a/fZ9Xz).

Here they are individually (I'm not using the img tag because this breaks the forum's formatting):

Title: Re: Amstrad CPC WiFi
Post by: robcfg on 10:45, 29 January 18
That's an uncommon motherboard revision, and at least the one we have pictured here has a 40007 gate array.


The bubbling seems normal, though You may want to resolder the rusty connector and clean the connectors.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 10:55, 29 January 18
That expansion connector needs some serious cleaning. IPA is Isopropanol and it's what you need to clean it.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: George Schizas on 11:00, 29 January 18
Quote from: robcfg on 10:45, 29 January 18
You may want to resolder the rusty connector and clean the connectors.


I've never used a soldering iron in my life. I'm aiming to though - but I don't want to start with my 30 year old 6128  :)
Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 12:55, 29 January 18
Quote from: Bryce on 10:55, 29 January 18
IPA is Isopropanol and it's what you need to clean it.


Nonono. everyone knows it's Indian Pale Ale. It helps you forget about your CPC not working properly
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 13:01, 29 January 18
Quote from: Munchausen on 12:55, 29 January 18

Nonono. everyone knows it's Indian Pale Ale. It helps you forget about your CPC not working properly

Well they're both alchohol, neither taste very good and both will probably give you stomach cramps, so you're not too far off.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 14:19, 29 January 18
Quote from: Bryce on 13:01, 29 January 18
Well they're both alchohol, neither taste very good and both will probably give you stomach cramps, so you're not too far off.

Bryce.


There are people in Ireland who would hang you for saying that. But I agree with you. This wanky, over-priced craft beer culture really must die.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 14:26, 29 January 18
The same idiots who wouldn't know a good pint of Guinness if they were handed one for free I assume?

Craft beers are for people who believe they are being different while sporting the same shite beard as half the country with an iPhone in the pocket of their fake tweed suit.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 14:39, 29 January 18
Quote from: Munchausen on 12:55, 29 January 18

Nonono. everyone knows it's Indian Pale Ale. It helps you forget about your CPC not working properly

Newcastle Brown Ale is the right job for Amnesia - NBA or DOG is what you need.
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 14:47, 29 January 18
Quote from: Bryce on 14:26, 29 January 18
The same idiots who wouldn't know a good pint of Guinness if they were handed one for free I assume?

Craft beers are for people who believe they are being different while sporting the same shite beard as half the country with an iPhone in the pocket of their fake tweed suit.

Bryce.

If I wasn't sure before, I am now. But we're gonna get along juuuuuust fine come March. Even if I am an iPhone user, I'll never wear tweed, faux or real!
I like Guinness, but it doesn't like me. It turns me into an insufferable asshole. (Not a peep out of any of you lot!)  :P
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 15:06, 29 January 18
So without the Guinness you're just a normal arsehole?

Bryce.

I think we should stop derailing this thread now  ::)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:09, 29 January 18
... But I do like thev aforementioned Newcastle!

Sent from my HTC 10 using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 22:02, 29 January 18

IPA (beer) has nothing to do with craft beer... and has been popular for a long time before that fad started. From wikipedia "India Pale Ale, or IPA, has been used in the United Kingdom to describe a well-hopped, high-gravity beer since 1835"


From my (admittedly limited) experience craft beer seems to mean beer that doesn't taste how you really expect/want beer to taste.

+1 for newky brown!
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 08:08, 30 January 18
I think that you've got to mix craft beer with pipe tobacco and food leftovers from your beard, tho.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:19, 30 January 18
Quote from: Gryzor on 08:08, 30 January 18
I think that you've got to mix craft beer with pipe tobacco and food leftovers from your beard, tho.

You forgot the inflated opinion of yourself, needed to really enjoy it.

However, on a positive note, I do like the fact that they've come up with name for this. It's much easier and shorter now to say "Hipster", we used to have to say "That tosser with the beard".

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 09:36, 30 January 18
Quote from: Gryzor on 08:08, 30 January 18
I think that you've got to mix craft beer with pipe tobacco and food leftovers from your beard, tho.

[ot]Anyone remember the guys from CAMRA? they were all Beards & Pipes and Wooly jumpers - apologies if anyone is a member  ;D [/ot]
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:25, 30 January 18
Should I separate this part of the thread into a new one, with extremely limited access and different fonts and colours to give it a hipster allure (and also keep the rest of the thread intact)?
Title: Re: Amstrad CPC WiFi
Post by: Munchausen on 21:52, 30 January 18
Can it have a typewriter in there somewhere too? On a bus if possible


(http://i.imgur.com/SQa5zAJ.jpg)
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:32, 31 January 18
Quote from: Munchausen on 21:52, 30 January 18
Can it have a typewriter in there somewhere too? On a bus if possible


(http://i.imgur.com/SQa5zAJ.jpg)

That's beyond hipster and the coolest picture I've seen this year.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 11:05, 31 January 18
Quote from: Shaun M. Neary on 14:19, 29 January 18

There are people in Ireland who would hang you for saying that. But I agree with you. This wanky, over-priced craft beer culture really must die.
Should i prepare the gallows??

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 11:47, 31 January 18
Quote from: Bryce on 15:06, 29 January 18
So without the Guinness you're just a normal arsehole?

Bryce.

I think we should stop derailing this thread now  ::)


Oh absolutely. But I never denied this. It's other people who seem surprised by this startling realisation!  :laugh:
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 01:23, 01 February 18
Split topic?

Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 09:09, 01 February 18
Let's just get back on track.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 11:19, 01 February 18
OK back on track and no booze in sight  :(

Does the Board have a MAC address so i can set up an static IP on my Router?
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 12:29, 01 February 18
Quote from: Vyper68 on 11:19, 01 February 18
OK back on track and no booze in sight  :(

Does the Board have a MAC address so i can set up an static IP on my Router?


Yep. Any board with a wifi (or bluetooth) adapter needs to have a MAC address.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 16:04, 01 February 18
Yes, either burnt-in or assigned by the device that's hosting the adapter. That's how devices communicate, so you can't have one without the other...


Question: what was there before MAC addresses? If I'm not mistaken that's an Ethernet thing, but what did networks use in the olden days? (I happen to be reading Dealers of Lightning (https://www.goodreads.com/book/show/1101290.Dealers_of_Lightning?from_search=true) these days, but sadly it's not very technical!)
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 17:29, 01 February 18
Finally I got this, a friend bought two of them and after many months I fired it up yesterday.
This thing is AMAZING!!!


Now trying to find telnet software  ;D




P.S: The power switch needs replacement in both units but the overall built quality is awesome.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 20:55, 01 February 18
Am i right in thinking that i can have ParaDos on the ROMs so i can finally get 720K support on my 6128 - I want to play DDLE on it but i want to by the 3" + 3.5" Box Set
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:45, 01 February 18
Quote from: VincentGR on 17:29, 01 February 18
P.S: The power switch needs replacement in both units but the overall built quality is awesome.
Sorry to hear that, that's 2nd report on that. I will go back to putting on jumpers I guess, the switch is too fragile.

Quote from: Vyper68 on 20:55, 01 February 18
Am i right in thinking that i can have ParaDos on the ROMs so i can finally get 720K support on my 6128 - I want to play DDLE on it but i want to by the 3" + 3.5" Box Set

Yes, you can put parados on the rom board, no problem.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:21, 01 February 18
No problem, yes the jumper idea is fine.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 09:16, 02 February 18
Quote from: Gryzor on 16:04, 01 February 18
Yes, either burnt-in or assigned by the device that's hosting the adapter. That's how devices communicate, so you can't have one without the other...


Question: what was there before MAC addresses? If I'm not mistaken that's an Ethernet thing, but what did networks use in the olden days? (I happen to be reading Dealers of Lightning (https://www.goodreads.com/book/show/1101290.Dealers_of_Lightning?from_search=true) these days, but sadly it's not very technical!)

Before Ethernet we used Token Ring networks mainly. They used a method similar to MAC addresses but much simpler and they were not unique identifiers like MAC addresses are.
Who remembers when the network connection to your PC was two coax cables and a BNC T-piece?

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:47, 02 February 18
Heh, I remember the coax cable connections.


They looked more like pipes than cables  ;D
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 09:49, 02 February 18
Quote from: Bryce on 09:16, 02 February 18
Who remembers when the network connection to your PC was two coax cables and a BNC T-piece?

Bryce.
Only too well! The ability to easily crash the network was the overall memory!
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 10:13, 02 February 18
Quote from: Bryce on 09:16, 02 February 18
Before Ethernet we used Token Ring networks mainly. They used a method similar to MAC addresses but much simpler and they were not unique identifiers like MAC addresses are.
Who remembers when the network connection to your PC was two coax cables and a BNC T-piece?

Bryce.

We used to have a Token Ring Network at my old workplace with an old archaic computer system called REXX ( I worked for Electrolux ) - then they started adding CAT5e Networks and Wireless AP's  for handheld scanners and the poor IT guys had a 'mare keeping it all going. Then i made the mistake of helping out one day Ay! Caramba!!
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 10:16, 02 February 18
Quote from: Bryce on 09:16, 02 February 18
Before Ethernet we used Token Ring networks mainly. They used a method similar to MAC addresses but much simpler and they were not unique identifiers like MAC addresses are.
Who remembers when the network connection to your PC was two coax cables and a BNC T-piece?

Bryce.


Showing your age there, Bryce! ;)

In all fairness, the only time I've ever seen Token Ring 16/4 cards used were, surprise surprise, in IBM buildings! They'll do everything they can to peddle out their own hardware and software in their old buildings, regardless of how archaic they are.

And yes, I remember coax and BNC-T. They were a nightmare to troubleshoot if one piece got knocked out by the cleaners hoover!  ??? ??? ???
Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 14:28, 02 February 18
The computers at the TAFE I went to years ago had the coaxial cables and BNC T connectors. I never knew what kind of network it was or how it worked - that wasn't my job - All I knew was how to log in to it from the DOS prompt.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 15:05, 02 February 18
Hi
I got my M4 today and i was hyper excited and i have hit a bit of a brick wall. I have the board powered on my 6128 and i have set up the parameters with netset but the netstat just keeps saying connecting.
I have gone into my wireless access list and added it to the approved list as i have access control on.
The settings i am sure are right as it showed up on my Router's webpage but i cannot get it past connecting. I am stumped and frustrated i just don't know what i'm doing wrong - well i have done some more messing around. It seems to be my WPA-PSK that is causing the problem. It will connect when i open the network but back to connecting when i turn it back on.
Any help would be great.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:54, 02 February 18
Quote from: Vyper68 on 15:05, 02 February 18
I have gone into my wireless access list and added it to the approved list as i have access control on.
Have you tried to disable this, to see if something went wrong with that?
Quote
It seems to be my WPA-PSK that is causing the problem. It will connect when i open the network but back to connecting when i turn it back on.
I have not heard of any problems with using WPA-PSK. It will connect when you disable encryption? But your access control is still on?

Try showing us the setup (you can open /m4/config.txt from the microSD card and pass the contents here, minus your password/ssid).
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:58, 02 February 18
Quote from: Bryce on 09:16, 02 February 18Before Ethernet we used Token Ring networks mainly. They used a method similar to MAC addresses but much simpler and they were not unique identifiers like MAC addresses are.Who remembers when the network connection to your PC was two coax cables and a BNC T-piece?Bryce.


If the PARC book is to be believed (I reached that page last night :D ) addresses (called 'Destination Addresses) were soft-coded in their Nova* machines (using the first ETHER network with TV coax cables) and were 8 bits long.


*also read: Soul of a New Machine, excellent book on the Novas.
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 16:28, 02 February 18
Quote from: Duke on 15:54, 02 February 18
Have you tried to disable this, to see if something went wrong with that?I have not heard of any problems with using WPA-PSK. It will connect when you disable encryption? But your access control is still on?

Try showing us the setup (you can open /m4/config.txt from the microSD card and pass the contents here, minus your password/ssid).

I had turned Access Control Off and made it an Open Network and i could connect.
Turning Access Control On/Off made no difference when the WPA-PSK was on - The only other thing i have done is assign the MAC address a static IP and i even put it as the DMZ to open all the Ports but it will not connect with the WPA-PSK on.
TBH i can live with it - I have uploaded ParaDos 1.2 which was my main target today. If i am organised i can open the network get everything transferred i want to then close it again. I live in a small rural village so i'm very isolated from anyone else.

ssid=XXXXXXXXXXXX
pw=XXXXXXXXXXXXXXXXXXXXXXXXXX
name=CPCM4
dhcp=1
ip=192.168.0.50
nm=255.255.255.0
gw=192.168.0.1
dns1=209.244.0.3
dns2=209.244.0.4
tz=0
ntp=ntp.inet.tele.dk
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:09, 02 February 18
Quote from: Vyper68 on 16:28, 02 February 18
The only other thing i have done is assign the MAC address a static IP and i even put it as the DMZ to open all the Ports but it

Quote
dhcp=1

Then you should set dhcp = 0, so that you use the static IP.
Title: Re: Amstrad CPC WiFi
Post by: SRS on 23:17, 02 February 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), also I did not use my device for months, I really appreciate how much effort you spend to support and enhance it. 

Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 09:48, 05 February 18
Well for some reason i had problems with my old Netgear that i could not get resolved i tried every permutation under the sun and nothing would work apart from an open network so there is something about my old netgear that is causing problems it was not the M4.
Then i had a bit of a brainwave which is rare for me these days.
I had a TP-Link Nano which can act as a AP,Router, Bridge & Repeater. So i set this up as an AP on my LAN network and it connected to the AP first time no issues. So now i am cooking on gas!  :D .

If anyone else has a problem connecting with an old wi-fi router/modem network and they have some LAN in the set-up this may be worth trying - the model i have is a UK version of TL-WR702N
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 23:25, 05 February 18
Hi,

I just got my M4 (thanks Duke!) but I've been unable to make it work. I have a 6128+ and an MX4 M4 board + centronics cable (both from Duke).

With no M4 attached, my CPC+ works perfectly fine, but when I turn on the machine with the M4, nothing happens (black screen, no video signal). I pushed f2 (and waited a little bit) to see if Burning Rubber's music kicked in, but I got no sound either.

At first, I thought it could be caused by lack of power (I'm not using the plus monitor/power supply), so I tried with both the CPC power and the USB, with the same result (nothing happens). The M4 leds seem to behave as expected with both power inputs (blue one always on, green one flashes on boot) and the CPC one seems fine also (bright green).

I also tried with two different SD cards -- FAT32, known to work -- with no luck.

Any ideas on what may be happening here?

Thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:13, 06 February 18
Quote from: adolfo.pa on 23:25, 05 February 18
but when I turn on the machine with the M4, nothing happens (black screen, no video signal).

Please try to set the jumper/switch to USB (and don't connect any USB power supply).
Does it still black screen? or does the CPC power on with the normal screen?

If still black screen, the M4 board has been damaged somehow and you will need to send it back.
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 08:51, 06 February 18
Before he sends it back, he should try giving the contacts a clean and also check that the press fit connectors on the centonics lead are fully pressed down.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 09:12, 06 February 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I'll try that as soon as I get home this evening.

@Bryce (http://www.cpcwiki.eu/forum/index.php?action=profile;u=225), sorry if this is a silly question, but what is the proper way to clean a centronics connector?

Thanks!
Title: Re: Amstrad CPC WiFi
Post by: Bryce on 10:27, 06 February 18
With a cotton bud and some isopropanol or a contact cleaner fluid. On the Centronics sockets, the bottom row of contacts are most at risk to dirt build-up because they face upwards.

Bryce.
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 19:15, 06 February 18
Quote from: Duke on 08:13, 06 February 18
Please try to set the jumper/switch to USB (and don't connect any USB power supply).
Does it still black screen? or does the CPC power on with the normal screen?

If still black screen, the M4 board has been damaged somehow and you will need to send it back.

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), setting the switch to USB with no power supply makes everything go back to normal: the CPC+ powers on and seems to work fine; no led activity in the M4.

Tomorrow, when I receive the contact cleaner, I'll clean up the centronics port as Bryce suggested. In the meantime, is there anything else I can try?

Thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:37, 06 February 18
Quote from: adolfo.pa on 19:15, 06 February 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), setting the switch to USB with no power supply makes everything go back to normal: the CPC+ powers on and seems to work fine; no led activity in the M4.

Tomorrow, when I receive the contact cleaner, I'll clean up the centronics port as Bryce suggested. In the meantime, is there anything else I can try?

Good, atleast means there's not a short directly on the board that causes the black screen :)

You can try this firmware:
www.spinpoint.org/cpc/m4diag5.zip

Unpack it to root of the microSD, put the switch back to EXP and start the CPC.

It should generate report.txt in the microSD, paste the contents here.
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 20:42, 06 February 18
Quote from: Duke on 19:37, 06 February 18
Good, atleast means there's not a short directly on the board that causes the black screen :)

You can try this firmware:
www.spinpoint.org/cpc/m4diag5.zip (http://www.spinpoint.org/cpc/m4diag5.zip)

Unpack it to root of the microSD, put the switch back to EXP and start the CPC.

It should generate report.txt in the microSD, paste the contents here.

Well, at least some (almost) good news :-)

Also, not sure if it is relevant, but when booting up the M4 with those files in the SD, the green led stayed on for the whole time. I waited for a while, assuming it was updating the firmware, but in the end I had to turn it off with the green led still on.

Here are the contents of the report.txt file (for some reason I cannot attach the file):

ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF 
ESP Flash SR: 0xFF
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:47, 06 February 18
@adolfo.pa (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2309)

Looks like the ESP flash has gone bad, sorry.

Please ship it back to me, so I can replace it.
Title: Re: Amstrad CPC WiFi
Post by: adolfo.pa on 21:04, 06 February 18
Well, at least it can be repaired, so there's still hope :-)

Thanks a lot for your help Duke.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:03, 12 February 18
Hi Duke,
please think about, if you want to reset
#A700   "Default Drive"
#A701   "Default User"
#A702   "Active Drive"
When you're coming from the floppys - When you type in |SD.
E.g. |DISC, |D , |SD  => #A700 Shows "03" ->D-Drive is active   (no differences, when you type in |A after the |SD-Command)
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 10:07, 12 February 18
Quote from: SOS on 09:03, 12 February 18
Hi Duke,
please think about, if you want to reset
#A700   "Default Drive"
#A701   "Default User"
#A702   "Active Drive"
When you're coming from the floppys - When you type in |SD.
E.g. |DISC, |D , |SD  => #A700 Shows "03" ->D-Drive is active   (no differences, when you type in |A after the |SD-Command)

@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624):

Please look at the 16-bit value at be7d to find amsdos address.


ld hl,(&be7d)
xor
ld (hl),a ;; set default drive to 0.


:)

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:41, 12 February 18
Quote from: SOS on 09:03, 12 February 18
#A700   "Default Drive"
#A701   "Default User"
#A702   "Active Drive"
When you're coming from the floppys - When you type in |SD.
E.g. |DISC, |D , |SD  => #A700 Shows "03" ->D-Drive is active   (no differences, when you type in |A after the |SD-Command)
Ok,I can add that, if it's any use.
|A & |B when in "SD mode" (|SD) does nothing, it's only passed to AMSDOS when in disc mode via "|disc".

So set to:
0 when |A
1 when |B
2? when |SD
0 when |DISC, if >=2 otherwise unchange (0 or 1).
Correct ?


Quote from: arnoldemu on 10:07, 12 February 18

ld hl,(&be7d)
xor
ld (hl),a ;; set default drive to 0.


Yes, probably should check if the pointer is zero aswell, in case it's a 464 without disc rom :)


Title: Re: Amstrad CPC WiFi
Post by: SOS on 12:00, 12 February 18
Quote from: Duke on 10:41, 12 February 18
Ok,I can add that, if it's any use.

It's a unexpectedly behavior, so it may confuses Software (like YANCC :( , but i make a Workaround)

Quote from: Duke on 10:41, 12 February 18
|A & |B when in "SD mode" (|SD) does nothing, it's only passed to AMSDOS when in disc mode via "|disc".

So set to:
0 when |A
1 when |B
2? when |SD
0 when |DISC, if >=2 otherwise unchange (0 or 1).
Correct ?
No  ;)

0=>Drive A active,
1=>Drive B active,
2=>Drive C active,
3=>Drive D active,
4=>Drive E active,
.....
So, after the |SD, M4 works on A-Drive... (without |A)  (so a "0" is expected)
Maybe it's easierer to clear all three variables, when you make a |SD


Quote from: Duke on 10:41, 12 February 18
Yes, probably should check if the pointer is zero aswell, in case it's a 464 without disc rom :)
Yes, or e.g. if you use a 6128 without AMSDOS.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:23, 12 February 18
Quote from: SOS on 12:00, 12 February 18

So, after the |SD, M4 works on A-Drive... (without |A)  (so a "0" is expected)
Maybe it's easierer to clear all three variables, when you make a |SD

Ok :) no problem.

Only annoying may be this:
|disc
|b
|sd
|disc
Now it's drive A rather than B when you return to disc... Anyway maybe I will store the previous value and restore on |disc.
Title: Re: Amstrad CPC WiFi
Post by: arnoldemu on 14:51, 12 February 18
Quote from: Duke on 10:41, 12 February 18
Yes, probably should check if the pointer is zero aswell, in case it's a 464 without disc rom :)
I would prefer you to check if |DISC existed, then look at the data.

As part of my viewer program I'll make a document for best practices to describe how to make programs work with other DOS. :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:26, 12 February 18
Arnie is right, please use vectors to find the current data (drive # etc.) location. It's bad to use defined addresses. Because the existence of other ROMs will change them.  :)
Title: Re: Amstrad CPC WiFi
Post by: remax on 18:26, 12 February 18
Trying my M4 on my 6128 Plus.


Is it a normal behaviour that setting the M4 rom on rom 7 make it reset in a loop, like on a stock 6128 ?


If yes, is there an equivalent to the patched lower rom on the plus ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:15, 12 February 18
Quote from: GUNHED on 15:26, 12 February 18
Arnie is right, please use vectors to find the current data (drive # etc.) location. It's bad to use defined addresses. Because the existence of other ROMs will change them.  :)
I agree. Don't remember using hardcoded amsdos addresses in M4 rom, as it's independent of AMSDOS.. but I could remember wrong :)

Quote from: remax on 18:26, 12 February 18
Trying my M4 on my 6128 Plus.


Is it a normal behaviour that setting the M4 rom on rom 7 make it reset in a loop, like on a stock 6128 ?
No, it's not normal. What firmware version are you using?


Title: Re: Amstrad CPC WiFi
Post by: remax on 21:47, 12 February 18


Quote from: Duke on 20:15, 12 February 18
No, it's not normal. What firmware version are you using?

From memory, but i'm quite sure, i think it is 2.0.3

You think it would be better to test beta ?

Envoyé de mon SM-G930F en utilisant Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:33, 13 February 18
Quote from: remax on 21:47, 12 February 18
From memory, but i'm quite sure, i think it is 2.0.3

You think it would be better to test beta ?
I would check cable and connectors. It seems it's not seeing romdis.
The v2.0.4 beta 8 have support for cartridge emulation, so makes sense for a CPC+.
Title: Re: Amstrad CPC WiFi
Post by: remax on 09:10, 13 February 18
Quote from: Duke on 08:33, 13 February 18
I would check cable and connectors.

I'll do but the M4 it seems to work correctly when set on slot 6, so would be a bit strange that it's a cable problem, no ?

Quote
The v2.0.4 beta 8 have support for cartridge emulation, so makes sense for a CPC+.


Ok i'll try an upgrade
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:21, 13 February 18
Quote from: remax on 09:10, 13 February 18
I'll do but the M4 it seems to work correctly when set on slot 6, so would be a bit strange that it's a cable problem, no ?
The difference between using rom 6 and 7 is that a ROMDIS signal is needed for rom 7 to disable the one from the cartridge.
What catridge are you using btw. ? the original with burning rubber and basic?
Title: Re: Amstrad CPC WiFi
Post by: remax on 09:46, 13 February 18
Quote from: Duke on 09:21, 13 February 18
The difference between using rom 6 and 7 is that a ROMDIS signal is needed for rom 7 to disable the one from the cartridge.
What catridge are you using btw. ? the original with burning rubber and basic?


I use the C4CPC, i tried with both the standard Burning Rubber/Basic and dragon's latest OS Cartridge
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:04, 13 February 18
Quote from: remax on 09:46, 13 February 18

I use the C4CPC, i tried with both the standard Burning Rubber/Basic and dragon's latest OS Cartridge
Ok, please try with the original Burning Rubber/Basic cartridge if you have it instead of C4CPC. I remember there was some issue long ago, that should've been fixed, but maybe I brought it back.
Feedback appreciated.
Title: Re: Amstrad CPC WiFi
Post by: remax on 17:18, 13 February 18
Sadly i don't have a standard cartridge.


I may look for one if needed.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:24, 14 February 18
Quote from: remax on 17:18, 13 February 18
Sadly i don't have a standard cartridge.
Do you have any original game cartridges then?

You can use those too, just upload lowerrom and basic to M4.
Title: Re: Amstrad CPC WiFi
Post by: remax on 16:34, 15 February 18
Quote from: Duke on 11:24, 14 February 18
Do you have any original game cartridges then?


Yes, a Burnin' Rubber from GX4000 (without the OS)

Quote from: Duke on 11:24, 14 February 18
You can use those too, just upload lowerrom and basic to M4.


Yeah seems to work, i also updated the card to latest beta, but i think that's not what fixed the problem.


So, if i understand the txt, i have to choose between a better compatibility (slot 7) and simultaneous access from SD and disc (slot 6) ?

I guess it's because none did a patched lower rom like on the 6128.

Well not a big deal as the Plus won't be my primary target for playing game except 6128+ exclusives (like Rick 128+), so i guess i'll stick on slot 6.


EDIT : Slot 7 still works badly with C4CPC.
More testing : I have lots of problem trying to use both at the same time. Even with the C4CPC configurated to automatically launch red label burnin rubber (so in theory same config that with my other cartridge), i have roling reset on slot 7, and problems like protext garbled text on slot 6.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:20, 15 February 18
Quote from: remax on 16:34, 15 February 18
So, if i understand the txt, i have to choose between a better compatibility (slot 7) and simultaneous access from SD and disc (slot 6) ?

I guess it's because none did a patched lower rom like on the 6128.
It would be the same with the patched lowerrom I did.
However you can upload AMSDOS to slot 8 and still have simultaneous access while M4 is rom 7 for better compatiblity.

Quote
EDIT : Slot 7 still works badly with C4CPC.
More testing : I have lots of problem trying to use both at the same time. Even with the C4CPC configurated to automatically launch red label burnin rubber (so in theory same config that with my other cartridge), i have roling reset on slot 7, and problems like protext garbled text on slot 6.
Yes, there is some unresolved issues. I haven't got a C4CPC (yet) so I don't have first hand experinces.
You can try my experimental firmware http://www.spinpoint.org/cpc/M4FIRM_v204exp.zip and see if it changes anything (it has faster assertion of ROMDIS and some other timings *should* be slightly better).
Title: Re: Amstrad CPC WiFi
Post by: remax on 16:58, 16 February 18
Quote from: Duke on 20:20, 15 February 18
It would be the same with the patched lowerrom I did.
However you can upload AMSDOS to slot 8 and still have simultaneous access while M4 is rom 7 for better compatiblity.
Yes, there is some unresolved issues. I haven't got a C4CPC (yet) so I don't have first hand experinces.
You can try my experimental firmware http://www.spinpoint.org/cpc/M4FIRM_v204exp.zip (http://www.spinpoint.org/cpc/M4FIRM_v204exp.zip) and see if it changes anything (it has faster assertion of ROMDIS and some other timings *should* be slightly better).


Sadly, it's far far worse...


When gerald will got a new batch of C4CPC, maybe we can mount a funding to get you a C4CPC ;)
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 21:04, 17 February 18
Hi
Sorry I'm being thick but can you transfer a .dsk image held on the SD card to a real 3" disk?
How to guide if possible I am going round in circles my 3" and Gotek are not playing so I thought I would use the SD card.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:16, 17 February 18
Quote from: remax on 16:58, 16 February 18

Sadly, it's far far worse...


When gerald will got a new batch of C4CPC, maybe we can mount a funding to get you a C4CPC ;)
Too bad. If everything goes as planned I will hook up the LA tomorrow, and do some thorough checking of my timings (if only I find my second pod for the LA :) ).

I will work something out with gerald to get a C4CPC, thanks though :)

Quote from: Vyper68 on 21:04, 17 February 18
Sorry I'm being thick but can you transfer a .dsk image held on the SD card to a real 3" disk?
How to guide if possible I am going round in circles my 3" and Gotek are not playing so I thought I would use the SD card.

Yes if you use dskwriter application of Symbos (probably requires more than 128KB of RAM??).

If the DSK image is just files (not copy protected whatever dsk) you can also use M4 RSX to do the job.
Make sure you have M4 rom as 6 (or lower) and AMSDOS as 7.
Format your floppy and insert it, then:
|cd,"myimage.dsk"
|fcp,"*", "A:"

Done.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:36, 18 February 18
There is CPC-DSK, nice small tool which writes a DSK from a 3.5" disc (B) to a disc in 3" (A).  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:13, 18 February 18
Quote from: GUNHED on 20:36, 18 February 18
There is CPC-DSK, nice small tool which writes a DSK from a 3.5" disc (B) to a disc in 3" (A).  :)

If he has a drive B, that could be a solution too, to get an image from SD card to real disk.

upload parados rom, format drive B
|FCP,"image.dsk", "B:"

and launch CPC-DSK and write it to drive A

(not tried it).
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 07:52, 19 February 18
Quote from: Duke on 22:13, 18 February 18
If he has a drive B, that could be a solution too, to get an image from SD card to real disk.

upload parados rom, format drive B
|FCP,"image.dsk", "B:"

and launch CPC-DSK and write it to drive A

(not tried it).

Can you have Parados working the same time as the M4 - It normally replaces AMSDOS in Socket 7.
I have a 6128 and M4 is in Socket 6


I have a Gotek Drive but it is not playing nice i can change from A to B and Cat B but i cannot load from B. If i set the Gotek to Drive A it works fine. So i still need them to play nice. The 3.5 Drive i bought off eBay will not play so i don't know if it's duff or not.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:45, 19 February 18
Quote from: Vyper68 on 07:52, 19 February 18
Can you have Parados working the same time as the M4 - It normally replaces AMSDOS in Socket 7.
I have a 6128 and M4 is in Socket 6

You can set M4 rom to 5 and upload parados to slot 6. That should work.
Title: Re: Amstrad CPC WiFi
Post by: rpalmer on 11:14, 19 February 18
you have to note that many games only assumed a Drive A, so when they start they always access only drive A to get the rest of the game loaded. What this means is that the loader of the games can be from any drive but the subsequent parts may be hard wired machine code to load only from drive A (and this is most often seen to access strange sector formats which are difficult to copy from A to B).

Vyper68, Did you modify the drive so that the CPC can see it? And lets not forget the READY line too, it may need patching. Also do you have an old PC which you can test the floppy in to see if it works before any mods are/were done?

rpalmer
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 14:28, 19 February 18
Quote from: rpalmer on 11:14, 19 February 18
you have to note that many games only assumed a Drive A, so when they start they always access only drive A to get the rest of the game loaded. What this means is that the loader of the games can be from any drive but the subsequent parts may be hard wired machine code to load only from drive A (and this is most often seen to access strange sector formats which are difficult to copy from A to B).

Vyper68, Did you modify the drive so that the CPC can see it? And lets not forget the READY line too, it may need patching. Also do you have an old PC which you can test the floppy in to see if it works before any mods are/were done?

rpalmer

No i didn't modify the drive. I bought a cable off eBay which had an A/B Switch and Side A/B switch there is also a wire jumper fitted - I cannot test the floppy on a PC i don't have one with a Floppy connector anymore.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:08, 19 February 18
Sorry, I forgot to mention IIRC that CPC-DSK needs a MS-DOS 720 KB disc in drive B. It does not need any other DOS ROM, it can read the MS-DOS 720 KB format by itself.

Title: Re: Amstrad CPC WiFi
Post by: Targhan on 14:04, 24 February 18
A little request (sorry if it has already been mentioned in one of the 199 pages of this thread!). The V3 snapshots (+compressed) don't seem managed by the M4Board. Do you think this is something you intend to implement? This would be nice, as RASM produces compressed V3 Snapshots.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 17:08, 24 February 18
As I mentioned in previous posts I have one of these boards.
I've installed the M4 version of Symbos and there are no programs in the task bar.
I have no experience with this and I think the lack of extra RAM has something to do.


Can't really read all the posts again so I have to ask if there is a compatible RAM expansion and the adapter for it.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:56, 25 February 18
Quote from: Targhan on 14:04, 24 February 18
A little request (sorry if it has already been mentioned in one of the 199 pages of this thread!). The V3 snapshots (+compressed) don't seem managed by the M4Board. Do you think this is something you intend to implement? This would be nice, as RASM produces compressed V3 Snapshots.
I will give it a go sometime.
Anyone is welcome to add it though as I may not find time for soon.
M4 rom source can be found here: https://github.com/M4Duke/m4rom

Quote from: VincentGR on 17:08, 24 February 18
As I mentioned in previous posts I have one of these boards.
I've installed the M4 version of Symbos and there are no programs in the task bar.
I have no experience with this and I think the lack of extra RAM has something to do.

Yes, there is many things you can't do with SymbOS without a memory expansion.
I have only the X-MEM from TotO and it works fine with M4 and SymbOS, provided you disable its ROM board.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:41, 07 March 18
Release of M4 Board v2.0.4 beta #9 firmware.
Download http://www.spinpoint.org/cpc/M4FIRM_v204b9.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b9.zip)
Unpack M4FIRM.BIN & ESPFIRM.BIN to SD card root and power cycle the CPC to update.

Changes:
And many under the hood changes.

Please provide feedback, if it works well (or no disasters) it will be v2.0.4.

Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 16:23, 07 March 18
Very nice Duke !!! another version in the air  :P :P
Title: Re: Amstrad CPC WiFi
Post by: kapi21 on 23:34, 07 March 18
Thanks Duke!

Enviado desde mi Redmi Note 4 mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: arrakis on 22:22, 08 March 18
Hi,

Most of the games I tried to run from the M4 are switching back to real drive A and of course I get Disc Missing errors.
Is it possible to force the M4 to be the drive A? (As I could do on a gotek with a jumper)

best regards,
arrakis
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:51, 08 March 18
Quote from: arrakis on 22:22, 08 March 18
Most of the games I tried to run from the M4 are switching back to real drive A and of course I get Disc Missing errors.
Is it possible to force the M4 to be the drive A? (As I could do on a gotek with a jumper)

Yes just use the modified lowerrom from here:
http://www.cpcwiki.eu/index.php/M4_Board

(look under Various files)

Upload it to slot 31 of the M4 romboard and enable lowerrom.
That should fix it.
Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 12:17, 09 March 18
Would this modified lower rom fix games such as those with old xor crack loaders which try to load from the physical drive A instead of the SD card?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:54, 09 March 18
Quote from: blackdalek on 12:17, 09 March 18
Would this modified lower rom fix games such as those with old xor crack loaders which try to load from the physical drive A instead of the SD card?
Yes.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:23, 11 March 18


Great to see continued support for the M4 Board. Unfortunately I'm having issues with v2.0.4b9 and my 6128 Plus. Everything worked just fine with v2.0.4b8 and if I revert to v2.0.3. At system start-up all displays as expected and all ROMs appear to load. ¦M4ROMOFF also works as expected.


If I use my C4CPC with the M4, after updating, when typing CAT the machine either resets or the directory contents are corrupted. If I switch to the standard Burnin' Rubber cart all is fine. My cart image in the C4CPC includes Parados 1.2+ but the M4 ROM is in slot 7 so is overridden anyway.


Separate to the above after updating the M4 doesn't seem to be able to connect to my wifi either which again works just fine with v2.0.4b8 and v2.0.3. This is the same regardless of the cart in the machine.


Wiping the config in the m4 folder of the SD card and returning to defaults seems to fix the issue with CAT which then puts the m4 ROM in slot 6. However the wifi connection remains broken even when setting up from scratch. It starts to try to connect but fails. Running ¦netstat during initial setup it says 'Connecting' but then says 'No AP found'. All other wifi kit works as expected and returning to previous M4 ROM versions restores connectivity.


Is anyone else having these issues with a similar configuration?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:52, 11 March 18
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) Thanks for the feedback. Sorry to hear it's not working very good for you :/
What is your WiFi setup (dhcp/manual & encryption) ?

Hope others will post if it works fine or not for them.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 16:00, 11 March 18

Quote from: Duke on 15:52, 11 March 18
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) Thanks for the feedback. Sorry to hear it's not working very good for you :/
What is your WiFi setup (dhcp/manual & encryption) ?

Hope others will post if it works fine or not for them.
I'm using DHCP but this has always worked without issue in the past. In terms of Wifi setup it's configured to use [font=]WPA/WPA2-PSK (Mixed Mode) with TKIP+AES enabled for best compatibility.[/font]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:20, 11 March 18
Quote from: Maniac on 16:00, 11 March 18
I'm using DHCP but this has always worked without issue in the past. In terms of Wifi setup it's configured to use [font=]WPA/WPA2-PSK (Mixed Mode) with TKIP+AES enabled for best compatibility.[/font]
Thanks. Asked so I could try the similar settings here with v2.0.4b9. Seems to work fine for me :/

Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:58, 11 March 18
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) can you please try this build: http://www.spinpoint.org/cpc/M4FIRM_v204b9_2.zip  to see if it fixes your WiFi.
Seems there was a bug in the ESP SDK release that was later fixed (fix(wifi): Fix station connect issue when upgrade sdk from old version), applied the patch now.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 18:59, 11 March 18

Quote from: Duke on 16:58, 11 March 18
@Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) can you please try this build: http://www.spinpoint.org/cpc/M4FIRM_v204b9_2.zip (http://www.spinpoint.org/cpc/M4FIRM_v204b9_2.zip)  to see if it fixes your WiFi.
Seems there was a bug in the ESP SDK release that was later fixed (fix(wifi): Fix station connect issue when upgrade sdk from old version), applied the patch now.
I'm afraid it still doesn't work after this update. I'll have a play around with my wifi set-up once everyone else has gone to bed to avoid upsetting the family!
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 20:18, 11 March 18
Quote from: Maniac on 18:59, 11 March 18
I'm afraid it still doesn't work after this update. I'll have a play around with my wifi set-up once everyone else has gone to bed to avoid upsetting the family!
Ok had the opportunity earlier than expected and now switched my router to WPA2 AES exclusively and it's exactly the same I'm afraid. One thing of note is that since the update the WiFi LED comes on when I power up the M4 but goes off almost straight away. It's seems like the initialisation is stalling/crashing since beta 9.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 01:51, 12 March 18
Just reporting back that v2.0.4b9 is working fine for me with everything I have tried.
Wi-Fi is fine, I have uploaded a couple of ROM's and reset the CPC etc.

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:29, 12 March 18


Thanks @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) and @00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) for testing.

Firmware v2.0.4 beta 10: Download http://spinpoint.org/cpc/M4FIRM_v204b10.zip (http://spinpoint.org/cpc/M4FIRM_v204b10.zip)

WiFi: Fix WiFi connect issue after upgrade (clear some data and set proper RF cal data).
WiFi: Fix GD25Q32C ESP8266 spi flashchip to work in Quad IO mode.
DSK: Do not show files with system attribute set. (makes better catart too)
DSK: Show '*' after file with "Read Only" attribute set.
DSK: Do not reject strange sector numbers (like AMSOFT disk protection)

Hope it works better, than the last one.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:36, 12 March 18
First impression: Runs very well! Thank you for your great support!  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 21:00, 12 March 18


Quote from: Duke on 15:29, 12 March 18

Thanks @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) and @00WReX (http://www.cpcwiki.eu/forum/index.php?action=profile;u=518) for testing.

Firmware v2.0.4 beta 10: Download http://spinpoint.org/cpc/M4FIRM_v204b10.zip (http://spinpoint.org/cpc/M4FIRM_v204b10.zip)

WiFi: Fix WiFi connect issue after upgrade (clear some data and set proper RF cal data).
WiFi: Fix GD25Q32C ESP8266 spi flashchip to work in Quad IO mode.
DSK: Do not show files with system attribute set. (makes better catart too)
DSK: Show '*' after file with "Read Only" attribute set.
DSK: Do not reject strange sector numbers (like AMSOFT disk protection)

Hope it works better, than the last one.
I'm afraid I still have the same issue and when I run ¦netstat it still says "No AP found". I've setup the networking again using ¦netset but still no joy I'm afraid.  :'(


Also went back to my original ROM config with M4 ROM in slot 7 and whilst CAT works better now when it gets to the end of the directory listing it then prompts with "Press PLAY then any key:"
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:17, 12 March 18
Thanks @GUNHED (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2029) & @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)  for testing.

Quote from: Maniac on 21:00, 12 March 18
I'm afraid I still have the same issue and when I run ¦netstat it still says "No AP found". I've setup the networking again using ¦netset but still no joy I'm afraid.  :'(

Running out of ideas. One thing, maybe try to reboot the router. Also can you pm me the ssid, channel you use and if there is any other specific settings (like MAC filtering)  and router brand. So I can try to replicate the settings as close as possible.

EDIT: one more thing, its important to put both upgrades on at the same time, or atleast upgrade with M4FIRM.BIN first. - Just in case....
Title: Re: Amstrad CPC WiFi
Post by: SOS on 21:50, 12 March 18
Little feature-request:
m4info.txt:
     |cd,"/ takes you to the root of the sd.

Please could you add
     |cd,"\ takes you to the root of the sd.

So with "\" you get compatibility to the XMASS-OS's.

(Thanks  ;) )
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:39, 12 March 18
...also works with my CPC. Updates via WebGui. Very stable.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:48, 12 March 18


Quote from: Duke on 21:17, 12 March 18
Thanks @GUNHED (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2029) & @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930)  for testing.

Running out of ideas. One thing, maybe try to reboot the router. Also can you pm me the ssid, channel you use and if there is any other specific settings (like MAC filtering)  and router brand. So I can try to replicate the settings as close as possible.

EDIT: one more thing, its important to put both upgrades on at the same time, or atleast upgrade with M4FIRM.BIN first. - Just in case....
Rebooted router and although it changed the channel it was working on the M4 still doesn't connect I'm afraid.

The upgrade was performed as per the instructions by copying the flash files in the zip to the root of the SD card. This worked as expected and I only booted the Plus once the SD access LED was not lit.


Looks like I'm the only with this issue for some reason. My card is one of the originals, is that part of the issue?
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 05:33, 13 March 18
Some routers don't like talking to the esp8266 (either because they don't support one of the minor protocols, or it sends a weird/large packet that confuses the 8266) - do you have a different router you can try?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:10, 13 March 18
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941) . Sure will add that, actually I thought it did already work with both / & \ .
@HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) thanks for testing and feedback!

Quote from: Maniac on 22:48, 12 March 18
Looks like I'm the only with this issue for some reason. My card is one of the originals, is that part of the issue?
No, but came to think of it, it may have to do with the different batches of ESP12F's used. There may be modules with a different size flashchip, than 32Mbit, which I have assumed for the latest builds.
Will make a new test for you later today :)

Quote from: pelrun on 05:33, 13 March 18
Some routers don't like talking to the esp8266 (either because they don't support one of the minor protocols, or it sends a weird/large packet that confuses the 8266)
Previous updates worked for him fine.
In latest beta's I finally upgraded the ESP NONOS sdk & libs to v2.2.0 from v1.5.x, this seems to be causing the problem.
One difference is that with the old one I could simply erase the entire chip and put on my firmware without initializing the init data (@0x3FC000 for 32Mbit and here I need to make the other offsets if different size flash is used).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:08, 14 March 18
M4 Firmware v2.0.4 release version now available.
Via |UPGRADE for non beta users.

Download from http://www.spinpoint.org/cpc/M4FIRM_v204.zip (http://www.spinpoint.org/cpc/M4FIRM_v204.zip) and unpack to root of microSD if you have a v2.0.4 beta version or don't wanna use |UPGRADE.

Only minor changes, since last beta. ( |cd,"\" addition and set version to non beta).

The WiFi issue of @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) was not resolved and is most likely a flaw in the updated ESP NONOS SDK v2.2.0, under particular circumstances. Hopefully another update later will fix it.

Complete change log can be found here:
www.cpcwiki.eu/index.php/M4_Board#Firmware
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:38, 15 March 18
You can never test enough (*cough* atleast when I am involved).

Another beta (!), fixing issue with Eerie Forest & CRTC3 plus cartridge demos.

Download http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip)   (unpack to root of microSD and reboot system).
Those who reported issues with them earlier, feel free to test, I bet they work now  8)
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 09:13, 16 March 18
Awesome work Duke.

I just updated and watched both Eerie Forest and CRTC3 all the way through on a 6128 Plus.

I was previously having issues with Eerie Forest.

Woohoo  :D

Cheers,
Shane

Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 14:09, 17 March 18
A friend sent me his M4 because he has a problem.


Everytime he start the M4 he has to set the network with "netset".
After a restart the connection is lost - netstat only shows "Unknown status 255"
When netset ist done everything works fine until a restart.
It looks like the settings from the sd card are not read. There is the folder M4 and the config.txt with the correct settings.
Tried directly connected to the CPC with adpater and with the m4 board. Tried different SD Cards ;-)
Firmware 2.0.4b8 - Board Revision 2.4
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:22, 17 March 18
Quote from: Jungsi on 14:09, 17 March 18
Everytime he start the M4 he has to set the network with "netset".
After a restart the connection is lost - netstat only shows "Unknown status 255"
When netset ist done everything works fine until a restart.

Try to upgrade to v2.0.4 release or v2.0.5 beta #1. I think the problem would be fixed.
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 14:48, 18 March 18
Hey Duke, it could be cool to add a RSX to write a (non protected) DSK from SD to real floppy?  ;D
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 14:49, 18 March 18
Quote from: Duke on 18:22, 17 March 18Try to upgrade to v2.0.4 release or v2.0.5 beta #1. I think the problem would be fixed.
Thanks Duke - updated to v2.0.5 beta - now it's woriking. Also on my own board Chibi Akuma is now working. :-)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:50, 18 March 18
Quote from: Duke on 21:38, 15 March 18
You can never test enough (*cough* atleast when I am involved).

Another beta (!), fixing issue with Eerie Forest & CRTC3 plus cartridge demos.

Download http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip)   (unpack to root of microSD and reboot system).

       
  • Fix CPC+ cartridge issue with demos Eerie Forest & CRTC3 (and maybe others)
Those who reported issues with them earlier, feel free to test, I bet they work now  8)
Hi Duke,


You're unstoppable at the moment! Excellent work!


I've got around to testing 2.0.5 beta 1 today and despite all my issues with 2.0.4 and the networking everything now works as expected with this one! Did you change anything else between the full release of 2.0.4 and this new beta? I've not changed anything with my network setup other than restarting one of my Apple Airports but that shouldn't have caused this.


Regardless of the above I've been testing the cartridge stuff again today and I have to say things are much improved in this area. Controlling this via the web interface is so much neater than doing it via the RSX commands. I do find though that the cart image upload seems to require me to upload the image twice before it sticks for some reason. I've tried it via Edge and Chrome and both have the same impact. This is also regardless of having my C4CPC or standard Burnin' Rubber cart plugged in. However if I reset the M4 via the web interface prior to clicking 'Start Cart' it seems a bit more reliable.


Anyway great support as always and publically thank you for all your help with the v2.0.4 issues I had last week.


Kind regards
Maniac
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:01, 18 March 18
Quote from: roudoudou on 14:48, 18 March 18
Hey Duke, it could be cool to add a RSX to write a (non protected) DSK from SD to real floppy?  ;D

Yes, sometime :)

There's already a program by @HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) here http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg141353/#msg141353 which will enable you to write stardard non protected discs.

Quote from: Jungsi on 14:49, 18 March 18
Thanks Duke - updated to v2.0.5 beta - now it's woriking. Also on my own board Chibi Akuma is now working. :-)

Good to hear !

Quote from: Maniac on 14:50, 18 March 18
I've got around to testing 2.0.5 beta 1 today and despite all my issues with 2.0.4 and the networking everything now works as expected with this one! Did you change anything else between the full release of 2.0.4 and this new beta? I've not changed anything with my network setup other than restarting one of my Apple Airports but that shouldn't have caused this.
Nope nothing changed in the WiFi part, between the two.
Quote
Regardless of the above I've been testing the cartridge stuff again today and I have to say things are much improved in this area. Controlling this via the web interface is so much neater than doing it via the RSX commands. I do find though that the cart image upload seems to require me to upload the image twice before it sticks for some reason. I've tried it via Edge and Chrome and both have the same impact. This is also regardless of having my C4CPC or standard Burnin' Rubber cart plugged in. However if I reset the M4 via the web interface prior to clicking 'Start Cart' it seems a bit more reliable.
Yes, when uploading via web interface, you must use "M4 Reset" before the CPR/BIN image will be put into the M4 flash. The upload only produces CARTIMG.BIN in root of SD card, the reboot will flash it into M4 flash. 
This is unlike the |CTRUP basic command, which will flash the file directly to flash (no reboot needed).

Quote
Anyway great support as always and publically thank you for all your help with the v2.0.4 issues I had last week.

Thanks, I appreciate the testing and feedback :)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 19:05, 18 March 18
Quote from: Duke on 17:01, 18 March 18
Yes, when uploading via web interface, you must use "M4 Reset" before the CPR/BIN image will be put into the M4 flash. The upload only produces CARTIMG.BIN in root of SD card, the reboot will flash it into M4 flash. 
This is unlike the |CTRUP basic command, which will flash the file directly to flash (no reboot needed).

Thanks, I appreciate the testing and feedback :)
Is there any way that the upload, reboot and startup can be integrated in to one button please? Or at least the reboot and startup of a cart image? Would make things a lot more straightforward I think.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 17:47, 19 March 18
Hi Duke


Thinking the other day about games which used RS232 for multiplayer, like TT RACER ( if there is any other), how complex will be to "emulate" the RS232 of the Amstrad interface ? The IO ports and some setup commands like |HostRS232 for the "server" and |ConnRS232, "ip address" for the client, then one socket is used for emulating the serial link and |EndRS232 for ending the link. Then when a link is done the legacy IO ports of the serial interface are used to send/receive data...
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:25, 19 March 18
Are there problems with the command !m4help,rom-number ? With my 2nd running board this gives me a crash (newest firmware). The power should be ok, it's at the 6128plus. If not I have to get an USB PSU.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:14, 19 March 18
Quote from: Maniac on 19:05, 18 March 18
Is there any way that the upload, reboot and startup can be integrated in to one button please? Or at least the reboot and startup of a cart image? Would make things a lot more straightforward I think.
I'll see what I can do.

Quote from: KaosOverride on 17:47, 19 March 18
Thinking the other day about games which used RS232 for multiplayer, like TT RACER ( if there is any other), how complex will be to "emulate" the RS232 of the Amstrad interface ? The IO ports and some setup commands like |HostRS232 for the "server" and |ConnRS232, "ip address" for the client, then one socket is used for emulating the serial link and |EndRS232 for ending the link. Then when a link is done the legacy IO ports of the serial interface are used to send/receive data...
It'll probably not be too hard to add, will have a look at it sometime.

Quote from: GUNHED on 18:25, 19 March 18
Are there problems with the command !m4help,rom-number ? With my 2nd running board this gives me a crash (newest firmware). The power should be ok, it's at the 6128plus. If not I have to get an USB PSU.
Which ROM did you check with |m4help ?  - I did make a couple of changes to it, maybe specific rom makes it crash....
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:01, 20 March 18
Oh, worded well with M4 ROM, problems with Maxam, crash with FutureOS ROM A. But it could be the PSU, first I have to buy an USB-PSU and try it with the M4. Just thought somebody saw similar behavior, but since nobody replied I guess it's the lack of an USB-PSU.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:28, 20 March 18
Quote from: GUNHED on 15:01, 20 March 18
Oh, worded well with M4 ROM, problems with Maxam, crash with FutureOS ROM A. But it could be the PSU, first I have to buy an USB-PSU and try it with the M4. Just thought somebody saw similar behavior, but since nobody replied I guess it's the lack of an USB-PSU.  :)
Just tested with maxam, and oups yeah it crashes bad :) - I must have messed something up... M4 and AMSDOS works fine...

Bug noted!

EDIT: Found the bug... I made a direct call to a rom function (call crlf, doh), but the m4help function is copied to ram and thus the rom address is not available unless M4 rom is enabled.
Fixed for next build.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 12:57, 21 March 18
Is there any known limit for the MicroSD filesystem? I'm having some file and dir errors with my last files copied from PC...


Now I have  4418 folders and 26922 files from a big Games folder, symbos 3 and some util folders.


I had the Games at first and have problems with the new utils I copied. Then I have formated the MicroSD, copied backup of the M4 folder and then the util folder, symbos and games.


Now the last games main subfolder gives no file under cat, and some of the games in folders of the penultimate subfolder also list no files or garbage....
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:04, 21 March 18
@KaosOverride (http://www.cpcwiki.eu/forum/index.php?action=profile;u=431)
I have not experinced any difficulties.
Do the files list ok on your PC ?

Also any difference if you use |dir, cat or |ls?
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 20:35, 21 March 18
Quote from: Duke on 20:04, 21 March 18
@KaosOverride (http://www.cpcwiki.eu/forum/index.php?action=profile;u=431)
I have not experinced any difficulties.
Do the files list ok on your PC ?

Also any difference if you use |dir, cat or |ls?
At PC files are OK...

The "empty" folders remain empty with any listing command.

The garbage "cat art" also, I don't appreciate differences.

I will do a deep test of the MicroSD later at home.

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 23:55, 21 March 18
Had the same issue with a faulty SD, I knew it was faulty from the beginning and could go well till half the size is reached and then this happens.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 00:31, 22 March 18
I have tested the SD card with H2testw and looks OK...

I have found some references to some SD cards working OK at 4bit interface (Like PC card readers do) and giving problems with SPI interface (As many microcontrollers read this cards)

So I will try to test tomorrow with another card and try to recreate the bug, if is that the problem...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:28, 22 March 18
Quote from: KaosOverride on 00:31, 22 March 18
I have tested the SD card with H2testw and looks OK...

I have found some references to some SD cards working OK at 4bit interface (Like PC card readers do) and giving problems with SPI interface (As many microcontrollers read this cards)

So I will try to test tomorrow with another card and try to recreate the bug, if is that the problem...
Fwiw. M4 doesn't use SPI for SD card, but 4bit I/O aswell.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 19:07, 22 March 18
Quote from: Duke on 13:28, 22 March 18
Fwiw. M4 doesn't use SPI for SD card, but 4bit I/O aswell.
I will try different capacity (smaller will try) and totally different brand for next test...

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: SOS on 09:56, 23 March 18
Same here (Samsung 16GB MiniSD) - CAT makes nonsense with directories, which i copied, when the SD-Card was nearly full.
I can't start games, which i copied to the SD-Card, when it's nearly full.
All files on the PC Looks good

Firmware 2.0.4b8
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:16, 23 March 18
Ok, I will try to copy game base to a microSD and see if I can reproduce.


In another embarresment, the v2.0.5 beta 1, actually contains the old ESP SDK libraries. I had just done a special build for @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) (now you know why 2.0.5b1 works for you) with the old libs and then compiled  v2.0.5b1, must've forgotten a make clean on ESP part :/
So stick v2.0.4 release for now if you don't need the PLUS fix. I noticed it worked much better with SymbOS wget and IRC when testing.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 12:35, 23 March 18
By the way, I have stable 2.0.4 firm.


Inhave the other M4 with older firmware, I can make some tests tomorrow
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 19:11, 23 March 18
Quote from: Duke on 12:16, 23 March 18
Ok, I will try to copy game base to a microSD and see if I can reproduce.


In another embarresment, the v2.0.5 beta 1, actually contains the old ESP SDK libraries. I had just done a special build for @Maniac (http://www.cpcwiki.eu/forum/index.php?action=profile;u=930) (now you know why 2.0.5b1 works for you) with the old libs and then compiled  v2.0.5b1, must've forgotten a make clean on ESP part :/
So stick v2.0.4 release for now if you don't need the PLUS fix. I noticed it worked much better with SymbOS wget and IRC when testing.
Hehe! I did wonder if that was the case!
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 17:48, 27 March 18
I have made some tests, I have repartitioned the SD card with RMPrepUSB and I have found it had a second hidden micropartition, the same it is done with the force USB-HDD option from RMPrepUSB. I have remade it with just one partition and instead of starting at cyl 0 head 0 sect 33, now it's cyl 0 head 1 sect 1

Looks good with the previous amount of data which failed, until I have copied more folders later. Looks like the problem is just delayed until more data is written...

Pending of more testing...
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 17:56, 27 March 18
Hi


I'm trying to upgrade my M4


Put the two files into SD card.


M4FIRM.BIN is eresed by M4 board but ESPFIRM.BIN is present on the board.


The CPC is not booting when M4 is attached to the CPC.


I'm try with 2.04, 2.03, 2.05b1 with the same result... fail to boot.




What i am doing wrong?


My M4 is a rev 2.4 2017


Regards!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:07, 27 March 18
Quote from: ayasystems on 17:56, 27 March 18
M4FIRM.BIN is eresed by M4 board but ESPFIRM.BIN is present on the board.

Do you let it finish? If ESPFIRM.BIN is still present it has not been flashed.
Unpack v2.0.4 (release version) to root of microSD.
Put it into the M4 board and power on the CPC.
After a while, notice if you see the led below the blue power led, is it flashing or constantly on?
If it keeps flashing for enternity, try to power cycle the CPC (off/on).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:15, 27 March 18
Quote from: KaosOverride on 17:48, 27 March 18
I have made some tests, I have repartitioned the SD card with RMPrepUSB and I have found it had a second hidden micropartition, the same it is done with the force USB-HDD option from RMPrepUSB. I have remade it with just one partition and instead of starting at cyl 0 head 0 sect 33, now it's cyl 0 head 1 sect 1

Looks good with the previous amount of data which failed, until I have copied more folders later. Looks like the problem is just delayed until more data is written...

Pending of more testing...
Thanks for the info's.

Sorry I haven't got around to test myself yet. I have a feeling it may be a heap related issue, so probably easy to fix once I can reproduce.

Will try soon.
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 18:22, 27 March 18
I put 2.04 into cleaned SD


Put into M4 then I connect M4 to CPC and turn CPC on


After 5 sencond the CPC has been restarted. Both leds fixed on. After a time the second led has been started to blink


After 5 minutes with one led fixed and the other one blinking i have turn off then on again


The second led is blinking..... I need to wait more time?


Regards duke!
Title: Re: Amstrad CPC WiFi
Post by: Scautura on 18:25, 27 March 18
My M4 arrived this morning, and I have to say (even with the issue I'm about to mention), it's an awesome piece of kit!

My issue is as follows: Using the firmware that was installed when I got it (2.0.5b1), no matter what I do to set the LowerROM to be the modified 6128 ROM, it fails miserably to boot properly (if at all), but downgraded to 2.0.4 and it works as expected. Tested with Stunt Car Racer (before: no matter what, it would ask for a disk in A:, after: with the LowerROM, it runs properly, but I haven't tested without!)
I have a feeling some of the issues are with the age of my machine and possible oxidation on the edge connector (I've cleaned it, but it didn't work at all the first couple of times I plugged it in, so it may need a little more TLC) but downgrading seemed to fix "all" my issues (well, those I've tested so far).
I also need to say a BIG thank you to Duke for his patience during my order. :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:10, 27 March 18
Quote from: ayasystems on 18:22, 27 March 18

The second led is blinking..... I need to wait more time?

No, if it keeps blinking, power cycle the CPC.
It should only blink a couple of times.

@Scautura (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2501) Glad you got it all working, but I doubt it was the firmware that made the change. Most likely edge connector, it can really need more cleaning than it looks.
Title: Re: Amstrad CPC WiFi
Post by: SOS on 19:15, 27 March 18
Quote from: Duke on 18:15, 27 March 18
Sorry I haven't got around to test myself yet. I have a feeling it may be a heap related issue, so probably easy to fix once I can reproduce.
I created an Image from my non-working SD-Card.
I can upload the Image-File for you, if it's intersting (PM me).

Btw. CubeIOS can read the files without a Problem ;D
Title: Re: Amstrad CPC WiFi
Post by: Scautura on 19:32, 27 March 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) Yeah, I have a feeling I need to clean the edge connector a bit more, but getting it working for now is a step (I'm not in the mood to get into the case of my CPC, I just finished cleaning out a load of guano from it being left in my parents' attic for 20 years!  :o  )


Edit: Upgraded again to 2.0.5b1 and... It works perfectly! Dunno what I did, but I'm not going to complain!
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 20:55, 27 March 18
I am not able to upgrade and M4 is not working...


I have test with other SD and the same result.


M4FIRM.BIN is loaded and deleted but ESPFIRM still in SD and LED green is blinking.


Can i upgrade the esp with other method?



Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:28, 28 March 18
Quote from: ayasystems on 20:55, 27 March 18
Can i upgrade the esp with other method?
I am afraid, you can't. The M4 connects directly to SPI Flash lines on the ESP8266, if it doesn't want to reprogram, in all likelyhood the spi flash has gone bad.
Unfortunately it has happened before (known issue due to some crappy SPI flash chips used on some batches of the ESP8266).
Ship it back to me and I will replace it.
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 06:32, 28 March 18
I have an esp8266 unit. I can try to change esp8266 to this new esp8266.


Are you agree?? I have the item and the necessary tools. We can avoid spend shipments costs.


Let me know


Regards
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:41, 28 March 18
Quote from: ayasystems on 06:32, 28 March 18
I have an esp8266 unit. I can try to change esp8266 to this new esp8266.


Are you agree?? I have the item and the necessary tools. We can avoid spend shipments costs.

Sure, give it a go.
Title: Re: Amstrad CPC WiFi
Post by: ayasystems on 08:42, 28 March 18
It works!!


M4 is working again! Thanks Duke!!



Title: Re: Amstrad CPC WiFi
Post by: blackdalek on 13:11, 29 March 18
I have a question: When using the patched lower ROM, do I need to disable it if I want to access my physical disc drive?
I found that after typing |disc to access my drive, I was still getting the SD card directory. I couldn't access my disc drive at all until I disabled the modified lower ROM.
Is this normal behaviour or is there some other method to return to physical disc access while the patched ROM is active?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:46, 29 March 18
Yes it's normal behavior.

You can upload AMSDOS to rom slot 8 if you want both at the same time.

Quote from: blackdalek on 13:11, 29 March 18
I have a question: When using the patched lower ROM, do I need to disable it if I want to access my physical disc drive?
I found that after typing |disc to access my drive, I was still getting the SD card directory. I couldn't access my disc drive at all until I disabled the modified lower ROM.
Is this normal behaviour or is there some other method to return to physical disc access while the patched ROM is active?
Title: Re: Amstrad CPC WiFi
Post by: slugman on 14:50, 29 March 18
Hi Guys,

I've a newbie question  :(

I've put some .dsk  images on a SD card.

I enter into to .dsk with CD,"file.dsk" next RUN "disc" to load the prog but the CPC is trying to load from the internal A: floppy drive not from the SD. How I can force the cpc to load from the SD?

Thanks
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:55, 29 March 18
What CPC model are you using?

If 464 or CPC+ you can simply go into web interface and set M4 rom to 7.

If its a 664 or 6128  you need the modified lower rom installed, see http://www.cpcwiki.eu/index.php/M4_Board

Download the modifled lower rom from there, upload in to slot 31
Enable the lowerrom. Power cycle the M4 board.

Quote from: slugman on 14:50, 29 March 18
Hi Guys,

I've a newbie question  :(

I've put some .dsk  images on a SD card.

I enter into to .dsk with CD,"file.dsk" next RUN "disc" to load the prog but the CPC is trying to load from the internal A: floppy drive not from the SD. How I can force the cpc to load from the SD?

Thanks
Title: Re: Amstrad CPC WiFi
Post by: slugman on 15:18, 29 March 18
I've a 6128 french version (azerty). i'm on last firmware 2.04

i've downloaded the  french lower rom and put in into the SD card.

i loaded the rom;
|ROMUP,"french.rom",31
system display "Ready."

But when enabling the rom with |ROMSET,31,1   i receive "unknown command" message

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:20, 29 March 18
Quote from: Duke on 14:55, 29 March 18
If its a 664 or 6128  you need the modified lower rom installed, see http://www.cpcwiki.eu/index.php/M4_Board (http://www.cpcwiki.eu/index.php/M4_Board)


Actually most of the CPC6128 (with Centronics Ports, not with edge) do support the replacement of ROM 7 by external hardware. I got some of them here, not a single one ever failed. Probably the 6128 with Centronics port has this ability in general.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:31, 29 March 18
Quote from: slugman on 15:18, 29 March 18
i loaded the rom;
|ROMUP,"french.rom",31
system display "Ready."

But when enabling the rom with |ROMSET,31,1   i receive "unknown command" message
You must use the web interface to enable lowerrom.
Please setup wifi as described here:
http://www.spinpoint.org/cpc/m4info.txt

Quote from: GUNHED on 15:20, 29 March 18
Actually most of the CPC6128 (with Centronics Ports, not with edge) do support the replacement of ROM 7 by external hardware. I got some of them here, not a single one ever failed. Probably the 6128 with Centronics port has this ability in general.  :)
I also have a MC020C 6128 which allows for this, but I am not sure that it is actually obeying ROMDIS, as Gerald pointed out at some point, it may be the ROM used, that has weaker signals, somehow.
Also both my 664's I can replace rom 7.
Someday I will check these motherboards to see if ROMDIS is connected or not.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:10, 29 March 18
Someday is early enough :-)

Title: Re: Amstrad CPC WiFi
Post by: slugman on 21:41, 29 March 18
Thanks Duke , I'll take time this week-end for setting up the wifi
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 15:18, 31 March 18
Hi Duke
I have issues using remote snapshot (no problem with local usage with |SNA)
The M4 reset the CPC then i have to press F1 to run snapshot
I remember i did not have to do this with previous firmware (maybe i'm wrong)

So...   i uploaded a Parados CPR to the M4, to avoid pressing F1
But snapshot does not run, i stay in basic prompt

Any idea?

Since i have no real Basic cartridge i cannot test another configuration. I read that M4Wifi does not like C4CPC...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:48, 31 March 18
Quote from: roudoudou on 15:18, 31 March 18
The M4 reset the CPC then i have to press F1 to run snapshot
I remember i did not have to do this with previous firmware (maybe i'm wrong)
If you set M4 rom number 7, you will bypass this.

You can also use basic/lowerrom/amsdos from a reguler CPC6128.

Quote
So...   i uploaded a Parados CPR to the M4, to avoid pressing F1
In CPR emulation mode, not everything is present, I probably should look into that, but if you just upload Parados ROM to the regular ROM board of M4, it should work just fine aswell.

Quote
Since i have no real Basic cartridge i cannot test another configuration. I read that M4Wifi does not like C4CPC...
That should be no problem, you can upload whatever roms you want to M4 to match any configuration. It only needs the ACID chip presence.
Title: Re: Amstrad CPC WiFi
Post by: angelcaio on 10:11, 08 April 18
 Hi. I have a small issue  with the M4 and a CPC464:
When I put the  switch in EXT, it works perfectly. But if I put it on USB position  and connect it to the charger (5V, 2A), the M4 turns on (blue LED) and on the cpc the red LED turns on, but there is no image on the screen (appears to be off) and when I press the DEL key the beep does not sound. In adcition, the M4 no conect to router.
Has this happened to someone else?
Thanks in advance.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:58, 08 April 18
@angelcaio (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1263)
Did you try to press M4 reset when the black screen appears?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:03, 08 April 18

A little progress on the Galaxy Board (M7 board) after collecting dust for a long time:
https://youtu.be/OEcl-EhEVE4 (https://youtu.be/OEcl-EhEVE4)


Basics are working.
RAM expansion & usb keyboard next.
Title: Re: Amstrad CPC WiFi
Post by: angelcaio on 19:08, 08 April 18
Quote from: Duke on 18:58, 08 April 18
@angelcaio (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1263)
Did you try to press M4 reset when the black screen appears?
Yes, but nothing happens. I have also tried to turn the cpc on and off.


Enviado desde mi iPad utilizando Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 19:34, 08 April 18
Awesome work, Duke!
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 23:16, 08 April 18
Quote from: Duke on 19:03, 08 April 18
A little progress on the Galaxy Board (M7 board) after collecting dust for a long time:
https://youtu.be/OEcl-EhEVE4 (https://youtu.be/OEcl-EhEVE4)


Basics are working.
RAM expansion & usb keyboard next.
This is LOVE!!!

So a Gx4000 with M7 and USB keyboard will be a great mini CPC

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 09:22, 09 April 18
Quote from: Duke on 19:03, 08 April 18
A little progress on the Galaxy Board (M7 board) after collecting dust for a long time:
https://youtu.be/OEcl-EhEVE4 (https://youtu.be/OEcl-EhEVE4)


Basics are working.
RAM expansion & usb keyboard next.


Oh wow.
I think I'll be dropping some cash on one of these when this goes on sale. 😃
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:20, 09 April 18
Woohoo, glad to see you have not forgotten the Galaxy board.
Really looking forward to purchasing a couple of those.
;D ;D

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 11:52, 10 April 18
At this place I want to say a big THANK YOU to Duke!!!  :) :) :)  The service of the M4 board is just super awesome and I really never encountered a better support at all. From my side Duke get's the great golden medal of best service and support!!!  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 13:02, 10 April 18
Quote from: GUNHED on 11:52, 10 April 18
At this place I want to say a big THANK YOU to Duke!!!  :) :) :)  The service of the M4 board is just super awesome and I really never encountered a better support at all. From my side Duke get's the great golden medal of best service and support!!!  :) :) :)


I gotta echo this sentiment. Duke has gone above and beyond the call of duty in terms of support for me this year, and he continues to make his product better than before.


Shit, I'm agreeing with TFM? Either I'm going soft or hell has frozen over. (Just kidding!)
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 14:05, 10 April 18
Indeed, the support is awesome besides the perfect hardware.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:17, 10 April 18
Quote from: GUNHED on 11:52, 10 April 18
At this place I want to say a big THANK YOU to Duke!!!  :) :) :)  The service of the M4 board is just super awesome and I really never encountered a better support at all. From my side Duke get's the great golden medal of best service and support!!!  :) :) :)
Couldn't agree more! Superb product and fantastic support!
Title: Re: Amstrad CPC WiFi
Post by: Jungsi on 09:32, 12 April 18
I've read about writing.DSK files back to disk with the M4....
Is there also a solution for the other way? making out of a 3'' disk a .DSK image saving on the M4.
This would be great to make backups of old disks
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:16, 12 April 18
Quote from: Jungsi on 09:32, 12 April 18
I've read about writing.DSK files back to disk with the M4....
Is there also a solution for the other way? making out of a 3'' disk a .DSK image saving on the M4.
This would be great to make backups of old disks

Try taking a look at the program from @HAL 6128 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=365) here : http://www.cpcwiki.eu/forum/applications/dsk-to-floppy-via-m4-board/

Just exchange two lines in the basic program and you can reverse process.

Still this will just work with standard data and system format disks.

Ideally you would create two blank dsk  images (one system and one data) and make a copy of it depending on the choice of system/data, to the desired new name, before overwriting it with the data from the floppy.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:19, 12 April 18
Quite a few have asked for 3D printed case for later revisions of M4 board (v2.4 and v2.5).
Patrick (thanks!) has kindly shared this one for IDC connector:
https://www.thingiverse.com/thing:2858771
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 10:56, 30 April 18
Hi again Duke .. i
I am trying to make the Z-MEM board work with the M4 and it is impossible for me .. I have moved all the jumpers that come in the Z-mem and I do not achieve anything
EDIT: fixed ...  bad connection .. it's my fault ... working fine now hehe

Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 15:56, 01 May 18
Quote from: Duke on 20:19, 12 April 18
Quite a few have asked for 3D printed case for later revisions of M4 board (v2.4 and v2.5).
Patrick (thanks!) has kindly shared this one for IDC connector:
https://www.thingiverse.com/thing:2858771
I got it printed and find it too snug to fit the m4. Back to a bare board for me.

Sent from my ONEPLUS 3t using Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: voXfReaX on 14:46, 02 May 18
Hello to everyone,


I have ordered a M4 board (v2.5), which can be adapted to work on both CPC old and CPC+ models.


Is there any printed 3D case available for the aforementioned M4 version OR the ones already available fit it as well?


Thanks,
Dimitris/ Voxy


Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:48, 02 May 18
Yes, just look 3 posts before yours.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:26, 02 May 18
Quote from: CraigsBar on 15:56, 01 May 18
I got it printed and find it too snug to fit the m4. Back to a bare board for me.
Didn't try to print it myself yet. Do you think it would help scaling it a couple of percent? Most slicers will let you scale it when printing.
Title: Re: Amstrad CPC WiFi
Post by: voXfReaX on 19:41, 02 May 18
Quote from: GUNHED on 16:48, 02 May 18
Yes, just look 3 posts before yours.  :)


Oops... I should arrange an appointment with an eye doctor pretty soon. Thanks  :)
Title: Re: Amstrad CPC WiFi
Post by: nonom on 21:12, 02 May 18
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) I'm interested, please send me a pm, if you are interested.

Thanks.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:02, 10 May 18

Quote from: Duke on 20:22, 24 October 17
xfer -u 10.0.0.38 $(NAME_PART).bin / 2 1000 1000
xfer -x 10.0.0.38 /$(NAME_PART).bin
Hi Duke,
just tried your little toolchain with RASM. What is the option "2" for uploading a file? 0=without header 1=with ASCII header 2=?.
When I try to execute a simple file like
org #8000
ld a,64
call #bb5a
ret

I do:
xfer -u 10.0.0.38 $(NAME_PART).bin / 2 8000 8000
[/size]
and then
[/size]
[/size]
xfer -x 10.0.0.38 /$(NAME_PART).bin
[/size]
But the CPC resets and the file isn't executed?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:34, 10 May 18
Quote from: HAL 6128 on 20:02, 10 May 18
just tried your little toolchain with RASM. What is the option "2" for uploading a file? 0=without header 1=with ASCII header 2=?.
Option 2 is for adding a binary header. (see https://github.com/M4Duke/cpcxfer and make sure you are using v2.0.3 for cpcxfer)
Quote
When I try to execute a simple file like
org #8000
ld a,64
call #bb5a
ret


Try adding jp &bb18 instead of the ret (so it waits for a keypress before returning to nothing).

The execution of that would be same as run"somefile.bin" on the CPC and a direct return would make the CPC reset.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 07:52, 11 May 18
Thanks Duke.
I missed the 2.0.3. version because I justed looked on the Wiki page.


I will give it a try.

Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 14:46, 11 May 18

hmmm, still doesn't work...
The CPC resets with the result below.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:59, 11 May 18
Quote from: HAL 6128 on 14:46, 11 May 18
hmmm, still doesn't work...
The CPC resets with the result below.

Works fine here, with your example

org 0x8000
ld a,65
call 0xbb5a
jp 0xbb18


But you are running 2.0.4 beta 10, maybe there's a bug in it (not tested).
Can you try release version 2.0.4 ?

NPP_EXEC: "rasm"
CD: C:\rasm
Current directory: C:\rasm
rasm hal.s -o  hal
Process started >>>
Pre-processing [hal.s]
Assembling
Write binary file hal.bin (8 bytes)
<<< Process finished. (Exit code 0)
================ READY ================

CD: C:\rasm
Current directory: C:\rasm
xfer -u 10.0.0.38 hal.bin / 2 8000 8000
Process started >>>
Upload OK!
<<< Process finished. (Exit code 0)
xfer -x 10.0.0.38 /hal.bin
Process started >>>
Running /hal.bin
<<< Process finished. (Exit code 0)
================ READY ================
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 09:36, 12 May 18

I found the reason: it's not the version, it is the folders decleration with xfer -u
If I do all the stuff in the roots folder then everything is fine.


By the way: the BIN file is transfered properly (in every version and every folder) onto the SD card. (If I run the code manually with "memory &7fff:load "test.bin":call &8000" it works as expected).


The only thing what doesn't work is running the file via "xfer -x ..." in a SUB-folder.


HAL6128
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:04, 12 May 18
Quote from: HAL 6128 on 09:36, 12 May 18
The only thing what doesn't work is running the file via "xfer -x ..." in a SUB-folder.

I see. Will check it out soon, thanks.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 13:21, 27 May 18
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
One question

is possible with xfer to load the binary on a remote cpc (with internet public ip)?
Is necessary to open ports?
Thankyou!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:13, 27 May 18
Quote from: Joseman on 13:21, 27 May 18
is possible with xfer to load the binary on a remote cpc (with internet public ip)?
Is necessary to open ports?
Yes, you will need to forward port 80 on your router to your CPC, then it should work fine with your external ip over the internet.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 22:13, 09 June 18
Hi again @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

Thankyou for all your help!
I'm doing a loader for a game that makes savegames to disk.
are the cas out routines of the firmware working on the M4?

thankyou!!
P.S. is the buffer of 2k used on disc/amsdos or the data is directly writed on floppy?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:55, 09 June 18
No luck with Shinobi as this CPC has no disk drive.
Tried to make the tape version to .dsk with 100% success... not  :picard:
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 23:05, 09 June 18
Quote from: VincentGR on 22:55, 09 June 18
No luck with Shinobi as this CPC has no disk drive.
Tried to make the tape version to .dsk with 100% success... not  :picard:
I made modifications to a cracked shinobi to work on m4 some time ago...
do you want to try it?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 00:43, 10 June 18
Quote from: Joseman on 23:05, 09 June 18
I made modifications to a cracked shinobi to work on m4 some time ago...
do you want to try it?


YES!
Please.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 00:55, 10 June 18
Quote from: VincentGR on 00:43, 10 June 18

YES!
Please.
Try it
It was a quick little hack, i don't remember exactly what i'd done
http://s000.tinyupload.com/index.php?file_id=78206317051926767285
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:21, 10 June 18
Quote from: Joseman on 22:13, 09 June 18
I'm doing a loader for a game that makes savegames to disk.
are the cas out routines of the firmware working on the M4?
Yes, as long as you are not inside a DSK.
Quote
P.S. is the buffer of 2k used on disc/amsdos or the data is directly writed on floppy?
It is used for cas_out_char.

Quote from: VincentGR on 22:55, 09 June 18
No luck with Shinobi as this CPC has no disk drive.
Tried to make the tape version to .dsk with 100% success... not  :picard:

The XOR cracked version, runs fine. Both 64KB and 128KB version.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 10:48, 10 June 18
Thank you very much for the file!


Duke, I tried all versions from cpc power and whatever was on my HDD with no results.


I have a Bruce Lee version that works if anyone wants it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:52, 10 June 18
Quote from: VincentGR on 10:48, 10 June 18
Duke, I tried all versions from cpc power and whatever was on my HDD with no results.
You must set M4 rom to 7 as xors crack re-init rom 7. If your CPC cant replace rom7 (regular 6128), use the modified lowerrom from here: http://www.cpcwiki.eu/index.php/M4_Board
Almost all games should run just fine, once you use that or set M7 to rom 7 directly.
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 10:54, 10 June 18
Setting the M4 to ROM 7 and ParaDOS to ROM 6 has given me the best results so far.
Give that a go, maybe?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 11:04, 10 June 18
So, I've got the Lower6128_mod.zip and I must upload it to slot 7?


I don't use parados as I have bugs with some games and discology, this cpc will get a drive one day.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 11:05, 10 June 18
never mind, I saw the picture  :picard:
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 11:17, 10 June 18
Quote from: VincentGR on 11:04, 10 June 18
I don't use parados as I have bugs with some games and discology, this cpc will get a drive one day.
Yeah I've noticed that with ParaDOS, alright. It hates Discology with a passion! 😂
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 20:15, 10 June 18
Quote from: Duke on 05:21, 10 June 18
It is used for cas_out_char.
Do you mean that the 2k buffer is used on the m4 implementation of cas_out_char or in amsdos is used too?
Then if i don't undersand wrong the "cas out direct" command doesn't use the 2k buffer nor on the m4 nor on amsdos?
if it is like i saying, is better to use cas out direct hands down!!



Title: Re: Amstrad CPC WiFi
Post by: Duke on 04:50, 11 June 18
Quote from: Joseman on 20:15, 10 June 18
Do you mean that the 2k buffer is used on the m4 implementation of cas_out_char or in amsdos is used too?
It used similar in both Amsdos and M4 dos.
Quote
Then if i don't undersand wrong the "cas out direct" command doesn't use the 2k buffer nor on the m4 nor on amsdos?
The 2K buffer can be NULL when using "cas out direct". It is not used internally by M4 dos, I don't think by amsdos either.
Quote
if it is like i saying, is better to use cas out direct hands down!!
Both have their use. In normal operation "cas out char" is slow, but you can use the 2K buffer and pointer tricks for fast operation.
Ie. see this example I made using cas in char/cas out char to copy a file quick (this works for AMSDOS and M4 dos):
https://github.com/M4Duke/M4examples/blob/master/fastcopy.s (https://github.com/M4Duke/M4examples/blob/master/fastcopy.s)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:01, 12 June 18
Quote from: Duke on 04:50, 11 June 18
Ie. see this example I made using cas in char/cas out char to copy a file quick (this works for AMSDOS and M4 dos):
https://github.com/M4Duke/M4examples/blob/master/fastcopy.s (https://github.com/M4Duke/M4examples/blob/master/fastcopy.s)
I see that you're dealing with the header of the file... i suppose that with cas out direct there isn't need to do this...
in fact, if i only want to save hex numbers (and retrieve it later), can i use the ASCII type file (&16)? if i didn't undertand wrong there is no header with this type of files... or i can't use ASCII type file if there isn't really ASCII hex numbers?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:43, 12 June 18
Quote from: Joseman on 12:01, 12 June 18
I see that you're dealing with the header of the file... i suppose that with cas out direct there isn't need to do this...
in fact, if i only want to save hex numbers (and retrieve it later), can i use the ASCII type file (&16)? if i didn't undertand wrong there is no header with this type of files... or i can't use ASCII type file if there isn't really ASCII hex numbers?
With "cas out direct" a header will be added automatically (even if using ascii filetype).
Using "cas out char" you can make a headerless file, technically you could write anything (non ascii) aswell, you will have to deal with some escape character, which will report eof file, even if its not, when reading it back.

Some examples here, from the wiki:
http://www.cpcwiki.eu/index.php/Programming:Saving_a_file
http://www.cpcwiki.eu/index.php/Programming:An_example_to_write_a_file_byte-by-byte

Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 13:24, 12 June 18
Can a big file (example: some megabytes long wav file) be read by this or other way?

I want to play with some arduino SPI toys from the MiniBooster and push some big files from the M4

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: SOS on 14:05, 12 June 18
Quote from: KaosOverride on 13:24, 12 June 18
Can a big file (example: some megabytes long wav file) be read by this way?
Yes, tested with YANCC  :D
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 08:52, 13 June 18
Quote from: KaosOverride on 13:24, 12 June 18
Can a big file (example: some megabytes long wav file) be read by this or other way?
I want to play with some arduino SPI toys from the MiniBooster and push some big files from the M4
...yes, the limit is the capacity of the media. I've copied a 160 kByte file from M4 to disc for testing purposes in the regular firmware speed expectation for the floppy. With "cas in/out char" you can copy any file without changing it (...header).
Title: Re: Amstrad CPC WiFi
Post by: opossum on 08:57, 13 June 18
 Anyone got R-Type 128k working on the M4 board yet?
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 09:05, 13 June 18
Thanks!! I will have a look!!

EDIT:  http://www.cpcwiki.eu/index.php/Programming%3AAn_example_to_read_a_file_byte-by-byte

Great! I was worried about binary files and EOF chars... Looks it is well handled!!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 09:34, 28 June 18
Since the firmware haven't got an update since a while, which version do you prefer. The full release or the beta-version? There was some confusing discussion here before.
Title: Re: Amstrad CPC WiFi
Post by: ibisum on 10:10, 30 June 18
Just wanted to tune in and say I received my M4 board this week and got it up and running last night for the first time - spent a few hours enjoying all the good ol'  memories, and I have to say that having the Amstrad on the Internet is a pure and utter joy.


The only issue I have is that I was not able to get SymbOS booted for some reason ..  I guess I'll have another go at it soon, but in case anyone has any hints/tips, I'm all ears.  I downloaded the ROM version of SymbOS and attempted to set each ROM file in slots 1 - 4 (leaving 0), but this didn't produce anything bootable - just a black screen.  Does it take some minutes to boot, or have I just not gotten the configuration right?  Either way, playing with SymbOS is the reason I got the M4 board, so I hope to debug this soon ..


Thanks again for this great peripheral - it has made my Amstrad hacking very fun and I look forward to my next session!

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:31, 30 June 18
Quote from: ibisum on 10:10, 30 June 18
The only issue I have is that I was not able to get SymbOS booted for some reason ..  I guess I'll have another go at it soon, but in case anyone has any hints/tips, I'm all ears.  I downloaded the ROM version of SymbOS and attempted to set each ROM file in slots 1 - 4 (leaving 0), but this didn't produce anything bootable - just a black screen.  Does it take some minutes to boot, or have I just not gotten the configuration right?  Either way, playing with SymbOS is the reason I got the M4 board, so I hope to debug this soon ..
Rom version of SymbOS is not intended for M4 board.
Download latest version for CPC from here:
http://www.symbos.de/download.htm

Inside the zip is another zip for M4 board. Unpack it to root of microSD and type run"sym
Title: Re: Amstrad CPC WiFi
Post by: ibisum on 10:33, 30 June 18
Yeah, I did that (unzipped  the M4 board .zip to root) but still no dice.  I'll play with it a bit more in the next few days - maybe it didn't like having to operate on an SD card that was formatted on MacOS?  I'll get a Windows machine around to do a FAT32 format soon enough...
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 10:35, 30 June 18
M4 version works for me, can't do anything with that as I need some ram expansion  :-X
Title: Re: Amstrad CPC WiFi
Post by: ibisum on 10:37, 30 June 18
Ah, do you need RAM expansion for SymbOS?  Didn't know that .. thought it ran fine on a stock CPC6128 .. guess I should read the docs, wtf ..
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 10:55, 30 June 18
It loads, but I cannot run anything in there
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 09:16, 03 July 18
Unfortunately with the netdaemon and new features, Symbos 3.0 needs more ram. you can delete the symbos.ini file to free some memory (desktop image, net daemon autoruning...) but not sure if the M4 SD drive is autoconfigured. Maybe you need to copy the control.exe for the control panel to drive A: to configure the microsSD to C: drive and save settings... This will for sure free some mem but not much.

Or maybe someone can take off the desktop image , delete the netdaemon autorun setting and save the .ini for you

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 13:20, 07 July 18
My M4 seems a bit poorly today, dust in the expansion connector perhaps?
It's only sometimes recognising folders as being there.

E.g. |cd,"Games" - works fine this time, takes me to the games folder
|cd,"2017" - Unknown directory - but the folder is there
cat - Shows me the files in the current folder, including '2017' and others
|cd,"2017" - Unknown command
|m4help - Unknown command

I try a reset and it can't even cd into the games folder any more. Any ideas?


EDIT: Just updated the firmware from 2.0 to 2.04 - seems better so far *fingers crossed*
EDIT 2: I can't get it to start a new line in the above text, even when I whack enter half a dozen times.
EDIT 3: Fixed, but I had to used 'Toggle view' and edit from there.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:47, 07 July 18
Dear M4 Users,

Usually the great M4 ROM is located at slot 6 or 7. Is there somebody using the M4 ROM in another slot?

The reason I ask is because I want to code a very quick algorithm to detect the ROM number of the M4 ROM.

Any comment would be appreciated  :)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 15:01, 07 July 18
Quote from: GUNHED on 13:47, 07 July 18
Dear M4 Users,

Usually the great M4 ROM is located at slot 6 or 7. Is there somebody using the M4 ROM in another slot?

The reason I ask is because I want to code a very quick algorithm to detect the ROM number of the M4 ROM.

Any comment would be appreciated  :)
It can be at other slots but the reason of 7 or 6 is to replace amsdos at slot 7 when a 464 or any other model which let deactivate internal amsdos like the plus and few 6128, or slot 6 when you can't deal with internal amsdos but you can use an alternative patched low rom firmware to default disc access to rom 6 and not 7. This gives you the most compatible settings to mimic the disc drive

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: baldrick9 on 10:32, 08 July 18
Got my M4 board the other day and have finally had a chance to try it out.
Great work Duke, this is very awesome.


I got the filesystem working very quickly but have spent some hours trying to get the Wifi to connect.
To cut a long story short, after reading some posts on here, I eventually discovered it connects OK to a cheap repeater I wasn't using,
but it refuses to connect to my OpenWrt router.


Just thought someone else might find it useful. If you really can't get it to connect, try connecting to something else.
It seems to work fine now. I've been able to change settings and do all the great stuff via web interface.


Much thanks to Duke.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:26, 08 July 18
@Skunkfish (http://www.cpcwiki.eu/forum/index.php?action=profile;u=348)
All sorted now ?

@baldrick9 (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2679)
Thanks for the feedback. Interesting if its a general problem with openwrt. I personally use dd-wrt on both my routers, but I can try openwrt if others have similar issue.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:50, 08 July 18
Quote from: GUNHED on 13:47, 07 July 18
Dear M4 Users,

Usually the great M4 ROM is located at slot 6 or 7. Is there somebody using the M4 ROM in another slot?

The reason I ask is because I want to code a very quick algorithm to detect the ROM number of the M4 ROM.

Any comment would be appreciated  :)
475 users so far and only 1 reply  - Guess it's summer time :)
Anyway, yes most users will have it at either 6 or 7. Maybe you can scan those for first, for fast detection for the majority of users and 0 to 31 (or more) if it fails to detect?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:46, 08 July 18
Quote from: Duke on 17:50, 08 July 18
475 users so far and only 1 reply  - Guess it's summer time :)
Anyway, yes most users will have it at either 6 or 7. Maybe you can scan those for first, for fast detection for the majority of users and 0 to 31 (or more) if it fails to detect?
Oh great! Nearly 500 users! This is the very best selling CPC expansion since 25 years or more!!! Congratulations!  :) :) :)
Ok, let's assume that everybody is using 6 or 7, since there was no report of using another slot.  ;) :) :)
This way I need to use only one bit to tell where the M4 ROM is located, and I'm running out of bits... ;-)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:58, 08 July 18
Quote from: GUNHED on 13:47, 07 July 18
Dear M4 Users,
Usually the great M4 ROM is located at slot 6 or 7. Is there somebody using the M4 ROM in another slot?
The reason I ask is because I want to code a very quick algorithm to detect the ROM number of the M4 ROM.
Any comment would be appreciated  :)

I'm using it at ROM slot 5. Do you need some help with your algorithm?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:08, 08 July 18
Quote from: HAL 6128 on 20:58, 08 July 18
I'm using it at ROM slot 5. Do you need some help with your algorithm?


Thanks for your answer.  :)  Would it be problematic for you to use it at 6, 7? Would there be a reason not to pick 6 or 7?  :)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 21:22, 08 July 18
Quote from: GUNHED on 21:08, 08 July 18

Thanks for your answer.  :)  Would it be problematic for you to use it at 6, 7? Would there be a reason not to pick 6 or 7?  :)
Maybe BonnyDos or AcmeDos at slot 6 for the X-Mass or Symbiface 2

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: SOS on 07:47, 09 July 18
Quote from: KaosOverride on 21:22, 08 July 18
Maybe BonnyDos or AcmeDos at slot 6 for the X-Mass or Symbiface 2
Or M4DOS at ROM7 and CubeIOS at ROM7 too, so you have on the XMASS an additional support of "ROM7-Init"-Games (like XOR-Cracks)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 09:24, 09 July 18
Quote from: GUNHED on 21:08, 08 July 18

Thanks for your answer.  :)  Would it be problematic for you to use it at 6, 7? Would there be a reason not to pick 6 or 7?  :)
Nor ROM slot 6 is a problem and as far as I remember ROM Slot 7 neither (I''ve put PARADOS ROM on 7).
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 22:30, 09 July 18
Hello dear M4 users... Today I used the commands !ROMUP and !ROMUPD (latest beta firmware update). However they don't work. Sometimes they can load one ROM from SD card, but trying to use the command a 2nd time already produces a "Unknown command". When using disc it shows an error too.


Do you have problems too with both commends? Is there a firmware version with which they work?



Title: Re: Amstrad CPC WiFi
Post by: remax on 16:49, 13 July 18
I realised that the reset button on my M4 Board as fallen off  :(


The card works perfectly but it other me a bit...


Can it have bad consequences for the good operation of the board ?
Title: Re: Amstrad CPC WiFi
Post by: radu14m on 20:14, 13 July 18
can this board be adapted to work on Joyce ? :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:57, 14 July 18
Quote from: GUNHED on 22:30, 09 July 18
Today I used the commands !ROMUP and !ROMUPD (latest beta firmware update). However they don't work. Sometimes they can load one ROM from SD card, but trying to use the command a 2nd time already produces a "Unknown command". When using disc it shows an error too.
|romup can only be used from SD card filesystem.

Can you provide an example of the "Unknown command" after uploading?

Uploading multiple roms, its quickest to wait with |romupd, until all roms are uploaded.

Quote from: remax on 16:49, 13 July 18
Can it have bad consequences for the good operation of the board ?
It should be easy to solder the switch back on, but you are of course welcome to send it back.

It will not have any bad consequences for operating the board (powercycle the cpc or WEB interface option "M4 reset" will do the same ).
Quote from: radu14m on 20:14, 13 July 18
can this board be adapted to work on Joyce ? :)
A replacement rom would need to be written atleast & I/O ports changed in the firmware. I know nothing about Joyce, so cannot help.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:17, 14 July 18
Quote from: Duke on 06:57, 14 July 18
|romup can only be used from SD card filesystem.
Can you provide an example of the "Unknown command" after uploading?

Thank you for coming back to this topic.  :)

So not from disc?! Ah, that explains it. I did this:

!DISC
!ROMUPD,"maxam.rom",4
(worked once, means ROM got installed, didn't work many times, but no error message)
!ROMUPD,"maxam.rom",4

Entering the command the 2nd time always did lead to the error "Unknown command", like something corrupted the RSX command chain, but I did all the testing after !DISC. I will try for DSK's / files on SD cards now and report how it works.  :)
Title: Re: Amstrad CPC WiFi
Post by: LambdaMikel on 05:33, 21 July 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I am running 2.0.4 firmware, and I have a problem running "Roland in Space" from dsk:

http://www.cpcwiki.eu/imgs/0/0e/Roland_in_Space_%28disc%29_%28Amsoft%29.zip (http://www.cpcwiki.eu/imgs/0/0e/Roland_in_Space_%28disc%29_%28Amsoft%29.zip)

I am using DSK A from the zip. With a$="rolspacea.dsk" (I renamed the "Side A" dsk file) , |cd,@a$, run"disc", after the "Are you using a green screen - Y / N " question (Y or N), the cassette interface relais clicks, and then the CPC basically stalls. Usually, after loading, you can hit space and the game starts. However, doesn't work with M4, space doesn't advance the game, and if I hit ESC, the CPC resets. I believe the relais click is a bad sign that somethign goes wrong on the bus. Indeed, Roladn in Space checks if the speech synth is present (SSA1 / DKtronics). It seems that this is causing a headache for M4. Notice that M4 is the only expansion being present, I got this with MotherX4 and LambdaBoard. And on 6128 and 464. Same behavior. I also tried with CPC supplied power to M4 and USB power.

I have no problem loading the same DSK file with DDI3 and speech synthesizer connected, but it "stalls" / resets the CPC with M4 and Roland in Space.

So, something is wrong....

On a second though - maybe it is trying to continue to load from tape?? In that case, how do I prevent that with M4? Sorry if this is a stupid  question.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:38, 21 July 18
Quote from: LambdaMikel on 05:33, 21 July 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I am running 2.0.4 firmware, and I have a problem running "Roland in Space" from dsk:

http://www.cpcwiki.eu/imgs/0/0e/Roland_in_Space_%28disc%29_%28Amsoft%29.zip (http://www.cpcwiki.eu/imgs/0/0e/Roland_in_Space_%28disc%29_%28Amsoft%29.zip)

Same thing happens when I try it, maybe there is some kind of disc protection on it, I didn't check (yet).
However the cracked version runs just fine:
http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=1836

Also you should really upload "Basic 1.1" + lowerrom, so you can use the RSX commands without variables :)
Title: Re: Amstrad CPC WiFi
Post by: LambdaMikel on 00:41, 22 July 18
Quote from: Duke on 07:38, 21 July 18
Same thing happens when I try it, maybe there is some kind of disc protection on it, I didn't check (yet).
Maybe something to fix for the next firmware update  ;) DDI3 doesn't have that issue (same DSK...)
Any idea why the relais turns on?

Yeah, I have BASIC 1.1 on my 6128, but the issue with "official" Roland in Space is the same there  ;)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:20, 22 July 18
Quote from: LambdaMikel on 00:41, 22 July 18
Maybe something to fix for the next firmware update  ;) DDI3 doesn't have that issue (same DSK...)

M4 doesn't emulate the FDC, so any direct I/O access to the FDC will fail, hence why the cracked versions probably work. So it most likely will not be fixable.

EDIT:

Quick disassembly of Roland In Space, shows that it at startup re-initializes roms, and searches for RSX commands 0x8 (get drive status) and "|TAPE", it seems for M4 it changes to tape and doesn't flip back to disc, will investigate and fix.

EDIT2:

Fixed, it checks if the response of "get drive status" has drive ready bit set, otherwise it switches to tape.
Too little of a fix to release a new firmware for, I think... Will be included when there is more changes.
Title: Re: Amstrad CPC WiFi
Post by: LambdaMikel on 08:56, 22 July 18
PS Same effect also with Alex Higgins World Pool...
Title: Re: Amstrad CPC WiFi
Post by: LambdaMikel on 02:43, 23 July 18
Quote from: Duke on 07:38, 21 July 18
However the cracked version runs just fine:
http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=1836 (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=1836)
I tried both the "original" first version there, and disk a from the spanish version there,
no difference. Same as the ones from the Wiki here. Relais goes on, and that's it then.

Seems you found a different version that worked? Anyhow, not important if you are
going to fix it. As I said, same defect also with other Amsoft titles, e.g., "Alex Higgins Word Pool"series.


Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:43, 23 July 18
Quote from: LambdaMikel on 02:43, 23 July 18
I tried both the "original" first version there, and disk a from the spanish version there,
no difference. Same as the ones from the Wiki here. Relais goes on, and that's it then.

Seems you found a different version that worked? Anyhow, not important if you are
going to fix it. As I said, same defect also with other Amsoft titles, e.g., "Alex Higgins Word Pool"series.

Yes, when you click on that link to CPC-power, you will have to press the disc (red) icon with "crack" written on it (see attached icon).
There is two cracked versions and both work.
Anyway, since you found more, here is the fixed firmware for that issue: http://spinpoint.org/cpc/M4FIRM_v205b1_fix_amsoft.zip
Please let me know if there is still problems with those other games.
Thanks for the feedback!

Title: Re: Amstrad CPC WiFi
Post by: LambdaMikel on 07:47, 23 July 18
Quote from: Duke on 07:43, 23 July 18
Yes, when you click on that link to CPC-power, you will have to press the disc (red) icon with "crack" written on it (see attached icon).
There is two cracked versions and both work.
Anyway, since you found more, here is the fixed firmware for that issue: http://spinpoint.org/cpc/M4FIRM_v205b1_fix_amsoft.zip (http://spinpoint.org/cpc/M4FIRM_v205b1_fix_amsoft.zip)
Please let me know if there is still problems with those other games.
Thanks for the feedback!
Gosh, now I feel completely stupid that I didn't get the thing with the "Crack!" button!!   ??? :laugh:

Also for the firmware - awesome, will check it out soon. Thanks a lot!  :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:23, 24 July 18
Hi, I updated the firmware now it tells me "No AP found" and I can't connect to a network any longer. Did somebody else encounter a similar problem?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:56, 24 July 18
Quote from: GUNHED on 14:23, 24 July 18
Hi, I updated the firmware now it tells me "No AP found" and I can't connect to a network any longer. Did somebody else encounter a similar problem?
Yes, seems your are the 3rd person which have problems with the updated esp sdk.
To fix, copy ESPFIRM.BIN from http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip) (using old esp sdk) to the microSD and power cycle CPC/M4, it should be back again.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:57, 24 July 18
Great! This works verified!  :)
Title: Re: Amstrad CPC WiFi
Post by: dragon on 17:28, 27 July 18
Why m4 not work with larger/big ssid?.
All other devices mobiles,android devices,consoles etc etc work with it without problems, but m4 return not ap found.
example to test:  33474d7736633b29355b4f69223e675d
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:57, 28 July 18
Try this update...

Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:35, 28 July 18
@dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251) will test soon (tm) and fix if reproducible.
Title: Re: Amstrad CPC WiFi
Post by: dragon on 10:12, 29 July 18
Thanks


It should be easy, use the max lenght in ssid and pasword wpa2 aes.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:52, 30 July 18
For @dragon (http://www.cpcwiki.eu/forum/index.php?action=profile;u=251) : http://www.spinpoint.org/cpc/M4FIRM_v205b1_fix_amsoft_fix_ssid.zip

Fix SSID connect so full 32 characters can be used.

Title: Re: Amstrad CPC WiFi
Post by: dragon on 17:52, 31 July 18
Thanks! God to know i don't need change 10 wifi devices XD.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 00:15, 02 August 18
My M4 is not working fine this week. I updated to the lasts firm files but I can't get it working properly. I think there are some RSX not available for some reason I don't know. This picture is from HELP command of Utopia ROM.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:29, 02 August 18
Quote from: MiguelSky on 00:15, 02 August 18
My M4 is not working fine this week. I updated to the lasts firm files but I can't get it working properly. I think there are some RSX not available for some reason I don't know. This picture is from HELP command of Utopia ROM.
Hmmm, maybe edge connector issue? as yes clearly some RSX are missing, when I try utopia |help I get all the rsx commands, similar to |m4help.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:39, 02 August 18
From my experience I can tell that Utopia makes problems with some other ROMs. Maybe one can try to deactivate it and see if this helps.  :)
Title: Re: Amstrad CPC WiFi
Post by: MikeSDK on 16:26, 02 August 18
I have the curious problem that when I install a ROM to apparently any slot the M4 forgets it's there and all commands no longer function. After a reset the ROM slot is empty and M4 functions fine again.

I have also - so far - been unable to connect the WIFI to my network but that's a separate issue and probably to do with my router setup.
I am using the latest M4 and ESP firmware freshly installed from the website.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:52, 02 August 18
Quote from: MikeSDK on 16:26, 02 August 18
I have the curious problem that when I install a ROM to apparently any slot the M4 forgets it's there and all commands no longer function. After a reset the ROM slot is empty and M4 functions fine again.

Sounds odd, is your microSD formatted to FAT32 ?

What commands do you use for example?

Quote
I have also - so far - been unable to connect the WIFI to my network but that's a separate issue and probably to do with my router setup.
I am using the latest M4 and ESP firmware freshly installed from the website.

A few people have had issues with the WiFi since I updated the ESP SDK, you can however go back to old one, with this firmware:
http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip

Maybe not your issue.
Title: Re: Amstrad CPC WiFi
Post by: MikeSDK on 18:21, 02 August 18
Quote from: Duke on 17:52, 02 August 18
Sounds odd, is your microSD formatted to FAT32 ?

What commands do you use for example?

A few people have had issues with the WiFi since I updated the ESP SDK, you can however go back to old one, with this firmware:
http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b1.zip)

Maybe not your issue.
Yeah SD is FAT32.. The disk operation part of it is working beautifullly.
I used |romup,"romname.rom",<rom slot> and no, not slot 6 :)
it seems to do it, then immediately after all M4 commands stop working.
and I can try stepping one version back
EDIT:Tried the version you linked, same result.. the moment I put a rom in a slot M4's commands stop working.
All the ROMs I have tried to install have been verified working on Bryce's MegaFlash so it's not that causing it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:42, 02 August 18
Quote from: MikeSDK on 18:21, 02 August 18
Yeah SD is FAT32.. The disk operation part of it is working beautifullly.
Good,
Quote
I used |romup,"romname.rom",<rom slot> and no, not slot 6 :)
And also not rom slot 0 (or you'd be replacing basic).
And if you pick above rom 7 on a 464 it would not be initialized or rom 15 on a 664/6128, unless using special roms.
Quote
it seems to do it, then immediately after all M4 commands stop working.
It shouldn't.
It wont see the rom until you either do |ROMUPD or power cycle the CPC.

Have you tried to use |m4help to list roms after a power cycle?

Quote
EDIT:Tried the version you linked, same result.. the moment I put a rom in a slot M4's commands stop working.
All the ROMs I have tried to install have been verified working on Bryce's MegaFlash so it's not that causing it.

Can you attach any one of them here, so I can test? - Maybe there's something with the header....

EDIT:
Maybe you are loading them from a floppy disk ?
For the |romup command they have to be on the microSD card.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 12:53, 03 August 18
Quote from: MikeSDK on 18:21, 02 August 18
I used |romup,"romname.rom",<rom slot> and no, not slot 6 :)
it seems to do it, then immediately after all M4 commands stop working.


Well, I made the same experience, Duke pointed out that some commands only work from SD card not from disc. Maybe this helps you a bit.

Title: Re: Amstrad CPC WiFi
Post by: SOS on 17:57, 03 August 18
Quote from: MikeSDK on 18:21, 02 August 18
Yeah SD is FAT32..
Your SD-Card is fresh-formatted? (if not, please try with a fresh formatted one)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 18:54, 03 August 18
Quote from: SOS on 17:57, 03 August 18
Your SD-Card is fresh-formatted? (if not, please try with a fresh formatted one)
Oh yes, accesing some file after copying a full gameset+symbos+more shit to the SD card makes the latest files unreadable...

But SD is ok when again at the PC...

I have tested with some SDs... 8gb, 16gb...

If a fresh formated SD works ok, then the file access fail, the RSX unloaded... Duke, could be some kind of internal overflow?

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: SOS on 19:12, 03 August 18
Quote from: KaosOverride on 18:54, 03 August 18
Oh yes, accesing some file after copying a full gameset+symbos+more shit to the SD card makes the latest files unreadable...

But SD is ok when again at the PC...
Hehe, i've seen that during the development of my FAT32 ROM.
Some variables i've cut down to 16 Bit, instead of 28 Bit and i doesnt implement 32 Bit-arithmetic correctly :o
=> Strange things happens

I think, Duke has still a bug in his M4-Driver  ;)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 19:33, 03 August 18
I don't reach to the first 1gb and have the bug. Don't know if is for file total count or what. I use most Amsdos loose file than DSK "containers".

Duke, I can prepare a bugged SD so you can make a debug firmware version like the one that wrote the logs at the SD (but that will fail???)

If file logging fails, them other way to debug is to enable a simple echo server at the M4 so I can telnet from PC and the board just writes to the socket the log events????

Enviado desde mi SM-G950F mediante Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:54, 03 August 18
Quote from: KaosOverride on 19:33, 03 August 18
Duke, I can prepare a bugged SD so you can make a debug firmware version like the one that wrote the logs at the SD (but that will fail???)
Thanks, but I did manage to reproduce the issue with an image from SOS. However I didn't find the bug quickly and "forgot" about it. I use printf via the serial port btw. (TX/RX <-> USB 3.3V serial port).

Will get back to it.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 20:00, 03 August 18
Excellent, thanks a lot!!

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 02:50, 04 August 18
Quote from: Duke on 06:29, 02 August 18
Hmmm, maybe edge connector issue? as yes clearly some RSX are missing, when I try utopia |help I get all the rsx commands, similar to |m4help.
Well, I made a cleaning yesterday but it didn't improved. A while ago, after reading the most recent messages, I tried another SDCard and I'm afraid it finally has died  :'(  : it restarted once without showing the M4 message but it doesn't start anymore. Aparently, it starts as usual (a green blink and then fixed blue) but the CPC doesn't start. My CPC seems to work fine without my poor M4.


Is there any testing or trouble shooting to do?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:41, 04 August 18
Quote from: MiguelSky on 02:50, 04 August 18
Well, I made a cleaning yesterday but it didn't improved. A while ago, after reading the most recent messages, I tried another SDCard and I'm afraid it finally has died  :'(  : it restarted once without showing the M4 message but it doesn't start anymore. Aparently, it starts as usual (a green blink and then fixed blue) but the CPC doesn't start. My CPC seems to work fine without my poor M4.


Is there any testing or trouble shooting to do?
Yes. Download http://www.spinpoint.org/cpc/m4diag5.zip and unpack "M4FIRM.BIN" + "ESPFIRM.BIN" to root of the microSD, power on the M4 with the microSD inserted and let it run for 3-4 mins.
Afterwards there should be a file called "report.txt" in the root directory, if the file contains ESP SR 0xFF endless, another ESP flashchip is dead and you will need to return it to me for replacement if not send/paste the contents of report.txt
Title: Re: Amstrad CPC WiFi
Post by: MikeSDK on 09:17, 04 August 18
Quote from: Duke on 19:42, 02 August 18
Good,
And also not rom slot 0 (or you'd be replacing basic).
And if you pick above rom 7 on a 464 it would not be initialized or rom 15 on a 664/6128, unless using special roms.
It shouldn't.
It wont see the rom until you either do |ROMUPD or power cycle the CPC.

Have you tried to use |m4help to list roms after a power cycle?

Can you attach any one of them here, so I can test? - Maybe there's something with the header....

EDIT:
Maybe you are loading them from a floppy disk ?
For the |romup command they have to be on the microSD card.
All ROMs are on the SD card, and once I've |romup'ed anything I no longer have any M4 commands working to do anything. Cycle the power, nothing to be found in ROM slots.. However, since I got the network part working I've been able to upload and install the ROMs via the web interface, and after a power cycle they did work with all 32 slots since I installed the booster.rom in slot 15. So while I couldn't get it to work locally, I did manage to work around it via the network functionality.
As for attaching the ROMs here, I frankly don't know how. All the ROMs I've tried to install came from links on this site - Utopia, Maxam, QuickCMD, Nirvana, etc..
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 09:42, 04 August 18
Quote from: Duke on 06:41, 04 August 18
Yes. Download http://www.spinpoint.org/cpc/m4diag5.zip (http://www.spinpoint.org/cpc/m4diag5.zip) and unpack "M4FIRM.BIN" + "ESPFIRM.BIN" to root of the microSD, power on the M4 with the microSD inserted and let it run for 3-4 mins.
Afterwards there should be a file called "report.txt" in the root directory, if the file contains ESP SR 0xFF endless, another ESP flashchip is dead and you will need to return it to me for replacement if not send/paste the contents of report.txt
Ufff, at least the chip seems not to be dead!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:58, 04 August 18
Quote from: MiguelSky on 09:42, 04 August 18
Ufff, at least the chip seems not to be dead!
The file is pure garbage.

Does the M4 work without microSD inserted? Seems like the microSD screwed up.

Quote from: MikeSDK on 09:17, 04 August 18
As for attaching the ROMs here, I frankly don't know how. All the ROMs I've tried to install came from links on this site - Utopia, Maxam, QuickCMD, Nirvana, etc..
You press the "+" sign below the post reply window and under attach you pick "browse.." and select the rom file, then OK and press insert attachment.
And please paste exact command so I can replicate, ie.
|romup,"maxam.bin",5
|romupd

Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 00:19, 05 August 18
Ok! I tried now with my old SD.


BTW, when I created both reports, CPC started: the old report without M4 ROM message; the last report, with M4 ROM message.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:56, 05 August 18
Quote from: MiguelSky on 00:19, 05 August 18
Ok! I tried now with my old SD.


BTW, when I created both reports, CPC started: the old report without M4 ROM message; the last report, with M4 ROM message.

Ok thanks. According to the new report.txt, it's fine internally. Does it work now?  - you may have to delete romslots.bin and romconfig.bin, if those are bad or perhaps format the microSD entirely, to start fresh.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 11:28, 05 August 18
Ok, it seems my problem is related to the SD card. If I start CPC without SD, commands like |M4HELP or |SD work, but they don't if the SD card inserted. I formatted my card and copied back my files again (deleting romslots.bin and romconfig.bin) but it doesn't help.

Tonight, I'll try with another card more (not the newest I tried yersterday) and I'll report.

Thanks for your support, Duke :)
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 23:57, 05 August 18
Aaaggh! Mystery solved! A strange file named M4ROM.BIN in the root of my SD was who prevented the system to work properly. By deleting that file everything works fine again. I don't know where such file came from. The First M4 virus?  :laugh:
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 01:35, 06 August 18

Not virus, just some lost experiments from the past  :laugh:
You can run a custom M4rom over the "internal" one


But ehh!! It can be an exploit for future viruses, you run a game, it creates an M4rom dump and patches it, placed at the root of the SD and....boooom


Maybe an option at the web interface which allows or not the alternate rom execution, defaults to No...?

Quote from: Duke on 14:56, 31 July 16
v1.0.8 (not beta anymore)

Download from here:
M4 Board - CPCWiki (http://www.cpcwiki.eu/index.php/M4_Board)   (if my wiki upload failed, then you can also get it from here: http://spinpoint.org/cpc/M4FIRM_v108.zip (http://spinpoint.org/cpc/M4FIRM_v108.zip)) or use |upgrade

* Fix IP addresses for httpget (again).
* Fix |dir bug.
* Fix hardreset.
* Added C_GETPATH command (requested).
* Added ability to load your own build of M4ROM from root of microSD, should be named M4ROM.BIN

I will make the source code for M4ROM available shortly, so if anyone wants to help fix bugs, add improvements, or simply make their own version this is now possible.
Using cpcxfer program you can test a build of the M4ROM in seconds, by issuing simple commands:
xfer -u <cpcip> M4ROM.BIN / 0
xfer -r <cpcip>

When M4ROM.BIN is present in root of microSD this version will be active instead of the built-in M4ROM that I supply with each upgrade.

Rom is compiled using the assembler from sdcc (sdasz80), so cross compiling is needed unless source is converted to another format.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:54, 06 August 18
Fixed the microSD filled with files issue.

M4 Firmware v2.0.5b2. Download : http://spinpoint.org/cpc/M4FIRM_v205b2.zip (http://spinpoint.org/cpc/M4FIRM_v205b2.zip)
Unpack to root of microSD and power cycle M4.

In addition to fixing the above issue, directory retrieval is much quicker now, especially in web interface navigation, long directories like the CPC games CD, should no longer timeout.
Also it should now display correct file size of files bigger than 999 MB (GB's !).

Quote from: KaosOverride on 01:35, 06 August 18
Maybe an option at the web interface which allows or not the alternate rom execution, defaults to No...?
There is so many other ways to do harm too (ie. write an autoexec.bas file from your program to do |era,"*.*") so I won't bother.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 10:10, 06 August 18
Quote from: Duke on 09:54, 06 August 18
Fixed the microSD filled with files issue.

Great!!!!!!!!!

Quote
There is so many other ways to do harm too (ie. write an autoexec.bas file from your program to do |era,"*.*") so I won't bother.
We will trust the community!!


Enviado desde mi SM-G950F mediante Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 08:44, 12 August 18
Just tested the new beta. The filesystem bug is gone!! I'm not able to reproduce the issue!! Thanks a lot!!

Enviado desde mi SM-G950F mediante Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 01:49, 06 September 18
OK, new issues with my configuration: the |DISC command doesn't change to FDD, it keeps showing SD files. Could it be due to the fact I use an internal 3"1/2 drive? I don't manage to install FutureOS in my M4, if I use |M4ROMOFF ROMs are not saved :(
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:54, 06 September 18
Quote from: MiguelSky on 01:49, 06 September 18
OK, new issues with my configuration: the |DISC command doesn't change to FDD, it keeps showing SD files. Could it be due to the fact I use an internal 3"1/2 drive? I don't manage to install FutureOS in my M4, if I use |M4ROMOFF ROMs are not saved :(

Whas rom number does M4 have and AMSDOS? - Do you use the modified lowerrom? - latest FutureOS works fine for me (using it's own installer) and I could access the disc drive just fine, no need to |M4ROMOFF
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 10:04, 06 September 18
I use the modified lowerrom and I have m4 and parados rom in position 6. I'll try by deleting my roms config...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:03, 06 September 18
Quote from: MiguelSky on 10:04, 06 September 18
I use the modified lowerrom and I have m4 and parados rom in position 6. I'll try by deleting my roms config...
In that case you should set parados to another location (rom 8, if using a 6128).
When switching from |SD to |DISC both roms need to be present at the same time (and amsdos or parados should be higher than M4).
In your config parados will only be present when you switch M4 rom off (|m4romoff), so not possible to toggle via |SD / |DISC.
Title: Re: Amstrad CPC WiFi
Post by: MiguelSky on 11:44, 06 September 18
Ok, I finally managed to install it by uploading AMSDOS to rom 8 (as ParaDOS refuses to load in rom 8, it resets the CPC continuosly). Then I realized that I had forgotten FutureOS is not shown in my LG MonitorTV!!  :picard:


I forgot to tell here that FutureOS installer doesn't work by logging into a DSK image in the M4 directory, I'm sure Duke knew this, but the info is for all other users.


Thanks for your always helpful support, Duke :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:00, 06 September 18
Quote from: MiguelSky on 11:44, 06 September 18
Ok, I finally managed to install it by uploading AMSDOS to rom 8 (as ParaDOS refuses to load in rom 8, it resets the CPC continuosly).
Ah, well you could use slot 7 for parados, but you would need to remove the modified lowerrom.
Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 07:27, 09 September 18
Hi. Would it be possible to get a C binding that would work with Z88DK?


I am the principal developer of PLATOTerm, a PLATO terminal that can be used to access PLATO based on-line services, such as IRATA.ONLINE:
http://www.irata.online/ (http://www.irata.online/)


Here, I have a video showing the ZX Spectrum version of the software working with Spectranet (which loads off of a TNFS server, so it can be loaded without needing to have a local copy).


https://www.youtube.com/watch?v=_XlppdrIAN8 (https://www.youtube.com/watch?v=_XlppdrIAN8)

I have already done the necessary work to make it work on the Amstrad CPC's keyboard and screen, and just need to have a set of working I/O routines for e.g. your CPC Wifi device.

The code is here, if anyone wants it:
http://github.com/tschak909/platotermzx (http://github.com/tschak909/platotermzx)
Thanks in advance,
-Thom
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:54, 09 September 18
Quote from: MiguelSky on 11:44, 06 September 18
I forgot to tell here that FutureOS installer doesn't work by logging into a DSK image in the M4 directory, I'm sure Duke knew this, but the info is for all other users.


Oh, I have to check this, never tested it. Up to now I always used a disc or a HFE to install FutureOS. Thanks for the hint.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:15, 10 September 18
Quote from: tschak909 on 07:27, 09 September 18
Would it be possible to get a C binding that would work with Z88DK?

I'll see what I can do, but a bit tied up with things at the moment. Will see if I can find some time soon to support your project.
Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 07:40, 10 September 18
The Amstrad CPC version just came up! :)


(https://media.giphy.com/media/AFKhiTRce03WNVgFsU/giphy.gif)


Code is here:
http://github.com/tschak909/platotermzx :)


-Thom
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 13:06, 10 September 18
Maybe I'm thick, but... what is irata.online, and why does it need a special term?
Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 14:06, 10 September 18
IRATA.ONLINE is a service that I am providing for retro-computing users of all different systems, based on the legendary PLATO time-sharing system.


The main website is here:
http://www.irata.online/ (http://www.irata.online/)


And information about PLATO is here:
https://en.wikipedia.org/wiki/PLATO_(computer_system (https://en.wikipedia.org/wiki/PLATO_(computer_system))

It needs a special terminal, because the service itself speaks a special protocol. Sending graphics, supporting touch panel support (emulated with mouse), etc.

-Thom
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:08, 10 September 18
Quote from: tschak909 on 14:06, 10 September 18
And information about PLATO is here:
https://en.wikipedia.org/wiki/PLATO_(computer_system)


Does not exist.  :(
Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 18:38, 10 September 18
The forum chopped off the end of the link, let's try this:
https://en.wikipedia.org/wiki/PLATO_(computer_system) (https://en.wikipedia.org/wiki/PLATO_(computer_system))


If it still fails, plop a ) on the end of the link.
-Thom
Title: Re: Amstrad CPC WiFi
Post by: nurgle on 20:17, 11 September 18
Hi Duke,


thanks for this excellent board. I dug it out after more than a year of CPC absence.


Unfortunately my board stops working when flashed to 2.04 or 2.05b. It was at 2.02 before and I now flashed 2.03. With 2.04 I don't get the start message and all kinds of strange crashes, like random dots on the screen or Syntax error right after power up. Any way I can help to diagnoses this?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:20, 11 September 18
Yes, there is a Diagnostics Tool. Please burn, run and then read out the SD card. File is here:

Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:39, 11 September 18
Quote from: nurgle on 20:17, 11 September 18
Unfortunately my board stops working when flashed to 2.04 or 2.05b. It was at 2.02 before and I now flashed 2.03. With 2.04 I don't get the start message and all kinds of strange crashes, like random dots on the screen or Syntax error right after power up. Any way I can help to diagnoses this?

Did you remember to put both firmware files onto the root of the microSD card (M4FIRM.BIN & ESPFIRM.BIN). It could sound like the firmwares are not in sync.
Also please delete "m4/romconfig.bin" & "m4/romslots.bin" from the microSD, in case they got screwed up somehow.

And lastly you can try the diagnostic link, GUNHED provided.
Title: Re: Amstrad CPC WiFi
Post by: nurgle on 20:54, 11 September 18
I tried upgrading / downgrading several times with several versions. 2.04 reproducable does not work for me while 2.03 does. Maybe the diagnostic helps. Report is attached.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:04, 11 September 18
Quote from: nurgle on 20:54, 11 September 18
I tried upgrading / downgrading several times with several versions. 2.04 reproducable does not work for me while 2.03 does. Maybe the diagnostic helps. Report is attached.
Did you delete romslots and romconfig ?

The report shows, everything is fine :)
Title: Re: Amstrad CPC WiFi
Post by: nurgle on 21:17, 11 September 18
Sure, inserted a blank formatted card.

Can this be a power or cabling issue? But why does it work with 2.03 then?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:16, 11 September 18
Quote from: nurgle on 21:17, 11 September 18
Can this be a power or cabling issue? But why does it work with 2.03 then?
Don't think so, if 2.0.3 works fine.
Only thing that comes to mind looking at the changelog @ http://www.spinpoint.org/cpc/m4info.txt is the updated ESP libs that some had issues with.
Did you try v2.0.5beta1 (iirc. I accidently build it with the old esp libs) ?
Title: Re: Amstrad CPC WiFi
Post by: nurgle on 22:36, 11 September 18
Tried both 2.0.5b1 and 2.0.5b2 now. Both fail to work. Going back to 2.0.3 makes the m4 work again.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:39, 11 September 18
Quote from: nurgle on 22:36, 11 September 18
Tried both 2.0.5b1 and 2.0.5b2 now. Both fail to work. Going back to 2.0.3 makes the m4 work again.
When they fail to work, what is the symtoms ? garbage on the screen/lock ups or?
And what CPC are you using?
Title: Re: Amstrad CPC WiFi
Post by: nurgle on 22:50, 11 September 18
Different symptoms. Garbage on the screen (rarely), syntax error, screen stays black, M4 not showing up.


It's a CPC6128 where overriding ROM7 works. CRTC0 if I remember correctly.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:00, 11 September 18
Quote from: nurgle on 22:50, 11 September 18
Different symptoms. Garbage on the screen (rarely), syntax error, screen stays black, M4 not showing up.


It's a CPC6128 where overriding ROM7 works. CRTC0 if I remember correctly.
And you tried not overriding ROM7 ? (I guess you did with the blank microSD) - just in case. Does it startup properly when the microSD is NOT inserted? (after upgrading to v2.0.5b1/2).
And what does |version say, if you can even type anything.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 17:50, 20 September 18
Hi Duke !!! .. where is the info of the new M4FIRM_v205b3.zip (https://www.amstrad.es/forum/download/file.php?id=5153) ?  :o :o
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:32, 20 September 18
Quote from: XeNoMoRPH on 17:50, 20 September 18
Hi Duke !!! .. where is the info of the new M4FIRM_v205b3.zip (https://www.amstrad.es/forum/download/file.php?id=5153) ?  :o :o

There isn't any.
The only change is a rom (board) issue on certain CPC's, probably introduced in v2.0.3 or v2.0.4. I wanted to do another couple of things before releasing it. But should be fine to use, @GUNHED (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2029) tested it.

Since it is already in circulation, I uploaded it aswell.

M4 firmware v2.0.5 beta 3, download from here: http://www.spinpoint.org/cpc/M4FIRM_v205b3.zip
Unpack to root of microSD and powercycle CPC to upgrade.

* Fix rom board issue with repeated pattern of 0x00, 0xFF .. on some CPC's, thanks to @GUNHED (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2029) for finding the bug and testing the fix.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 11:56, 21 September 18
The last firmware gave me a black screen and nothing else.........I had to "burn" the diag files to get back to 2.0 version.
Any bugs ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:25, 22 September 18
Quote from: Kris on 11:56, 21 September 18
The last firmware gave me a black screen and nothing else.........I had to "burn" the diag files to get back to 2.0 version.
Any bugs ?
Did you let the upgrading finish? It will give black screen while re-programming, but it should not be rebooted before the "DD" led goes off permanently.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 07:47, 22 September 18
Hi Duke,


Yes I let the upgrade running but it last a very long time and it does not reboot automatically...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:53, 22 September 18
Quote from: Kris on 07:47, 22 September 18
Yes I let the upgrade running but it last a very long time and it does not reboot automatically...
Ok, I will add a fault report generator to it soon, to avoid too much trouble shooting, then hopefully you will test again, thanks.
Title: Re: Amstrad CPC WiFi
Post by: Kris on 07:01, 23 September 18
Quote from: Duke on 08:53, 22 September 18
Ok, I will add a fault report generator to it soon, to avoid too much trouble shooting, then hopefully you will test again, thanks.


OK, I will do the test as soon as it will be available ;)

Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 10:19, 23 September 18
Quote from: Duke on 06:25, 22 September 18
Did you let the upgrading finish? It will give black screen while re-programming, but it should not be rebooted before the "DD" led goes off permanently.
in my case, the screen was also black for a long time too but ... I switched off and on the M4 and CPC and if it was updated correctly  :o
Title: Re: Amstrad CPC WiFi
Post by: SOS on 20:34, 24 September 18
Feature-Request for M4ROM:
Function "fio_jvec()"  ("fio jump vector" / #CD30):
Exit the function with "jp #be7f" (like #CD49 in CPC6128-AMSDOS). :)
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 17:15, 17 October 18
Quote from: Joseman on 00:55, 10 June 18
Try it
It was a quick little hack, i don't remember exactly what i'd done
http://s000.tinyupload.com/index.php?file_id=78206317051926767285 (http://s000.tinyupload.com/index.php?file_id=78206317051926767285)


Sorry to bother again but my SD failed and can't find Shinobi in my backups  :picard:


EDIT : I think I found it   ;D
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 10:38, 23 October 18
Are there any working versions of Double Dragon and Robocop?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:40, 23 October 18
Quote from: VincentGR on 10:38, 23 October 18
Are there any working versions of Double Dragon and Robocop?
Yes.
For Robocop:
http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=1815# (http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=1815#)
(press the disc icon with CRACK).

As for Double Dragon, I think you need 128KB, no 64KB version I could see.

Quote from: SOS on 20:34, 24 September 18

Feature-Request for M4ROM:
Function "fio_jvec()"  ("fio jump vector" / #CD30):
Exit the function with "jp #be7f" (like #CD49 in CPC6128-AMSDOS). :)

Of course... Next update.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:01, 23 October 18
Robocop reports "disc missing"
I have the original disk of DDragon and runs on my 6128 fine
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:13, 23 October 18
Quote from: VincentGR on 13:01, 23 October 18
Robocop reports "disc missing"
I have the original disk of DDragon and runs on my 6128 fine
You need to use the modified lowerrom. Then both will work fine.

http://www.cpcwiki.eu/index.php/M4_Board#Various%20files
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:20, 23 October 18
I have done this a while ago on my 6th slot.
Anyway no prob, I will dig more to find working versions  ;D


Thank you.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:41, 23 October 18
Quote from: VincentGR on 13:20, 23 October 18
I have done this a while ago on my 6th slot.
Anyway no prob, I will dig more to find working versions  ;D

Are you sure you have enabled the "Modified lower rom" ?

Because both cracked versions from CPC power works fine when I just tested it on my CPC6128.
"Disc missing" would indicate that the modified lower rom is not active, as AMSDOS gets re-initialized not M4 rom.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:52, 23 October 18
Yes it is clicked enabled
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:00, 23 October 18
Quote from: VincentGR on 13:52, 23 October 18
Yes it is clicked enabled
Can you take a screenshot of your ROM setup?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 16:19, 23 October 18
Here it is
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:40, 23 October 18
Quote from: VincentGR on 16:19, 23 October 18
Here it is
Ok, maybe not the best choice, but it should work (when not doing |m4romoff).
However I am not sure the modified lowerrom is actually in the slot, so you probably should try to upload it again and better use ie. slot 31.
I have attached a modified lowerrom here that sets mode 2, you can use this to test so you are sure it uses the modified lowerrom (as cpc will start in mode 2 rather than mode1).

Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:41, 23 October 18
(https://i.postimg.cc/MTkd3zjC/20181024-003729.jpg)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:22, 24 October 18
Quote from: VincentGR on 16:19, 23 October 18
Here it is


You put the M4 ROM and the LowerROM to slot 6, two ROMs can't occupy the same slot. Please move the lower ROM to slot 31.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 15:56, 24 October 18
I really don't get it  :picard:
I read the instructions on the wiki but no...
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:51, 24 October 18
You'll make it!  :)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 18:48, 24 October 18
Quote from: VincentGR on 16:19, 23 October 18
Here it is
You have to install the modified firmware at slot 31 (Can be other slot but stick to 31 for best...)

Erase it from slot 6 (This must be free for the M4rom to be visible)

Let the "rom number" option above at 6. This is where M4rom will be visible.

Then change the lowerrom option from 6 to 31

The problem is you have m4 rom and lowerrom both at 6 and they collide

Enviado desde mi SM-G950F mediante Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 21:18, 24 October 18
This is what I do, but I have that numbers displayed.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 00:06, 25 October 18
So you change them to display same of Duke's image and later it comes back to the bad settings?

You can delete the M4 folder from microSD and start from zero

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:32, 25 October 18
@VincentGR (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1053)

Please try to upgrade firmware to v2.05b3 and if you still have problems, check your edge connector.
Your picture shows you have (had) it working, but something was off.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 18:37, 25 October 18
Yesterday I ran |UPRGRADE and reported that I had the final version.
I will search for your version as it is newer.


Thank you all.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:46, 25 October 18
Quote from: VincentGR on 18:37, 25 October 18
I will search for your version as it is newer.
http://www.spinpoint.org/cpc/M4FIRM_v205b3.zip
Title: Re: Amstrad CPC WiFi
Post by: francouai on 07:34, 26 October 18
I used my M4 on my CPC 6128+, working perfectly. (the best extension card ever!)
but recently, I bought a CPC6128 (old) and have connected my M4 in.I have to reboot the M4 card at least 8 times to get the recognised on this CPC. (pressing the M4 RESET switch)
why it work straight on the CPC+ and very hard to get in on the CPC- ?


FW 2.04 is installed.
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 07:38, 26 October 18
Quote from: francouai on 07:34, 26 October 18
I used my M4 on my CPC 6128+, working perfectly. (the best extension card ever!)
but recently, I bought a CPC6128 (old) and have connected my M4 in.I have to reboot the M4 card at least 8 times to get the recognised on this CPC. (pressing the M4 RESET switch)
why it work straight on the CPC+ and very hard to get in on the CPC- ?


FW 2.04 is installed.
If you use rom slot 7 for M4, maybe your new old 6128 is the one that you cannot setup external rom slot 7 because collision with internal amsdos?

Then you need low-firmware mod and use rom slot 6 for M4 rom

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 21:32, 26 October 18
Is there any way I can get both M4 hardware and a CPC so I can complete PLATOTerm development?


-Thom
Title: Re: Amstrad CPC WiFi
Post by: Dabz on 06:31, 27 October 18
Just to note, when I first got the CPC Wifi, I intended to use it on a 6128 which had a knackered disc drive on, but, when I plugged it in, it was very unstable, I cleaned everything and it made no difference. But on my good machine, which I've now sold, when you plugged it in, it worked straight off the bat, perfectly fine, not one hiccup.


Obviously something is wrong with my old one in regards to the edge connector, it looks okay, but, its not, and I've never investigated it it further... So if you are having issues, just note it could be your hardware thats the problem.


Dabz
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:31, 27 October 18
Quote from: tschak909 on 21:32, 26 October 18
Is there any way I can get both M4 hardware and a CPC so I can complete PLATOTerm development?
Sure, pickup a cheap CPC from ebay and pm me for an M4 board. You'll probably not regret it, it's a great machine ;)
Title: Re: Amstrad CPC WiFi
Post by: pablibiris on 16:04, 02 November 18
Hi!
I'm a new Amstrad user (usually I used MSX computers ^^)
I buyed this awesome board (thanks Duke,for your great work!)
Now I'm trying to find a 3D design for a case (v2.5) but I don´t know where to find it. In this thread I found a design,but is not for my board version :(
Someone knows where to find a 3D design for the version 2.5?
Thanks!
Title: Re: Amstrad CPC WiFi
Post by: tschak909 on 16:13, 02 November 18
What's the best system to use with the M4? 464? 664? 6128?


-Thom
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:04, 03 November 18
Quote from: pablibiris on 16:04, 02 November 18
Now I'm trying to find a 3D design for a case (v2.5) but I don´t know where to find it. In this thread I found a design,but is not for my board version :(
Someone knows where to find a 3D design for the version 2.5?
Afaik. there is no 3D case for v2.4 and v2.5 (same dimensions) with edge connector freely available. Someone is selling them on ebay though.


Quote from: tschak909 on 16:13, 02 November 18
What's the best system to use with the M4? 464? 664? 6128?
Either is fine. I'd go for a 6128 because of the extra ram and sleeker design. However you may be able to pickup a 464 much cheaper and it'll do the job just fine.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 00:52, 04 November 18
Hello @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)


Is there any M4 WIFI available?


Also,  do you have any RAM for it with the proper adapter?


Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:58, 04 November 18
Quote from: VincentGR on 00:52, 04 November 18
Is there any M4 WIFI available?
Yes PM or email me if you need another one.
It's the usual lead time of 4-5 weeks from ordering.
Quote
Also,  do you have any RAM for it with the proper adapter?
I don't do any RAM expansions, try to send Tot0 a PM, I think he still make XMEM, he also makes the MotherX4 so you can connect multiple expansions.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:06, 04 November 18
Since the M4 already simulates 512 KB ROM you actually can go with the 4 MB expansion from Piotr. I use a M4 and 4 MB RAM on an AMSDAP and it works well (CPC6128).  :)
Title: Re: Amstrad CPC WiFi
Post by: Swisstoni on 11:30, 07 November 18
Im a new Amstrad owner and ive recently purchased one of these boards I'm really impressed with it, one question though is there a loader available with long file name support?
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 14:05, 07 November 18
hi


when we type |m4romoff why does the modified lowerrom still active ?

i can view because of mode 2 on screen at boot

thanks in advance
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 14:11, 07 November 18
Quote from: breiztiger on 14:05, 07 November 18
hi


when we type |m4romoff why does the modified lowerrom still active ?

i can view because of mode 2 on screen at boot

thanks in advance
If I'm not wrong, that command just disables the M4 rom, not all the roms

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 16:05, 07 November 18

ok i think so


do you think we can have a commandline like |m4off to disable all rom from m4 and run stock cpc without disconnect the hardware ?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:40, 07 November 18
Quote from: breiztiger on 16:05, 07 November 18
do you think we can have a commandline like |m4off to disable all rom from m4 and run stock cpc without disconnect the hardware ?


Use: |M4ROMOFF

Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 16:48, 07 November 18
Sorry but if you read my request you see that m4romoff disconnect only m4 rom but no other roms

Modified lowerrom for example is alway present
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 17:08, 07 November 18
You can switch off, extract the MicroSD, switch on and use |m4romoff

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:14, 07 November 18
Quote from: Swisstoni on 11:30, 07 November 18
Im a new Amstrad owner and ive recently purchased one of these boards I'm really impressed with it, one question though is there a loader available with long file name support?
Do you mean a file selector of some sort ?
If you just want to display long filenames and use them basic there is |ls command.

Quote from: breiztiger on 16:05, 07 November 18
do you think we can have a commandline like |m4off to disable all rom from m4 and run stock cpc without disconnect the hardware ?

Sure, it will be easy to add.
For now you can do as @KaosOverride (http://www.cpcwiki.eu/forum/index.php?action=profile;u=431) said.
Or write a little basic program that renames m4/romconfig.bin & m4/romslots.bin. Then have another program that copies them back (|copyf...) to their correct filenames.

Ie.
10 |ren,"m4/romconfig.old", "m4/romconfig.bin"
20 |ren,"m4/romslots.old", "m4/romslots.bin"
30 |m4romoff

save"romsoff.bas"

10 |copyf,"m4/romconfig.old", "m4/romconfig.bin"
20 |copyf,"m4/romslots.old", "m4/romslots.bin"
30 ?"powercycle cpc"
save"romson.bas"

Not tested either, but should work :)
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 17:18, 07 November 18


Quote from: Duke
Or write a little basic program that renames m4/romconfig.bin & m4/romslots.bin. Then have another like program that copies them back (|copyf...) to their correct filenames.

I was thinking about this when using different hardware combinations like 464 and 6128 so one romset can be rom7 for M4 and other for rom6 + amsdos...[emoji3]



Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:45, 07 November 18
Quote from: KaosOverride on 17:18, 07 November 18
I was thinking about this when using different hardware combinations like 464 and 6128 so one romset can be rom7 for M4 and other for rom6 + amsdos...(https://emoji.tapatalk-cdn.com/emoji3.png)

This is possible but requires a bit more work, because the romslots.bin is only a shadow file of the contents in flashrom.
So to use different rom configs (ie. from other people too), a little program to change the flags of the romconfig.bin file is needed.
In C (on PC) it would look like this:

typedef struct
{
    int    totalRoms;
    int    m4RomNum;
    int    m4RomEnable;
    int    romRangeStart;
    int    lowerEnable;
    int    lowerSlot;
    unsigned int reserved[2];
} _romConfigHeader;

typedef struct
{
    char updateflag;            // 0=disabled, 1 = enabled, 2 = new, 3 = remove
    char    name[32];
} _romConfig;

int main(int argc, char** argv)
{    FILE *fd;
    int i;
    unsigned char *buf;   
           
      fd = fopen("romconfig.bin", "rb");
      buf = (unsigned char *)malloc(1088); //32 + 32*33
    fread(buf, 1088, 1, fd);
    fclose(fd);

    _romConfigHeader *rh = (_romConfigHeader *)&buf[0];
    _romConfig *rc = (_romConfig *)&buf[sizeof(_romConfigHeader)];
   
    for (i=0; i < rh->totalRoms; i++)
        rc[i].updateflag = 2;        // 0=disabled, 1 = enabled, 2 = new, 3 = remove
           
      fd = fopen("romconfig.new", "wb");
      fwrite(buf, 1088, 1, fd);
      fclose(fd);
    free(buf);
   
    return 0;
}

Then all the rom slots will be put into flashrom.
It could be written in basic too with some poking, I guess, if someone fancies it :)
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 18:55, 07 November 18
Thanks Duke


I'll test this asap
Title: Re: Amstrad CPC WiFi
Post by: trocoloco on 17:23, 08 November 18
Quote from: Swisstoni on 11:30, 07 November 18
Im a new Amstrad owner and ive recently purchased one of these boards I'm really impressed with it, one question though is there a loader available with long file name support?


I think that what you are looking for is in this link, it is in spanish though but very easy to use.
http://amstrad.esy.es (http://amstrad.esy.es)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:07, 11 November 18
Forgot to mention.

Over time some people asked me if it was possible to change their M4 board with EDGE connector to IDC, after acquiring a MotherX4 or similar, so some months ago I made a simple adapter for it.

Price is:
Assembled, 4 euro
Self assembled, 3 euro (pcb + right angle IDC connector)

I know it's not cheap, so attached the gerbers here, feel free to make it yourself, sell it on ebay etc.
Notice when you solder on the IDC connector, the "IDC" label has to point downwards (see RED arrow on pic).

Title: Re: Amstrad CPC WiFi
Post by: Stwert on 11:32, 19 November 18
Hi,


I don't post much, actually I think this is my first. So, hello everyone. I'm around here often re-learning everything I've forgotten over the years  :doh:


Anyway, having recently received Duke's (really) superb M4 board, I wanted to get it into an enclosure to protect it, but being the fussy type, couldn't find one I wanted.


So here's my take on an M4 Enclosure, I'm sure there's probably tons I've missed but what the hey.
This was designed around the latest Rev 2.5 board, so how that relates to older boards I don't know.


No screws needed, clips together nicely with all of the necessary holes where they should be and a couple of buttons.
The lid obviously goes with the "chimney's" facing into the case, they're just to help keep the buttons where they should be.


Suggestions welcome, other than shove it up your  :o  I know that one  :laugh:
I'll likely keep tweaking it when I have time, the buttons are a teeny bit wobbly still.


Excuse the photo's, my office is a mess because I'm refitting it, so my photo box is...... somewhere.


And yeah, the top of my enclosure is a mess, I removed it while still hot because I have no patience and I need to go to the shop for more Monster  ;D


Cheers.
Title: Re: Amstrad CPC WiFi
Post by: Stwert on 12:36, 19 November 18
Sorry for the double post, I'm on my mobile and the damn thing won't let me scroll to edit.


Anyway, it occurs to me that some people might like to put a brim/skirt around the buttons for stability, but not everything else. It was fine when I printed, but y'know depends on so many factors.


Anyway, if anyone would like to do that just let me know and I'll put up individual stl's.


Cheers.
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 22:54, 08 December 18
Hi fellows!
I'm a new and proud owner of a brand new M4 Board.Many thanks to Duke for this very cool piece of hardware.
But I have some issues and sometimes very funny behaviors.I played with the M4 with a handfull sd cards to test some roms.One really funny behavior:
I tried out  some combinations and ended up with [screenshot1].
This works mostly.
Then I tried out some different combinations with another sd with the DES Roms.
Ok, not really well but the DES starts without M4 support.
Then I inserted the former sd. There is no DES rom on it.
And... The cpc starts with.... DES! :o :D
Hmmm...
And it dosen't matter in which way  I reboot the cpc (M4 reset, cpc reset, switch off/on ...)
But the web gui shows the correct rom list of sreenshot1.
Reinserting the sd with the DES roms and deleting the roms with the webgui stops this behavior.

Does the M4 cache the roms?


Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:06, 09 December 18
@cpcoldie (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2847)

romslots.bin on the microSD is only a shadow file of the contents inside the MCU chip, so swapping romconfig.bin and romslots.bin from other configurations will only give weird results.

The romconfig.bin file tells which roms are activate (and their names in the webui).
The romslots.bin is as said a shadow file, it is only used, when roms are updated. Reason for this is that the flash sectors in the MCU chip are 128KB large, meaning a full sector erase has to be done, whenever a small 16KB rom is replaced, here is where the "shadow" contents are used.
Title: Re: Amstrad CPC WiFi
Post by: ComSoft6128 on 08:42, 09 December 18
I can't comment on using DES with the M4 as I haven't used that combination yet.
What I can tell you is that DES waits until all other Roms have initialised and then displays the DES interface. So if you have DES stored in an unusual location this is probably why you are getting this result. Also, you might find the DES user manual and the programmers guide helpful, these are available here:


http://www.cpcwiki.eu/index.php/Desktop_Environment_System (http://www.cpcwiki.eu/index.php/Desktop_Environment_System)

Cheers,

Peter
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 17:11, 09 December 18
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
Thanks for this explaination, it is clearifying some behaviors.
But is there a short controlled way to synchronize the romslots.bin with the flash?
   Now to something different.
I have tried out to compile some bcpl code with the rom based compiler.
Working with the real disc works flawlessly but with the sd there are some header problems.
Also with Maxam and Protext saving some text to the sd.
Will investigate further this issues.

@ComSoft6128
Thanks, I read the user manual but what is "an unusual location"?

Greetings!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:12, 09 December 18
Quote from: cpcoldie on 17:11, 09 December 18
But is there a short controlled way to synchronize the romslots.bin with the flash?
I posted a few messages back how this is done, but of course it's not a short method, since you would have to compile a program on a PC and run it from there.
If I have the feel tomorrow I will knock it together a cpc version, which you can just run to import roms from a different config.

Quote
Now to something different.

I have tried out to compile some bcpl code with the rom based compiler.

Working with the real disc works flawlessly but with the sd there are some header problems.

Also with Maxam and Protext saving some text to the sd.

Will investigate further this issues.
Please provide feedback on this issue, early on I used protext/maxam quite a lot for testing various routines I wrote and headers were flawless.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:41, 11 December 18

Here is a native CPC program to use other people's (or sd cards) M4 rom configuration:

Unpack the m4reconf.bin to the /M4 directory of the microSD.
Copy whatever romslots.bin and romconfig.bin you want to use to the /M4 directory aswell.
Run"m4reconf.bin"
Power cycle CPC and done.

Here is the source code:

        ; M4 rom re-config
        ; To assemble use RASM assembler
        ; Duke - 2018
       
        org    0x4000
        nolist

km_wait_key        equ 0xBB18
txt_output        equ 0xBB5A
txt_set_column    equ 0xBB6F
scr_reset        equ    0xBC0E
scr_set_ink        equ    0xBC32
scr_set_border    equ    0xBC38
cas_in_open        equ 0xBC77
cas_in_close    equ 0xBC7A
cas_in_char        equ 0xBC80
cas_out_open    equ 0xBC8C
cas_out_close    equ 0xBC8F
cas_out_char    equ 0xBC95
kl_init_back    equ 0xBCCE

        ; re-init M4rom
   
        ld de,0x40
        ld hl,0xB0FF
        call 0xBCCB
       
        ; setup screen
       
        ld a,2           
        call scr_reset        ; set mode 2
        xor a
        ld b,a
        call scr_set_border
        xor a
        ld b,a
        ld c,b
        call scr_set_ink
        ld a,1
        ld b,26
        ld c,b
        call scr_set_ink

        ld    a,20
        call txt_set_column
        ld    hl,txt_title
        call wrt
       
        ; read romconfig.bin
       
        ld    hl,filename
        ld    de,buf
        ld    b,13        ; "romconfig.bin"
        call cas_in_open
        jp    nc,file_err
        ld    hl, buf2
        ld    bc,1088        ; file len
fread_loop:
        call cas_in_char
        ld    (hl),a
        inc    hl
        dec    bc
        xor    a
        cp    c
        jr    nz, fread_loop
        cp    b
        jr    nz, fread_loop
       
        call cas_in_close
       
        ; display 'active' roms and set the flag so they are re-flashed on power cycle
       
        ld    ix,buf2
        ld    b,(ix)        ; number of roms (either 16 or 32)
        ld    de,32
        add    ix,de        ; skip header
        inc    de
rom_loop:
        ld    a,(ix)
        cp    1
        jr    nz, rom_not_used
        push de
        push ix
        pop    hl
        push bc
        inc hl            ; point to rom name
        ld de,text_buf
        ld bc,32
        ldir
        pop bc
        pop de
        ld hl,text_buf
        call wrt
        ld hl,txt_reen
        call wrt
        ld (ix),2        ; set rom to NEW
rom_not_used:
        add    ix,de        ; +33
        djnz rom_loop
       
        ; save the modified romconfig.bin
       
        ld hl,filename
        ld de,buf
        ld b,13        ; "romconfig.bin"
        call cas_out_open
        ld hl,buf2
        ld bc,1088        ; file len
fwrite_loop:
        ld    a,(hl)
        call cas_out_char
        inc hl
        dec bc
        xor a
        cp c
        jr nz, fwrite_loop
        cp b
        jr nz, fwrite_loop
       
        call cas_out_close
done:
        ; display done
       
        ld hl,txt_done
        call wrt
        jp    km_wait_key
file_err:
        ld    hl,txt_file_err
        call wrt
        jp    km_wait_key
wrt:
        ld    a,(hl)
        or    a
        ret    z
        call txt_output
        inc    hl
        jr    wrt
       
filename:
        db "romconfig.bin"
txt_title:
        db "M4 rom reconfig - Duke 2018",10,13,10,13,0
txt_file_err:
        db "Error M4 romconfig.bin not found!",10,13,0
txt_reen:
        db " re-enabled.",10,13,0
txt_done:
        db 10,13,10,13,"Done! Power-cycle CPC",0

text_buf:
        ds 33,0
       
buf:    ds 2048,0
buf2:    ds 1088,0   



Quote from: cpcoldie on 17:11, 09 December 18
But is there a short controlled way to synchronize the romslots.bin with the flash?
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 17:54, 11 December 18
Quote from: Duke on 08:41, 11 December 18
Here is a native CPC program to use other people's (or sd cards) M4 rom configuration:
Hi Duke,

Thank you very much!
Unfortunately at the moment I am very busy at work but will try this ASAP.

Cheers
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:56, 23 December 18
M4 Firmware v2.0.5 beta 5 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b5.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b5.zip)
Unpack to root of microSD card and powercycle CPC. *1

Fixes:
SNA loader pen 0 bug (Thanks @krusty (http://www.cpcwiki.eu/forum/index.php?action=profile;u=981))
SNA screen mode bug (Thanks @abalore (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2595))

Addition:
Preliminary SNA v3 support (compressed snapshots). It's tad slower than non compressed one - will make it faster if anyone gives a .... :)

If you don't care about the above, wait updating. I hope to fix/add some more over the xmas holidays.


*1, new alternative download method for betas, use your CPC directly like this:

|httpget,"spinpoint.org/BETA.BAS"
RUN"BETA.BAS
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 07:43, 24 December 18
Quote from: Duke on 11:56, 23 December 18
M4 Firmware v2.0.5 beta 5 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b5.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b5.zip)
Unpack to root of microSD card and powercycle CPC. *1

Fixes:
SNA loader pen 0 bug (Thanks @krusty (http://www.cpcwiki.eu/forum/index.php?action=profile;u=981))
SNA screen mode bug (Thanks @abalore (http://www.cpcwiki.eu/forum/index.php?action=profile;u=2595))

Addition:
Preliminary SNA v3 support (compressed snapshots). It's tad slower than non compressed one - will make it faster if anyone gives a .... :)

If you don't care about the above, wait updating. I hope to fix/add some more over the xmas holidays.


*1, new alternative download method for betas, use your CPC directly like this:

|httpget,"spinpoint.org/BETA.BAS"
RUN"BETA.BAS

Black Screen for me after update ... I have returned to the previous version Beta 3
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:27, 24 December 18
Quote from: XeNoMoRPH on 07:43, 24 December 18
Black Screen for me after update ... I have returned to the previous version Beta 3
Thanks for testing.
Be aware that while the ESP firmware is updating, the screen will be black for 1-2 mins, so if you do not wait this time the update will not succeed.
When the upgrade begins of ESP, the red/green led will flash,  then be ON steady, once the led turns off, upgrade is finished. So one should not powercycle while the red/green led is ON.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 09:41, 24 December 18
1. Bakckup M4 folder from microSD      2. deleted M4 folder from microSD           3. updating  Firmware .. mission successfully            4. Restore M4 folder backup to microSD to get configuration
:P
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:55, 24 December 18
Quote from: XeNoMoRPH on 09:41, 24 December 18
1. Bakckup M4 folder from microSD      2. deleted M4 folder from microSD           3. updating  Firmware .. mission successfully            4. Restore M4 folder backup to microSD to get configuration
:P

Good. Next version will feature a generated report.txt of the upgrade process.
I noticed one mistake I had, if the CRC of the ESP upgrade failed, it would still erase the ESP flash, although not program it.
So that is probably what happened.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:00, 24 December 18
M4 Firmware v2.0.5 beta 6 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b6.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b6.zip)
Unpack to root of microSD card and powercycle CPC. *1

Parameters can be added: |ROMSOFF, except rom slot, 0=do not reset, 1=reset.
This is useful if you ie. want to run a game from M4 that does not like other roms enabled (himem), if M4 is slot 6 you can disable all others like this:
|ROMSOFF,6,1
To disable all roms of M4, just type |ROMSOFF
All roms will be re-enabled as they were when pressing M4 reset or power cycling the CPC.
This will help diagnose if anything went wrong when upgrading.
Please paste contents here (or pm me) if anything went wrong.
For v2.0.5 beta 6, it should look like this if succesful:

M4 Firmware version 2.0.5B6
ESP firmware v2.0.5B6 found.
ESP flash: 0x00C84016
ESP CRC match: 0xBA3A0F08
Programming...
ESP programming success


*1 Or use alternative download method for betas, directly via your CPC like this:

|httpget,"spinpoint.org/BETA.BAS"
RUN"BETA.BAS

If you have already downloaded "BETA.BAS" you can in the future just type RUN"BETA"  to retrieve latest beta firmware.


@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941)
Quote
Feature-Request for M4ROM:
Function "fio_jvec()"  ("fio jump vector" / #CD30):
Exit the function with "jp #be7f" (like #CD49 in CPC6128-AMSDOS). :)
I wanted to add this, but not good for CPC464 ;)
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 13:38, 25 December 18

Merry Christmas to Amstrad Fans !!!


thanks duke for the new rsx
Title: Re: Amstrad CPC WiFi
Post by: SOS on 15:26, 26 December 18
@SOS (http://www.cpcwiki.eu/forum/index.php?action=profile;u=941)
Quote
Feature-Request for M4ROM:
Function "fio_jvec()"  ("fio jump vector" / #CD30):
Exit the function with "jp #be7f" (like #CD49 in CPC6128-AMSDOS). 

I wanted to add this, but not good for CPC464 

Thnx for your try, but why this is not good for the 464? The 464 has the same AMSDOS-Version as 664&6128.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:40, 26 December 18
Quote from: SOS on 15:26, 26 December 18
Thnx for your try, but why this is not good for the 464? The 464 has the same AMSDOS-Version as 664&6128.
By default there is no AMSDOS on 464, and M4 works without AMSDOS too.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:50, 26 December 18
Hi guys! Well, I'm not so much into native OS..., but would it make any small sense to have M4 ROM for 6128/664 and another one for the 464?  :)


IMHO the majority of CPC users today use the 6128, so IMHO it would be good to focus on the CPC6128.  :)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 20:00, 26 December 18
Quote from: Duke on 15:40, 26 December 18
By default there is no AMSDOS on 464, and M4 works without AMSDOS too.

Oh Yes, that's Right and cool to support 464 without AMSDOS.


So it's needed an statment like  :D
   ld a,(amsdos_ver)
   cp #0
   ret z     ;no_amsdos_rom
   jp #be7f

Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:29, 26 December 18
Quote from: GUNHED on 15:50, 26 December 18
IMHO the majority of CPC users today use the 6128, so IMHO it would be good to focus on the CPC6128.  :)

I think I have literally sold M4 boards for hundreds of CPC464 users. So  I prefer to stay compatible as much as possible without further complicating things. And there will also be a solution for this case :)

Quote from: SOS on 20:00, 26 December 18
So it's needed an statment like  :D
   ld a,(amsdos_ver)
   cp #0
   ret z     ;no_amsdos_rom
   jp #be7f
Sure, something like that is possible, if you want to have your hook only work when AMSDOS is present.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 00:03, 27 December 18
QuoteI think I have literally sold M4 boards for hundreds of CPC464 users. So  I prefer to stay compatible as much as possible without further complicating things.


8) ;)

Title: Re: Amstrad CPC WiFi
Post by: SOS on 07:36, 27 December 18
Quote from: Duke on 21:29, 26 December 18

I think I have literally sold M4 boards for hundreds of CPC464 users. So  I prefer to stay compatible as much as possible without further complicating things. And there will also be a solution for this case :)
[/size][/font][/color][/left]
3-Times "LIKE"


[/size]Sure, something like that is possible, if you want to have your hook only work when AMSDOS is present.

[/quote]
Yes, not perfect, but IMHO will be a start.
If sometime an application uses the hook, i think, there could be an idea found, to implement it for non-AMSDOS-Machines.


And no, Gryzor's "Remove formatting" dont work :(
Cool message-editor  >:(

Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:24, 27 December 18
Quote from: SOS on 07:36, 27 December 18
Yes, not perfect, but IMHO will be a start.
If sometime an application uses the hook, i think, there could be an idea found, to implement it for non-AMSDOS-Machines.
Ok, will add it then.
A sanity check might be better though ? - Ok you will loose 3 bytes if you put your routine directly at 0xBE7F...

ld a,(&BE7F)
cp &C3
ret nz (yes yes push pop etc ...)

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:41, 27 December 18
Quote from: Duke on 21:29, 26 December 18
I think I have literally sold M4 boards for hundreds of CPC464 users.
Very interesting! And it makes sense, this way they don't need a DDI-1.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:27, 31 December 18
M4 Firmware v2.0.5 beta 7 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip)

New feature is Hack Menu
This will allow you to save snapshots (SNA's) while playing games and other things.
Also possible to load snapshots from it.
Later if there is enough interest, I can add stuff like:
It is very beta atm. so probably full of bugs :)
See video here for usage:
https://youtu.be/N2Vdeu-x1mo (https://youtu.be/N2Vdeu-x1mo)


Happy new year !
Title: Re: Amstrad CPC WiFi
Post by: remax on 12:39, 31 December 18
Nice...


That makes now a real CPC, the best CPC emulator of all  ;D
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 12:46, 31 December 18
Awesome !!! Give me pokes  ;D
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:00, 31 December 18
Dear Lord  :o  !!!
Title: Re: Amstrad CPC WiFi
Post by: pjrodriguez on 13:51, 31 December 18
I'm speechless, I never thought it could be possible.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:32, 31 December 18
Superbe! This is even better than the HD64180 card from back the day! That's our real X-MAS ;-)
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 14:53, 31 December 18
Fantastic work as always! Reminds me of the Action Replay on C64 and Amiga!
Title: Re: Amstrad CPC WiFi
Post by: MissionComplete on 17:21, 31 December 18

Hack Menu: best christmas present ever!!!!  :o (except Amstrad CPC in 1987  :laugh: ) 

Thank you very much, Duke
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:13, 31 December 18
Very cool idea, indeed!
There's a crash with my CPC: by starting the Hack Menu it freezes the CPC.
I'm working with the Modified Lower Rom on "0" and "M4" ROM on "6", and others. CPC6128 with a 1MB memory expansion + PlayCity attached.


Edit: Removed the PlayCity and now it works fine!
Title: Re: Amstrad CPC WiFi
Post by: Syncmaster319 on 23:00, 31 December 18
Wow, what an amazing new surprise feature!  I really do love my M4 Board.
Title: Re: Amstrad CPC WiFi
Post by: Syncmaster319 on 23:42, 31 December 18
Quote from: Duke on 12:27, 31 December 18
M4 Firmware v2.0.5 beta 7 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip)

New feature is Hack Menu
This will allow you to save snapshots (SNA's) while playing games and other things.
Also possible to load snapshots from it.
Later if there is enough interest, I can add stuff like:

       
  • Pokes
  • Hex editor
  • Screenshot
It is very beta atm. so probably full of bugs :)
See video here for usage:
https://youtu.be/N2Vdeu-x1mo (https://youtu.be/N2Vdeu-x1mo)


Happy new year !


Hi Duke,

Do you happen to have a change log available for the Betas? Since moving to beta today from 2.0.4 the performance of loading game lists must be 50x faster and was curious to see if this was an intended fix.

I downloaded the TOSEC collection yesterday and was having to break folders down into less than 100 and even then some folders wouldn't even load and corrupted the dir.txt file.  I suspected it was due to weird filenames.

I'm super pleased with performance/reliability increase of the web interface with the beta.

I have noticed a small bug though. 

When you run a dsk it now redirects to a page called "Starting" then reverts back to the list.  Works fine on my PC but on my iPhone which was fine before now tries to do a DNS lookup against my ISP DNS servers and fails.  See attached.

Again thank you for your amazing device!

EDIT:  Looks like when I access the interface via IP then run a game it changes the URL to hostname which doesn't seem to work in safari. (iPhone)

Thanks
Mark
[/l]
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:15, 01 January 19
Quote from: HAL 6128 on 20:13, 31 December 18
Edit: Removed the PlayCity and now it works fine!
Maybe not all devices like the use of the NMI signal. Not sure if that is the problem with PlayCity (don't have one).

Quote from: Syncmaster319 on 23:42, 31 December 18
Do you happen to have a change log available for the Betas? Since moving to beta today from 2.0.4 the performance of loading game lists must be 50x faster and was curious to see if this was an intended fix.

The changelog is here:
http://www.spinpoint.org/cpc/m4info.txt
It's correct there was a fix for the fat sdio that would give strange results if too many files on the microSD (and I can see I forgot to add it to the changelog, -doh!).

Quote
EDIT:  Looks like when I access the interface via IP then run a game it changes the URL to hostname which doesn't seem to work in safari. (iPhone)

Makes sense it will not work with all devices using the hostname. I will look into using the IP instead when that's used to enter the web UI. Thanks.
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 10:15, 01 January 19
Quote from: Duke on 12:27, 31 December 18
M4 Firmware v2.0.5 beta 7 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip)

New feature is Hack Menu
This will allow you to save snapshots (SNA's) while playing games and other things.
Also possible to load snapshots from it.
Later if there is enough interest, I can add stuff like:

       
  • Pokes


Pokes using the CPCEMU poke database format would be awesome, especially if the M4 remembers the name of the last runned game to position to the first letter of the poke database or even the good name of the database.


I have started to use directories, in the web page if I have moved into a directory, a file uploaded will still be at the root of the SD. Would it be possible to upload to the current directory on the web page ?
Title: Re: Amstrad CPC WiFi
Post by: francouai on 11:31, 01 January 19
nice job Duke with beta 7I have some graphic color bugs when I'm using the snapshot function on my CPC6128 CRTC1 .
and when I'm typing the filename on my CPC, it is running too fast, to all my letters entries are double. I have to press each keys very fast.TTEESSTT.SSNNAA  ;D
Title: Re: Amstrad CPC WiFi
Post by: dxs on 16:05, 01 January 19
Woooow awesome update thanks a lot Duke!
Users always ask for more so mayke a AZERTY keyboard support in hack menu, or a way to launch hack menu from the CPC itself would be great but anyway here is a huge thank you for your work!!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:21, 01 January 19
Quote from: Duke on 08:15, 01 January 19
Maybe not all devices like the use of the NMI signal. Not sure if that is the problem with PlayCity (don't have one).
The PlayCity can use the NMI by itself (not used by default though). So maybe there is a hardware interference. I do have one and can run tests if needed.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:14, 01 January 19
Quote from: genesis8 on 10:15, 01 January 19
Pokes using the CPCEMU poke database format would be awesome, especially if the M4 remembers the name of the last runned game to position to the first letter of the poke database or even the good name of the database.
Cool. Will look into that if I can find any info on it.
Quote
I have started to use directories, in the web page if I have moved into a directory, a file uploaded will still be at the root of the SD. Would it be possible to upload to the current directory on the web page ?
This already works, atleast if you use the big "drop & drag" window to upload files.
So if it's not working it may be something particular with your directory structure. Can you give me an example I can try?

Quote from: francouai on 11:31, 01 January 19
nice job Duke with beta 7I have some graphic color bugs when I'm using the snapshot function on my CPC6128 CRTC1 .
and when I'm typing the filename on my CPC, it is running too fast, to all my letters entries are double. I have to press each keys very fast.TTEESSTT.SSNNAA  ;D
Thanks for testing, will have to dig up my CRTC1 CPC6128. Sounds like the mainloop is too quick so it runs within the vsync, multiple times.
Quote from: dxs on 16:05, 01 January 19
Users always ask for more so mayke a AZERTY keyboard support in hack menu, or a way to launch hack menu from the CPC itself would be great but anyway here is a huge thank you for your work!!
Will be easy to add AZERTY support. And yeah, I may add so an external switch can be connected to one of the GPIO pads. of the top connector.
Quote from: GUNHED on 16:21, 01 January 19
The PlayCity can use the NMI by itself (not used by default though). So maybe there is a hardware interference. I do have one and can run tests if needed.
Maybe it's driving the NMI line, so there is a bus contention when M4 (tries to) drive it. I only drive it when entering the hack menu, so I don't think I can do anything on my side to change the likely conflict.


Title: Re: Amstrad CPC WiFi
Post by: TotO on 18:26, 01 January 19
Just a little question: Is the PlayCity had worked with the previous version of the M4 firmware?
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:52, 01 January 19
Yes, e.g. togehter with the 1MB memory expansion I was able to start from the M4 board and drive Shinings "Bad Apple" demo correctly (as far as I can judge...)
Title: Re: Amstrad CPC WiFi
Post by: dxs on 21:55, 01 January 19
Quote from: Duke on 17:14, 01 January 19
And yeah, I may add so an external switch can be connected to one of the GPIO pads. of the top connector.
Yes please that would be awesome, turning m4 into a super-multiface along with poke capability!
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 22:56, 01 January 19
Quote from: Duke on 12:27, 31 December 18
M4 Firmware v2.0.5 beta 7 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b7.zip)

New feature is Hack Menu
This will allow you to save snapshots (SNA's) while playing games and other things.
Also possible to load snapshots from it.
Later if there is enough interest, I can add stuff like:

       
  • Pokes
  • Hex editor
  • Screenshot
It is very beta atm. so probably full of bugs :)
See video here for usage:
https://youtu.be/N2Vdeu-x1mo (https://youtu.be/N2Vdeu-x1mo)


Happy new year !
Tried this out today and I'm afraid I found it either slow to start or unreliable on my 6128 Plus. Maybe this is expected behaviour and fully appreciate it's a beta. So for example if I run the Pinball Fantasies preview and click Hack Menu the menu never appears. Whereas with other games it took a while for it to appear. Not sure if this is because I'm using a C4CPC cart as didn't test without.

One further piece of feedback is that shifted characters on the number keys don't appear to work. Some of my snapshot file names have brackets so I couldn't type those file names as shift+8 just generates an 8.

Great starting point though and a great dev tool ultimately for debug like the HackIt for Siren Software back in the day.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:12, 02 January 19
Quote from: Maniac on 22:56, 01 January 19
So for example if I run the Pinball Fantasies preview and click Hack Menu the menu never appears.
Is it just Pinball Fantasies, or was it failing to start up with other games too? (examples appreciated, so I can test).
Quote
Whereas with other games it took a while for it to appear. Not sure if this is because I'm using a C4CPC cart as didn't test without.
Slow depends a bit on your microSD card speed. When the hack menu is activated, memory will be written to the microSD. With a class 10 microSD card which I use, this takes about 1 second all in all.
It may take longer with older microSD's, which may be the reason for the slowness you experince?
Quote
One further piece of feedback is that shifted characters on the number keys don't appear to work. Some of my snapshot file names have brackets so I couldn't type those file names as shift+8 just generates an 8.
Yup, I only added one keymap so far (it's all lowlevel, not using the CPC firmware), so no checking for shift or lowercase characters.
Quote
Great starting point though and a great dev tool ultimately for debug like the HackIt for Siren Software back in the day.
Thanks. Guess it's more like the multiface 2 in the way it works.
The method goes like this:
When "Hack Menu" is activated, NMI is triggered along with RAMDIS and ROMDIS and M4 maps the lowerrom/ram area with its own dynamic rom "hack rom" (containing the menu code, save code etc).
Z80 registers are stored via M4 commands to the hack rom (hence dynamic) and 16 bytes of ram is used aswell (0xFFF0) as this is thrashed anyway when using the sna loader.
CRTC, Gate Array, PSG, Romsel and PPI registers are watched by the M4 core handler when the CPC is running at all time, and copied into the hack rom, when the NMI is triggered.
At entry RAM is saved to a temporary file, so the menu can use the screen to show registeres, menu options etc.
At exit, RAM is reloaded and a minimal exit routine is written to 0xFFF0 (so both upper and lower roms can be disabled if RMR had them disabled) that resumes the game/whatever was running.
Title: Re: Amstrad CPC WiFi
Post by: Maniac on 10:08, 02 January 19
Quote from: Duke on 06:12, 02 January 19
Is it just Pinball Fantasies, or was it failing to start up with other games too? (examples appreciated, so I can test).
I'll check a few more when I get some time to do so.

Quote from: Duke on 06:12, 02 January 19
Slow depends a bit on your microSD card speed. When the hack menu is activated, memory will be written to the microSD. With a class 10 microSD card which I use, this takes about 1 second all in all.
It may take longer with older microSD's, which may be the reason for the slowness you experince?
That makes a lot of sense. Can't find a class marking on my SanDisk Ultra card but pretty certain it's not class 10!

Quote from: Duke on 06:12, 02 January 19
The method goes like this:
When "Hack Menu" is activated, NMI is triggered along with RAMDIS and ROMDIS and M4 maps the lowerrom/ram area with its own dynamic rom "hack rom" (containing the menu code, save code etc).
Z80 registers are stored via M4 commands to the hack rom (hence dynamic) and 16 bytes of ram is used aswell (0xFFF0) as this is thrashed anyway when using the sna loader.
CRTC, Gate Array, PSG, Romsel and PPI registers are watched by the M4 core handler when the CPC is running at all time, and copied into the hack rom, when the NMI is triggered.
At entry RAM is saved to a temporary file, so the menu can use the screen to show registeres, menu options etc.
At exit, RAM is reloaded and a minimal exit routine is written to 0xFFF0 (so both upper and lower roms can be disabled if RMR had them disabled) that resumes the game/whatever was running.
Thanks for the explanation. It's great to understand what's going on in the background to make stuff like this work. I'm guessing that this won't work for Plus cartridge titles as you're not storing the ASIC registers etc?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:56, 02 January 19
Quote from: Maniac on 10:08, 02 January 19
I'm guessing that this won't work for Plus cartridge titles as you're not storing the ASIC registers etc?
Yes that's correct, maybe thats something for another time, but guess there is so little plus software, it wont justify the time I need to spend on that.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:44, 02 January 19
Hi Duke,

Here is a bug report.

From the SD-Card (inside an DSK) it seems to be impossible to load binary files.

When using the FutureOS installer from disc it works, but not from a DSK on the SD-card. The problem is that:

MEMORY &33FF:LOAD"FLASHALL.Z80",&3400

does not work. Instead of loading the file, the memory remains to be filled with zeros.
Here is the DSK (you can look inside file DISC.BAS beginning at line: 3050).

Please help!  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:40, 03 January 19
Quote from: GUNHED on 21:44, 02 January 19
MEMORY &33FF:LOAD"FLASHALL.Z80",&3400

does not work. Instead of loading the file, the memory remains to be filled with zeros.
Here is the DSK (you can look inside file DISC.BAS beginning at line: 3050).
A quick look at the file "FLASHALL.Z80", the AMSDOS header has file size set to 0 (offset 19 and 20).
According to Soft 968:
"Data length 19...20 As per cassette"
So if it loads using a real disc drive, I guess I should not be using those fields, with cas_in_direct.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:28, 03 January 19
Quote from: Duke on 09:40, 03 January 19
A quick look at the file "FLASHALL.Z80", the AMSDOS header has file size set to 0 (offset 19 and 20).
According to Soft 968:
"Data length 19...20 As per cassette"
So if it loads using a real disc drive, I guess I should not be using those fields, with cas_in_direct.

Ah that explains it! Filesize is only important for few files. All disc routines do read the number of blocks or number of records from the directory entry. Can you make the M4 loading routine compatible with that? Would be easy, if file size is set to zero, then check if the directory entry has blocks and how much.  :)

Lots of assemblers do save a binary file with file size 0, because they just don't know the final size of the file.

I'm surprised that nobody did find this problem before.  :o  But most people probably are doing gaming.  ;) :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:59, 03 January 19
Quote from: GUNHED on 16:28, 03 January 19
Ah that explains it! Filesize is only important for few files. All disc routines do read the number of blocks or number of records from the directory entry. Can you make the M4 loading routine compatible with that?
Yup, np. Will do so, soonish :)

Quote
But most people probably are doing gaming.  ;) :)
Think so too !
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:44, 03 January 19
You've been right. I adapted the header (by loading, erasing and saving the file) and now it all works well from SD-card too.  :)
Title: Re: Amstrad CPC WiFi
Post by: Festevez on 21:15, 03 January 19
Hi everybody


My name is Francisco, from Tenerife, Canary Islands. I started using MSX in the 80´s, my first computer ( ;D ), and nowadays I enjoy allmost every system that fall into my hands.


I have seen the M4 board created by Duke working, thanks to some fellows from our retro group, CanariasGoRetro. http://www.canariasgoretro.org/


I would like to buy a M4 board to use with my CPC464. So, a question to Duke, is still possible to buy the M4 board?


Thanks to Duke for creating this amazing must have board, regards for all fellows! :)
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 21:59, 03 January 19
Great choice, you will not be disappointed  ;)
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 22:50, 03 January 19
Quote from: GUNHED on 16:28, 03 January 19
Ah that explains it! Filesize is only important for few files. All disc routines do read the number of blocks or number of records from the directory entry. Can you make the M4 loading routine compatible with that? Would be easy, if file size is set to zero, then check if the directory entry has blocks and how much.  :)

Lots of assemblers do save a binary file with file size 0, because they just don't know the final size of the file.

I'm surprised that nobody did find this problem before.  :o  But most people probably are doing gaming.  ;) :)
I had this problem as I mentioned earlier in this thread, but not in this details.
http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/msg168087/#msg168087
Thanks for reporting this!
And many thanks to Duke for his awsome work!

Cheers


Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:29, 04 January 19
Quote from: Festevez on 21:15, 03 January 19
I would like to buy a M4 board to use with my CPC464. So, a question to Duke, is still possible to buy the M4 board?

Yes I still make them. Generally there is a 4-5 weeks lead time before I can have one ready.
Just send me a private message with your email address + what connector you want on the M4 board (IDC or EDGE) and if you need an adapter or cable (see options and prices in first post of this thread).
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:25, 04 January 19
It's totally ok to have some kind of "known errors" list, I have that for some stuff I made. Then it's more easy for people who encounter problems to find out what's going on.
Thanks a lot to Duke who is doing the debugging for us  ;D  Keep the great work going  :)

Title: Re: Amstrad CPC WiFi
Post by: francouai on 18:27, 04 January 19
Duke, how many M4 card have you sold?


Are you thinking for an hardware upgrade to have more functionality? Like more memory, CPC+ cartridges, clocks, etc..
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:14, 05 January 19
Quote from: francouai on 18:27, 04 January 19
Duke, how many M4 card have you sold?
~ 570 pcs.

Quote
Are you thinking for an hardware upgrade to have more functionality? Like more memory, CPC+ cartridges, clocks, etc..
Yes see : http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/galaxy-zen80-boards/
If I ever finish them :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:08, 05 January 19
Quote from: dxs on 16:05, 01 January 19
Users always ask for more so mayke a AZERTY keyboard support in hack menu

If anyone feels like giving me hand with AZERTY support for French and Spanish keyboards, please edit my QWERTY table below with correct characters for AZERTY keyboard.

THANKS !! :)

key_translate:
        db '.', 13,'3','6','9',0x0,0x0,0x0  ; numeric keys
        db '0','2','1','5','8','7',0x0,0x0  ; numeric keys
        db 0x0,''',0x0,'4',']', 13,'[',0x0
        db '.','?',':',';','p','@','-','^'
        db ',','m','k','l','i','o','9','0'
        db ' ','n','j','h','y','u','7','8'
        db 'v','b','f','g','t','r','5','6'
        db 'x','c','d','s','w','e','3','4'
        db 'z',0x0,'a',0x0,'q', 27,'2','1'
        db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0
key_translate_shift:
        db '.', 13,'3','6','9',0x0,0x0,0x0 ; numeric keys
        db '0','2','1','5','8','7',0x0,0x0 ; numeric keys
        db 0x0,'/',0x0,'4','}', 13,'{',0x0
        db '>','/','*','+','P','|','=','^'
        db '<','M','K','L','I','O',')','_'
        db ' ','N','J','H','Y','U',''','('
        db 'V','B','F','G','T','R','%','&'
        db 'X','C','D','S','W','E','#','$'
        db 'Z',0x0,'A',0x0,'Q', 27,'"','!'
        db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0

It correspond to the Hardware scancode table:
http://www.cpcwiki.eu/index.php/Programming:Keyboard_scanning (http://www.cpcwiki.eu/index.php/Programming:Keyboard_scanning)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:10, 05 January 19
M4 Firmware v2.0.5 beta 8 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b8.zip
Unpack to root of your microSD.

Title: Re: Amstrad CPC WiFi
Post by: dxs on 16:22, 05 January 19
Hi!
I'll make the AZERTY scan code table.
However I have a question, when reading your QWERTY table, I don't get why for example, line 3, row 2, I find the character " ' " (which should be " \ " ??) and when shifted I read " / ", whereas I should find " ' ".
What did I miss?
Thanks for latest beta!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:19, 05 January 19
Quote from: dxs on 16:22, 05 January 19
I'll make the AZERTY scan code table.
However I have a question, when reading your QWERTY table, I don't get why for example, line 3, row 2, I find the character " ' " (which should be " \ " ??) and when shifted I read " / ", whereas I should find " ' ".
What did I miss?
Great, thanks. Much appreciated!

You found a mistake, I swapped shifted, with not shifted. And I ignore '\' as it will be translated into '/' anyhow (filepath), probably there is some more I should filter out later, so they don't cause problems in filenames.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:59, 05 January 19
Awesome Duke! Thanks!!!  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: abalore on 20:53, 05 January 19
Quote from: Duke on 14:10, 05 January 19
M4 Firmware v2.0.5 beta 8 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b8.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b8.zip)
Unpack to root of your microSD.


       
  • Fix DSK file size 0 bug
  • Fix |longname / C_FSTAT bug, now (again) displaying long filenames properly.
  • Fix Hack menu - Slowdown keyboard reading.
  • Added Hack menu - Support full keyboard character set (QWERTY only for now).
  • Added Hack menu - Pokes (Press ESC when done entering pokes)
  • Added Hack menu - Display memory


Awesome. That's going to boost the M4 utilities development dramatically.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 00:09, 06 January 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) I made this for AZERTY keyboard. I removed all characters which aren't accepted by AMSDOS (including space), and included all the allowed ones. Should be error-free but who knows  ::)
If this is what you want to do I can correct the QWERTY one to include only AMSDOS allowed characters as well.

key_translate:
        db '.', 13,'3','6','9',0x0,0x0,0x0  ; numeric keys
        db '0','2','1','5','8','7',0x0,0x0  ; numeric keys
        db 0x0,0x0,0x0,'4','#', 13,0x0,0x0
        db 0x0,0x0,'m',0x0,'p','^',0x0,'-'
        db 0x0,0x0,'k','l','i','o',0x0,'à'
        db 0x0,'n','j','h','y','u','è',0x0
        db 'v','b','f','g','t','r',0x0,0x0
        db 'x','c','d','s','z','e',0x0,'''
        db 'w',0x0,'q',0x0,'a', 27,'é','&'
        db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0
key_translate_shift:
        db '.', 13,'3','6','9',0x0,0x0,0x0 ; numeric keys
        db '0','2','1','5','8','7',0x0,0x0 ; numeric keys
        db 0x0,0x0,0x0,'4',0x0, 13,0x0,0x0
        db '/','+','M',0x0,'P',0x0,0x0,0x0
        db '.',0x0,'K','L','I','O','9','0'
        db 0x0,'N','J','H','Y','U','7','8'
        db 'V','B','F','G','T','R','5','6'
        db 'X','C','D','S','Z','E','3','4'
        db 'W',0x0,'Q',0x0,'A', 27,'2','1'
        db 0x8,0x0,0x0,0x0,0x0,0x0,0x0,0x0
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:28, 06 January 19
Quote from: dxs on 00:09, 06 January 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) I made this for AZERTY keyboard. I removed all characters which aren't accepted by AMSDOS (including space), and included all the allowed ones. Should be error-free but who knows  ::)
If this is what you want to do I can correct the QWERTY one to include only AMSDOS allowed characters as well.

Cool, thank you so much @dxs (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1074) ! Will add it soon.
As for the QWERTY one, I will clean it myself, I can allow for some more characters than AMSDOS, since it will only save to microSD , so what's allowed with FAT32, or lets rather say OS restrictions.
These will not be allowed, maybe there is more : * ? < > | "
And then there is special characters for ie. : Ç ü
Which I don't have in my (lowerrom stolen) font.

Thanks!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:43, 06 January 19
Quote from: abalore on 20:53, 05 January 19

Awesome. That's going to boost the M4 utilities development dramatically.
It can be used as sort of a breakpoint to see, regs and mem for debugging yes.
Be aware, if you interrupt while a command is being sent to the M4, the part of the command that was send will be lost when resumed (maybe I will think of a solution for this). In fact the hack menu might crash.
So you would most likely, just do a "endless: jr endless" in your code where you want to check out things.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:45, 06 January 19
M4 Firmware v2.0.5 beta 9 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b9.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b9.zip)
Unpack to root of your microSD.

Fix Hack menu - Flaw in IM 2 detection.
Fix Hack menu - Resume "some games" (Pinball Fantasies, atleast on my one CPC).
Added Hack menu - AZERTY keyboard support (Huge thanks to @dxs (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1074) for the painful keymap table! And thanks to @ZbyniuR (http://www.cpcwiki.eu/forum/index.php?action=profile;u=840) for the keyboard detection method).
Title: Re: Amstrad CPC WiFi
Post by: francouai on 19:55, 06 January 19
graphic issue after resuming is now fixed;  Keyboard input Speed is also fixed; AZERTY layout works
Monster Duke!  :-*
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:43, 07 January 19

It's me again :P (gahhh !)

M4 Firmware v2.0.5 beta 10 now available.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205b10.zip
Unpack to root of your microSD.

Added ability to launch hack menu via external button.

It requires soldering two wires to the M4 PCB (the wifi module).

If you are happy not using Hack Menu or just launching it from the WEB interface, no reason to make this modification.
If you decide to solder on the switch, be aware it is at your OWN risk.
Be careful not to short the wires to the metal housing of the ESP12F module. I recommend to isolate the wires at the resistor and button to avoid an accidental short.

The instructions in the below pictures.

Title: Re: Amstrad CPC WiFi
Post by: Rennert on 17:32, 07 January 19
Great[emoji3](https://uploads.tapatalk-cdn.com/20190107/ec08be43820559b0159f7d18380530fa.jpg)
Title: Re: Amstrad CPC WiFi
Post by: francouai on 08:03, 08 January 19
Rennert (http://www.cpcwiki.eu/forum/profile/?u=992) > very nice switch install.My M4 is not like yours, so I cannot do the same.

Title: Re: Amstrad CPC WiFi
Post by: Rennert on 08:13, 08 January 19
Quote from: francouai on 08:03, 08 January 19
Rennert (http://www.cpcwiki.eu/forum/profile/?u=992) > very nice switch install.My M4 is not like yours, so I cannot do the same.
I have board Rev. 2.0
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:47, 08 January 19
Yes, nice mod by @Rennert (http://www.cpcwiki.eu/forum/index.php?action=profile;u=992) .

In fact those with rev. <=v2.4D boards can take both signals from the top header.
If you have IO5 label on the top header, you can take it from there as well as GND.
Title: Re: Amstrad CPC WiFi
Post by: Rennert on 18:42, 08 January 19
Yes with SMD resistor can place the button directly between GND and IO5. But I like the button on outer edge.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 22:21, 08 January 19
Hi Duke! Great update! Just gave you like #999, would give you 999 more if possible. Just awesome!!!  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: dxs on 19:09, 10 January 19
Enabling the hack menu with a button is awesome! The AZERTY support works perfectly, apart maybe from missing "é è à", and "^" which returns "(up arrow sign)". Absolutely not very important at all :-) Maybe slow down a bit the up down selection in the main hack menu, sometimes I get double line changes (like in previous beta when typing snapshot name).
I also got (uncommon) crashes when saving in games, would providing the .sna help diagnose the failure mode?

Here is my M4 setup if this can give some ideas, the hack switch is just above the USB stick of the drive, the red button behind (in the 12v plug hole) is the M4 reset switch.


(http://thumbs2.imagebam.com/c3/3f/f6/16dadf1088566484.jpg) (http://www.imagebam.com/image/16dadf1088566484)


(http://thumbs2.imagebam.com/1e/1a/19/4de0ca1088566674.jpg) (http://www.imagebam.com/image/4de0ca1088566674)


(http://thumbs2.imagebam.com/97/cd/33/4712541088566934.jpg) (http://www.imagebam.com/image/4712541088566934)


(http://thumbs2.imagebam.com/fc/85/37/e27ae41088567274.jpg) (http://www.imagebam.com/image/e27ae41088567274)



Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:43, 10 January 19

Looks great :)

Quote from: dxs on 19:09, 10 January 19
I also got (uncommon) crashes when saving in games, would providing the .sna help diagnose the failure mode?

Just tell me the games, which do occasionally crash, then I can try to test those.
Be aware that any navigation in the webui or ie. loading via the M4 while pressing the hack button, may result in a crash. It's cause any ongoing M4 commands will be corrupted, so safest bet is probably to pause a game then, activate hack (or be sure it's not in the process of loading from the microSD).
I will work on a solution so M4 commands can be interrupted without corruption.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 21:49, 10 January 19
I got a crash tonight in Arkanoid (a trained one out of a huge cracked game pack - can provide game files). Doesn't crash very often at all, maybe depends on power ups or something else in game.
I had no computer connected to the WiFi , just the CPC on its own. The crash happened when resuming from hack menu, and later launching the saved .sna resulted in the same crash.
Title: Re: Amstrad CPC WiFi
Post by: francouai on 07:36, 11 January 19
nice install.but by using your M4 card, you don't no need any more a Gotek drive.install back the original 3" floppy drive.
Title: Re: Amstrad CPC WiFi
Post by: dxs on 10:57, 11 January 19
Original drive was beyond repair  :-[
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:55, 11 January 19
There are lots of buggy Arkanoid versions out there (problems after some levels or near the end).

If there are problems with a game on M4 card, then it's good to test the disc version on real disc too. Often the crack has problems per se.

Also, it's good to use the newest firmware update.  ;) :)
Title: Re: Amstrad CPC WiFi
Post by: francouai on 17:19, 11 January 19
I just did the mod on my M4.         I had only one resistor of 2K ohms  :-[ but it do the trick too.
here it is some pictures:    I realised that the game RAMBO doesn't break by pressing the hack switch.
Title: Re: Amstrad CPC WiFi
Post by: deepfb on 00:10, 13 January 19
Does the M4 work on a KC Compact? Yes, it does :D
(https://farm5.staticflickr.com/4869/31777390287_7fc51c39ba.jpg) (https://flic.kr/p/Qq4r2r)

And some pictures on how I modified the M4 cards. Old version:
(https://farm5.staticflickr.com/4858/31777390307_f39da74307.jpg) (https://flic.kr/p/Qq4r2M)
(https://farm8.staticflickr.com/7892/31777390247_ba044a0d10.jpg) (https://flic.kr/p/Qq4r1K)

New version:
(https://farm8.staticflickr.com/7875/45994236644_583db53612.jpg) (https://flic.kr/p/2d5mu95)
(https://farm5.staticflickr.com/4813/31777390207_b10de14d77.jpg) (https://flic.kr/p/Qq4r14)

Savestates/snapshots work like a charm -thank you very much for it!
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 12:14, 13 January 19
I am trying to launch the GnG CPC+ version of xifos (http://www.cpcwiki.eu/forum/games/ghosts'n-goblins-gx4000-is-out-!/msg160770/#msg160770 (http://www.cpcwiki.eu/forum/games/ghosts'n-goblins-gx4000-is-out-!/msg160770/#msg160770)) but it doesnt work, either using web interface or ctrup and ctr RSX commands.


Did someone already try this CPR file ?
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 16:43, 13 January 19
Another question, I try to use firmware 3.1.2 english as my CPC+ is french and hibernated 1 doesnt like it (cant use the letter M).


I check lower rom, upload it in slot 31 but I still have the regular lower rom. Is it possible with a CPC+ ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:54, 13 January 19
Quote from: dxs on 21:49, 10 January 19
I got a crash tonight in Arkanoid (a trained one out of a huge cracked game pack - can provide game files). Doesn't crash very often at all, maybe depends on power ups or something else in game.
I had no computer connected to the WiFi , just the CPC on its own. The crash happened when resuming from hack menu, and later launching the saved .sna resulted in the same crash.
Thanks. Will test when I have a bit more time! and in this case .sna + cracked game may be useful, if you still have it.

Quote from: genesis8 on 16:43, 13 January 19
Another question, I try to use firmware 3.1.2 english as my CPC+ is french and hibernated 1 doesnt like it (cant use the letter M).


I check lower rom, upload it in slot 31 but I still have the regular lower rom. Is it possible with a CPC+ ?
I think for CPC plus, you will need to upload Basic 1.1 to from a regular CPC6128 to slot 0 aswell, for FW3.1.X to work.


Quote from: genesis8 on 12:14, 13 January 19
I am trying to launch the GnG CPC+ version of xifos (http://www.cpcwiki.eu/forum/games/ghosts'n-goblins-gx4000-is-out-!/msg160770/#msg160770 (http://www.cpcwiki.eu/forum/games/ghosts'n-goblins-gx4000-is-out-!/msg160770/#msg160770)) but it doesnt work, either using web interface or ctrup and ctr RSX commands.

Oups !
In fact no CPC plus cartridges work anymore. I broke it in an earlier beta.

Here is a fix.....

M4 Firmware v2.0.5 beta 11
Download from  http://www.spinpoint.org/cpc/M4FIRM_v205b11.zip
And unpack to the root of your microSD card.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 18:10, 13 January 19
Crap, I just updated the previous firmware and now I see this  :P


Thanks Duke, trying this immediately.
Title: Re: Amstrad CPC WiFi
Post by: francouai on 18:59, 13 January 19
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , It will be very nice if the .SNA files will be saved directly into a /SNAPSHOT (or what ever) folder instead of the Root.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:05, 13 January 19
Quote from: francouai on 18:59, 13 January 19
@Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , It will be very nice if the .SNA files will be saved directly into a /SNAPSHOT (or what ever) folder instead of the Root.
I like the user can choose the path tbh. but if more prefer this, I'll be listening:)

You can save into ie. folder SNAPSHOT just type:
SNAPSHOT/mysnap001.sna
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:06, 13 January 19
Freedom please!  ;D
Title: Re: Amstrad CPC WiFi
Post by: francouai on 19:11, 13 January 19
ok, understood!  ;D
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:18, 13 January 19
Using: AMSDAP, 4 MB RAM and M4: Update worked, but the screen stayed black after the red LED went out. It's not a problem. Just to report.  :)

2nd try, using my oldest M4 board instead: CPC updates and resets, all fine.  :) :)
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 20:04, 13 January 19
Quote from: Duke on 17:54, 13 January 19
Thanks. Will test when I have a bit more time! and in this case .sna + cracked game may be useful, if you still have it.
I think for CPC plus, you will need to upload Basic 1.1 to from a regular CPC6128 to slot 0 aswell, for FW3.1.X to work.


Oups !
In fact no CPC plus cartridges work anymore. I broke it in an earlier beta.

Here is a fix.....

M4 Firmware v2.0.5 beta 11
Download from  http://www.spinpoint.org/cpc/M4FIRM_v205b11.zip (http://www.spinpoint.org/cpc/M4FIRM_v205b11.zip)
And unpack to the root of your microSD card.

       
  • Fix CPC plus cartridge support(broken in earlier beta).


Well strangely after updating to beta 11, the CPC booted into firmware 3.1.2 without uploading basic 1.1


Sadly even if I am in qwerty, Hibernated 1 still doesnt accept the key M, so I cant take an object (module in the private area) at the start of the game. But it's a known problem, I just thought the firmware could correct it, it doesnt.


GnG CPC+ did load ! Thank you.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:56, 13 January 19
Potential bug report:

- Installing the FutureOS lower ROM into 31 and enabling it does freeze the CPC. Switch it on and off doesn't work, reset M4 doesn't work either. But using the Web interface to reset the CPC actually does work every 2nd time. It's like a flip-flop. Did anybody experience such a phenomenon? Can somebody test this please?

- Hack-Menu: It does not return from FutureOS, instead the screen gets corrupted and the CPC freezes.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 15:08, 31 January 19
Finally I fired up my Plus with the almighty M4.
Tested the Cartridge function which works like a charm.
From 5 games I tested only Switchblade refused to load.
Time to visit that cpr conversion post that I only just watch for years now.
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 00:15, 04 February 19
Hi Fellows,
after playing a little bit with my m4 board I encountered with some issues.
When I try to load a bin file from the sd with
  memory &8fff
  load"tcpsrv.bin", &9000

I got a "SYNTAX ERROR".
But loading from the floppy works as expected.
The bin file was created with maxam 1.14 rom from the attached file.
It's Duke's tcpserver.
As I said, from the floppy it works well.

Regards
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:10, 04 February 19
Quote from: GUNHED on 20:56, 13 January 19
- Installing the FutureOS lower ROM into 31 and enabling it does freeze the CPC. Switch it on and off doesn't work, reset M4 doesn't work either. But using the Web interface to reset the CPC actually does work every 2nd time. It's like a flip-flop. Did anybody experience such a phenomenon? Can somebody test this please?

- Hack-Menu: It does not return from FutureOS, instead the screen gets corrupted and the CPC freezes.
Thanks will investigate it further.

Quote from: VincentGR on 15:08, 31 January 19
Finally I fired up my Plus with the almighty M4.
Tested the Cartridge function which works like a charm.
From 5 games I tested only Switchblade refused to load.
Time to visit that cpr conversion post that I only just watch for years now.
ALL cpc plus games should work. Did you try any other version of Switchblade? - Also you can try to use CPC reset after loading, if it doesnt start.

For the cpr conversions, its even neater, you can simply set M4 to rom7 (on CPC plus) and |cd directly into them and use cat/run.  Of course you can reflash to a CPR cartridge aswell, just the other method is quicker and even works on regular CPC's.

Quote from: cpcoldie on 00:15, 04 February 19
When I try to load a bin file from the sd with
  memory &8fff
  load"tcpsrv.bin", &9000

I got a "SYNTAX ERROR".

Please try:  M4 Firmware v2.0.5 beta 12. Download: http://spinpoint.org/cpc/M4FIRM_v205b12.zip (http://spinpoint.org/cpc/M4FIRM_v205b12.zip)
Unpack to root of microSD and powercycle your CPC.
* FIX cas_out_open header manipulation after open.

Did a quick test with maxam 1.14 and it does a little sneaky thing to get a header on the file when using "write" directive.
This works now with M4 too.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:00, 04 February 19
Wow, non plus carts for regular cpcs  :-X
I tried reset yes with same results that day.
Just mode 0 screen corruption.
Also tried other cart, will have to dig the collection for more.
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 14:36, 04 February 19
Quote from: Duke on 12:10, 04 February 19
Please try:  M4 Firmware v2.0.5 beta 12. Download: http://spinpoint.org/cpc/M4FIRM_v205b12.zip (http://spinpoint.org/cpc/M4FIRM_v205b12.zip)
Unpack to root of microSD and powercycle your CPC.
* FIX cas_out_open header manipulation after open.

Did a quick test with maxam 1.14 and it does a little sneaky thing to get a header on the file when using "write" directive.
This works now with M4 too.

Yeah!

It works!

Thanks a lot!
And what a quick response!
Duke you are a hero!
And the bcpl issue I mentioned earlier in this thread has gone too.
Thanks again for your great work.

Regards


Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 01:52, 06 February 19
Well, as I'm doing my first steps on the Plus side I have a question.
I am using the same M4 with the modified rom from my 6128 to my Plus machine.
Do I have to change something?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:30, 06 February 19
Quote from: VincentGR on 01:52, 06 February 19
Well, as I'm doing my first steps on the Plus side I have a question.
I am using the same M4 with the modified rom from my 6128 to my Plus machine.
Do I have to change something?
You don't need to change it, but since it is a PLUS you don't need the modified lowerrom, you can remove it and set M4 rom directly to 7.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 12:30, 06 February 19
Yes, I removed it and I have v4 now in Basic.
M4 is on 6 (7 if you count 0) and AMSDOS on 8.
The problem now is that I have a french keyboard and can't find "|" key  ;D ;D ;D


I'll do some experiments.

Title: Re: Amstrad CPC WiFi
Post by: robcfg on 12:36, 06 February 19
It's actually on the same place and generates the ú symbol.


So IIRC you have to type úCPM  :D
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:56, 06 February 19
Ok, uploaded Plus rom on board but had no tape support.
Switched back to the old config.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 17:51, 14 February 19
I also used the |FCP command with * for complete disk copy and file by file.
Most of the times the disk I make is empty although KB are reduced and cat gives me nothing.With |ls I can see the files on the disk (3" drive and 3.5) but when I try to run something it says file not found.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:58, 14 February 19
Quote from: VincentGR on 17:51, 14 February 19
I also used the |FCP command with * for complete disk copy and file by file.
Most of the times the disk I make is empty although KB are reduced and cat gives me nothing.With |ls I can see the files on the disk (3" drive and 3.5) but when I try to run something it says file not found.
|ls only works for microSD card, so you will not be seeing the files on disc drive. Use: |DISC, then  |dir or cat to see whats on the disc.

Please show entire |FCP command for more help. Maybe even a screenshot, so I can see if files are actually found and copied.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 18:09, 14 February 19
I just did that.
cat or |ls in the disk image (SD)


Then |ls, "file.bas","a:"
also tried c:file.bas a:


Both came with the same result.


After |disc cat gave me nothing, only less capacity on disc.
The |ls works on disk mode and files appear but when I ran them, file not found.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:08, 14 February 19
@VincentGR (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1053) 
See below pictures, for steps I used to copy a DSK to real floppy.
I don't see a problem.

Please show me all steps you take, that gives you this strange results (2 screenshots like I did, should tell the full story).

Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 20:17, 14 February 19
here

170KB free, it took the 8KB but no dir.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:21, 14 February 19
OK, probably something specific to that DSK (fileheader I guess).
Can you attach area51.dsk, then I can fix it ;)
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 20:27, 14 February 19
Please try as is first, I tried on two floppy drives and different images/disks.



Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:45, 14 February 19
Quote from: VincentGR on 20:27, 14 February 19
Please try as is first, I tried on two floppy drives and different images/disks.
Works fine here, when I copy it to floppy.

Can you try to disable "modified lowerrom" and set M4 to 6 and remove your AMSDOS rom at 8.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 20:52, 14 February 19
It works!!!
But now without the modified ROM some games will not load  ;D
I'll have to disable it when I want to copy something.


Thank you Duke!!!
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 13:05, 03 March 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) ,


I just got out my M4 and my CPC6128 from the storage place and decided to connect everything.


It connected just fine, the web interface is up and running, and shows the following parameters:
|version

M4 v2.0.4
ESP v2.0.4


|netstat
Signal: 0xB0
IP: 192.168.1.128
Netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS1: 8.8.8.8
DNS2: 8.8.4.4



But, when I try to |upgrade or |httpget anything, it just hangs and does nothing.


Is there anything else I should do like deleting config files?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:17, 03 March 19
Upgrade takes some time.
Did you let it do the job for a while?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 13:30, 03 March 19
Yes, but I know my M4 and I don't think that downloading google's favicon.ico file shouldn't take more than a few seconds...
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 13:40, 03 March 19
If this is not a software/hardware issue, I would try my isp's dns.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:24, 03 March 19
Quote from: robcfg on 13:05, 03 March 19
Is there anything else I should do like deleting config files?

Hmm, not really. Only thing I notice is the wifi signal is very weak, so maybe it looses connection when you are trying to download.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 14:43, 03 March 19
What are the ranges for the wifi signal?


Strange enough, I can send files to the sd via the web interface, and use your telnet application with several sites.


There's a ._M4FIRM.BIN file which looks suspicious...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:22, 03 March 19
Quote from: robcfg on 14:43, 03 March 19
What are the ranges for the wifi signal?
A0-FF
Quote
Strange enough, I can send files to the sd via the web interface, and use your telnet application with several sites.
Yeah that would indicate there's no problem with the wifi signal. Also I remembered wrong, b0, is not weak, not good, but somewhere in between ;)

Quote
There's a ._M4FIRM.BIN file which looks suspicious...

Oh?

What about your router setup, maybe you have some firewall setup for outside access? since LAN == OK, WAN == BAD.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 16:56, 03 March 19
All devices in the house are connected through wifi, and I could use telnet from the cpc.


Which port do you use for downloading stuff?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 17:32, 03 March 19
I've monitored the command |httpget,"https://www.google.com/favicon.ico" on the router app, and it seems to be communicating, but the cpc hangs and I have to power cycle it.



Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:06, 03 March 19
Quote from: robcfg on 17:32, 03 March 19
I've monitored the command |httpget,"https://www.google.com/favicon.ico (https://www.google.com/favicon.ico)" on the router app, and it seems to be communicating, but the cpc hangs and I have to power cycle it.

Uhm, it uses port 80. But, HTTPS is not supported, only HTTP.

Try this:
|httpget,"spinpoint.org/cpc/m4info.txt" infact all the http/https should be left out of the url
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 19:17, 03 March 19
It does indeed work without http/https.


It also seems that when power cycling it, sometimes it will loose the connection information, so if you use |upgrade or |httpget, it will hang.


I created a bas file to run when that happens.


When connected, |upgrade works well too.


Are these conditions something you can check? I mean, if not connected, just abort the command and print "Not connected". On the ARM side of things, checking the string and remove any http/https shouldn't be big deal.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:35, 03 March 19
Quote from: robcfg on 19:17, 03 March 19
Are these conditions something you can check? I mean, if not connected, just abort the command and print "Not connected". On the ARM side of things, checking the string and remove any http/https shouldn't be big deal.
Yeah, will try to remember it for the next update, thanks :)
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 15:38, 08 March 19
Hi Duke,I had some troubles while working on a source code file created with ORGAMS. As long as the source file I was working on is smaller than 2 kB (smaller than the internal buffer maybe?) everything works well regarding saving and loading a file. But if the file became bigger than it is not loadable again. ORGAMS is telling about "unexpected end of file". Have you heared about that before?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:09, 08 March 19
Quote from: HAL 6128 on 15:38, 08 March 19
I had some troubles while working on a source code file created with ORGAMS. As long as the source file I was working on is smaller than 2 kB (smaller than the internal buffer maybe?) everything works well regarding saving and loading a file. But if the file became bigger than it is not loadable again. ORGAMS is telling about "unexpected end of file". Have you heared about that before?
Not heard about it before, will have to test.
Did you try with v2.0.5beta12 btw.  http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/2350/  ? 
Maybe a related issue.
Anyway will test&fix when I get some time...
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 20:29, 09 March 19
For the wifi signal, would it be possible to state right to the hexadecimal a string bad/medium/good/very good ?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 10:10, 10 March 19
That would ve a good idea, but I think a percentage value would be more informative.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 20:10, 10 March 19
Quote from: Duke on 16:09, 08 March 19
Did you try with v2.0.5beta12 btw.  http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/2350/ (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/2350/)  ? 
...yeah, v2.05beta12.
Title: Re: Amstrad CPC WiFi
Post by: davebirl on 23:40, 13 March 19
I've only started using my M4 card really this week. I am setting up some old favorite games of mine and typing up some basic instructions for my 4 year to follow. She is making great progress and really enjoying using "her" new computer :)


I've hit a snag with the UK version of Prince of Persia. The 191K .dsk file shows only prince.bas @ 1K in size and will not run. If I use an emulator it works, or if I use the cracked French versions it works.


Any ideas anyone? appreciate the help, thank you.
Title: Re: Amstrad CPC WiFi
Post by: francouai on 08:58, 14 March 19
Hi Duke,When your Beta version will become final?  ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:53, 14 March 19
Quote from: davebirl on 23:40, 13 March 19
I've hit a snag with the UK version of Prince of Persia. The 191K .dsk file shows only prince.bas @ 1K in size and will not run. If I use an emulator it works, or if I use the cracked French versions it works.

For M4 you need to find a cracked version (non copyprotected) to make it run. A quick look around, I don't see a crack of the English version, only French. Maybe someone else has
Prince of Persia English Cracked???

Quote from: francouai on 08:58, 14 March 19
Hi Duke,When your Beta version will become final?  ;D

Uhmmmm.... Maybe when I catchup with current backlog of orders, or just soon (tm) ;)
Title: Re: Amstrad CPC WiFi
Post by: davebirl on 22:18, 14 March 19
Quote from: Duke on 14:53, 14 March 19
For M4 you need to find a cracked version (non copyprotected) to make it run. A quick look around, I don't see a crack of the English version, only French. Maybe someone else has
Prince of Persia English Cracked???


Thanks Duke!
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 16:49, 17 March 19
Hey Duke .. this is possible ? .. or is a fake ?  :o :o
https://twitter.com/John_M117C/status/1107033110565273601 (https://twitter.com/John_M117C/status/1107033110565273601)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:57, 17 March 19
Quote from: XeNoMoRPH on 16:49, 17 March 19
Hey Duke .. this is possible ? .. or is a fake ?  :o :o
https://twitter.com/John_M117C/status/1107033110565273601 (https://twitter.com/John_M117C/status/1107033110565273601)
Possibly sure, though not with current setup/software of M4... But this is probably just a shell from a 4TB HD used as casing.
Title: Re: Amstrad CPC WiFi
Post by: TotO on 17:21, 17 March 19
It is a 4TB external drive from Seagate to use with a X-BOX One S.
The interface to connect it is Micro USB 3 from the top (here on the right).

The PCB under it is not connected to anything... But you can see this device with the cable going to the X-BOX S in the background.
So, it is a fake... But, sure it is possible to connect a TB mass storage to a CPC as well as GB RAM... But, it is just useless.

Title: Re: Amstrad CPC WiFi
Post by: chinnyhill10 on 19:21, 17 March 19
Quote from: davebirl on 23:40, 13 March 19

Any ideas anyone? appreciate the help, thank you.


I always look for CNG cracks when using the M4.


http://cngsoft.no-ip.org/cpc_lzx.htm (http://cngsoft.no-ip.org/cpc_lzx.htm)


Their stuff works first time, every time. They do the work of saints!
Title: Re: Amstrad CPC WiFi
Post by: francouai on 08:25, 18 March 19
I don't think it is a fake box.you have a video after, both LED are ON on the same time when he switch ON his CPC.
https://twitter.com/John_M117C/status/1107037874950680577 (https://twitter.com/John_M117C/status/1107037874950680577https://twitter.com/John_M117C/status/1107037874950680577https://twitter.com/John_M117C/status/1107037874950680577https://twitter.com/John_M117C/status/1107037874950680577)
Title: Re: Amstrad CPC WiFi
Post by: TotO on 09:21, 18 March 19
Not so much time to waste with those sort a video making peoples thinking something that is not... :-\
The last video don't cat anything, because it is just the M4 board embedded into the disk case and the Micro SD out from the micro-USB3 hole.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 09:48, 18 March 19
That's what I thought, too. All we see is a nice case... might as well connect my NAS to the CPC and claim such capabilities :D
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:12, 18 March 19
He wrote that he put the M4 in the case. That's all. And it looks good.

Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 19:13, 18 March 19
So it's just a joke more than a fake

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:44, 18 March 19
Guess he just needed a case, liked the result and presented it.
Title: Re: Amstrad CPC WiFi
Post by: f-bone on 17:02, 25 March 19
 hi guys!


Just finished setting up my M4 board and it's really great!


I have couple of questions that a quick search got me no answers..


Maybe you can help.


1) How do I play multidisk games
2) If I upload Parados rom in slot 5 and enable it with |m4romoff how I re-enable the M4 rom without deleting Parados rom?
3) Did I understand correctly that M4 can also act as memory expansion? If so how exactly?
Title: Re: Amstrad CPC WiFi
Post by: simulant on 22:45, 25 March 19
Quote from: CraigsBar on 14:11, 24 June 17
On a happier note however the Benediction shell rom will live in slot 1, it is amazing :)

With my Patched Cart in the C4CPC I can use c4cpc as a command to open the c4cpc menu and select a cart game so it's pretty damn fine anyway.
Hi is there any guide or instructions out there on how to use a C4CPC with M4 at the same time? When I try to launch some things on the C4CPC when my M4 is plugged in I get errors like "incompatible memory card" or "m4 . file not found" etc.
Also where did you get the patch so you can run c4cpc as a command?
Thanks for any help :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:25, 26 March 19
Quote from: f-bone on 17:02, 25 March 19
1) How do I play multidisk games
You can change .DSK using the web interface (CD ON CPC) OR you can extract all .DSK's to the same directory and launch the game from there.
Ie.
|mkdir,"Turrican"
|dskx,"turrican1.dsk","Turrican"
|dskx,"turrican2.dsk","Turrican"
|cd,"Turrican"
run"turrican"
Quote
2) If I upload Parados rom in slot 5 and enable it with |m4romoff how I re-enable the M4 rom without deleting Parados rom?
If you use |M4ROMOFF, you simply powercycle the CPC (or use M4 reset) to bring back M4 rom. Any uploaded roms will not be deleted/changed.
Quote
3) Did I understand correctly that M4 can also act as memory expansion? If so how exactly?
No, it does not act as a memory expansion.
Title: Re: Amstrad CPC WiFi
Post by: f-bone on 16:46, 26 March 19
Quote from: Duke on 06:25, 26 March 19
You can change .DSK using the web interface (CD ON CPC) OR you can extract all .DSK's to the same directory and launch the game from there.
Ie.
|mkdir,"Turrican"
|dskx,"turrican1.dsk","Turrican"
|dskx,"turrican2.dsk","Turrican"
|cd,"Turrican"
run"turrican"If you use |M4ROMOFF, you simply powercycle the CPC (or use M4 reset) to bring back M4 rom. Any uploaded roms will not be deleted/changed.No, it does not act as a memory expansion.


Thank you Duke, just a small note..


If I power cycle the CPC or reset M4, the Parados rom is still loaded! Maybe because it is in Slot 4 so it comes first before Slot 6 where M4 rom is uploaded? Also I noticed that if I copy Parados v1.s+ ROM to Slot 4 (I use slot 5 for IME4FE) there is no need for IME4ROMOFF.. A reset loads Parados on next boot..


If I use Slot 8 for Parados it crashes..


Also I can hear some parasitic noise from the speaker when I start the CPC?


Last question for a while! I guess with "Hack" mode I can savegame? i.e. start another day from where I left off?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 17:24, 26 March 19
Quote from: f-bone on 16:46, 26 March 19
If I use Slot 8 for Parados it crashes..
Parados must be set to a ROM-Number 7 or lower.
(Maybe a patch at #DC43 to "NOP" could be solved that problem for V1.2)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 03:42, 27 March 19
Quote from: simulant on 22:45, 25 March 19
Hi is there any guide or instructions out there on how to use a C4CPC with M4 at the same time? When I try to launch some things on the C4CPC when my M4 is plugged in I get errors like "incompatible memory card" or "m4 . file not found" etc.
Please explain how you got those errors messages (which software)?
Quote from: f-bone on 16:46, 26 March 19
If I power cycle the CPC or reset M4, the Parados rom is still loaded! Maybe because it is in Slot 4 so it comes first before Slot 6 where M4 rom is uploaded? Also I noticed that if I copy Parados v1.s+ ROM to Slot 4 (I use slot 5 for IME4FE) there is no need for IME4ROMOFF.. A reset loads Parados on next boot..
|M4ROMOFF, is only intended to turn off M4 rom, not any other roms. Power Cycle will bring back M4 rom and any other ROM, so that is expected behaviour.
Quote
Also I can hear some parasitic noise from the speaker when I start the CPC?
There is some interference from the WiFi. It will disappear if you use an external power supply connected to the M4 board (and change the jumper setting).
Quote
Last question for a while! I guess with "Hack" mode I can savegame? i.e. start another day from where I left off?
Yes, that's the main purpose (right now) of the hack menu, to be able to save and resume a game at any time. It's still beta though so it's not perfect yet.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:27, 28 March 19
Quote from: f-bone on 16:46, 26 March 19
Also I can hear some parasitic noise from the speaker when I start the CPC?
Switch the WiFi off, or extend the cable length to the CPC (which shouldn't be too long, and I haven't tested how long still works reliable).
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 04:25, 05 April 19
https://twitter.com/John_M117C/status/1110864908424495105
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 11:11, 07 April 19
hi duke

the ùfcp rsx doesn't retain attrib for file

when i copy hidden file, it is normal on dest, i lost hidden attrib

edit : read only the same



can you modified the rsx please ?

and complet command like ùfcp,"*.*","a:",h to hidden files on dest if you want

thanks in advance
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 12:17, 07 April 19
Please not ,h. If needed stay compatible to other DOS. In CPC world ist "System" and not "hidden". Please use "s" if needed. Personally I don't mind "loosing" file attributes.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:39, 08 April 19
Quote from: breiztiger on 11:11, 07 April 19
can you modified the rsx please ?
Will see what I can do when I get back to the next firmware update.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 12:41, 12 April 19
I wonder if there is a Double Dragon version for M4 (not the tape one)
I have the original disk but soon I'll leave for work away from home and I'll take my 464 Plus with me, so no 3" drive.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:19, 12 April 19
Quote from: VincentGR on 12:41, 12 April 19
I wonder if there is a Double Dragon version for M4 (not the tape one)
I have the original disk but soon I'll leave for work away from home and I'll take my 464 Plus with me, so no 3" drive.
http://cpccrackers.free.fr/Downloads/

Search "Double Dragon".. version from le Famous Cach seems to run fine on M4, didnt try the others.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 16:56, 12 April 19
Thanks Duke, will try that.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 18:23, 16 April 19
Hi Duke, should the |upgrade command update to 2.0.4?  Seems I am stuck on 2.0.3.


Actually although I get a positive from netstat that i am connected, I am guessing I am not.  Has anyone else successfully tethered to their phone from the CPC?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:44, 16 April 19
Quote from: zhulien on 18:23, 16 April 19
Hi Duke, should the |upgrade command update to 2.0.4?  Seems I am stuck on 2.0.3.


Actually although I get a positive from netstat that i am connected, I am guessing I am not.  Has anyone else successfully tethered to their phone from the CPC?
Yes, it should upgrade to 2.0.4. Maybe DNS issue?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 19:59, 16 April 19
I did it manually since I have no non-tethered internet at the moment.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 17:04, 17 April 19
Hi Duke,


I am coding the front end of 8bitology.net (first cut in BASIC so it provides everyone with an example of how to use it).  If I do a |httpget,"http://8bitology.net/ws.php?function=system_getapiversion" - it saves the the response as ws.php.  I am guessing |httpget is assuming I want to save a file of the same name I am getting a bunch of data from? 


Would you mind to add a second optional parameter to specify the local CPC filename the response would save it? and a third parameters 1 or 0 to indicate whether you want it silent or verbose (echo file downloaded on the screen)?


Also there doesn't appear to be any timeout?  if you hit an invalid url it will sit forever i think.


Julian
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:56, 17 April 19
Sounds sensible. Will see what I can do with the next update.

Quote from: zhulien on 17:04, 17 April 19
I am coding the front end of 8bitology.net (first cut in BASIC so it provides everyone with an example of how to use it).  If I do a |httpget,"http://8bitology.net/ws.php?function=system_getapiversion (http://8bitology.net/ws.php?function=system_getapiversion)" - it saves the the response as ws.php.  I am guessing |httpget is assuming I want to save a file of the same name I am getting a bunch of data from? 


Would you mind to add a second optional parameter to specify the local CPC filename the response would save it? and a third parameters 1 or 0 to indicate whether you want it silent or verbose (echo file downloaded on the screen)?


Also there doesn't appear to be any timeout?  if you hit an invalid url it will sit forever i think.
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 21:56, 17 April 19
Hi DukeI tried to use the ROM with the M4 but my CPC+ hangs
I use the M4 next to a regular BurninRubber cartridge
Is there any "normal" configuration i may use?
I mean, what are the settings for a raw configuration without additionnal ROM etc?
Thanks
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:01, 17 April 19
Now that you've mentioned burning rubber, is it possible to boot the plus with just the M4?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:24, 18 April 19
Quote from: roudoudou on 21:56, 17 April 19
Hi DukeI tried to use the ROM with the M4 but my CPC+ hangs
I use the M4 next to a regular BurninRubber cartridge
Is there any "normal" configuration i may use?
I mean, what are the settings for a raw configuration without additionnal ROM etc?
Thanks

Default settings will work fine. Just unplug the microSD to see if it boots up with default settings.
You can delete m4/romslots.bin & m4/romconfig.bin to bring it back to default.
Are you trying to replace lower/upper & amsdos or something else?
Quote from: VincentGR on 22:01, 17 April 19
Now that you've mentioned burning rubber, is it possible to boot the plus with just the M4?
No you will need acid chip connected via the cartridge port (in theory you can do without the actual rom chip on the cartridge).
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 07:27, 18 April 19
Quote from: Duke on 07:24, 18 April 19
Default settings will work fine. Just unplug the microSD to see if it boots up with default settings.
You can delete m4/romslots.bin & m4/romconfig.bin to bring it back to default.
Are you trying to replace lower/upper & amsdos or something else?No you will need acid chip connected via the cartridge port (in theory you can do without the actual rom chip on the cartridge).
No i was not trying to replace low/up/amsdos but i think i override anyway one of them  >:(

Thanks i will try soon what you advised me (remove the config file)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 10:38, 18 April 19
That's funny, C64 has a sid and CPC has acid.
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 22:38, 27 April 19
Hi all,
I am using an M4 with 2.05B12 and trying to load YANCC with |romup and it seems to result in corrupt text in the rom slot with |m4help and a non-functioning rom.
I ran the config.bas to create the configured rom (basically all N options) and then |fcp those over to the m4 so i can |romup them which seem to succeed but an M4 reset shows the corrupt text in the rom slot with |m4help and neither commands works.

I tried slots 1, 2, 11 and 12 out of interest but YANCC-CO.rom and Launch.rom both do not seem to install correctly.
Any one else tried to install YANCC140418b with 2.05B12???
cheers
Shifters
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 09:18, 28 April 19
Dumb question, if the M4 had an ESP32, could the additionnal RAM be used as a RAM drive and/or a Dk'tronics RAM expansion ?


If the answer is yes, it would need additionnal time and  work (not always easy to find) for you, but the additionnal cost should be minor ?

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:31, 28 April 19
It may be possible, then again there would probably be easier paths to adding (cheap) ram expansion to M4 board.
And yeah as you mention time and effort needed.

Quote from: genesis8 on 09:18, 28 April 19
Dumb question, if the M4 had an ESP32, could the additionnal RAM be used as a RAM drive and/or a Dk'tronics RAM expansion ?


If the answer is yes, it would need additionnal time and  work (not always easy to find) for you, but the additionnal cost should be minor ?
Title: Re: Amstrad CPC WiFi
Post by: francouai on 08:12, 29 April 19
DUKE> Your M4 is fantastic for games but need at least 128ko built in of memory for the guys using Symbos and other CPC OS.perhaps for a new M5 board!  ;D
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 08:33, 29 April 19
True, I have a train behind my cpc just for more ram.
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 11:57, 29 April 19
That's why Duke created a separate thread  :D


http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/galaxy-zen80-boards/msg161942/#msg161942 (http://www.cpcwiki.eu/forum/amstrad-cpc-hardware/galaxy-zen80-boards/msg161942/#msg161942)




Cheers, Shane
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 14:08, 29 April 19
Quote from: Duke on 07:24, 18 April 19
No you will need acid chip connected via the cartridge port (in theory you can do without the actual rom chip on the cartridge).

This theory is good. I have an internal acid in my 6128plus (thanks @Bryce) and I can boot that without any issue using just the m4 and no cartridge.


Sent from my iPhone using Tapatalk
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:53, 29 April 19
Quote from: francouai on 08:12, 29 April 19
DUKE> Your M4 is fantastic for games but need at least 128ko built in of memory for the guys using Symbos and other CPC OS.perhaps for a new M5 board!  ;D
Other OS? Well, FutureOS runs very well on any CPC with 128 KB. Even with 64 KB, but I would suggest to have 128 KB at least.
As you see I slide in to switch topic...
With the lower ROM for FutureOS I have troubles, it starts up at about 50% of the time. Can somebody confirm or dismiss my experiences?

Title: Re: Amstrad CPC WiFi
Post by: f-bone on 16:41, 02 May 19
I think it would be really nice to have a built in command for writing .dsk directly to floppy..


There is a discussion here: [size=78%]http://www.cpcwiki.eu/forum/applications/dsk-to-floppy-via-m4-board/new/#new (http://www.cpcwiki.eu/forum/applications/dsk-to-floppy-via-m4-board/new/#new)[/size], but I got lost along the way..



Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 16:44, 02 May 19
Hi


You can use M4 front end to write back dsk to floppy
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 13:16, 04 May 19
Hi folks!


I just discovered that there's a 3D printer at my workplace, and decided to print me a case for my M4.


It turned out gorgeous, so here are some pictures!

Title: Re: Amstrad CPC WiFi
Post by: TotO on 14:10, 04 May 19
Nice colour... Is your workspace is designing sextoys?  ;D
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 14:17, 04 May 19
Search for images on Google of "Candy Crush Soda Saga" and you'll see why the colour...  ;D
Title: Re: Amstrad CPC WiFi
Post by: TotO on 15:32, 04 May 19
Hehe!  ;D
Title: Re: Amstrad CPC WiFi
Post by: 00WReX on 09:11, 05 May 19
For the 'Poor Mans' version...I did this a couple of weeks ago.

At work I found an old DDS cartridge in a drawer (from the late nineties I think).

The case for the cartridge is a perfect fit for the original size M4 board.

All I did was cut a slot for the WiFi module and the SD card, then found a plastic cap to 'extend' the reset button...5 minutes work all up.

[attach=1]
[attach=2]
[attach=3]

Cheers,
Shane
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 13:28, 05 June 19
Hi Duke and Fellows,
a new bugreport.  ;)
Saving a basic program as ascii doesn't work.

ie: save "looptest.bas",a    new    load"looptest.bas"    Syntax error
Simple test progs attached.Working and corrupted version.

Regards

PS: forgot: M4 Board V2.0.5B12
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 16:53, 05 June 19
Quote from: cpcoldie on 13:28, 05 June 19
Hi Duke and Fellows,
a new bugreport.  ;)
Saving a basic program as ascii doesn't work.

ie: save "looptest.bas",a    new    load"looptest.bas"    Syntax error
Simple test progs attached.Working and corrupted version.

Regards

PS: forgot: M4 Board V2.0.5B12
Something is added at the start. Hope it can be easily fixed.(https://uploads.tapatalk-cdn.com/20190605/49aaf8fe5fa01050633e6cb0a445e986.jpg)(https://uploads.tapatalk-cdn.com/20190605/78c60fcb8a04cf014cb4c3858f84a8c2.jpg)

Enviado desde mi SM-G950F mediante Tapatalk

Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 17:09, 05 June 19
Quote from: KaosOverride on 16:53, 05 June 19
Something is added at the start. Hope it can be easily fixed.

Yes, it seems there is some buffer mangling.
Title: Re: Amstrad CPC WiFi
Post by: cpcoldie on 20:20, 07 June 19
It seems the thrill has gone...  ;D
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:36, 07 June 19
Quote from: cpcoldie on 20:20, 07 June 19
It seems the thrill has gone...  ;D
I have noted the bug, thanks. Will check up on it, when I find time.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 09:28, 11 June 19
I've never had my 6128 stable with the M4 and other cards, even though I used good quality high capacity power supplies. For the longest time I thought that my M4 was faulty... ...and this weekend I finally tried running the system with a 5.1v PSU, and all my problems vanished. I don't even need to power the M4 separately!


Obviously there's enough voltage drop across my CPC to make everything marginal when supplying it with just 5v.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:45, 22 June 19
M4 Board firmware v2.0.5 released.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205.zip (http://www.spinpoint.org/cpc/M4FIRM_v205.zip) and unpack to root of microSD, then power cycle the CPC with microSD inserted.
If you have not used any v2.0.5 beta, you can use |update instead.

Changes since v2.0.5 beta 12:

        ld hl,0x431D        ; C_NMI
        ld    bc,0xFE00
        out (c),c
        out (c),l
        out (c),h
        ld b,0xFC
        out (c),c   

        will trigger HACKMENU, so one can examine memory and registers.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:50, 22 June 19
Great stuff!


I'll be trying it as soon as I have a little time.


Thank you for your extraordinary support!
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 16:50, 22 June 19
That's pretty cool. Thanks a lot, Duke!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:52, 23 June 19
Cool new features. Installing....  ;D
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 15:33, 25 June 19
I have updated the latest firmware but it keeps appearing:

M4 Board firmware v2.0.5 Beta 12

EDIT:
everything is correct now, I have done it again, it seems that the first time it was not updated well
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:26, 25 June 19
Glat you made it!  :)  When updating screen stays black, but I don't mind. The report.txt tells 'all good'.  :)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 16:23, 07 July 19
thanks for the rom updates duke - i will let you know how i go.

Title: Re: Amstrad CPC WiFi
Post by: chrisgreen on 23:25, 07 July 19
Did the 2.0.5 update on my 2.5b M4 board. Screen stayed blank at the end and required a manual reset, but all good and the new firmware took.


Also got my new 2.5c board the other day - thanks @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) - already having fun with the Hack button and functionality.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 09:07, 08 July 19
Quote from: chrisgreen on 23:25, 07 July 19
Screen stayed blank at the end and required a manual reset, but all good and the new firmware took.


It happens to me and to friends, sometimes you get stripes too but everything turns OK at the end  :)
Title: Re: Amstrad CPC WiFi
Post by: SOS on 06:59, 17 July 19
Feature Request (e.g.):
M4ROMStatus   0x433C     IN:Nothing   OUT:M4-ROM-Number  (0=Deactive)
(Please as an OUT-Command, yes i know, i can scan the ROM's if i found the ROM or Check if a M4-RSX is present)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:02, 17 July 19
Quote from: SOS on 06:59, 17 July 19
Feature Request (e.g.):
M4ROMStatus   0x433C     IN:Nothing   OUT:M4-ROM-Number  (0=Deactive)
(Please as an OUT-Command, yes i know, i can scan the ROM's if i found the ROM or Check if a M4-RSX is present)
That would be 'nice to have', especially for ROM software.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:47, 17 July 19
Quote from: SOS on 06:59, 17 July 19
Feature Request (e.g.):
M4ROMStatus   0x433C     IN:Nothing   OUT:M4-ROM-Number  (0=Deactive)
(Please as an OUT-Command, yes i know, i can scan the ROM's if i found the ROM or Check if a M4-RSX is present)
Let me understand it correctly, the only purpose of this command is to disable M4 rom? - so no need to specify it's rom number? or is it to obtain the M4 rom number?
Title: Re: Amstrad CPC WiFi
Post by: SOS on 20:51, 17 July 19
Quote from: Duke on 19:47, 17 July 19
Let me understand it correctly, the only purpose of this command is to disable M4 rom? - so no need to specify it's rom number? or is it to obtain the M4 rom number?
obtain the M4 rom number
(normally the function should return "6", or after M4ROMOFF an "0")

(I hope, that the out-commands on a non M4-System do not crash the Amstrad.)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 02:09, 18 July 19
Without the M4 no crash should happen, because nothing is there. If there would be something else, then there would be "talk" to two kinds of hardware, that would be a problem per se.


SOS's idea is to be able to run code in ROM and to obtain the M4 ROM number without the need to put code into RAM (as much as I got it), the would be great for me too.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:32, 18 July 19
Quote from: SOS on 20:51, 17 July 19
obtain the M4 rom number
(normally the function should return "6", or after M4ROMOFF an "0")

(I hope, that the out-commands on a non M4-System do not crash the Amstrad.)
Quote from: GUNHED on 02:09, 18 July 19
Without the M4 no crash should happen, because nothing is there. If there would be something else, then there would be "talk" to two kinds of hardware, that would be a problem per se.


SOS's idea is to be able to run code in ROM and to obtain the M4 ROM number without the need to put code into RAM (as much as I got it), the would be great for me too.  :)

Ok thanks for the explanation, will see what I can come up with.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 10:39, 18 July 19
You do realize that we are nearing 100 pages on this topic, right?


Congratulations to @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) for creating the nice M4 card and for his wonderful support!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:13, 18 July 19
Quote from: robcfg on 10:39, 18 July 19
You do realize that we are nearing 100 pages on this topic, right?


Congratulations to @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) for creating the nice M4 card and for his wonderful support!
Thanks! - Maybe it will reach page 100 when M4 board number 700 is sold (14 to go...)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 11:10, 19 July 19
Quote from: Duke on 12:13, 18 July 19
Thanks! - Maybe it will reach page 100 when M4 board number 700 is sold (14 to go...)


That is grest news.
Title: Re: Amstrad CPC WiFi
Post by: francouai on 18:57, 20 July 19
good luck to the guy who will read the 100 pages  :doh:
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 19:16, 20 July 19
Well when i discovered the M4 i read pages 1 to 93 (while i waited for my M4 order!) i think  took me about a week!!   :laugh:
Its actually an interesting read seeing how it developed and was released and supported!! 

Kudos to Duke and everyone else who contributed!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 12:16, 21 July 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
I know that i asked this... but i don't remember,
whats the port to open on the router to access the M4 throught the navigator on another location?
thanks!!

Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:07, 21 July 19
You must forward port 80 (http) to the M4.

Quote from: Joseman on 12:16, 21 July 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)
I know that i asked this... but i don't remember,
whats the port to open on the router to access the M4 throught the navigator on another location?
thanks!!
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 18:54, 21 July 19
Quote from: Duke on 13:07, 21 July 19
You must forward port 80 (http) to the M4.
Thankyou!!
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 11:22, 23 July 19
Wait, the M4 has sold 700pcs???
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 08:19, 30 July 19
Quote from: Duke on 06:45, 22 June 19


Changes since v2.0.5 beta 12:

       
  • Fix |HTTPGET freeze when URL does not resolve (2 sec DNS lookup timeout)
  • ADDED |HTTPGET use @ symbol at start of request to silent output text of console, ie. |httpget,"@spinpoint.org/cpc/m4info.txt"  (@zhulien)
  • ADDED |HTTPGET use > symbol followed by filename at end of request string to output into desired file, ie. |httpget,"spinpoint.org/cpc/m4info.txt>info.txt" (@zhulien)


Hi Duke, the timeout appears to be working well.  The > however seems to pass the >info.txt up to the server which confuses the server - I can make my server aware of it, however other servers won't know what to do.  Any chance instead of >info.txt to have an optional 2nd parameter?


Thanks
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 08:20, 30 July 19
Quote from: zhulien on 08:19, 30 July 19

Hi Duke, the timeout appears to be working well.  The > however seems to pass the >info.txt up to the server which confuses the server - I can make my server aware of it, however other servers won't know what to do.  Any chance instead of >info.txt to have an optional 2nd parameter?


An example is:


http://8bitology.net/ws.php?function=system_getapiversion  which from BASIC's perspective needs the response to go to a nominated file.

Thanks
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:21, 30 July 19
Quote from: Gryzor on 11:22, 23 July 19
Wait, the M4 has sold 700pcs???
Well not yet, current count is 690 :)


Quote from: zhulien on 08:19, 30 July 19
The > however seems to pass the >info.txt up to the server which confuses the server
Will fix soon. No need to send that to the server, somehow I must be stripping it afterwards (doh!).
Title: Re: Amstrad CPC WiFi
Post by: Monsieurmarc on 09:12, 01 August 19
Pleased to say my M4 arrived yesterday.  It's up and running with games, ROMs and telnet
I am really really pleased.
Many thanks Duke
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:53, 13 August 19
My M4 has the newest firmware 2.0.5 (b12 IIRC). However it connects very poor to the internet. Takes an hour to state "connected", but doesn't even set the time/date.

Signal is about &A4 or &A5. Is this too weak. Any ideas? Did you encounter similar effects?

Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:21, 13 August 19
Mine is super fast, maybe dns settings?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:23, 14 August 19
Quote from: GUNHED on 21:53, 13 August 19
My M4 has the newest firmware 2.0.5 (b12 IIRC). However it connects very poor to the internet. Takes an hour to state "connected", but doesn't even set the time/date.

Signal is about &A4 or &A5. Is this too weak. Any ideas? Did you encounter similar effects?
Newest firmware is v2.0.5 (non beta).
Yes seems your WiFi signal is very weak, the range goes from &A0 to &FF  (&A0 being the weakest).
It should connect almost instantly, I have not tried working with such a weak signal.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:44, 14 August 19
Haha, ok, I can (must sometimes) check with weak signals. Always here for testing.  :)
Title: Re: Amstrad CPC WiFi
Post by: krusty_benediction on 09:22, 15 August 19
No idea if it is the best place to post that.
If someone is interested to code a bit of `rust` language, I have partly reimplemented `xfer` (because I need such library with my other tools such as image conversion one) in the toolbox I'm creating for my next demo: https://github.com/cpcsdk/rust.cpclib (https://github.com/cpcsdk/rust.cpclib). It only contains the options I need (dowload/dowload and run/restart CPC/restart M4) and lacks of everything else needed by everyone else.
The only advantages over the original xfer tool are:
Note that I am unable to cross-compile it from Linux for Windows, but it should be compilable under windows.
Title: Re: Amstrad CPC WiFi
Post by: Targhan on 11:09, 15 August 19
Quotemost importantly: it works with snapshots V3 by downgrading them in snapshot V2 before sending them to the CPC. I have validated that with snapshots generated by rasm, there are probably bug to fixes with exotic chucks.

I don't remember having problems with transferring snapshots made with Rasm using the CPC wifi...
Title: Re: Amstrad CPC WiFi
Post by: krusty_benediction on 18:07, 15 August 19
Quote from: Targhan on 11:09, 15 August 19
I don't remember having problems with transferring snapshots made with Rasm using the CPC wifi...
I have recently moved and will have no access to a real CPC before weeks (or months...) in order to check.
If I remember well, the snapshot loader of the M4 crashes when using a V3 snapshot. I guess the problem does not come from the chunks, but the fact that the memory is compressed.
Are you sure you do not generate V2 snapshots ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 22:10, 15 August 19
Quote from: krusty_benediction on 18:07, 15 August 19
I have recently moved and will have no access to a real CPC before weeks (or months...) in order to check.
If I remember well, the snapshot loader of the M4 crashes when using a V3 snapshot. I guess the problem does not come from the chunks, but the fact that the memory is compressed.
Are you sure you do not generate V2 snapshots ?
Compressed V3 snapshot format was added some time ago and is included in v2.0.5 release version:

Added SNA v3 (compressed sna's) support. (http://www.spinpoint.org/cpc/m4info.txt)
Title: Re: Amstrad CPC WiFi
Post by: Dominoid on 20:36, 14 September 19
I'm very late to the party here, but I just got my M4 board and set it up. I am far too excited about having my CPC connected to the internet!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 21:28, 14 September 19
Quote from: Dominoid on 20:36, 14 September 19
I'm very late to the party here, but I just got my M4 board and set it up. I am far too excited about having my CPC connected to the internet!
Yes, it's good isn't it!

Title: Re: Amstrad CPC WiFi
Post by: Dominoid on 21:58, 14 September 19
Quote from: CraigsBar on 21:28, 14 September 19
Yes, it's good isn't it!
It's amazing! Loving it  :D
Title: Re: Amstrad CPC WiFi
Post by: IngoQ on 14:03, 22 September 19
Quote from: Duke on 06:45, 22 June 19
M4 Board firmware v2.0.5 released.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v205.zip (http://www.spinpoint.org/cpc/M4FIRM_v205.zip) and unpack to root of microSD, then power cycle the CPC with microSD inserted.
If you have not used any v2.0.5 beta, you can use |update instead.

Hiya,

I have some trouble updating... I currently run 2.0.5b12. I downloaded the file above, extracted the two ROM files in the root of the SD card, powercycled and at boot it still says 2.0.5b12. The ROM files are erased and a report.txt is created:


M4 Firmware version 2.0.5B12


ESP firmware v2.0.5B12 found.


ESP flash: 0x00204016


ESP CRC match: 0x949FCC8E


Programming...


ESP programming success


What am I doing wrong?
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:54, 22 September 19
Hi Duke, how is 2.0.6 coming along with the optional second parameter for the filename instead of a >filename.ext?


thanks, Julian
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:20, 25 September 19
Quote from: IngoQ on 14:03, 22 September 19
What am I doing wrong?


Gar nichts, alles bestens.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:35, 25 September 19
Quote from: IngoQ on 14:03, 22 September 19
Hiya,

I have some trouble updating... I currently run 2.0.5b12. I downloaded the file above, extracted the two ROM files in the root of the SD card, powercycled and at boot it still says 2.0.5b12. The ROM files are erased and a report.txt is created:


M4 Firmware version 2.0.5B12


ESP firmware v2.0.5B12 found.


ESP flash: 0x00204016


ESP CRC match: 0x949FCC8E


Programming...


ESP programming success


What am I doing wrong?
Does it display v2.0.5 on the basic startup screen or v2.0.5 beta 12?
I probably forgot to update the log texts....

EDIT:
Just downloaded the zip unpacked to my microSD card and I get
v2.0.5 on Basic screen

log ->
C:\>cat j:\report.txt
M4 Firmware version 2.0.5B12
ESP firmware v2.0.5 found.
ESP flash: 0x00C84016
ESP CRC match: 0x949FCC8E
Programming...
ESP programming success

So yes, log entry is wrong.
What does your screen display if you boot up without the microSD card inserted.

Quote from: zhulien on 15:54, 22 September 19
Hi Duke, how is 2.0.6 coming along with the optional second parameter for the filename instead of a >filename.ext?
Will try to do an update maybe this weekend, now I have almost caught up with the backlog of orders for once (not 8 weeks behind anymore - only 4 8) ).
Title: Re: Amstrad CPC WiFi
Post by: slugman on 20:16, 28 September 19
Hi,

I'm looking for stl files for 3D printing case for the M4 board rev 2.5c  (last version with hack button). I only found files for old versions. Thanks!
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:18, 03 October 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , I just upgraded my M4 to 2.0.5 and when it boots, it goes to the hack menu, hangs and resets continuously.


What can I do to bring it back in working order?

So, I downloaded 2.0.4 and it´s working again, but installing 2.0.5 leaves it in the unusable state mentioned above.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:08, 03 October 19
Quote from: robcfg on 09:18, 03 October 19
Hi @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) , I just upgraded my M4 to 2.0.5 and when it boots, it goes to the hack menu, hangs and resets continuously.


What can I do to bring it back in working order?

So, I downloaded 2.0.4 and it´s working again, but installing 2.0.5 leaves it in the unusable state mentioned above.
Hmmm. Was the ESP firmware updated too?
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 16:27, 03 October 19
I don't know.


I´ll try to update again and check the SD card. The file should be in the root of the SD card and deleted after updating, right?


Can I upload the ESP firmware first to check that it works and then the M4 firmware, or is it mandatory to update them at the same time?


Edit: I tried updating only the ESP firmware. It did restart the machine, but hangs at start, no M4 prompt. Then I updated the M4 firmware and had the same error as before.


See video here: https://mega.nz/#!9h1jHC4A!oyCq27-bc4VH46_G-anoAly0cQhC6DN1DzzjiRXXEO8
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:19, 03 October 19
Quote from: robcfg on 16:27, 03 October 19
See video here: https://mega.nz/#!9h1jHC4A!oyCq27-bc4VH46_G-anoAly0cQhC6DN1DzzjiRXXEO8 (https://mega.nz/#!9h1jHC4A!oyCq27-bc4VH46_G-anoAly0cQhC6DN1DzzjiRXXEO8)
Thanks. Looks like it is constantly triggering the NMI button (which I assume is not present).
Can you check the PCB if IO4 or IO5 somehow is shorted to GND on the rail or by the ESP side.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 17:31, 03 October 19
I've checked with a multimeter and both beep if I hit them and any ground pins...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:03, 03 October 19
Quote from: robcfg on 17:31, 03 October 19
I've checked with a multimeter and both beep if I hit them and any ground pins...
There should be around 800 ohm resistance between GND on those IO's, so it will beep, but not have 0 resistance (if all is OK).
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 18:34, 03 October 19
IO5 has 626Ω resistance and IO4 has only 548Ω.


They are not zero, but lower than the 800 you told me. Is that ok?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:30, 03 October 19
Quote from: robcfg on 18:34, 03 October 19
They are not zero, but lower than the 800 you told me. Is that ok?
Sounds fine. Don't know why this happens. Noone else has had this issue afaik.
You are welcome to send it back for inspection and I'll fix/replace it.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 07:58, 05 October 19
Quote from: zhulien on 08:19, 30 July 19
The > however seems to pass the >info.txt up to the server which confuses the server - I can make my server aware of it, however other servers won't know what to do.  Any chance instead of >info.txt to have an optional 2nd parameter?
(http://www.cpcwiki.eu/forum/index.php?action=profile;u=58)
I have now inspected this issue and the ">filename" is not send to the server, it is correctly stripped as it should be, so I don't see how it would confuse the server?
As for adding the filename as a 2nd parameter, I could but then again I am sure it is very easy to have some Basic string parsing fix it to your needs (just ask in the forum and I am sure some of the locomotive basic guru's has an easy method).

Log line from my server:
spinpoint.org:80 - - - [05/Oct/2019:08:52:43 +0200] "GET /cpc/m4info.txt HTTP/1.0" 200 37041 "-" "m4"
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 07:20, 07 October 19
QuoteAmstrad CPC464 Web Server


http://oldservers.ddns.net:1984/sd/CPC464.html (http://oldservers.ddns.net:1984/sd/CPC464.html)
EDIT:
someone hacked the page, please @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  we need some protection options on the M4:

* Allow config only on LAN
* Allow SD navigation only on LAN
* Set Read/Write Passwd
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:27, 07 October 19
Quote from: XeNoMoRPH on 07:20, 07 October 19

http://oldservers.ddns.net:1984/sd/CPC464.html (http://oldservers.ddns.net:1984/sd/CPC464.html)
EDIT:
someone hacked the page, please @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  we need some protection options on the M4:

* Allow config only on LAN
* Allow SD navigation only on LAN
* Set Read/Write Passwd
Maybe as a quick fix they could set write protect flag of the "CPC464.html" file on the microSD.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 10:08, 07 October 19
Well whoever did it wasn't a random yahoo... guess that rules out GUNHED. ;D


And some other random yahoo just unhacked it  8)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:04, 07 October 19
Do you think that's funny? All I do is to contribute to the CPC scene - since decades - in so many ways. The trolling and bullying I leave to others.
Title: Re: Amstrad CPC WiFi
Post by: Glook on 19:30, 08 October 19
hi all,

question : my m4 is connected on the wifi, i can access to it with http://cpc6128 (http://cpc6128) with a browser under WINDOWS but...

how to do the same thing with a browser under Ubuntu or Linux Mint , neither with http://cpc6128.local (http://cpc6128.local) (it works with the IP but not with the netbios name)

could someone help me, please ?


[EDIT] : autoanwser ;) : put in /etc/hosts the line 192.168.1.XX CPC6128
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 17:44, 09 October 19
Quote from: Duke on 07:58, 05 October 19
I have now inspected this issue and the ">filename" is not send to the server, it is correctly stripped as it should be, so I don't see how it would confuse the server?
As for adding the filename as a 2nd parameter, I could but then again I am sure it is very easy to have some Basic string parsing fix it to your needs (just ask in the forum and I am sure some of the locomotive basic guru's has an easy method).

Log line from my server:
spinpoint.org:80 - - - [05/Oct/2019:08:52:43 +0200] "GET /cpc/m4info.txt HTTP/1.0" 200 37041 "-" "m4"


Hi Duke, 


Thanks for looking, a typical server request I make is as follows:


http://8bitology.net/ws.php?function=system_getapiversion
Response: 1::1


or


http://8bitology.net/ws.php?function=system_getdatabasename
response: 1::Development


The response I put into a file. Previous to the current versions of the M4 ROM, it would always put them into a file called ws.php which worked, but wasn't ideal.  Not sure why the >filename.txt  causes it to fail.


You should be able to fetch the above URLs and get the content.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 08:39, 11 October 19
OK, totally useless video but I like making these  ;D


https://www.youtube.com/watch?v=fPSA9m2wEn4 (https://www.youtube.com/watch?v=fPSA9m2wEn4)
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 13:24, 11 October 19
Compared to an unturbo C64 tape that was pretty fast!!   :o

I remember when some games took 20 minutes to load! on the 64!!

Fun comparison though!!

Shifters
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 15:37, 11 October 19
Actually there are 12-15min games (multiload)
You can "compress" some games with Discology writing them at 3600baud.
About the C64, I have the perfect recipe.
I compress them at very high rates i.e a 12min game to 3.
The funny thing is that they work on a non turbo datassette :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:09, 11 October 19
Quote from: VincentGR on 08:39, 11 October 19
OK, totally useless video but I like making these  ;D
Atleast you could have compared to a C64 disc drive for even measures, but I guess it would have been even slower :)

@zhulien (http://www.cpcwiki.eu/forum/index.php?action=profile;u=58):
Thanks, will check it out tomorrow.

Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 09:54, 12 October 19
Actually turbo tape and disk loaders were very common for the C64 so load times were pretty good - but the base speed of the floppy was slow but the drives were a must have on the C64 and as it was serial could daisy chain with 4 drives, printers etc.

Used to have a disk notcher - a hole punch for making write notches on the side of the 5.25 floppies so you could use both sides in the drive as the 1541 was single sided.

I must admit to using a TZXDuino like this ( https://www.etsy.com/uk/listing/539346169/tzxduino-cassette-player-replacement-for?ref=related-2 ) for the amstrad from time to time - just for old times sake on the 6128.  Ditto on the C64 and BBC.  Most of the time of course its M4 the whole way!  :laugh:

shifters
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 14:20, 12 October 19
I have to make that question again  ;D


Is there a possibility for M4 support with Double Dragon (the good version)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:02, 13 October 19
Quote from: zhulien on 17:44, 09 October 19
http://8bitology.net/ws.php?function=system_getdatabasename (http://8bitology.net/ws.php?function=system_getdatabasename)
response: 1::Development

If I type:
|httpget,"8bitology.net/ws.php?function=system_getdatabasename>z.txt"

it creates the file z.txt with contents:
1::Development

So seems to be working just fine...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:19, 13 October 19
Quote from: VincentGR on 14:20, 12 October 19
I have to make that question again  ;D


Is there a possibility for M4 support with Double Dragon (the good version)
It still works fine if you use the "modified lowerrom" or set M4 to rom 7. :)
Just for you:
https://youtu.be/fhyWFTJD1Qg (https://youtu.be/fhyWFTJD1Qg)

CACH crack from http://cpccrackers.free.fr/Downloads/ (http://cpccrackers.free.fr/Downloads/)
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 18:32, 13 October 19
Hey @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) !!! , when are you going to surprise us with another new firmware version?  :laugh:
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:47, 13 October 19
Quote from: XeNoMoRPH on 18:32, 13 October 19
Hey @Duke (http://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) !!! , when are you going to surprise us with another new firmware version?  :laugh:
If I told you, it wouldn't be a surprise ;)

Nah, only have 2 small fixes currently. I would like to do some fixes to the hack menu when I find some time. - Trouble is when you haven't touched something like that for months, it takes some time to get into it all again. Ie. I used most of my spare time this weekend for some re-factoring and additions/fixes for Imperium Solo.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 07:39, 14 October 19
Oh shit!
This ROM is on 31 slot at mine but I don't have this specific disk image  :doh:
M4 ROM is at 6 (if you count 0 is 7???)


Time to search again and put the original disk back in the box.


Title: Re: Amstrad CPC WiFi
Post by: zhulien on 08:16, 14 October 19
Quote from: Duke on 18:02, 13 October 19
If I type:
|httpget,"8bitology.net/ws.php?function=system_getdatabasename>z.txt"

it creates the file z.txt with contents:
1::Development

So seems to be working just fine...


hmm, i will test my code more - i will make sure i test my code more in future too.  But what got was what I had expected. thanks for checking
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 15:10, 14 October 19
Finally found it (Double Dragon)  ;D


I couldn't load it at first as some other software like Nirvana.
The problem is my autoexec.bas.
I have a line mounting the M4FRONT command to "." key so I don't have to type it every time.
This is the main problem as it gives a syntax error.
When I remove the autoexec works like a charm.


Thanks again.
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 12:25, 25 October 19
hi


is it possible to add a key at boot time to cancel autoexec.bas to run ?


because i have make a autoexec to launch rpm for exemple that i can't quit with the esc key (like in stock cpc, i think the m4 catch the esc ...)


i must  erase autoexec on a pc


thanks in adavance
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:24, 26 October 19
Quote from: breiztiger on 12:25, 25 October 19
is it possible to add a key at boot time to cancel autoexec.bas to run ?


because i have make a autoexec to launch rpm for exemple that i can't quit with the esc key (like in stock cpc, i think the m4 catch the esc ...)

It's possible, but it was a lot of hacking about (and a long time ago) to get the autorun feature to work, one of the side effects was ESC to break not working. Maybe I will re-visit it some day.
However I guess you could do some Basic key checking in your autoexec.bas to skip ie. launching rpm. Say hold space to exit to basic.

Quote
i must  erase autoexec on a pc
You can also eject the microSD, turn on the CPC and insert the microSD, then erase (or rename) it from the CPC.
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 08:27, 26 October 19
thanks for the tip
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 11:23, 17 November 19
Hi all,
i am trying to build xfer on a ubuntu 18.04 machine (GCC 5.5.0_4) so i can transfer files to the M4 but it does not compile from source and i get the following error: 

gcc -O2  -W -I. -c parse.c -o parse.o
parse.c:10:25: error: conflicting types for 'strncasecmp'
        #define strnicmp strncasecmp
                         ^
parse.c:15:5: note: in expansion of macro 'strnicmp'
int strnicmp(char const *a, char const *b, unsigned int lenght)
     ^
In file included from /usr/include/string.h:431:0,
                 from parse.c:6:
/usr/include/strings.h:120:12: note: previous declaration of 'strncasecmp' was here
extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
            ^
parse.c: In function 'strncasecmp':
parse.c:19:17: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
         int d = tolower(*a) - tolower(*b);
                 ^
Makefile:26: recipe for target 'parse.o' failed
make: *** [parse.o] Error 1

Any help appreciated!
shifters
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 12:01, 17 November 19
Simple fix: in parse.c change #ifdef __unix__ to #ifndef __unix__ or just delete that entire block.
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 12:05, 17 November 19
Great!!
Worked like a charm!!
Many thanks
Shifters
Title: Re: Amstrad CPC WiFi
Post by: SOS on 11:10, 13 December 19
Quote from: shifters74 on 22:38, 27 April 19
I am using an M4 with 2.05B12 and trying to load YANCC with |romup and it seems to result in corrupt text in the rom slot with |m4help and a non-functioning rom.
I ran the config.bas to create the configured rom (basically all N options) and then |fcp those over to the m4 so i can |romup them which seem to succeed but an M4 reset shows the corrupt text in the rom slot with |m4help and neither commands works.

I tried slots 1, 2, 11 and 12 out of interest but YANCC-CO.rom and Launch.rom both do not seem to install correctly.
Any one else tried to install YANCC140418b with 2.05B12???
Sorry, today seen your mail, do you have still problems? (yes: write me a PM)
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 19:57, 13 December 19
Quote from: SOS on 11:10, 13 December 19
Sorry, today seen your mail, do you have still problems? (yes: write me a PM)
Hi SOS,
i tried again today with the same versions and all worked fine!!
Sorry must have been user error i.e. me!!!  :doh:

cheers
shifters
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 06:45, 30 January 20
Hi Duke (or anyone else programming the M4).  What is the fastest you can make the CPC hit a URL (HTTP GET)?  Firstly where we care about a response (such as a payload of 128 characters), and secondly when we don't care about a payload response back to the CPC beyond 200.  How many times a second?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:28, 18 June 20
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : Recently WiFi becomes more and more a pain, too much routers are everywhere and sometimes I need to reset my router a couple of times per hour(!) to have a signal again. Now this for PC world.

Also for CPC world, the overwhelming number of waves in the air don't make it more easy.

So here my question: Would it be possible to make a M4 board with cable-plug? Because a cable would be much more stable.

Can you do that?

What do all others thing about that idea?
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 14:58, 18 June 20
That and add at least 512KB  ;D
Title: Re: Amstrad CPC WiFi
Post by: asertus on 15:23, 18 June 20
Quote from: VincentGR on 14:58, 18 June 20That and add at least 512KB  ;D


We will end up with a new Symbiface with RJ45  :D
Title: Re: Amstrad CPC WiFi
Post by: KaosOverride on 16:20, 18 June 20
Some years ago I tried interfacing some Wiznet modules with the CPC. I/O mode was a pain and fail with the address autoincrease mode, the counter some times increased two in a read, but writing was good... "Ram" mode was not an option because you have to page 32kb, but now with the 4mb ram expansion which is some kind of "expansion of expansions"with the first 512kb compatible with legacy expansions, then a 8mb could be done with 4mb and a second 4mb reserved for "memory mapped I/O" for this kind of devices... Other way is using a microcontroller and SPI mode...
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:42, 18 June 20
Quote from: GUNHED on 14:28, 18 June 20
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : Recently WiFi becomes more and more a pain, too much routers are everywhere and sometimes I need to reset my router a couple of times per hour(!) to have a signal again. Now this for PC world.

Also for CPC world, the overwhelming number of waves in the air don't make it more easy.

So here my question: Would it be possible to make a M4 board with cable-plug? Because a cable would be much more stable.

Can you do that?
I guess you could try to change the channel you use for WiFi, I think there is some smart scanners for android/windows that can detect which is best (least used in your area).

I could add RJ45 if I wanted (I already made a board with that, not for the CPC -> http://www.spinpoint.org/2016/01/14/plc-datalogger/ ), but it takes time and effort and I really don't have much time/energy for these things at the moment (maybe when the winter comes!).
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:57, 18 June 20
Thanks for the answer Duke!  :)  Well, me personal I can't change the channel. But if you could exchange the Wifi by a RJ45 (guess that's ethernet?) then it would be awesome. I would take at least two of them and I guess others too (see responses). I know you're busy, but maybe one day you can do such a board.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: RetroCPC on 20:55, 18 June 20
Duke,

Can I still purchase an M4 from you - or its it a DiYkit? either option is good for me. I can assemble a PCB from a partial kit of parts (SMD no problem) if your short on time to build the board (I'll have all "common" components it stock)...

I'd be interested in one for my Amstrad CPC6128...

Thanks :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:40, 18 June 20
Quote from: RetroCPC on 20:55, 18 June 20
Duke,

Can I still purchase an M4 from you - or its it a DiYkit? either option is good for me. I can assemble a PCB from a partial kit of parts (SMD no problem) if your short on time to build the board (I'll have all "common" components it stock)...

I'd be interested in one for my Amstrad CPC6128...

Yes I still make them. Current lead time is about 6 weeks (after I receive order confirmation), due to an overwhelming amount of orders and slow supplies on certain parts.  I don't sell any DIY kit.
See first post in this thread for pricing and options. Then PM what you need along with your email address.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 17:39, 19 June 20
this must be the longest running thread for hardware on this forum, congrats for surpassing 100 pages!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:05, 21 June 20
Quote from: zhulien on 17:39, 19 June 20
this must be the longest running thread for hardware on this forum, congrats for surpassing 100 pages!
And its by far the best selling expansion for CPCs / Plus computers. I'm curious how much devices (f.e. ROM boxes etc.) they did sell in the 80ies and 90ies?
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 19:36, 21 June 20
Quote from: GUNHED on 14:28, 18 June 20
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : Recently WiFi becomes more and more a pain, too much routers are everywhere and sometimes I need to reset my router a couple of times per hour(!) to have a signal again. Now this for PC world.

Also for CPC world, the overwhelming number of waves in the air don't make it more easy.

So here my question: Would it be possible to make a M4 board with cable-plug? Because a cable would be much more stable.

Can you do that?

What do all others thing about that idea?
Use only channels 1, 6, 11 which have less nuisances from nearest channels (see in french : https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjY3rvaxZPqAhVHXhoKHUAjCAgQFjALegQIBhAB&url=https%3A%2F%2Flafibre.info%2Fwifi%2Fquel-canal-wi-fi-choisir-pour-optimiser-son-debit%2F&usg=AOvVaw2NKCkw5h7Shc6C9RY9jKVD (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwjY3rvaxZPqAhVHXhoKHUAjCAgQFjALegQIBhAB&url=https%3A%2F%2Flafibre.info%2Fwifi%2Fquel-canal-wi-fi-choisir-pour-optimiser-son-debit%2F&usg=AOvVaw2NKCkw5h7Shc6C9RY9jKVD))
It's still better to use a channel that other people are using because inside one channel, all wifi devices are able to live as good neighbours. Whereas wifi devices of other channels are bad neighbours (noisy).


Title: Re: Amstrad CPC WiFi
Post by: RetroCPC on 04:39, 23 June 20
Quote from: Duke on 21:40, 18 June 20
Yes I still make them. Current lead time is about 6 weeks (after I receive order confirmation), due to an overwhelming amount of orders and slow supplies on certain parts.  I don't sell any DIY kit.
See first post in this thread for pricing and options. Then PM what you need along with your email address.

Duke,

Sorry for the delay in responding - PM sent,

Thank you.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:04, 23 June 20
Quote from: genesis8 on 19:36, 21 June 20
Use only channels 1, 6, 11 which have less nuisances from nearest channels ....

Well, how to do that? The Wifi-Box is just a box. No DIP switches. Can I select that with software? Which one?

How to do that with the M4?
Title: Re: Amstrad CPC WiFi
Post by: asertus on 16:25, 23 June 20
Quote from: GUNHED on 16:04, 23 June 20
Well, how to do that? The Wifi-Box is just a box. No DIP switches. Can I select that with software? Which one?

How to do that with the M4?


Normally channels are set in the wifi router. you create the wifi network with a name, SSID, and choose what channel, even frequency, 2.4 or 5.0 ghz. When wifi clients like M4 connect to that network.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:16, 24 June 20
Quote from: asertus on 16:25, 23 June 20

Normally channels are set in the wifi router. you create the wifi network with a name, SSID, and choose what channel, even frequency, 2.4 or 5.0 ghz. When wifi clients like M4 connect to that network.


Thanks for the advice, but it can be done nowhere. So it would be great to have a M4 with internet-cable-socket.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 17:11, 25 June 20
That is quite unusual, what model of router do you have?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:17, 25 June 20
Quote from: robcfg on 17:11, 25 June 20
That is quite unusual, what model of router do you have?
M-Net router, but that's not the point. Slowly the overloading of radio waves will strike everywhere. Therefore a M4 card with cable plug would be great - just an idea.  :)
Title: Re: Amstrad CPC WiFi
Post by: asertus on 10:07, 26 June 20
Or maybe @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) can do something with Imperium, and being able to connect an USB to RJ45 adapter to CPC...  ::) 
(https://www.cpcwiki.eu/forum/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAADcCAYAAABAklKwAAAgAElEQVR4Ae2dCZBdV3nnmQm2JNvyBiQOYSAhG0wmQIZkmDC4IAEmVDJTEMpVM4SC8ZBhM4QYTLDBhM0mtmywZVt2jBdsrMWWZEmWtVj73lJrs/at1a3eNy2t1ZJdNVXf1O/I/56jo/vOu+/1e91PeudV3T733vOd7ft+9zvLXfoNln5JAzk18IacckksacASLAmC3BpIsORWVRLMBcurr75mh44cta6efmtt707bBagDbIcNsWW5v6KwUEBP70E79cor9tprr6XtAtYBNsSW2LScXxSWvv7DdvzEqQTIBQxI1gWOTbFtqb+CsEBfAuXi9aTYthQPg2wmLPRruKssKtO5iwcgbJxnDIPMhg2bs2GBojRGuXigKHSBY+M83gWZW275VjYsjJwLFZDOX1wQYetiP2T+5L3vyYaF6XGC4uKCopA9sXWxHzJXXDYmwVJIifVyPi8soy55Y4KlXqAo1M4Ey0W2LlLI0JU4n2BJsOQecyZYEiwJlkq43ZTHubO85FmSZ6m4Zxkz6pI0G6p3T5PXs1x5xWUJlgRLvkW5q8ZenmBJsOSD5fIxoxIsCZZ8sFw2+tIES4IlHyxpub+MWdOrr75qhbYLEby8A9zRl6Z7QwWnmGdefdVeOX3aTr7yip04dcqOnTjhtt5Dh6y9p/ecrbu/39gOHz06KEc60p85c6ZgGbUAV15YxoxK3dA5hhQYGL2rv986+vqsubPTdjY326adO23d1i22csMGW7p2bebW8PLLTqZx21bbtm+f7W/vsK6+Pjt45IgNHD9uJ0/V3kPvCZYSupdTr5y2YydO2sGBATvQ1WUtXZ22t63VtuzZYxt37nDbkoYGW9zQ4ABZvWmTAwJwtHFOAL20YoXNX77cFqxcaaRb0dho67dvsy179lprd7fzQEeOHXde50LyLJePGV2/A9zTZ87YwYGj1tbTY03tbQ6QXS3Ntr1pn+EZ1m7ZYi/v3m1t3T12oLPL+g8dssMDAzZw7NhgV6OuiXPEsfUdPGg9/f22Y/9+B9PiNWts4apVtmj1alu2dq2t377deak9B1qsq/+gAc5IQpPXs9TtohyQtPb02O4DLQYgbOu2bnVbU3u7HTl2zF35AKXBbKkG1ZiH51z7jxyxnc37DQ+0Yv1656XosgCSsjv7D9rREydGBJq8sNTVohxGP3z0mLX19g0CggE379rlDNne21d1Y1GHnkOHznqvrWe915rNmw1wABdojp886QAtFc5y5fPCcsVlddINMSthwLqn9cAgKHtbW21PS4sxu8GDlKvsctMxw+ro7XVjo8Zt2wxoGNvsPnDADayBZjjqlReWsZfXwTO4jCswirobQqa5GKtcQ1cy3fGTp6yzr9e272tyYyWg2bZvr+3v6LTOvj5jAF7J8sK88sJy5RUX+b2h/iMD1tzZMQgKs5H+w4erqvzQGHmPgZppNt0iHoaZGPvtvb1uEIx3zJtXKXIJltdes97DhwdnOHgTDFHrL86xgAc0e1sPuHHM1r173cxpX1ubdR88WJVuqe5haQ9mOrh5BpelXHEjKQs0bb29bnYGMAyACRkcV7oddQsLg8KWzs7BbocBLR5mJA2fp2ym2azuMn1mHyDYeg8dto07drhBMGs+eMhKtycvLBfV1BlQGJNoIMsqbKUVm8fwpcow42np6nZTeqb1bN0HD1nv4SPWd2TA7QM9sLCqTPsqOUvKC8s1V429OFZwBQpKZQOUvsNHat6jMNNhxtPU0X4OLIKmva/fug4ecjAhAyysDbEMUCqUheTzwnL1lVdc+LAw9VTXAyj7Ozrcimml+/ZCyi73PKDgPbhRKTiKhXggptQtXV126Chfuhj6DCkvLBf8cj+g+FNjPApL67X+WIBAwXMUA6RQvLxOz6HDdvjYsbIHvnlhGXv5BfzANlcW93E0RmGfxwBq3aPgiRjIUt9wrFIIjGLnmVpzu4LbBYeOHjMuorweLy8sF9xyPyAwa2ChSpAQctd4pG7E5TWK5BhfFTN+ofjWnl6XlhAv2tzZ5bol5DVekwyD5DzdVF5YauoRBd2lZaUya7TPg0nc0qfP9kE50NWZ+yqSwUYqHAooAMEgVzAc6O5x4KAPoCEeT7Wvve31cU2301cxYPLCUhMDXMYXuE2W5jtffzqts6/fdSk8lAQ4R44edYM6IOHuLFcVG/d8an18IjDxfIU8RjnngUSAABHHhNqI4xx6VR2ywrywvOmaq0d2NkS3wmMDzAhopP98CcecB4h9ba3Om2zatXMQltbunlxuNktBw32Om5ZDGcwWguns7KjDeRt0h9ehO/LHQpWD5aqRhYV+lakuYKhroaHs02hdJVIAT7FxteBVGOBeCINZQKGdhQweO4/x0UEhGcXTJaE39MJtAtZmSENauu/YxZHXs4zYABeXzMhdnoRG0dfSYMAQOMRLRlcOSkAZtfKIQcwQDMbLBUWAaIyiY4XoygcJvSGLXlUm8GSN//w654dlBJ5nAZSOvv5BCABjx/4m9wzHlj277L6H7nY30GgoXoR4QOHqQSFSFgqp1m17X5nl7jOwlNFU52qEAKOLrKP/oLHuQjk6z8Qh1oa8sAzr8ywMRHm21V9EAwTupi5avcqmzJxuP3/wLntm2uRzPAvQMNo/62L7HGhSejEXG1NSNePoHqsNiqbNXER4ZS5AVoQ5BhT0xXPGZ85cYLDQZbCySqPUxSjkBtncJYtt9oJ5NmXGFFu+bu2gN2HhSqN8ANGqJefYmIpW0+jl5s0T+wK6WiHtd2C0tztQGMhSFl0Rj2YyvkPnxcZ1eT3LsNx1ZlrM+ziQLkD8kC6Ip8K27NntvExT+9kn25BHGSjF77eVD+DVIiwMvKsFiPLFc6AbdIF+8Cga1HLMqyxchDxIVQz4/LBU+UZieO/GhyTcRwGMSQQD4xQaLgVxXnGkRTaPMoopq1LxeM++I0eqMkWWDhQyRmGjS2eMIlC4qOjWV23caHvb2nJNAvLCUtVFOf/eDVdBCAfHAEGjtU+IrD/zQUE+JMhwq76prb2mBri80ShjVitEDwChgT6QCBTKRDe8Xrt640brO3yoqFfhQskLS1WfZ+FRxukvzrAnJv7SVjSus617dzuja4oMEGw0kE37Oo9iUIA/zuFZDq4c3iOulXtBzMj8wSzP0fiwEMd01j9X6j6DWTZ1x1xQeBVelju78n3QxW3du8e9+biruTn3e9V5YamaZzl56pQ1bFxv9z98j/3LvT9wG/tzlyywhs0b7OXduxwgmvIBi7ohKYQ4zhHHYI2Q1yToi2vpCX3udBcyPpAMFRQ/b/SBfrjLDCR4FcDh3PamJveONa/ItnXl/98LeWF50zVVWME9cfKkrdu0wR5+/IFBUAQM4f0P32uTpk+2uYvm2orGBjcuQQnaUA5jFUECHCzzE/KKaS2BkjXr8bsF39CV2OcCIh/KYFDLvqbQvBbLy/h4lWI3D/1xWl5Yrr26wrDwqYpFyxfbg4/edx4o4+6/w4Hig/PQL+6352Y9a4tXLbN9bWeXteVNmCXxmQvBwhPuXb29ufphXxnV2tesh4UwHxB/vxKA+HkAC92auh55X8ZwgDJr/hx307WUNueF5bLRFfymHA9Hz5o32+4d/1O7b8I9bhMYj/7yEbfg9vDjD50HETIsxuFtNu/a4TwKU78NO7a7l6zYX9rQYL0Ha+c/qzGY1Y1BQoDxjco+i2TVAAdQ2Oh+uLAYv6EfFjV3NO0r+WLKC0vF/oUMoEx47H67c9w/28f/6sP2nvf9kd1y69cGwbj75z+yu372QyMEDuBh//FfPe680NTZM+3b3/2mPf3sZLf0z9iEDW/Cd1FqzaMASJ6BrICiy9B+CFXeY8DgeR4GtcqL7povM/A9mLlLlxZdrc3yOHlhufrKIT7dzxL+rv1NNuGx8Q6CH9xxq/3hu3/P3v6Ot9nff/lz58Byx923O2CABmAAZfwj97rGTnjsYfvbG/7a7hk/zn2SggEtSlje2Gh7Wg4UvRmWpYRqnMsao2QZW8b047LO+fGxfcYlfIUKj0I+DGgZ0/F6K99/mTJzmnX3l+d588IypOdZjp04bhu2bLaHH39wEAp1O2E39OCjDzgYvnP7t+zOcWdhATCAmPrCNJf+hv/5Sfvy1260xWtWu/N8AGfX/tIGa9UARHnyIBbdCl2Ob3i6m9DQGnz657PO+fGxfcojvbo1YHHfe9m4wXU/K9c3lr3mlBeWstdZjh4/bstWrzhvwCpYwvBHd95mf/qB99l//tCf2j9++yv2i6cesSUNa+y5WVMHxzaA8oUvfdaenfm8LVu3zrbt3VfSqF5GrUaIR8FgTIMFDMblnAxInA9RzPilxB3o7nartMDC4JYyuCXCmO7FRQtsxtwXrKO7u+g9oEJ6yQtL2d3Q7ub99r0f3moMWBmchnCEx3eO+759/eYvOlCenvKkLV690p6Y+IRLjxdC/id3/bMb8zB+YeGtVu77aNYjWAoZuhAsheAqlI/OM0Zhn3EKoODBdPuDmeJLK5bb9Dkv2NbdO8v2KgCUF5Y3X1vmY5VdPd32ib/+S/vof/0Lu+3737QJjz3oBqyMS77y9f9dEJ6nJj1uy9c12JMTn3Djl5898C9OdtqMSdbW0Wq79u2x5o6Ook93FbpKKn3en/XIiM74GV2P4sOwULcVywdQmBYDKANarRAzA2Jlm/WmFxa+ZPOXLrL+Ib55mReWsldwjx4dsG/f9nX7whc/a3gNzXIYtAJM6Fk4fvSXE6xh8yZ7ctKTDhRkOf/0pMfs5KmzjxpwO73YLfVKA1EoPzwKxmLWQ6gxB/shEDpGJhYvOcJCcgKF+z8MaHnfGVnOcysEUOYtW2ZTZ8+wvQdahqyvvLCU/Vgl90MWrlhqT0156vXR+HTDS9wz/k73pBv3g8Y/8rNBiJhWb965w3kgvBCyADZjzqyS1wUKGbeS52OznmL3egQB3ZI8AnCEU20fHPa1wKbz5AMsOmZQC0AsKTBNbti0qaSXyQrpJy8sQ/pMWHdvj81ZON9eWDDfps+ZbbMWzHfEPzNtkpsS333fj+3e8Xfbzx68y4EyecZU49zZ8z+1OQvm1iQozHp8I2N0GUxh1gxIcfJAOg5DIMhaxJMcXQ1vFwKK8mKswjgFUF5cvNB5Fd56KARAKefzwnLt1VeW93Q/XQXPb/BY407udC6db9NenGnPTJ1kM+fNdv3pxOmT7c577nR3nR95YoI9+tSjbjDMEv+CJQvs1Cv5X7EspfFDkcWjYEjNcDCgD44MSrzvQXQ+TxjmH6ZhTYVnVPScCh6FO+88IMa3dH/13ERbu+XlXM+q5NFF1WHJqkRrZ6etW7/GZi+YY89MnWxTZjzn1kzmL19qgoV7RstXr7Bjx45V5KrIqke55zTrCY3pw4KXCT1NeBwa3w1kM7xTKKdj5LX4xj4DWj5IyANNM+bNsXlLF4/IJzfK9iyFDILH4SvTza0ttnTNKje1e+6F5+3JSU/ZhMcesNXr1xl3pQulH6nzPNEnTxF2Ez4MxElOxvVDwArjgS8856fx9ykLUICE84BCF8QHCQFl5vy5tqulpaIr2nk9S1UeUZDBGQQDBm8V4jpXNq6z01X64qLKLCcEFIxTaABa6LxvZO3nhULyYUg9BApxekyDRUrWnxavXmU8K1ROOwulyQtL2YtyhQq+0M5r1uMbmavb73pk0PC8n0YyQwnJnzUVYGGcwjSZJX3ujz0/90Wbt2yx8Q54pZcW8sJSVc9S6+D4T7hldR/FDK+ZSjG5rHimyWyKAzx1P8yGmCLjVXiWZ87ixW7207BpQ1VWtfPCUvGHn2odENVPHoUpsD8N9rsAGbISoQ9GVn6UK/hYfAMUtqVrG4wx3+wFc92354q9Xaj2lRLmhaXsFdxSKlNrsv6sB48yErDIszB45d4PXoVuiPPyKtyRZ/Ht2ZnTbPs+bqrGX3AvV88JlgL/nKrQrKecbijLQ+Q9x5iETQ8zAQppgQePwpoKj0lOnjHNlq5ZY4cG4t9YKRcU0iVYCsAycPyEm8bqdRNcPkaq9GC1EDQAoldckKHrYVDLPl6FegELT+jz9NvE6VOsuaO94oNaH668sAzL66t+xUZ6H1jk5plp+BsDS4xJt5Q1GyoEQLnnWaHVI5KUCyTUh+dUWKn9+UN32/pt26v+flSCpYBn4ROgwMLzMrh6Zhts7GMoVkqJ5yrHgOWC4KejawFEzpEv+6w9UZeug2e7H84DC28z8JwKYxWAGY4vhOeFpe6mzlzNuHqBwjOsbIJG/1ABw3E/BkP7hi9lHwAEiMCj26PL030f4rkXRHncKHSPmc6eafOWLnGD2uHwxHlhGdJd5+FoSKXLECx4EYBhw5v4sACPf54xBkYuFZwQFo2PGMwyVtEsTItv/CdXvAkrtSs3NLr/CFvp9mfllxeWq8ZW+SsKWZUbyXNtPWfdPfdagIR/aMl7Sdp4BIAxA7DwkBEvbyELXHQRgCMIsrwMQOBFNIhFVvJAIa/C/SLSIy+vwgPqs16a556rbWprG7avcOaH5SL/T2YhmAxcMRpQAIG6IWCgC+IVFOLkdThH9wA4yGBY0mtTNyOvoe5GoYACHsYqrKdkLb5R5uxFPKcy09a+vNn9O+Cw7tU6zgvLsH4mrFqNLSXf1u4uZ3SMzyAXGDAUYwVgYF/HfLpi445tTkZyhGykFTyAEcIBGPIuAoZuRzcltZ4CfJQ3Z8kSmzhtivtH4vzHtVLaNFTZvLDU3ZiFRTC6HowNMHgQnhOZPGO6vbhwvns9hXdwnn5uin33B7fZl2660R7410ds5foGJ483YhNUgEN3hvfBu6jLEShAdNbr9LrXWgBH5wAFT8biG48fPP7ML2zvgQPD/vpLXlje8qZryntSbqg0j1R6Pt2OgYFEBn9p+TL76j980b0E9/df/j/247t+Yh+8/j/ZpZdeMrjd8D8+ZePu/7ktXLnUQaO0CslPA2Xe6WGGAxR847etp9d5FAbX6rYABXm810srVrjXeRevWuG+ATfcuskLS8UffhruhpZaXhYsPNH3kY9ebx/44Ptt1KhL7c1vudauumrsICiChvN/e8MnbcLj/2rLG9cNwgYweCl5KsDRYBivwjjJX+TD6wALj0biVaa9OMs9Vdjc0Tmk939K1YXk88Jywf+/ITU4b+h3Q/IKT035pf35h/7Mrr7myvMAAZS3vf2tg+fHXDba3vHbb7enpkw+BxblBTDaZ4a1fvt29ykR3U4QKHSDfPmAAe3Tzz7j0lTrRmEx3eSFpe4efmKAy5iFrkhGBZaPfPS/2JgxowehkDchHD16lP3eH/zOOdDc9I0v2vJ153oX5ReGlMVXmZhBqfvhgSa6n8nPP2fL1q11n1AvZtRqxSdYCiz3M24AFk2RMWwxWATOdde9xd73H/+DvfVt19k1115l7/qj3z9nBiVImFmxT8i2pKHBPe1GmcDC2s3S128UPjvreVeXaoGQJ9+8sNTdbIhHFBq3/v/ZDEadNH2SfeK/fcze+lu/YQAxduzlRnfDJlAUAsnbf/tt9sfvfbd9/BMfPgcWZlXAwScwBAlQsLEyizdhus3nvLijzIbcoYGjwzpVDgHKC8vlYyr45aewErV6zPdeMBLGYzYyb9kSG3f/PfbVf/iCfemm/2Uf+6sP2x+863fdQFeQhOEfvut3nWcZ/8hDtnDlCudJyA9gAJAHrAkBA8/CQBY4mGJzzD4ANbW1DttKbSF7JFgKdEMojP/UwQcNMRawYDyu/ufnzrKnn/2V/fin33XgAM07fuffuRlSCAvHb3rzNfabv3WdfeZzn7Hbf/RD944UgBSChTLoigTKxh07a+KjzwmWCCwAw39G27avyXkXjAgw8ja8UcnLcD+841b75ndusr/8+PXndUeCh6k23dav/8av203f+LItXLncwaJuCE/DZ84YzHKO2RKwUF5bd/eIexV0kReWunv4yXfFeBj+w/yqDRucATEmN/MIVzQ22vQ5s9wL/D+563t26+032wc/9GcFoQGez3/h8+69HvLAu5AP3ZHGLByz4dF4prZWvj+TH5Y6u+vsw6J9Br3b9u61JWvWOGi48vEEMvKk6c+6r0Pw1Ydvfecm++P3/nu77PIx54CDh/nGLbe4MQqg+MBojEIXRL5Mubsr+B/f1Y5yw7ywjLrk1+pruT+mUD7vvpbB6evdkmDBG/A9FP/rEJ+64W/sXe/+fbvyyiscNNf95lvsrvvudWMgBrUat6iLAx6mzKy5MMCO1WO44/LCUncruMUMwdc327q7bNP27W48wywGg+MRgGDOkkUOmod+Md59kOi/f+oT9ifvf4994M/f797nFhwAxlhFwAkgHrLi5bZi9RjO+Lyw1NT/dR5OBRUri/eJWzo63BgDUNhYP6FLYeOxx4nTJruPE33/x/9kt//oNpu/bInzKEAiWEhDtyZYumqo+5EO8sJy2ehLUzckpYUhb/8NHDtmrV3dzstgdDwNG90Kx4tW8W7PVPd6KTMfQGK9hW6IaTmeRbBwP6jYP7cM6zAcx3lhGTPqkgRLMYPwIjqeZnvT/sEBMEDgbQAHSHjNlJkPMx28CjDhTZABGOCpxU+N0Pa8sNTlCm4xOGLxvBm49uWXBz0LoOA58Ciu61mzZnAVl2NAASyejCv2jy1j5VYzLi8sdffAdqWUzqOP67dscR4FLwIseBm8i+4N6Tz/iKFW1lSy2p8Xlor9o4esStTDOf5b29bdu93CnoDBowAN3RBrKu38u9wi/1t5JHWVF5a0zlLktkAeIzJo5R9mNbW2ua4IaNzsqaHBtu7ZU/EvNeWpUykyeWFJs6EKwCLD+LMn/q8yHuV4jn+Vq/QjFSZYKghBqUZk9sRgttKf8yq1HnnlEywjCEteI9WKXIIlwZL7lkKCJcGSYKkV130x1SOvZ0k3EpMHyr3cX/a/kLmYrqx6b0tez5JuJCbPktuzjLrkjemuc/Is3Vbsh/dJsCTPkjxLvXuLUtqfd8ySPEvyLMmzlHJl1bts8izJY1R8BTd1Qwmq1A3Ve9dSSvvzdkOX/Nq/SesspSj2YpRNsKTupeJjluRZElS5xyyXvvHfpm7oYuxaSmlT3m7o0jdGvqJQ7H5Bir84NJAXFlr7hqwm58kgK106d+FpII+tJZNgufDsW9EaC4RYppJJsMS0VAdxAiHWVMkkWGJaqoM4gRBrqmQSLDEt1UGcQIg1VTIJlpiW6iBOIMSaKpkES0xLdRAnEGJNlUyCJaalOogTCLGmSibBEtNSHcQJhFhTJZNgiWmpDuIEQqypkkmwxLRUB3ECIdZUySRYYlqqgziBEGuqZMqG5czp/2vf+cfNtmHd4fPK4dzffWqVDRx5bTDu/rt321vHTh/cSEse+pHGj9d+KCf5MFR9wnJDuXR8rgYEwrlnzz2SzLDAAihs/o9j37DAEoIhAMK0fj7aJ/1Xb2x024yp7TqdwiIaEAgxMclUHRa8C1BgTP8Xns+CBXkMnwcWZJBlC6Hzy2W/uemEg+qxCU2D3ixMQ37yboR+HQSxHy9AaRd5Ke8w37AuI30sEGL1kEzVYZFiiyktCxbS3vH97c64scZgILwKELB95pOrommQ+dgHFw0CIHBlcMDw60vdAINQ7fHhIR35ka/y8uNjdR/pOIEQq4dkqg4LlZAC/SsRxfs/GcSX0X4o66djP/QmGCpmrCygYmlU/0L18PMrJhvWfaSPBUKsHpIZFlj8iuiqBoRiYxbSYUT/KvfzYl9Xum9I9v28wzS+cRWXBQsQClhCvwzSkUbxoWcJZVVOrYUCIVYvyQw7LKqUjCzXj3KzoPANm2Uc0slgYai8VaZCP0+d82ERJAIu9Baqh+rr5xfKKv9aDQVCrH6SKRsWMkdpWQbhnBSJMaX0sEK+gWKwMB7BCFk/Pw8/nvOqg3+efd+4ilM+gpj66OcDwL7GR4r38/NlFV/LoUCI1VEyQ4IFhcr9qjApSxBJ+aHhfAWTthAsMqLy90OV5RtW8WH+Ok+YFadyVN+w/uqGwjJ1LD3oOKtOfh1qZV8gxOojmSHBIsWjKL8LyFIUxvBlQm9DGj9e+yFkfqMwaJiP4mV0yg1/MViQJd5v08qlfc5LKS+/rshxTD2oT4Il1HY6vmg0IK8Ra5BkhuxZYoWkuNrXgECI1VQyCZaYluogTiDEmiqZBEtMS3UQJxBiTZVMgiWmpTqIEwixpkomwRLTUh3ECYRYUyWTYIlpqQ7iBEKsqZJJsMS0VAdxAiHWVMkkWGJaqoM4gRBrqmQSLDEt1UGcQIg1VTJlw6LldC3L+2FsiZ6l8ULxWjZnyVy/cOmdcrTsLhmFsbwlQ4gc+ej+jx8X7ldy+Z68wpuQYXnDfSwQYuVKZsiwoHj/J4hKNaiMEt7rwaB5jEod8sDi1y8sy2+H9lWvsJ2KLyVMsASwoDwUW8gQhQwKXGxhOs7lNVShvH2D4qm4ulv2n3BlZeUNnPKUeEHqJDnBpnjfQwmGBXO7B29EyosKOqVTfuH5QheZ34ZK7strxPKUTMU9C4WiiNDoqgxxUqB/TlD46TAMz+DyTK2UHFNmVt4qQyEgKA9C7fvxfh2Ip2zyFih+GvILH08I06u9gglg+QkU8uan/PN6UpdoiH8EQiwbyVQcFjXYV6hfkdCgAgIFEucrWsqU8krN2y+XfeUn41Cm/3C38ld5WWnCPP08wvyRDeP9MQvlhHpCHhnyGo6fQIiVJZkhw6Ir3g9DBfgVCWFBYTJOCIufTvu+8nVOYZi3zisM40M4sowtGdL6P9qoNvuexYcBeT9P9v14Pw/lRehfMH6Z1dgXCLG8JTNkWHwlYnQprlDhvsEwPN0MBuFHXDFFhQr3y/Hz9s+zL6P7RtG+yvQNq/RKp3bKwOpafHiz6ubnGcaTF9tI/gRCrA6SqSgsFEjjpXyOQ1frG5Q4GcwPBVwWPDE37ZWVbZcAAAa8SURBVOcdNt43qh/HecojrcCQp0MuZmzi/Xx9WZURxvuehXIEneSHOxQIsXIlU3FYpDApITR47GoKZZWXjJdlTL+RMVhihvHrFNaBOEDmvOrDPj8dC24dq+3I+HkT78MiebUP+Vg9XaEV/iMQYtlKpuKwUKiuVhTFTwpH6b4iwwqGhiJeCpXnUZ5hWo5Jn5W/8vCN4qcnnQzOeeRUHq+h4ikFCKHi5JGIJ43KibVXcaqLdKU8/forP5WtuoUyPoB+u/LsC4SYrGTKhiWW+UjFoVRfkcNdjyzjDncdSi1PIMTSSSbBEtNSiXEJlhIVNpLiybOUrn15jVhKyVxUniXW4BSXrQGBkB179qxkEiwxLdVBnECINVUyCZaYluogTiDEmiqZBEtMS3UQJxBiTZVMgiWmpTqIEwixpkomwRLTUh3ECYRYUyWTYIlpqQ7iBEKsqZJJsMS0VAdxAiHWVMkMGZaBgQH79Kc/be985zsHt8bGRlf2/v377frrrx88f/PNN9vp06cL1iuUnzZt2jmyxeLPEU4HuTQgEGLCkhkSLEDhQ8I+cGDULIiIHzduXGa9CskLmGLxmZmmk0U1IBBigpIpGxYZT3CEhckLyJvoGC9E2vAn8AST8lf6YvFhfuk4nwYEQkxaMmXDEnoUHYddkIwtWHQcVq4QDIKrWHyYXzrOpwGBEJOWTNmwhMbLKowuRBARFvJCpBVMvryfplh8VvnpXHENCISYpGTKhiU0KsfyAiqYLiWUk+eRjB/6QJAXXsgHrFi8n1faz6cBgRCTlkzZsIRjirCw0PNIPgQqTKdjZk3AUki+WLzySWFcAwIhJiWZsmEhc3kODUo5x9W/fft2UxekOMHiewq/gvIaGtOUeuznlfbza0AgxFJIZkiwCICsrkbGDuMEg9LKc8hThPLqtorFxxqb4gprQCAUljCTzJBgoYAsI8rAITAChXQhLJwL5ZWPGlIsXnIpzK8BgRBLIZkhwxIrJMXVvgYEQqymkkmwxLRUB3ECIdZUySRYYlqqgziBEGuqZBIsMS3VQZxAiDVVMgmWmJbqIE4gxJoqmQRLTEt1ECcQYk2VTIIlpqU6iBMIsaZKJsES01IdxAmEWFMlk2CJaakO4gRCrKmSSbDEtFQHcQIh1lTJDBmWM2fO2D/d+j370Ec+Orjde9/4WNnnxe1vbra/+9yNRujvnydY4onpM2a6ulHHUn+0odR2qIy8bTgyMGCf/fyNtn7DRiUd9lAgxAqWzJBgQSl/88lPn6dUlIwSUEaeX17l5snLl0mw+NrI3hcI2bFnz0qmbFjkUTBI1s+/MoHmK1/7hv1q4qRB7+PD5MPi7xdLR7m6OuXZfG8QwkIccFMGP46VjtBPyz4ek3oS56cjrdqv9MjKg/ltQJZ6SM7PR3X36+HrhbSSUfpC+ka2nJ9AiKWVTNmwhAoJCyMeQGisGiyFStEyjp+Xv18sneLlxpWvFOrDIuPLoOExeWAQ5SUD6phQhg7Loe3Is/Hz20A6HwD/WPUvpBfFqz3hcajzco4FQiytZMqGxW90VkE0DFhQnBpJGv18Q/rK9feLpSMPGUj5kl6Qqgw8mm8wyfphWJZvfOR8QGiHDKw8/Pb6bYjpKSyTvFRnyvP3VU4sP8mUEgqEWBrJXNCwYFC5Zz8UGChb50OopBxfJvQsxPk/ARSmURnyPD4sgkwy/gVTDBaV59fBvxj88+XuC4RYesmUDYuvkKyC/EYVU4qfl79fLF2WMv26YFTAaW5pcaFvKBlcYIVlkXcMltCz+OX6bfDPkyfQCKqwTGQpU3lntc/Xq593ufsCIZZeMmXDoismVKgK9RtaTCm+cv39Yul8xapcP/Tj2RcYqrsPT1iWX3/yVBryKdYV+G3w6xPmE5ZJfFhngaN8ipUtubyhQIjJS6ZsWMgcpXCVoFj/x7EMw/liSvGV6+8XS6d4FKxfIWXL2NRN+0qn47Abkgcgb2TVJsn77faN6LfBP08+fpzqj4x+fv0Vr3qGx0ozlFAgxPKQzJBgoQApTn0yoa9EZNTIQkrxFejvF0tH3shjVJXvX4m+4n1Z6hGmW75ylXP/qjvhI48+5gAhbx8cv00qVyCpHC0yckxekiOUHvK0TzJKL3DIl3z8csNjXxb5rJ9AyIrTOckMGRZlmMILUwMCIVZ7ySRYYlqqgziBEGuqZBIsMS3VQZxAiDVVMgmWmJbqIE4gxJoqmQRLTEt1ECcQYk2VTIIlpqU6iBMIsaZKJsES01IdxAmEWFMlk2CJaakO4gRCrKmSSbDEtFQHcQIh1lTJ/D9HX5xCrm+UQAAAAABJRU5ErkJggg==)




(https://www.cpcwiki.eu/forum/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAADcCAYAAABAklKwAAAgAElEQVR4Ae2dCZBdV3nnmQm2JNvyBiQOYSAhG0wmQIZkmDC4IAEmVDJTEMpVM4SC8ZBhM4QYTLDBhM0mtmywZVt2jBdsrMWWZEmWtVj73lJrs/at1a3eNy2t1ZJdNVXf1O/I/56jo/vOu+/1e91PeudV3T733vOd7ft+9zvLXfoNln5JAzk18IacckksacASLAmC3BpIsORWVRLMBcurr75mh44cta6efmtt707bBagDbIcNsWW5v6KwUEBP70E79cor9tprr6XtAtYBNsSW2LScXxSWvv7DdvzEqQTIBQxI1gWOTbFtqb+CsEBfAuXi9aTYthQPg2wmLPRruKssKtO5iwcgbJxnDIPMhg2bs2GBojRGuXigKHSBY+M83gWZW275VjYsjJwLFZDOX1wQYetiP2T+5L3vyYaF6XGC4uKCopA9sXWxHzJXXDYmwVJIifVyPi8soy55Y4KlXqAo1M4Ey0W2LlLI0JU4n2BJsOQecyZYEiwJlkq43ZTHubO85FmSZ6m4Zxkz6pI0G6p3T5PXs1x5xWUJlgRLvkW5q8ZenmBJsOSD5fIxoxIsCZZ8sFw2+tIES4IlHyxpub+MWdOrr75qhbYLEby8A9zRl6Z7QwWnmGdefdVeOX3aTr7yip04dcqOnTjhtt5Dh6y9p/ecrbu/39gOHz06KEc60p85c6ZgGbUAV15YxoxK3dA5hhQYGL2rv986+vqsubPTdjY326adO23d1i22csMGW7p2bebW8PLLTqZx21bbtm+f7W/vsK6+Pjt45IgNHD9uJ0/V3kPvCZYSupdTr5y2YydO2sGBATvQ1WUtXZ22t63VtuzZYxt37nDbkoYGW9zQ4ABZvWmTAwJwtHFOAL20YoXNX77cFqxcaaRb0dho67dvsy179lprd7fzQEeOHXde50LyLJePGV2/A9zTZ87YwYGj1tbTY03tbQ6QXS3Ntr1pn+EZ1m7ZYi/v3m1t3T12oLPL+g8dssMDAzZw7NhgV6OuiXPEsfUdPGg9/f22Y/9+B9PiNWts4apVtmj1alu2dq2t377deak9B1qsq/+gAc5IQpPXs9TtohyQtPb02O4DLQYgbOu2bnVbU3u7HTl2zF35AKXBbKkG1ZiH51z7jxyxnc37DQ+0Yv1656XosgCSsjv7D9rREydGBJq8sNTVohxGP3z0mLX19g0CggE379rlDNne21d1Y1GHnkOHznqvrWe915rNmw1wABdojp886QAtFc5y5fPCcsVlddINMSthwLqn9cAgKHtbW21PS4sxu8GDlKvsctMxw+ro7XVjo8Zt2wxoGNvsPnDADayBZjjqlReWsZfXwTO4jCswirobQqa5GKtcQ1cy3fGTp6yzr9e272tyYyWg2bZvr+3v6LTOvj5jAF7J8sK88sJy5RUX+b2h/iMD1tzZMQgKs5H+w4erqvzQGHmPgZppNt0iHoaZGPvtvb1uEIx3zJtXKXIJltdes97DhwdnOHgTDFHrL86xgAc0e1sPuHHM1r173cxpX1ubdR88WJVuqe5haQ9mOrh5BpelXHEjKQs0bb29bnYGMAyACRkcV7oddQsLg8KWzs7BbocBLR5mJA2fp2ym2azuMn1mHyDYeg8dto07drhBMGs+eMhKtycvLBfV1BlQGJNoIMsqbKUVm8fwpcow42np6nZTeqb1bN0HD1nv4SPWd2TA7QM9sLCqTPsqOUvKC8s1V429OFZwBQpKZQOUvsNHat6jMNNhxtPU0X4OLIKmva/fug4ecjAhAyysDbEMUCqUheTzwnL1lVdc+LAw9VTXAyj7Ozrcimml+/ZCyi73PKDgPbhRKTiKhXggptQtXV126Chfuhj6DCkvLBf8cj+g+FNjPApL67X+WIBAwXMUA6RQvLxOz6HDdvjYsbIHvnlhGXv5BfzANlcW93E0RmGfxwBq3aPgiRjIUt9wrFIIjGLnmVpzu4LbBYeOHjMuorweLy8sF9xyPyAwa2ChSpAQctd4pG7E5TWK5BhfFTN+ofjWnl6XlhAv2tzZ5bol5DVekwyD5DzdVF5YauoRBd2lZaUya7TPg0nc0qfP9kE50NWZ+yqSwUYqHAooAMEgVzAc6O5x4KAPoCEeT7Wvve31cU2301cxYPLCUhMDXMYXuE2W5jtffzqts6/fdSk8lAQ4R44edYM6IOHuLFcVG/d8an18IjDxfIU8RjnngUSAABHHhNqI4xx6VR2ywrywvOmaq0d2NkS3wmMDzAhopP98CcecB4h9ba3Om2zatXMQltbunlxuNktBw32Om5ZDGcwWguns7KjDeRt0h9ehO/LHQpWD5aqRhYV+lakuYKhroaHs02hdJVIAT7FxteBVGOBeCINZQKGdhQweO4/x0UEhGcXTJaE39MJtAtZmSENauu/YxZHXs4zYABeXzMhdnoRG0dfSYMAQOMRLRlcOSkAZtfKIQcwQDMbLBUWAaIyiY4XoygcJvSGLXlUm8GSN//w654dlBJ5nAZSOvv5BCABjx/4m9wzHlj277L6H7nY30GgoXoR4QOHqQSFSFgqp1m17X5nl7jOwlNFU52qEAKOLrKP/oLHuQjk6z8Qh1oa8sAzr8ywMRHm21V9EAwTupi5avcqmzJxuP3/wLntm2uRzPAvQMNo/62L7HGhSejEXG1NSNePoHqsNiqbNXER4ZS5AVoQ5BhT0xXPGZ85cYLDQZbCySqPUxSjkBtncJYtt9oJ5NmXGFFu+bu2gN2HhSqN8ANGqJefYmIpW0+jl5s0T+wK6WiHtd2C0tztQGMhSFl0Rj2YyvkPnxcZ1eT3LsNx1ZlrM+ziQLkD8kC6Ip8K27NntvExT+9kn25BHGSjF77eVD+DVIiwMvKsFiPLFc6AbdIF+8Cga1HLMqyxchDxIVQz4/LBU+UZieO/GhyTcRwGMSQQD4xQaLgVxXnGkRTaPMoopq1LxeM++I0eqMkWWDhQyRmGjS2eMIlC4qOjWV23caHvb2nJNAvLCUtVFOf/eDVdBCAfHAEGjtU+IrD/zQUE+JMhwq76prb2mBri80ShjVitEDwChgT6QCBTKRDe8Xrt640brO3yoqFfhQskLS1WfZ+FRxukvzrAnJv7SVjSus617dzuja4oMEGw0kE37Oo9iUIA/zuFZDq4c3iOulXtBzMj8wSzP0fiwEMd01j9X6j6DWTZ1x1xQeBVelju78n3QxW3du8e9+biruTn3e9V5YamaZzl56pQ1bFxv9z98j/3LvT9wG/tzlyywhs0b7OXduxwgmvIBi7ohKYQ4zhHHYI2Q1yToi2vpCX3udBcyPpAMFRQ/b/SBfrjLDCR4FcDh3PamJveONa/ItnXl/98LeWF50zVVWME9cfKkrdu0wR5+/IFBUAQM4f0P32uTpk+2uYvm2orGBjcuQQnaUA5jFUECHCzzE/KKaS2BkjXr8bsF39CV2OcCIh/KYFDLvqbQvBbLy/h4lWI3D/1xWl5Yrr26wrDwqYpFyxfbg4/edx4o4+6/w4Hig/PQL+6352Y9a4tXLbN9bWeXteVNmCXxmQvBwhPuXb29ufphXxnV2tesh4UwHxB/vxKA+HkAC92auh55X8ZwgDJr/hx307WUNueF5bLRFfymHA9Hz5o32+4d/1O7b8I9bhMYj/7yEbfg9vDjD50HETIsxuFtNu/a4TwKU78NO7a7l6zYX9rQYL0Ha+c/qzGY1Y1BQoDxjco+i2TVAAdQ2Oh+uLAYv6EfFjV3NO0r+WLKC0vF/oUMoEx47H67c9w/28f/6sP2nvf9kd1y69cGwbj75z+yu372QyMEDuBh//FfPe680NTZM+3b3/2mPf3sZLf0z9iEDW/Cd1FqzaMASJ6BrICiy9B+CFXeY8DgeR4GtcqL7povM/A9mLlLlxZdrc3yOHlhufrKIT7dzxL+rv1NNuGx8Q6CH9xxq/3hu3/P3v6Ot9nff/lz58Byx923O2CABmAAZfwj97rGTnjsYfvbG/7a7hk/zn2SggEtSlje2Gh7Wg4UvRmWpYRqnMsao2QZW8b047LO+fGxfcYlfIUKj0I+DGgZ0/F6K99/mTJzmnX3l+d588IypOdZjp04bhu2bLaHH39wEAp1O2E39OCjDzgYvnP7t+zOcWdhATCAmPrCNJf+hv/5Sfvy1260xWtWu/N8AGfX/tIGa9UARHnyIBbdCl2Ob3i6m9DQGnz657PO+fGxfcojvbo1YHHfe9m4wXU/K9c3lr3mlBeWstdZjh4/bstWrzhvwCpYwvBHd95mf/qB99l//tCf2j9++yv2i6cesSUNa+y5WVMHxzaA8oUvfdaenfm8LVu3zrbt3VfSqF5GrUaIR8FgTIMFDMblnAxInA9RzPilxB3o7nartMDC4JYyuCXCmO7FRQtsxtwXrKO7u+g9oEJ6yQtL2d3Q7ub99r0f3moMWBmchnCEx3eO+759/eYvOlCenvKkLV690p6Y+IRLjxdC/id3/bMb8zB+YeGtVu77aNYjWAoZuhAsheAqlI/OM0Zhn3EKoODBdPuDmeJLK5bb9Dkv2NbdO8v2KgCUF5Y3X1vmY5VdPd32ib/+S/vof/0Lu+3737QJjz3oBqyMS77y9f9dEJ6nJj1uy9c12JMTn3Djl5898C9OdtqMSdbW0Wq79u2x5o6Ook93FbpKKn3en/XIiM74GV2P4sOwULcVywdQmBYDKANarRAzA2Jlm/WmFxa+ZPOXLrL+Ib55mReWsldwjx4dsG/f9nX7whc/a3gNzXIYtAJM6Fk4fvSXE6xh8yZ7ctKTDhRkOf/0pMfs5KmzjxpwO73YLfVKA1EoPzwKxmLWQ6gxB/shEDpGJhYvOcJCcgKF+z8MaHnfGVnOcysEUOYtW2ZTZ8+wvQdahqyvvLCU/Vgl90MWrlhqT0156vXR+HTDS9wz/k73pBv3g8Y/8rNBiJhWb965w3kgvBCyADZjzqyS1wUKGbeS52OznmL3egQB3ZI8AnCEU20fHPa1wKbz5AMsOmZQC0AsKTBNbti0qaSXyQrpJy8sQ/pMWHdvj81ZON9eWDDfps+ZbbMWzHfEPzNtkpsS333fj+3e8Xfbzx68y4EyecZU49zZ8z+1OQvm1iQozHp8I2N0GUxh1gxIcfJAOg5DIMhaxJMcXQ1vFwKK8mKswjgFUF5cvNB5Fd56KARAKefzwnLt1VeW93Q/XQXPb/BY407udC6db9NenGnPTJ1kM+fNdv3pxOmT7c577nR3nR95YoI9+tSjbjDMEv+CJQvs1Cv5X7EspfFDkcWjYEjNcDCgD44MSrzvQXQ+TxjmH6ZhTYVnVPScCh6FO+88IMa3dH/13ERbu+XlXM+q5NFF1WHJqkRrZ6etW7/GZi+YY89MnWxTZjzn1kzmL19qgoV7RstXr7Bjx45V5KrIqke55zTrCY3pw4KXCT1NeBwa3w1kM7xTKKdj5LX4xj4DWj5IyANNM+bNsXlLF4/IJzfK9iyFDILH4SvTza0ttnTNKje1e+6F5+3JSU/ZhMcesNXr1xl3pQulH6nzPNEnTxF2Ez4MxElOxvVDwArjgS8856fx9ykLUICE84BCF8QHCQFl5vy5tqulpaIr2nk9S1UeUZDBGQQDBm8V4jpXNq6z01X64qLKLCcEFIxTaABa6LxvZO3nhULyYUg9BApxekyDRUrWnxavXmU8K1ROOwulyQtL2YtyhQq+0M5r1uMbmavb73pk0PC8n0YyQwnJnzUVYGGcwjSZJX3ujz0/90Wbt2yx8Q54pZcW8sJSVc9S6+D4T7hldR/FDK+ZSjG5rHimyWyKAzx1P8yGmCLjVXiWZ87ixW7207BpQ1VWtfPCUvGHn2odENVPHoUpsD8N9rsAGbISoQ9GVn6UK/hYfAMUtqVrG4wx3+wFc92354q9Xaj2lRLmhaXsFdxSKlNrsv6sB48yErDIszB45d4PXoVuiPPyKtyRZ/Ht2ZnTbPs+bqrGX3AvV88JlgL/nKrQrKecbijLQ+Q9x5iETQ8zAQppgQePwpoKj0lOnjHNlq5ZY4cG4t9YKRcU0iVYCsAycPyEm8bqdRNcPkaq9GC1EDQAoldckKHrYVDLPl6FegELT+jz9NvE6VOsuaO94oNaH668sAzL66t+xUZ6H1jk5plp+BsDS4xJt5Q1GyoEQLnnWaHVI5KUCyTUh+dUWKn9+UN32/pt26v+flSCpYBn4ROgwMLzMrh6Zhts7GMoVkqJ5yrHgOWC4KejawFEzpEv+6w9UZeug2e7H84DC28z8JwKYxWAGY4vhOeFpe6mzlzNuHqBwjOsbIJG/1ABw3E/BkP7hi9lHwAEiMCj26PL030f4rkXRHncKHSPmc6eafOWLnGD2uHwxHlhGdJd5+FoSKXLECx4EYBhw5v4sACPf54xBkYuFZwQFo2PGMwyVtEsTItv/CdXvAkrtSs3NLr/CFvp9mfllxeWq8ZW+SsKWZUbyXNtPWfdPfdagIR/aMl7Sdp4BIAxA7DwkBEvbyELXHQRgCMIsrwMQOBFNIhFVvJAIa/C/SLSIy+vwgPqs16a556rbWprG7avcOaH5SL/T2YhmAxcMRpQAIG6IWCgC+IVFOLkdThH9wA4yGBY0mtTNyOvoe5GoYACHsYqrKdkLb5R5uxFPKcy09a+vNn9O+Cw7tU6zgvLsH4mrFqNLSXf1u4uZ3SMzyAXGDAUYwVgYF/HfLpi445tTkZyhGykFTyAEcIBGPIuAoZuRzcltZ4CfJQ3Z8kSmzhtivtH4vzHtVLaNFTZvLDU3ZiFRTC6HowNMHgQnhOZPGO6vbhwvns9hXdwnn5uin33B7fZl2660R7410ds5foGJ483YhNUgEN3hvfBu6jLEShAdNbr9LrXWgBH5wAFT8biG48fPP7ML2zvgQPD/vpLXlje8qZryntSbqg0j1R6Pt2OgYFEBn9p+TL76j980b0E9/df/j/247t+Yh+8/j/ZpZdeMrjd8D8+ZePu/7ktXLnUQaO0CslPA2Xe6WGGAxR847etp9d5FAbX6rYABXm810srVrjXeRevWuG+ATfcuskLS8UffhruhpZaXhYsPNH3kY9ebx/44Ptt1KhL7c1vudauumrsICiChvN/e8MnbcLj/2rLG9cNwgYweCl5KsDRYBivwjjJX+TD6wALj0biVaa9OMs9Vdjc0Tmk939K1YXk88Jywf+/ITU4b+h3Q/IKT035pf35h/7Mrr7myvMAAZS3vf2tg+fHXDba3vHbb7enpkw+BxblBTDaZ4a1fvt29ykR3U4QKHSDfPmAAe3Tzz7j0lTrRmEx3eSFpe4efmKAy5iFrkhGBZaPfPS/2JgxowehkDchHD16lP3eH/zOOdDc9I0v2vJ153oX5ReGlMVXmZhBqfvhgSa6n8nPP2fL1q11n1AvZtRqxSdYCiz3M24AFk2RMWwxWATOdde9xd73H/+DvfVt19k1115l7/qj3z9nBiVImFmxT8i2pKHBPe1GmcDC2s3S128UPjvreVeXaoGQJ9+8sNTdbIhHFBq3/v/ZDEadNH2SfeK/fcze+lu/YQAxduzlRnfDJlAUAsnbf/tt9sfvfbd9/BMfPgcWZlXAwScwBAlQsLEyizdhus3nvLijzIbcoYGjwzpVDgHKC8vlYyr45aewErV6zPdeMBLGYzYyb9kSG3f/PfbVf/iCfemm/2Uf+6sP2x+863fdQFeQhOEfvut3nWcZ/8hDtnDlCudJyA9gAJAHrAkBA8/CQBY4mGJzzD4ANbW1DttKbSF7JFgKdEMojP/UwQcNMRawYDyu/ufnzrKnn/2V/fin33XgAM07fuffuRlSCAvHb3rzNfabv3WdfeZzn7Hbf/RD944UgBSChTLoigTKxh07a+KjzwmWCCwAw39G27avyXkXjAgw8ja8UcnLcD+841b75ndusr/8+PXndUeCh6k23dav/8av203f+LItXLncwaJuCE/DZ84YzHKO2RKwUF5bd/eIexV0kReWunv4yXfFeBj+w/yqDRucATEmN/MIVzQ22vQ5s9wL/D+563t26+032wc/9GcFoQGez3/h8+69HvLAu5AP3ZHGLByz4dF4prZWvj+TH5Y6u+vsw6J9Br3b9u61JWvWOGi48vEEMvKk6c+6r0Pw1Ydvfecm++P3/nu77PIx54CDh/nGLbe4MQqg+MBojEIXRL5Mubsr+B/f1Y5yw7ywjLrk1+pruT+mUD7vvpbB6evdkmDBG/A9FP/rEJ+64W/sXe/+fbvyyiscNNf95lvsrvvudWMgBrUat6iLAx6mzKy5MMCO1WO44/LCUncruMUMwdc327q7bNP27W48wywGg+MRgGDOkkUOmod+Md59kOi/f+oT9ifvf4994M/f797nFhwAxlhFwAkgHrLi5bZi9RjO+Lyw1NT/dR5OBRUri/eJWzo63BgDUNhYP6FLYeOxx4nTJruPE33/x/9kt//oNpu/bInzKEAiWEhDtyZYumqo+5EO8sJy2ehLUzckpYUhb/8NHDtmrV3dzstgdDwNG90Kx4tW8W7PVPd6KTMfQGK9hW6IaTmeRbBwP6jYP7cM6zAcx3lhGTPqkgRLMYPwIjqeZnvT/sEBMEDgbQAHSHjNlJkPMx28CjDhTZABGOCpxU+N0Pa8sNTlCm4xOGLxvBm49uWXBz0LoOA58Ciu61mzZnAVl2NAASyejCv2jy1j5VYzLi8sdffAdqWUzqOP67dscR4FLwIseBm8i+4N6Tz/iKFW1lSy2p8Xlor9o4esStTDOf5b29bdu93CnoDBowAN3RBrKu38u9wi/1t5JHWVF5a0zlLktkAeIzJo5R9mNbW2ua4IaNzsqaHBtu7ZU/EvNeWpUykyeWFJs6EKwCLD+LMn/q8yHuV4jn+Vq/QjFSZYKghBqUZk9sRgttKf8yq1HnnlEywjCEteI9WKXIIlwZL7lkKCJcGSYKkV130x1SOvZ0k3EpMHyr3cX/a/kLmYrqx6b0tez5JuJCbPktuzjLrkjemuc/Is3Vbsh/dJsCTPkjxLvXuLUtqfd8ySPEvyLMmzlHJl1bts8izJY1R8BTd1Qwmq1A3Ve9dSSvvzdkOX/Nq/SesspSj2YpRNsKTupeJjluRZElS5xyyXvvHfpm7oYuxaSmlT3m7o0jdGvqJQ7H5Bir84NJAXFlr7hqwm58kgK106d+FpII+tJZNgufDsW9EaC4RYppJJsMS0VAdxAiHWVMkkWGJaqoM4gRBrqmQSLDEt1UGcQIg1VTIJlpiW6iBOIMSaKpkES0xLdRAnEGJNlUyCJaalOogTCLGmSibBEtNSHcQJhFhTJZNgiWmpDuIEQqypkkmwxLRUB3ECIdZUySRYYlqqgziBEGuqZMqG5czp/2vf+cfNtmHd4fPK4dzffWqVDRx5bTDu/rt321vHTh/cSEse+pHGj9d+KCf5MFR9wnJDuXR8rgYEwrlnzz2SzLDAAihs/o9j37DAEoIhAMK0fj7aJ/1Xb2x024yp7TqdwiIaEAgxMclUHRa8C1BgTP8Xns+CBXkMnwcWZJBlC6Hzy2W/uemEg+qxCU2D3ixMQ37yboR+HQSxHy9AaRd5Ke8w37AuI30sEGL1kEzVYZFiiyktCxbS3vH97c64scZgILwKELB95pOrommQ+dgHFw0CIHBlcMDw60vdAINQ7fHhIR35ka/y8uNjdR/pOIEQq4dkqg4LlZAC/SsRxfs/GcSX0X4o66djP/QmGCpmrCygYmlU/0L18PMrJhvWfaSPBUKsHpIZFlj8iuiqBoRiYxbSYUT/KvfzYl9Xum9I9v28wzS+cRWXBQsQClhCvwzSkUbxoWcJZVVOrYUCIVYvyQw7LKqUjCzXj3KzoPANm2Uc0slgYai8VaZCP0+d82ERJAIu9Baqh+rr5xfKKv9aDQVCrH6SKRsWMkdpWQbhnBSJMaX0sEK+gWKwMB7BCFk/Pw8/nvOqg3+efd+4ilM+gpj66OcDwL7GR4r38/NlFV/LoUCI1VEyQ4IFhcr9qjApSxBJ+aHhfAWTthAsMqLy90OV5RtW8WH+Ok+YFadyVN+w/uqGwjJ1LD3oOKtOfh1qZV8gxOojmSHBIsWjKL8LyFIUxvBlQm9DGj9e+yFkfqMwaJiP4mV0yg1/MViQJd5v08qlfc5LKS+/rshxTD2oT4Il1HY6vmg0IK8Ra5BkhuxZYoWkuNrXgECI1VQyCZaYluogTiDEmiqZBEtMS3UQJxBiTZVMgiWmpTqIEwixpkomwRLTUh3ECYRYUyWTYIlpqQ7iBEKsqZJJsMS0VAdxAiHWVMkkWGJaqoM4gRBrqmQSLDEt1UGcQIg1VTJlw6LldC3L+2FsiZ6l8ULxWjZnyVy/cOmdcrTsLhmFsbwlQ4gc+ej+jx8X7ldy+Z68wpuQYXnDfSwQYuVKZsiwoHj/J4hKNaiMEt7rwaB5jEod8sDi1y8sy2+H9lWvsJ2KLyVMsASwoDwUW8gQhQwKXGxhOs7lNVShvH2D4qm4ulv2n3BlZeUNnPKUeEHqJDnBpnjfQwmGBXO7B29EyosKOqVTfuH5QheZ34ZK7strxPKUTMU9C4WiiNDoqgxxUqB/TlD46TAMz+DyTK2UHFNmVt4qQyEgKA9C7fvxfh2Ip2zyFih+GvILH08I06u9gglg+QkU8uan/PN6UpdoiH8EQiwbyVQcFjXYV6hfkdCgAgIFEucrWsqU8krN2y+XfeUn41Cm/3C38ld5WWnCPP08wvyRDeP9MQvlhHpCHhnyGo6fQIiVJZkhw6Ir3g9DBfgVCWFBYTJOCIufTvu+8nVOYZi3zisM40M4sowtGdL6P9qoNvuexYcBeT9P9v14Pw/lRehfMH6Z1dgXCLG8JTNkWHwlYnQprlDhvsEwPN0MBuFHXDFFhQr3y/Hz9s+zL6P7RtG+yvQNq/RKp3bKwOpafHiz6ubnGcaTF9tI/gRCrA6SqSgsFEjjpXyOQ1frG5Q4GcwPBVwWPDE37ZWVbZcAAAa8SURBVOcdNt43qh/HecojrcCQp0MuZmzi/Xx9WZURxvuehXIEneSHOxQIsXIlU3FYpDApITR47GoKZZWXjJdlTL+RMVhihvHrFNaBOEDmvOrDPj8dC24dq+3I+HkT78MiebUP+Vg9XaEV/iMQYtlKpuKwUKiuVhTFTwpH6b4iwwqGhiJeCpXnUZ5hWo5Jn5W/8vCN4qcnnQzOeeRUHq+h4ikFCKHi5JGIJ43KibVXcaqLdKU8/forP5WtuoUyPoB+u/LsC4SYrGTKhiWW+UjFoVRfkcNdjyzjDncdSi1PIMTSSSbBEtNSiXEJlhIVNpLiybOUrn15jVhKyVxUniXW4BSXrQGBkB179qxkEiwxLdVBnECINVUyCZaYluogTiDEmiqZBEtMS3UQJxBiTZVMgiWmpTqIEwixpkomwRLTUh3ECYRYUyWTYIlpqQ7iBEKsqZJJsMS0VAdxAiHWVMkMGZaBgQH79Kc/be985zsHt8bGRlf2/v377frrrx88f/PNN9vp06cL1iuUnzZt2jmyxeLPEU4HuTQgEGLCkhkSLEDhQ8I+cGDULIiIHzduXGa9CskLmGLxmZmmk0U1IBBigpIpGxYZT3CEhckLyJvoGC9E2vAn8AST8lf6YvFhfuk4nwYEQkxaMmXDEnoUHYddkIwtWHQcVq4QDIKrWHyYXzrOpwGBEJOWTNmwhMbLKowuRBARFvJCpBVMvryfplh8VvnpXHENCISYpGTKhiU0KsfyAiqYLiWUk+eRjB/6QJAXXsgHrFi8n1faz6cBgRCTlkzZsIRjirCw0PNIPgQqTKdjZk3AUki+WLzySWFcAwIhJiWZsmEhc3kODUo5x9W/fft2UxekOMHiewq/gvIaGtOUeuznlfbza0AgxFJIZkiwCICsrkbGDuMEg9LKc8hThPLqtorFxxqb4gprQCAUljCTzJBgoYAsI8rAITAChXQhLJwL5ZWPGlIsXnIpzK8BgRBLIZkhwxIrJMXVvgYEQqymkkmwxLRUB3ECIdZUySRYYlqqgziBEGuqZBIsMS3VQZxAiDVVMgmWmJbqIE4gxJoqmQRLTEt1ECcQYk2VTIIlpqU6iBMIsaZKJsES01IdxAmEWFMlk2CJaakO4gRCrKmSSbDEtFQHcQIh1lTJDBmWM2fO2D/d+j370Ec+Orjde9/4WNnnxe1vbra/+9yNRujvnydY4onpM2a6ulHHUn+0odR2qIy8bTgyMGCf/fyNtn7DRiUd9lAgxAqWzJBgQSl/88lPn6dUlIwSUEaeX17l5snLl0mw+NrI3hcI2bFnz0qmbFjkUTBI1s+/MoHmK1/7hv1q4qRB7+PD5MPi7xdLR7m6OuXZfG8QwkIccFMGP46VjtBPyz4ek3oS56cjrdqv9MjKg/ltQJZ6SM7PR3X36+HrhbSSUfpC+ka2nJ9AiKWVTNmwhAoJCyMeQGisGiyFStEyjp+Xv18sneLlxpWvFOrDIuPLoOExeWAQ5SUD6phQhg7Loe3Is/Hz20A6HwD/WPUvpBfFqz3hcajzco4FQiytZMqGxW90VkE0DFhQnBpJGv18Q/rK9feLpSMPGUj5kl6Qqgw8mm8wyfphWJZvfOR8QGiHDKw8/Pb6bYjpKSyTvFRnyvP3VU4sP8mUEgqEWBrJXNCwYFC5Zz8UGChb50OopBxfJvQsxPk/ARSmURnyPD4sgkwy/gVTDBaV59fBvxj88+XuC4RYesmUDYuvkKyC/EYVU4qfl79fLF2WMv26YFTAaW5pcaFvKBlcYIVlkXcMltCz+OX6bfDPkyfQCKqwTGQpU3lntc/Xq593ufsCIZZeMmXDoismVKgK9RtaTCm+cv39Yul8xapcP/Tj2RcYqrsPT1iWX3/yVBryKdYV+G3w6xPmE5ZJfFhngaN8ipUtubyhQIjJS6ZsWMgcpXCVoFj/x7EMw/liSvGV6+8XS6d4FKxfIWXL2NRN+0qn47Abkgcgb2TVJsn77faN6LfBP08+fpzqj4x+fv0Vr3qGx0ozlFAgxPKQzJBgoQApTn0yoa9EZNTIQkrxFejvF0tH3shjVJXvX4m+4n1Z6hGmW75ylXP/qjvhI48+5gAhbx8cv00qVyCpHC0yckxekiOUHvK0TzJKL3DIl3z8csNjXxb5rJ9AyIrTOckMGRZlmMILUwMCIVZ7ySRYYlqqgziBEGuqZBIsMS3VQZxAiDVVMgmWmJbqIE4gxJoqmQRLTEt1ECcQYk2VTIIlpqU6iBMIsaZKJsES01IdxAmEWFMlk2CJaakO4gRCrKmSSbDEtFQHcQIh1lTJ/D9HX5xCrm+UQAAAAABJRU5ErkJggg==)
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 23:55, 01 August 20
Well today I finally added the 'hack' button to both of my early revision 2.4 M4 boards.


It might not look the prettiest *See the attached pictures), but it works perfectly, thanks @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) these boards are just brilliant.


https://youtu.be/us8k52h04JE

Title: Re: Amstrad CPC WiFi
Post by: zhulien on 13:57, 02 August 20
Hi Duke,


In my Who wants to make a MMOG in the games group...


Would it be feasible to have a special M4 function that could work for any similar type of task that is... polling a URL, taking a payload of a defined size and having it either overwrite the same RAM as fast as possible, or a sliding portion of RAM (offset for each fetch until a certain number of fetches before overwriting again)... Or would it be just as fast if coded in Z80?  This would allow online games to have their payload received as fast as possible to the CPC, hopefully without the CPC being too busy with the comms.

Title: Re: Amstrad CPC WiFi
Post by: Glook on 07:14, 08 August 20
simply amazing !!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:05, 08 August 20
Quote from: zhulien on 13:57, 02 August 20
Would it be feasible to have a special M4 function that could work for any similar type of task that is... polling a URL, taking a payload of a defined size and having it either overwrite the same RAM as fast as possible, or a sliding portion of RAM (offset for each fetch until a certain number of fetches before overwriting again)... Or would it be just as fast if coded in Z80?  This would allow online games to have their payload received as fast as possible to the CPC, hopefully without the CPC being too busy with the comms.
I don't think so. It should be plenty fast as it is. Anyway it would be easy to test how fast it is.
Ie. use the httpget example from  https://github.com/M4Duke/M4examples/blob/master/httpget.s, setup a php script to measure how frequent it is pulled and loop the code on the CPC that pulls the corresponding url (and of course only DNS lookup once).
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 13:38, 04 September 20
Hi Duke,
I try to connect my M4 board to my internal network. Changed from static IP to DHCP. If I do this |NETSTAT says "No AP found". What does it mean?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:40, 04 September 20
Quote from: HAL 6128 on 13:38, 04 September 20
Hi Duke,
I try to connect my M4 board to my internal network. Changed from static IP to DHCP. If I do this |NETSTAT says "No AP found". What does it mean?
I get this message if the WiFi signal is too weak. But it may has other reasons like something is not correctly configured.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 17:36, 04 September 20
Thanks Gunhed for the issue with the configuration.
I changed the config.txt file out of lazyness with protext (programmer mode) but after saving the file it added a lot of stuff in the beginning of the file. I assume the header. So the config.txt file wasn't read properly. my fault.  :picard:
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:36, 07 September 20
Quote from: HAL 6128 on 17:36, 04 September 20
Thanks Gunhed for the issue with the configuration.
I changed the config.txt file out of lazyness with protext (programmer mode) but after saving the file it added a lot of stuff in the beginning of the file. I assume the header. So the config.txt file wasn't read properly. my fault.  :picard:
Yes, this can happen when using Protext document mode. It adds a 128 byte file header.
What works is Maxam Editor or the Protext prgram mode (no header).
Title: Re: Amstrad CPC WiFi
Post by: iddod on 18:46, 25 September 20
hi all,
i just got in from work to find that postie had delivered my M4 board and adaptors... (thanks Duke)
really looking forward to giving it a bash, but i'm shattered and need to nap first...
so impatient...

i'm completely new to this, so any tips to get me up and running quickly with disk images will be most appreciated...
in the meantime i'm gonna grab myself a handful of ZZZzzzz's...  :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 19:03, 25 September 20
Yeah, the main piece of advice is: get some sleep first, you'll need it later 😁😁
Title: Re: Amstrad CPC WiFi
Post by: Duke on 06:21, 26 September 20
Quote from: iddod on 18:46, 25 September 20
i'm completely new to this, so any tips to get me up and running quickly with disk images will be most appreciated...
in the meantime i'm gonna grab myself a handful of ZZZzzzz's...  :)

Read this thread, should get you started with games/dsk's real quick:
https://www.cpcwiki.eu/forum/technical-support/the-compatibility-of-the-m4-card/ (https://www.cpcwiki.eu/forum/technical-support/the-compatibility-of-the-m4-card/)

And some additional guides here:
http://www.spinpoint.org/2019/11/19/m4-board-guides/ (http://www.spinpoint.org/2019/11/19/m4-board-guides/)

Worst case there is my instructions here :)
http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)
Title: Re: Amstrad CPC WiFi
Post by: iddod on 21:20, 26 September 20
well, after a short period of banging my head on the wall, i got my first game loaded (dizzy, naturally), i even saved a snapshot image so i can return to it later...

the main things that i struggled with were finding the ¦ key (never needed it before and all the instructions i read made it look like a solid line, felt like an idiot once i'd worked it out, scoured the entire cpc manual and found no reference to it!), and the fact that i'm using a cpc464...
everything was fine once i'd put ROMUP464.bin on my sd card and run it... that should be the first instruction in any tutorial written for the M4...  :)

i've only faffed for an hour or so, but i am extremely pleased with my purchase...
Title: Re: Amstrad CPC WiFi
Post by: iddod on 20:50, 28 September 20
additional...
i had the full day available to play yesterday (sunday), no other plans apart from eating and entertaining my cats, so, 9am i booted up the CPC...
my initial plan was to finally check out Pinball Dreams but it didn't take long to realise that i couldn't load it cos the 464 only has 64k of ram and the game needs 128k... so, change of plans, i then decided to check out as many other homebrew games as i could, in alphabetic order...
i'd grabbed the M4backup.zip, so i went to the "novita" folder and started at the beginning...
i'm not a fan of the 2048 games, so i skipped that...
next up was 3D Racing One, didn't fancy a driving game at the time, so i skipped that too...
third game in the folder was A Prelude To Chaos, never heard of that one, so i loaded it up...

*time passes*

at 10.20pm i finished the game...

yesterday was a very good day...  8)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 08:19, 29 September 20
How I envy you :)
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 15:31, 03 October 20
Hello,
is there a way to use the M4 with a game needing the |CPM command ?

I wanted to launch the Tristam Island demo.
Maybe a CPM ROM modified for M4 ?

I tried http://www.cpcwiki.eu/index.php/CPM_Plus_ROM (http://www.cpcwiki.eu/index.php/CPM_Plus_ROM) but it doesn't work, when I type |EMS it says "Second CP/M PLUS ROM not present", I tried loading CPM1.ROM in slot 3, CPM2.ROM in slot 4 or the accessory ROM from http://www.cpcwiki.eu/index.php/CPM_Accessory_ROM_1 (http://www.cpcwiki.eu/index.php/CPM_Accessory_ROM_1) in slot 4 but same error message.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 16:35, 03 October 20
From @TotO (https://www.cpcwiki.eu/forum/index.php?action=profile;u=290) XMem or MiniBooster Start Disc there are two CP/M Roms which should be installed (e.g. slot 8 and 9). http://centpourcent.net/ (http://centpourcent.net/)
I'm using those ROMs for launching CP/M and the Infocom adventures.
Should work.
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 16:52, 03 October 20
Thanks for the information. Both are installed in slot 8 and 9, no boot message though and |CPM still use the real floppy drive.
I have M4FE at slot 2, and FW v3.12 as slot 31
Title: Re: Amstrad CPC WiFi
Post by: TotO on 01:46, 04 October 20
The CP/M ROM use the RSX |EMS to start ...  ;D
It is on the installer description and ROM informations.
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 05:33, 04 October 20
@genesis8 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=215) is asking about games/demos that launch *using* |CPM, not games that run *under* CPM.  :picard2:


|CPM just loads a bootsector to &100 and jumps to it, so while there's no reason that part can't work on the M4, after that point all bets are off. If the code does direct disk hardware access, you'll need a patched version to run from the M4.
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 16:48, 04 October 20
My bad, I knew with vormax cpm that |EMS was needed but didnt think about it...
Though using EMS here just hangs the CPC+, there is a .COM in Tristam demo so if I am successful to use CPM I should be able to launch the game
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 18:11, 04 October 20
Quote from: iddod on 20:50, 28 September 20third game in the folder was A Prelude To Chaos, never heard of that one, so i loaded it up...

*time passes*

at 10.20pm i finished the game...

If you liked that one, check out Chaos Rising by the same author. I wish EgoTrip was still making CPC games!
Title: Re: Amstrad CPC WiFi
Post by: iddod on 18:36, 04 October 20
Quote from: Skunkfish on 18:11, 04 October 20
If you liked that one, check out Chaos Rising by the same author. I wish EgoTrip was still making CPC games!


i did exactly that, the day after i played Prelude to Chaos i downloaded everything i could find by EgoTrip, the first one of them i played was Chaos Rising... i wasn't disappointed...  8)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 08:08, 05 October 20
Quote from: pelrun on 05:33, 04 October 20*using* |CPM, not games that run *under* CPM.

No need for the facepalms ;)
Title: Re: Amstrad CPC WiFi
Post by: yaworski on 19:05, 12 November 20
Hi everyone,

This is my first post on the forum and I'm bringing gifts :) .

AFAIK there were no publicly available models for 3d printed cases for M4 board rev 2.5c, so I decided to create one myself. After many tries and iterations I've written a parametric PCB enclosure generator for OpenSCAD and used it to generate cases for rev2.5c and rev2.5b (both available for boards with edge and IDC connectors).

I've only tested a case for rev2.5c with edge connector, as it's the only M4 board a have access to. According to Duke, the difference between b and c is the addition of the hack button, so 2.5b version should also work well. I don't know if the IDC is going to be OK. I couldn't take any measures myself, but I've used IDC (male with shroud) connector size from the datasheet.

The case is not perfect yet. Tweaks are welcome (preferably as pull requests). Also measurements of other revisions are very welcome. It's very easy to create definitions for them.

The code is licensed under GNU GPL v3 and can be found here: https://github.com/yawor/m4board-enclosure (https://github.com/yawor/m4board-enclosure)

Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 08:39, 13 November 20
Very very nice design!! The buttons look great too, but will they last? Does the material have enough elasticity?

Also please someone make some to sell :)


PS Oh, and welcome here, thanks for sharing!
Title: Re: Amstrad CPC WiFi
Post by: yaworski on 09:21, 13 November 20
Quote from: Gryzor on 08:39, 13 November 20
Very very nice design!! The buttons lookl great too, but will they last? Does the material have enough elasticity?

Also please someone make some to sell :)


PS Oh, and welcome here, thanks for sharing!


Regarding the button long run durability, it's also something I've been worried about, but after printing the top part and trying it with board underneath I've realised there's probably no need to worry.
The buttons need really small travel distance to activate microswitches on the board, because the actuator (a cylinder protruding down from the button, which presses the microswitch) on each button is on the opposite side of the hinge, at the very end. If it was closer then the travel distance would be greater.
I've also thinned the hinges on the point where it connects to the rest of the case, making it similar to living hinge designs. The hinge is also along the printed layers, not across, so there's no worry of button breaking off because of delamination. PLA I've printed it with allows much much more travel distance than is needed (I've tested this by printing only a small test button first and playing with it).


All above is just my opinion, as I'm a programmer, not a material expert, but I've tried to think about the failure modes and couldn't find any obvious ones.


Much more worrying is the embossed text on the surface. The top should be printed top down so there's quite a lot of bridging required to cover the holes for the text. My Prusa mini was able to do this, but with small issues on the first layer of bridge, which was covered with inserts anyway. But all depends on how good a printer is at bridging longer distances. It can also be printed without texts.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 09:27, 13 November 20
I was actually intrigued and impressed by the embossed text - I know very little about printing but it did look very pretty to my eyes.

A very small travel distance makes sense I suppose, probably worth the risk!
Title: Re: Amstrad CPC WiFi
Post by: yaworski on 11:18, 13 November 20
3d printing is also quite new to me. I only have my printer for less that two weeks now :) . I've been doing some 3d design in my spare time for some time though.

If you go to my github link, you can open stl directory and open one of the stl files. Github has a stl 3d viewer implemented so you can see how the models look. If you check to *_top.stl files, you can see how it's placed on the printing bed. If you manipulate the view with a mouse and look under the model, you can see that the text layers start higher than the bed level. So the printer leave a hole for the letters during the first few layers as it's building upwards and then it must bridge the gap when it finally reach a layer where there's no hole anymore. As the gap is quite large, the bridges may be deformed and may need so processing after the print is finished (for example some cutting and cleaning may be required) so the printed letter/symbol inserts fit properly.
There're also *_texts.stl files, which you can print separately with different filament color (like I did) and then glue them into the embossed parts.

Regarding the button travel distance, I wanted to record a video how it works but the movement is so small it's barely visible :) . The buttons themselves are really comfortable to press, as they are 12 mm in diameter (not counting the hinge). They also work great as a fidget toy - you just want to press them all the time  ;D .


I'll also include ready to use STL files without embossing.
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 13:34, 13 November 20
Ah, you have protrusion below to actually push... ok.

I just had more time than normal playing with the github viewer :D
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:20, 13 November 20
Quote from: yaworski on 19:05, 12 November 20
This is my first post on the forum and I'm bringing gifts :) .


I love the designs.  I wonder though, these are perfect for someone using M4 directly plugged into a CPC and look perfect too.  Could you design variations of these for sitting vertically within the MX4 board - and perhaps similar cases for other common MX4 board hardware so they are all encased instead of wibbly wobbly circuit boards?
Title: Re: Amstrad CPC WiFi
Post by: yaworski on 16:04, 13 November 20
Quote from: zhulien on 15:20, 13 November 20

I love the designs.  I wonder though, these are perfect for someone using M4 directly plugged into a CPC and look perfect too.  Could you design variations of these for sitting vertically within the MX4 board - and perhaps similar cases for other common MX4 board hardware so they are all encased instead of wibbly wobbly circuit boards?

I see that MX4 uses IDC connectors. There are versions for IDC prepared (scad source and rendered STL files) on the github, but not tested yet if they fit correctly. The potential problem I see is that the buttons may not be easily accessible when multiple extensions are next to each other. My enclosure generator script doesn't support buttons on other faces than the top one - I would like to add this feature for other faces, but other than the top and bottom faces, it's not that easy because of few reasons: there's a split between top and bottom part around the box; printing button of this design on a vertical wall (regarding the printing direction) may not even be possible (it could melt together with the rest of the case and not work correctly). Also moving the case buttons on the side walls when the microswitches are pressed from the top may pose some challenge :) . But there's a whole subject of compliant mechanisms, so it's not impossible. A side button could still press the microswitch through some kind of lever on a living hinge.

I'm already thinking about rewriting the generator script for next version using a really good library I've found which would replace a lot of my own functions and making the code a lot more manageable. I could then maybe think of some solutions, for example a few designs of buttons selectable for each button (for example a simple round or square piston button).

As for the enclosures for other extensions, I'm not against it :) . All the code is publicly available and uses GPL license. Please take a look at the m4board_*.scad files. There's no documentation in them, but you can also take a look at the pcb_enclosure.scad, where all the arguments are documented to some extent. You need calipers to take measures of the board and its features and you need to have OpenSCAD installed. I can help with explaining the arguments and with measures (without physical access I can't do it myself), but I think this is beyond this thread :) .
Title: Re: Amstrad CPC WiFi
Post by: Muddyfunster on 19:08, 15 November 20
I've been having some trouble getting CRTC3 and a few other demos to work on the M4. (CRTC3, Eerie Forest to name 2).


I'm using a 6128+ with an M4 with 2.05 firmware.


When I try to launch CRTC3 for example, I get a black screen with flowlib1.3 shown for a split second then black with white dots and dashes in the lower part.


Pretty much everything else runs fine.


I have the M4 rom in 7 and M4FE in 4.


I assume I'm doing something wrong my side or I have a setting that's incorrect.


Would appreciate any advice.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 23:02, 15 November 20
Quote from: Muddyfunster on 19:08, 15 November 20
I assume I'm doing something wrong my side or I have a setting that's incorrect.

Would appreciate any advice.

Have you enabled 512KB cartridges in the webinterface?
Title: Re: Amstrad CPC WiFi
Post by: Muddyfunster on 10:36, 16 November 20
Thanks Duke,


I don't see any option or button to enable 512k carts in the web interface. Cartridge just reads 256kb/512kb. I don't see anything like that on Control or Settings either.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:12, 16 November 20
You have to set the option "Use only 16 slots" then it will allocate the remaining 16 slots to the cartridge aswell so size increase from 256 to 512 KB.
Now reboot the M4 board and reup the 512KB cartridge demo.

Quote from: Muddyfunster on 10:36, 16 November 20
Thanks Duke,


I don't see any option or button to enable 512k carts in the web interface. Cartridge just reads 256kb/512kb. I don't see anything like that on Control or Settings either.
Title: Re: Amstrad CPC WiFi
Post by: Muddyfunster on 17:04, 16 November 20
Quote from: Duke on 14:12, 16 November 20
You have to set the option "Use only 16 slots" then it will allocate the remaining 16 slots to the cartridge aswell so size increase from 256 to 512 KB.
Now reboot the M4 board and reup the 512KB cartridge demo.


Thanks Duke, that did the trick. I knew it was going to be something I'd not done or was missing.


Every day is school day!

Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 00:31, 21 November 20
Hi Duke.
I've just acquired a 464.
How is your internal version of the M4 progressing?  Will you be making them for the 464?  If not are you still making the external one?
Thanks, Alan.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 00:53, 21 November 20
Quote from: Animalgril987 on 00:31, 21 November 20
How is your internal version of the M4 progressing?  Will you be making them for the 464?  If not are you still making the external one?

Tbh. I have not touched it for a very long time, so no progress I am afraid.

The external one is still being made, with a lead time of 4-6 weeks after committing to an order (see details in first post of this thread).
Title: Re: Amstrad CPC WiFi
Post by: genesis8 on 13:52, 23 November 20
Hi,
Is there any interest in replacing the 8266 by the ESP32-C3 WiSoC ?
It's pin to pin compatible with ESP8266, works with ESP32 development framework (e.g. ESP-IDF), supports Wi-Fi & Bluetooth LE 5.0 connectivity, and integrates 400KB SRAM & 384KB ROM. It features a single32-bit RISC-V (RV32IMC) core @ 160 MHz, and consume as little as 5uA in deep sleep mode. Pricing will also be similar to ESP8266.
See https://www.cnx-software.com/2020/11/22/esp32-c3-wifi-ble-risc-v-processor-is-pin-to-pin-compatible-with-esp8266/ (https://www.cnx-software.com/2020/11/22/esp32-c3-wifi-ble-risc-v-processor-is-pin-to-pin-compatible-with-esp8266/) for more informations.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:06, 06 December 20

Quote from: genesis8 on 13:52, 23 November 20Is there any interest in replacing the 8266 by the ESP32-C3 WiSoC ?
Sorry for late reply.
I don't really see a reason for it. What would be the advantage?
Also it is only pin compatible with simple ESP8266 module communicating via serial lines. The module  (ESP12F) used on M4 board exposes almost all the 8266 pins, and both SPI paths are used and some gpios.
My ESP firmware is "bare metal" to give a BSD like sockets interface to the CPC aswell as a webserver at the same time (with custom functions to control the CPC), unlike the simple "AT commands" firmware supplied by Espressif.
So my firmware would need to be completely re-written for ESP32 from the ground up. And then the only advantage would be addition of BLE (not sure what interesting devices we would find for that, ie. most gamepads are BT classic).
If I decided to make a brand new product, I would probably use the ESP32 though (the full version with all pins exposed), it is a powerful and cheap chip.

Aside from that, I am working very hard to fulfill all current M4 board orders this weekend, so everybody can get their M4 board in time for XMAS
- Imperium Solo orders will have to wait for next weekend.
No new orders will be ready this year as I just used the last M4 board PCB.


Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 20:43, 07 December 20
Let us know when you ship unit #1000 :)
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 11:49, 15 December 20
Hey @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) !!!

As a curiosity, how many units of M4 have you already sold? , it has to be close to 1000 !!!  :o :o :o
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:37, 15 December 20
Quote from: XeNoMoRPH on 11:49, 15 December 20
As a curiosity, how many units of M4 have you already sold? , it has to be close to 1000 !!!  :o :o :o
952 units shipped... So almost there!
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 09:29, 16 December 20
Awesome !!!! ... and ... thanks to colleague @hERMOL (https://www.cpcwiki.eu/forum/index.php?action=profile;u=45) , we have another new frontend for the M4 board !!! , it's called RulezCharge !!!!
Quotedownload from CPC : |httpget,"cpcrulez.fr/m4/m4beta.bin"
now we can download games directly from CPCrulez !!!
(https://auamstrad.es/wp-content/uploads/2020/12/photo_2020-12-15_21-15-57-4.jpg.webp)
https://youtu.be/EOqbmtsVHps (https://youtu.be/EOqbmtsVHps)


Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 09:37, 16 December 20
This video requires an epilepsy warning, but wow!

I also love the interface -the font, the header, mode 2 rules!
Title: Re: Amstrad CPC WiFi
Post by: Skunkfish on 16:01, 16 December 20
Really impressive, the speed of the search and download is so quick!
But is it possible to change the download folder?
And execute a program directly from the .DSK without dropping back to BASIC?
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 21:05, 16 December 20
Quote from: Skunkfish on 16:01, 16 December 20
Really impressive, the speed of the search and download is so quick!
But is it possible to change the download folder?
And execute a program directly from the .DSK without dropping back to BASIC?
not possible with this beta version, but these options may be included in the next version, the author is improving it little by little.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 22:05, 16 December 20
@XeNoMoRPH (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1952) Please update the progress of the launcher here or in a new thread  :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 19:08, 17 December 20
Quote from: XeNoMoRPH on 09:29, 16 December 20
Awesome !!!! ... and ... thanks to colleague @hERMOL (https://www.cpcwiki.eu/forum/index.php?action=profile;u=45) , we have another new frontend for the M4 board !!! , it's called RulezCharge !!!!now we can download games directly from CPCrulez !!!
Awesome!!! Is there a thread about it? Or an internet downoad?
Title: Re: Amstrad CPC WiFi
Post by: Nicolas Lecoq on 20:29, 17 December 20
https://auamstrad.es/software/rulezcharge-nuevo-frontend-para-la-m4/
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 21:11, 17 December 20
Quote from: GUNHED on 19:08, 17 December 20
Awesome!!! Is there a thread about it? Or an internet downoad?
Hi @GUNHED (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2029) !!!,  just below someone has put a page with an article that I wrote in Spanish, but if you look at the post that I put first, I put the download link:
Quotedownload from CPC : |httpget,"cpcrulez.fr/m4/m4beta.bin"
@Skunkfish (https://www.cpcwiki.eu/forum/index.php?action=profile;u=348) , about " .. is it possible to change the download folder " , yes : simply by selecting the folder with the file explorer. Once in the folder you have to start a download with the ESC key.                        
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:05, 18 December 20
Thank you! This is all 'new' for me, do we have some ressources how to:
- Download something from the net
- Upload something in the net


It would be great to have some common 'source'. That way we all can use such great features for our games and applications.  :)
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 12:03, 20 December 20
Hi guys,


I have been a little bit disconnected from the latest developments made for the M4 board firmware. I am trying to dowload the latest stable  v 2.0.5 or any newest beta which runs well (I currently have the 2.05B11 version installed) but I can not find any link to it neither in the cpc wiki website nor in the spinpoint website. Can you share a download link with me?


With my current version, the webmanager file brower has "stacked" in one particular folder and I can´t transfer files from my PC to the CPC. Besides, the |httpget command to download the cpcrulez front-end does not work (Error message: non supported). I guess everything will be solved with the latest version.


Thanks a lot in advance
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:05, 20 December 20
Quote from: GUNHED on 17:05, 18 December 20
Thank you! This is all 'new' for me, do we have some ressources how to:
- Download something from the net
- Upload something in the net
Right here:
https://github.com/M4Duke/M4examples/blob/master/httpget.s

Though I think @hERMOL (https://www.cpcwiki.eu/forum/index.php?action=profile;u=45) uses the RSX command from the M4 rom, in his cool program.

Quote from: jomicamp on 12:03, 20 December 20Hi guys, I have been a little bit disconnected from the latest developments made for the M4 board firmware. I am trying to dowload the latest stable v 2.0.5 or any newest beta which runs well (I currently have the 2.05B11 version installed) but I can not find any link to it
You can find it here:
http://www.spinpoint.org/cpc/M4FIRM_v205.zip   

Also you can always find a link to latest version in http://www.spinpoint.org/cpc/m4info.txt
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 17:16, 20 December 20
Quote from: Duke on 15:05, 20 December 20
You can find it here:
http://www.spinpoint.org/cpc/M4FIRM_v205.zip (http://www.spinpoint.org/cpc/M4FIRM_v205.zip)   

Also you can always find a link to latest version in http://www.spinpoint.org/cpc/m4info.txt (http://www.spinpoint.org/cpc/m4info.txt)


Thank you! Browsing through 105 pages is a little bit exhausting. I knew that there is a 2.0.6 beta but I guess that this version is directly provided by you. Am I right?


Best regards
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:14, 20 December 20
Quote from: jomicamp on 17:16, 20 December 20
Thank you! Browsing through 105 pages is a little bit exhausting. I knew that there is a 2.0.6 beta but I guess that this version is directly provided by you. I am right?
Np. The latest beta is here: https://www.spinpoint.org/cpc/M4FIRM_v206b3.zip
Title: Re: Amstrad CPC WiFi
Post by: jomicamp on 22:38, 20 December 20
Quote from: Duke on 19:14, 20 December 20
Np. The latest beta is here: https://www.spinpoint.org/cpc/M4FIRM_v206b3.zip (https://www.spinpoint.org/cpc/M4FIRM_v206b3.zip)


Thanks, once again Duke! I already installed it!


Best regards
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 14:55, 21 December 20
If anyone interested: https://hobbyretro.com/retro/caja-m4-board-v2-6-hack (https://hobbyretro.com/retro/caja-m4-board-v2-6-hack)

(https://hobbyretro.com/wp-content/uploads/2020/12/M4-Board-EDGE-case-hobbyretro-02.jpg) (https://hobbyretro.com/retro/caja-m4-board-v2-6-hack)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:07, 21 December 20
That's nice! Inexpensive, too!!!
Title: Re: Amstrad CPC WiFi
Post by: Kukulcan on 12:40, 31 January 21
Hello,
I have a little problem with creating the original "Space Race" with copy file M4 to true cpc disc.
Corruption with my file (Basic/Binary) to copy.
Copy the 11Ko but after the program is corrupted.
I using : |FCP,"C:*","A:"

The attribut of the files is not copied too (all my files is hidden, after copy, all is visible)

Thanks for your help.

I attached the menu in Basic/Binary file
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:30, 14 February 21
M4 Board firmware v2.0.6 released.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v206.zip (http://www.spinpoint.org/cpc/M4FIRM_v206.zip) and unpack to root of microSD, then power cycle the CPC with microSD inserted.
If you have not used any v2.0.6 beta, you can use |upgrade instead.

Changes since v2.0.5:
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 10:52, 14 February 21
thanks Duke

does this update correct attribut files copy ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:34, 14 February 21
Quote from: breiztiger on 10:52, 14 February 21
does this update correct attribut files copy ?
Sorry, no changes to attributes (all removed) in this version.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:49, 14 February 21
Thanks for the update. However, the issue with the 6128plus is still there.

Users of the 6128plus please apply in addition the M4FIRM_v206b2 upgrade (see post before).
Title: Re: Amstrad CPC WiFi
Post by: Shining on 14:07, 22 February 21
I've to transfer many of my old 80 track 3.5" disks to sd-card but on nearly all of them, I've "hidden" the additional files, marking them as system files.
When I transfer my disk to sd using |fcp,"B:*","C:", these "hidden" files are not transferred at all.


Is it possible to get a |fcp-command which will also transfer these files?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:38, 22 February 21
Quote from: Shining on 14:07, 22 February 21
I've to transfer many of my old 80 track 3.5" disks to sd-card but on nearly all of them, I've "hidden" the additional files, marking them as system files.
When I transfer my disk to sd using |fcp,"B:*","C:", these "hidden" files are not transferred at all.

Is it possible to get a |fcp-command which will also transfer these files?
That would be surely nice. Maybe as option? But a way should be there.  :)


Meanwhile hidden file can be transformed into normal files in (at least) two ways:
- Use X-DDOS: Use the command !ATTRIBUT,"*.*","D"
- FutureOS: Tag all files, goto REName, press Return for every file
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 20:37, 22 February 21
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I think it would be a good idea to include a modification in the firmware of the M4 that would allow to save configuration profiles, in order to be able to save different combinations of ROMS in a convenient way for its handling.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:10, 24 February 21
Quote from: Shining on 14:07, 22 February 21
I've to transfer many of my old 80 track 3.5" disks to sd-card but on nearly all of them, I've "hidden" the additional files, marking them as system files.
When I transfer my disk to sd using |fcp,"B:*","C:", these "hidden" files are not transferred at all.


Is it possible to get a |fcp-command which will also transfer these files?
It uses AMSDOS cas_catalog to list the files for copying. If I am not mistaken there is some poke to list hidden files? (or perhaps only deleted files?).

Quote from: XeNoMoRPH on 20:37, 22 February 21Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624), I think it would be a good idea to include a modification in the firmware of the M4 that would allow to save configuration profiles, in order to be able to save different combinations of ROMS in a convenient way for its handling.

Some years ago I made small program to use other ROM configurations, it is here:

Source : https://github.com/M4Duke/M4examples/commit/3be24cb048962ca36bfd1f04c17296a3a1b77fba (https://github.com/M4Duke/M4examples/commit/3be24cb048962ca36bfd1f04c17296a3a1b77fba)
Binary: https://github.com/M4Duke/M4examples/commit/09cf2c95c6e00218fce00c2bc2f68608e2e45d00 (https://github.com/M4Duke/M4examples/commit/09cf2c95c6e00218fce00c2bc2f68608e2e45d00)

Say you wanted different rom sets for easy exchanging, you could script it in a basic file, like this:

10 |copyf, "/romsets/romslots1.bin", "/m4/romslots.bin"
20 |copyf, "/romsets/romconfig1.bin", "/m4/romconfig.bin"
30 run"m4reconf.bin"

save"dev-roms.bas"

Or are you thinking about something else?
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 17:36, 24 February 21
My  M4 arrived today! Will set it up and play tomorrow.


Many thanks, Duke. :D :D :D :D :D :D
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 20:06, 24 February 21
ok, thx , I did not know that program :)
Title: Re: Amstrad CPC WiFi
Post by: Vyper68 on 06:57, 25 February 21
Quote from: Animalgril987 on 17:36, 24 February 21
My  M4 arrived today! Will set it up and play tomorrow.


Many thanks, Duke. :D :D :D :D :D :D


You won't be disappointed, it's a great bit of kit.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 15:08, 25 February 21
Hi.
I have a couple of minor issues with the M4. :-[
I have a 464. I've uploaded OS 1.1 and BASIC 1.1 to slots 31 and 0 respectively and activated Lowerrom.
464 now thinks it's 6128 ( without Amsdos) :D
M4 in slot 7, Maxam in 8 and Utopia in 9 but Utopia not being initialised. :-[
The other issue is that the M4 web interface is not showing the installed ROMS. ( This is very minor and I can live without it).


Otherwise, the M4 is great. :D :D


Update: Utopia works fine in slot 6. :D , don't know why it didn't like slot 9.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 18:16, 25 February 21
Quote from: Animalgril987 on 15:08, 25 February 21The other issue is that the M4 web interface is not showing the installed ROMS.

You have to give them a name description at the web interface before uploading.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 19:25, 25 February 21
Quote from: VincentGR on 18:16, 25 February 21You have to give them a name description at the web interface before uploading.
I didn't see how to do that.




D'oh. Type it in above upload button  :picard: :picard:


All good now
Title: Re: Amstrad CPC WiFi
Post by: sarriagf on 10:43, 04 March 21
Hi!


Your job is AMAZING!


How can I buy one???


Thanks in advance


Samuel
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:31, 04 March 21
Quote from: sarriagf on 10:43, 04 March 21
Your job is AMAZING!


How can I buy one???
Thanks!

Read the first post in this thread:
https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/ (https://www.cpcwiki.eu/forum/amstrad-cpc-hardware/amstrad-cpc-wifi/)

There you see prices and options.
Lead time after ordering is about 4-5 weeks.
You can pm me with your email address and what you need, then I add you to my list.
If you are quick, you will get unit number 1001.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:32, 04 March 21
Quote from: Duke on 15:31, 04 March 21
If you are quick, you will get unit number 1001
Congratulations to make the 1000 full. It's probably over 30 years ago that an expansion for the CPC sold so well.  :) :) :) :) :) :) :) :) :) :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 15:36, 04 March 21
Really, 1000 units? I'm impressed.
Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 15:40, 04 March 21
Amazing!!!!
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:40, 04 March 21
Quote from: GUNHED on 15:32, 04 March 21Congratulations to make the 1000 full. It's probably over 30 years ago that an expansion for the CPC sold so well.  :) :) :) :) :) :) :) :) :) :) :) :)
Thanks, it was a long run and many hours spent...

Quote from: Gryzor on 15:36, 04 March 21
Really, 1000 units? I'm impressed.
When the current orders are processed it is 1000 plus a couple of replacements,  lost packages etc.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:04, 05 March 21
Well, congratulations!


For me it's simply one of the best expansions ever done for the CPC.


When I look at wifi expansions for other systems, I miss the nice touch of having the web interface and ease of use.


You should paint one of the pcbs in gold and put it on a frame to celebrate this achievement!
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 09:20, 05 March 21
Imagine what THAT would bring on eBay :D
Title: Re: Amstrad CPC WiFi
Post by: shifters74 on 09:41, 05 March 21
And frame it nicely too  ::)
Um can i have one  ;D :laugh:
Joking aside it is the best expansion hardware for any of my retro machines - its implementation and utility are pure class.
shifters


Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 09:55, 05 March 21
Quote from: shifters74 on 09:41, 05 March 21Joking aside it is the best expansion hardware for any of my retro machines

That is what I say to everyone, perfect combo hardware/price.
If it had 512KB RAM would be a killer.
Title: Re: Amstrad CPC WiFi
Post by: eto on 10:46, 05 March 21
Is there any emulator that at least partially emulates the M4? I just thought about playing around with the network functionality but I prefer doing that from my Laptop rather than from a real machine.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:31, 07 March 21
M4 Board firmware v2.0.7 released.
Download here: http://www.spinpoint.org/cpc/M4FIRM_v207.zip (http://www.spinpoint.org/cpc/M4FIRM_v207.zip) and unpack to root of microSD, then power cycle the CPC with microSD inserted.
You can also use |upgrade instead directly from your Amstrad.

Changes since v2.0.6:
New HACK Menu improvements by Cebe74  (Thanks!):
(https://github.com/M4Duke/m4hackmenu/pull/1%5B/url)


Quote from: eto on 10:46, 05 March 21Is there any emulator that at least partially emulates the M4? I just thought about playing around with the network functionality but I prefer doing that from my Laptop rather than from a real machine.

Unfortunately not, but you can set up a real nice remote testing system by using CPCXFER and NOTEPAD++, however no fancy source level debugging as in winape etc.
Title: Re: Amstrad CPC WiFi
Post by: Ast on 12:47, 07 March 21
is it normal, the lights (red & blue) stay swtiched on ?impossible to reset the m4 board....  the m4 rom is not initialized.Is it possible to reset my m4 Board using another way ?
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 12:51, 07 March 21
thanks for last firmware

when we drag'n drop files can you refresh the directory please ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:10, 07 March 21
Quote from: Ast on 12:47, 07 March 21
is it normal, the lights (red & blue) stay swtiched on ?impossible to reset the m4 board....  the m4 rom is not initialized.Is it possible to reset my m4 Board using another way ?
Copy the firmware files again to the microSD and give it enough time to update.

Quote from: breiztiger on 12:51, 07 March 21thanks for last firmware when we drag'n drop files can you refresh the directory please ?
Maybe. I seem to remember that I added the manual press on refresh because I did not have an easy solution for it. Will look again.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 16:06, 07 March 21
Hi Duke.
I used |upgrade.
I got a message that the firmware had upgraded and I need to do a power cycle, which I did.
Now I get the red light flashing on the M4 and the CPC won't start unless I unplug the M4.


Alan.


Edit: does it take a looong time after the power cycle to come out CPC reset?


2nd edit: now just blue light on M4 but CPC blank screen unless I turn on without M4, or hold M4 reset button in.


3rd 3dit: unpacked the zip file to SD root using PC. Put SD back into M4 and now working ok :D

Title: Re: Amstrad CPC WiFi
Post by: VincentGR on 16:22, 07 March 21
Once a friend had this problem, and I've figured out how to fix it.
Caution, if only Duke agrees you will proceed.
I turned the CPC on without the SD in the M4, then I inserted back the SD with the new firmware inside and did an nmi reset.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:37, 07 March 21
Quote from: VincentGR on 16:22, 07 March 21
Once a friend had this problem, and I've figured out how to fix it.
Caution, if only Duke agrees you will proceed.
I turned the CPC on without the SD in the M4, then I inserted back the SD with the new firmware inside and did an nmi reset.
Fine with me.
As such you can never really damage it.
M4 has a writeprotected bootloader which reads the M4FIRM.BIN and reflashes it, if found and the CRC matches. Should you turn off or take out the microSD during this, it will black screen, but you can always start the reflashing (upgrade) procedure again.
Next M4FIRM.BIN reflashes the ESP (wifi) module, again only if present and CRC is a match (same procedure as bootloader).
So you can pretty much do anything.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:23, 07 March 21
Thanks a lot for the great update - works perfect with the FutureOS version for the 6128Plus.
Happy Sunday fun!!!  :) :) :) :) :) :) :) :) :) :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Ast on 08:53, 08 March 21
Quote from: Duke on 15:10, 07 March 21
Copy the firmware files again to the microSD and give it enough time to update.
Maybe. I seem to remember that I added the manual press on refresh because I did not have an easy solution for it. Will look again.


Done, but the lights stay switched on and the board is not initialized
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:15, 08 March 21
Quote from: Ast on 08:53, 08 March 21

Done, but the lights stay switched on and the board is not initialized
Are both files deleted from the microSD card after upgrade?
Have you tried to startup without microSD card inserted?

And what is contents of report.txt in root of microSD card?
Title: Re: Amstrad CPC WiFi
Post by: Ast on 10:31, 08 March 21
1. Nothing has changed.
2. I tried without sd card, and the 2 leds stay swtiched on.
3. I have no « report.txt » file on my uSD card. Just files I put on it with firm and esp files on the root.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:03, 08 March 21
Quote from: Ast on 10:31, 08 March 21
1. Nothing has changed.
2. I tried without sd card, and the 2 leds stay swtiched on.
3. I have no « report.txt » file on my uSD card. Just files I put on it with firm and esp files on the root.
So the files have not been deleted. Meaning it has not reflashed them.
It cannot read the microSD card... Reformat FAT32 check contacts are clean on the microSD card.
Title: Re: Amstrad CPC WiFi
Post by: Ast on 11:09, 08 March 21
I already did that.
When i remove the uSD, and i switch on my plus, the led of the m4 stays switched on....

Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:04, 08 March 21
Quote from: Ast on 11:09, 08 March 21
I already did that.
When i remove the uSD, and i switch on my plus, the led of the m4 stays switched on....
Yes. It means firmware is corrupted and it is trying to read from microSD card (pure bootloader mode). It's not reading the microSD card.
Title: Re: Amstrad CPC WiFi
Post by: Ast on 12:13, 08 March 21
So what can i do now ?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:56, 08 March 21
Quote from: Ast on 12:13, 08 March 21
So what can i do now ?
Maybe try another microSD card? is it OK?
Is the microSD slot okay or is it broken ?
Title: Re: Amstrad CPC WiFi
Post by: Ast on 14:58, 08 March 21
Quote from: Duke on 14:56, 08 March 211.Maybe try another microSD card? is it OK?
2. Is the microSD slot okay or is it broken ?



1. Already done, but no changes.
2. The MicroSD Slot is okay.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:00, 08 March 21
Quote from: Ast on 14:58, 08 March 21


1. Already done, but no changes.
2. The MicroSD Slot is okay.
Ok, lets continue over pm, or this is going to be very long thread going chat message by message
Title: Re: Amstrad CPC WiFi
Post by: Ast on 15:01, 08 March 21
i was thinking the same thing.  ;)
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 22:43, 13 March 21
Hi Duke.
Just a quick question:
Is it possible to use the M4 USB connector to attach a mouse?


Alan.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:47, 14 March 21
Quote from: Animalgril987 on 22:43, 13 March 21
Is it possible to use the M4 USB connector to attach a mouse?
No, not with current firmware atleast.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 10:54, 14 March 21
Ok, thanks Duke.
Title: Re: Amstrad CPC WiFi
Post by: breiztiger on 12:37, 14 March 21
hi


with this dsk you don't see files because of first line at E5


your dsk parser have a problem


amstrad look after for the other files
Title: Re: Amstrad CPC WiFi
Post by: Nicolas Lecoq on 12:33, 28 March 21
I have recently updated my M4 v2.0.7. But when I run"telnet.bin", it's written "Found M4 Board v2.0.6 ok". Is It a problème?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:43, 29 March 21
Quote from: Nicolas Lecoq on 12:33, 28 March 21
I have recently updated my M4 v2.0.7. But when I run"telnet.bin", it's written "Found M4 Board v2.0.6 ok". Is It a problème?
N'est pas probleme.
Just means I forgot to bump the rom version :/
https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L5893

Will remember it for the next update...

Title: Re: Amstrad CPC WiFi
Post by: Hostbridge on 20:31, 30 April 21
Hi Duke, I've been waiting for the m4 for several months, do you have an approximate delivery date?  Thanks
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:56, 01 May 21
Quote from: Hostbridge on 20:31, 30 April 21
Hi Duke, I've been waiting for the m4 for several months, do you have an approximate delivery date?  Thanks
Send me a private message or email, with the info's you used to order, so I can checkup on it.
I am bit behind as usual, but not several months, so I curious to see which order is yours .
I have a backlog of 32x M4 boards and 15x Imperium Solo's. Current lead time is 6 weeks, unless you've ordered Imperium Solo's aswell which are problematic due to chip shortage and jacked up prices.
Anyway lets continue in private.
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 10:04, 01 May 21
Hi Duke
I've one question about the SD read led of the M4.

Is there any link on the board to derive this led to a PC case hdd led?
Or can i solder directly the wires of the pc case to the m4 led? any problem doing that?
Regards
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:56, 01 May 21
Quote from: Joseman on 10:04, 01 May 21
Is there any link on the board to derive this led to a PC case hdd led?
Or can i solder directly the wires of the pc case to the m4 led? any problem doing that?
There isn't any easy solder spot on the PCB for the drive LED.
Easist is if you remove the existing LED and solder the + wire to lowest smd pad. The other smd pad is just GND you can find that easy on the header.
Title: Re: Amstrad CPC WiFi
Post by: roudoudou on 17:25, 04 June 21
@Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

May i have/found some explanations/documentation about floppy + M4 usage?
I just wanted to make direct writes acess to FDC while using system to read SDcard, is that possible?




Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:16, 04 June 21
Quote from: roudoudou on 17:25, 04 June 21
@Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

May i have/found some explanations/documentation about floppy + M4 usage?
I just wanted to make direct writes acess to FDC while using system to read SDcard, is that possible?

You can access the FDC via I/O as if the M4 wasn't there, nothing needs to be done for that.
If you have both AMSDOS and M4 rom enabled, then you can toggle between the two using |disc/|sd. All that does is re-direct all the CAS_* entries to the corresponding rom.


So yes, it should be possible, without any special consideration, assuming you are talking about accessing regular files using system calls on microSD and raw FDC access. Otherwise let me know.
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 11:25, 08 June 21
(https://i.ibb.co/K0kqJpg/photo-2021-06-08-12-17-38.jpg)(https://i.ibb.co/LSN5Dfj/photo-2021-06-08-12-17-39.jpg)


Not my M4... from a friend  :D
Title: Re: Amstrad CPC WiFi
Post by: Gryzor on 13:08, 08 June 21
Beautiful.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 18:33, 08 June 21
Hi @XeNoMoRPH (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1952) , are you selling these cases?
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 18:48, 08 June 21
Quote from: Animalgril987 on 18:33, 08 June 21
Hi @XeNoMoRPH (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1952) , are you selling these cases?


Not mine, here is for download, https://github.com/yawor/m4board-enclosure (https://github.com/yawor/m4board-enclosure)

(https://i.ibb.co/phh3Q1Y/photo-2021-06-08-19-29-10.jpg)
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 18:59, 08 June 21
Ok, thanks for the link. :D
Title: Re: Amstrad CPC WiFi
Post by: darkhalf on 00:57, 18 July 21
Menu program for M4 (with program & games download direct from the internet) by rafa32gr:
http://amstrad.esy.es/ (http://amstrad.esy.es/)

This site has moved. Found it here now
http://www.rafa32gr.com/stuff.html (http://www.rafa32gr.com/stuff.html)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:44, 29 July 21
Well, I want to access the M4 card from a ROM.

Do I need to do this using a routine in RAM, or is there a trick?

Could the M4 ROM be 'declared' as lower ROM for example for a short time, just to access the M4 ROM = lower ROM from an upper ROM?

Any tricks or ideas?
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 18:16, 29 July 21
If both ROMs are "background", then take a look at the firmware routines "SIDE CALL", or "FAR CALL". they might do want you want. And you could alway put a customised version of one of them into your ROM, to suit your needs. :D
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:30, 30 July 21
Well, I talked about problems with the Hack-Menu.
Title: Re: Amstrad CPC WiFi
Post by: caver99 on 11:26, 01 August 21
is there anywhere one of these can be got today
Title: Re: Amstrad CPC WiFi
Post by: SkulleateR on 12:28, 01 August 21
Quote from: caver99 on 11:26, 01 August 21
is there anywhere one of these can be got today
Just send a msg to @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:48, 01 August 21
Due to the chip shortage situation it is not possible for me to get new supplies of the STM chips used for either M4 nor Imperium Solo boards at the moment.
Resellers such as digikey, mouser, arrow have lead times at around 50 weeks for those chips.
Everything is going out on contracts to ie. car industry. I have tried multiple times to buy small batches (50+) from chinese resellers, but every time, even though paying several 100% over price, they eventually cancel the order and raise the price again, so I have not bothered to pursue this route any further and this includes utsource - before someone suggests that.

So as it is, it will be quite some time before I can produce new boards :/

Meanwhile I still add people to my waiting list, to when and if supply and prices get back to normal.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:02, 01 August 21
Quote from: GUNHED on 16:44, 29 July 21
Well, I want to access the M4 card from a ROM.

Do I need to do this using a routine in RAM, or is there a trick?

Could the M4 ROM be 'declared' as lower ROM for example for a short time, just to access the M4 ROM = lower ROM from an upper ROM?

Any tricks or ideas?

If you find it useful I can add the option to the new C_ROMLOW command:
C_ROMLOW            0x433D         Implemented v2.0.7. Map lower rom : data[0] = 0 system lower rom, 1 = lowerrom from romboard if enabled, 2 = lowerrom from HACK menu.

so 3 = M4 rom upper, mapped as lower ?

Otherwise it is the RAM way.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 12:49, 02 August 21
Sorry, I'm not into that stuff to much at the moment, but I will have a look later on. (Cause I just soldered the hack button on my boards few time ago).


Everything needed would be something like that:

- When the hack button is pressed: store the upper ROM number somewhere... (this is possible, since the hack menu does display that number)

- Do your hack stuff...

- When quitting hack menu: Restore previous upper ROM


Maybe some M4 user can do that. :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:43, 02 August 21
Quote from: GUNHED on 12:49, 02 August 21
- When the hack button is pressed: store the upper ROM number somewhere... (this is possible, since the hack menu does display that number)

- Do your hack stuff...

- When quitting hack menu: Restore previous upper ROM
This is already being done in the hack menu.

Have a looksy here:
The upper-rom number is stored here:
https://github.com/M4Duke/m4hackmenu/blob/master/nmirom.s#L102
(by the M4 hardware)

And it is restored here, with the jump back routine, which in the end goes to RAM 0xFFF0 :
https://github.com/M4Duke/m4hackmenu/blob/master/nmirom.s#L499

Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:22, 02 August 21
Yes, and there we have the problem: Let's say Maxam or Protext currently exercises code in the upper ROM, then the hack menu will NOT return to ROM.


The hack menu needs to check if code is exercised in ROM or RAM. Do not jump to RAM in every case.


It's more clear if you use the hack button a couple of times when using a ROM program.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:52, 02 August 21
Quote from: GUNHED on 15:22, 02 August 21
Yes, and there we have the problem: Let's say Maxam or Protext currently exercises code in the upper ROM, then the hack menu will NOT return to ROM.


The hack menu needs to check if code is exercised in ROM or RAM. Do not jump to RAM in every case.


It's more clear if you use the hack button a couple of times when using a ROM program.
Yeah actually it hit me right after writing it, IF the upperrom was enabled, then crash and burn. Anyway will have to think of a fix. Now that it is open source anyone can "hack" into it and do a patch, so feel welcome :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:24, 13 September 21
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : Well, I had a look at the new M4 documentation, but somehow got lost. Maybe you could point me to documentation or coding examples (Z80 code) of the following:
- Read directory
- Change directory
- Read file
- Save file
- Erase file
- Remane file

All for the SD card of the M4 board. I really would appreciate some help here.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 17:14, 13 September 21
Quote from: GUNHED on 14:24, 13 September 21
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624) : Well, I had a look at the new M4 documentation, but somehow got lost. Maybe you could point me to documentation or coding examples (Z80 code) of the following:
- Read directory
- Change directory
- Read file
- Save file
- Erase file
- Remane file

All for the SD card of the M4 board. I really would appreciate some help here.  :) :) :)

Most certainly.

You will in this example:
https://github.com/M4Duke/M4examples/blob/master/romup.s (https://github.com/M4Duke/M4examples/blob/master/romup.s)

Find reading and writing files natively without amsdos. Basically look at (/or copy) the functions fopen, fread, fwrite, fseek, fclose.

If you dig those functions I am sure the cd, erase and rename will be trivial. The directory can be more tricky. You can look at the m4 rom source code for directory function:
https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038 (https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038)

Let me know if it gives you problems, then I can probably setup another couple of examples.
You may look at the m4 code for unidos aswell, it should contain needed bits aswell.

Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 19:15, 13 September 21
What about M7? ... 🤔🤔
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:02, 14 September 21
Quote from: XeNoMoRPH on 19:15, 13 September 21
What about M7? ... 🤔🤔
It's dead.
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 13:35, 14 September 21
Quote from: Duke on 13:02, 14 September 21
It's dead.


Nooooooooooo! 😭😭😭😭
Title: Re: Amstrad CPC WiFi
Post by: XeNoMoRPH on 15:01, 14 September 21
Quote from: Duke on 13:02, 14 September 21
It's dead.


Too bad, 🥺🥺🥺
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 02:07, 15 September 21
Quote from: Duke on 17:14, 13 September 21
The directory can be more tricky. You can look at the m4 rom source code for directory function:
https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038 (https://github.com/M4Duke/m4rom/blob/master/M4ROM.s#L2038)
Thanks for all the links. I would say, a simple example would be good for: Read SD card directory contents (actual DIR level) to RAM (fixed address). Something basic. The example in your ROM is actually quite complex.  ;) :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:21, 16 September 21
Quote from: GUNHED on 02:07, 15 September 21
Thanks for all the links. I would say, a simple example would be good for: Read SD card directory contents (actual DIR level) to RAM (fixed address). Something basic. The example in your ROM is actually quite complex.  ;) :)

No problem.
I made a quick example for you here:
https://github.com/M4Duke/M4examples/blob/master/getdir.s (https://github.com/M4Duke/M4examples/blob/master/getdir.s)

As you did not need any display code, I just make it start the hack menu after getting the directory.
You can display memory at 0x4000 to see the directory it retrieved (in the example from /m4 directory).

Hope it helps!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 23:00, 16 September 21
Thank you very much!!! That's great!!!
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 13:57, 17 September 21
Quote from: CraigsBar on 13:35, 14 September 21

Nooooooooooo! 😭😭😭😭
I'm working on something similar (but closer to the IZE80 from another recent thread) although I wish I knew why my GX4000 is halting the clock as soon as I assert /IORQ...  ??? I should probably use my 6128 instead but it takes up more space on the bench...
Title: Re: Amstrad CPC WiFi
Post by: evolutional on 13:08, 29 September 21
Quote from: Duke on 18:48, 01 August 21

Meanwhile I still add people to my waiting list, to when and if supply and prices get back to normal.

Please add me to that waiting list!
Title: Re: Amstrad CPC WiFi
Post by: Fessor on 16:43, 08 November 21
Please add me to the List too.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:28, 08 November 21
Quote from: Fessor on 16:43, 08 November 21
Please add me to the List too.

Please pm me with your email address and type needed (EDGE or IDC) or even better email me at duke (a) spinpoint.org (so you whitelist my email).

Be aware that currently I cannot source the MCU's needed for neither M4 Board or Imperium Solo at normal prices, due to the chip shortage situation :/
However I have finally been able to get some SMALL batches of over priced chips for the M4 board, which I offer as an alternative (at the added cost) when I work my way down the list (which is about 60 M4 boards at the moment). So there is hope, but nothing quick, unfortunately.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:02, 08 November 21
Well.... then this is the perfect time just to think maybe about emulating the Dobbertin HD20 hard-disc with the M4 board. This would be a dream.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Joseman on 15:59, 05 January 22
Hi @Duke (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1624)

What do you think about this way to add the hack button to the M4?

I think it's easy, you can disconnect the button when you need it and you don't touch the ESP.
(https://i.ibb.co/gM174hs/M4-HACK.jpg)
Title: Re: Amstrad CPC WiFi
Post by: panagiotis1974 on 12:03, 07 January 22
How to make Ictrup, "xxxx" in 464 basic 1.0?
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 12:11, 07 January 22
Quote from: panagiotis1974 on 12:03, 07 January 22
How to make Ictrup, "xxxx" in 464 basic 1.0?


a$="xxxx":|ctrup,@a$

Title: Re: Amstrad CPC WiFi
Post by: panagiotis1974 on 12:26, 07 January 22
Thank you !!!! :)
Title: Re: Amstrad CPC WiFi
Post by: panagiotis1974 on 13:55, 07 January 22
When I try to run .cpr files with M4 many times I have black screen or several errors.




When I try to run .cpr files with M4 many times I have black screen or several errors.
I have tried many .cpr files and in all I face the same problem.
I have tried with two 6128 and one 464. As you can see in photos I have the same result. :doh:
I suspect that M4 has died. I have tried with firmware 2.05, 2.06, 2.07 with no luck.
I hadn't tried .cpr files before.
update:It seems that if I give the command to run the .cpr file from the pc browser it works normally without errors and black screens.




Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 03:53, 10 January 22
Quote from: panagiotis1974 on 13:55, 07 January 22
When I try to run .cpr files with M4 many times I have black screen or several errors.




When I try to run .cpr files with M4 many times I have black screen or several errors.
I have tried many .cpr files and in all I face the same problem.
I have tried with two 6128 and one 464. As you can see in photos I have the same result. :doh:
I suspect that M4 has died. I have tried with firmware 2.05, 2.06, 2.07 with no luck.
I hadn't tried .cpr files before.
update:It seems that if I give the command to run the .cpr file from the pc browser it works normally without errors and black screens.


Erm, I suspect frmo the pictures provided, you are missing the Plus for the CPR files. I have not tried but I would imagine a CPR image... being a Plus machine cartridge image would require a 6128plus or 464plus to work.

Title: Re: Amstrad CPC WiFi
Post by: panagiotis1974 on 04:41, 10 January 22
Please read again my post .
Same cpr files run perfect from pc browser and some times directly from Ictr
Title: Re: Amstrad CPC WiFi
Post by: panagiotis1974 on 15:14, 12 January 22
It seems that with 2.0.4 it works perfectly on all three of my machines, the only thing I lost is the hack menu :)
Title: Re: Amstrad CPC WiFi
Post by: Takis Kalatzis on 15:58, 21 January 22
Hello,


Is there any way to set/unset Modified Lower Rom (in slot 31) without using the web interface? I know there is the IROMUP command that can upload a ROM and the IROMSET that can make it active, but can they be used for setting/unsetting the modifed lower rom?


I am experimenting with M4 in Slot 6 and PARADOS in Slot 7. If I want to play around with SD/Disks, I have to go and disable the modified lower rom. If I want to play a game, I have to re-enable it. Just looking for a quicker way to do this...


Appreciate any help about this,


Takis
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:16, 10 February 22

Quote from: Takis Kalatzis on 15:58, 21 January 22
Is there any way to set/unset Modified Lower Rom (in slot 31) without using the web interface? I know there is the IROMUP command that can upload a ROM and the IROMSET that can make it active, but can they be used for setting/unsetting the modifed lower rom?


I am experimenting with M4 in Slot 6 and PARADOS in Slot 7. If I want to play around with SD/Disks, I have to go and disable the modified lower rom. If I want to play a game, I have to re-enable it. Just looking for a quicker way to do this...
Sorry for late reply.
I haven't added a command for disabling the lower-rom, but you could upload Parados or Amsdos to slot 6, then when you use |m4romoff it should become active instead of the M4 rom.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:51, 02 March 22
Yes, that works. I use X-DDOS in ROM slot 6 (for B-drive Vortex format of 704 KB and HD20 hard-disc support) the way you described it.  :)
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 15:09, 05 March 22
Hi @Duke . Is there a simple m/c code way to detect if an M4 is connected to the CPC?
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 20:44, 05 March 22
You can search for the RSX command "M4 BOARD".

Or search for the string

db "M4 BOAR","D"+#80

starting at #c004 in any rom.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 00:45, 06 March 22
Quote from: Prodatron on 20:44, 05 March 22You can search for the RSX command "M4 BOARD".

Or search for the string

db "M4 BOAR","D"+#80

starting at #c004 in any rom.
Yes, I could  :D , but I want to do the check using code in another ROM...
Title: Re: Amstrad CPC WiFi
Post by: pelrun on 02:30, 06 March 22
&BCD4 KL FIND COMMAND should work fine called from ROM.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:40, 06 March 22
@Animalgril987  Another simple method, is to enable the HACKMENU lowerrom, using C_ROMLOW command (http://www.spinpoint.org/cpc/m4info.txt) and check some value/offset. Ie. 0x100 would always contain "MV - SNA" (see https://github.com/M4Duke/m4hackmenu/blob/master/nmirom.s line 80 ->) or even the mapped rom can be read at 0x0.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:03, 07 March 22
Hi Duke!

Eventually I'm going into the programming of M4 SD card usage,
To retrieve and use a DIRectroy is working very well now.
Thanks for your example. :-D

But how to read (write) a file?
Do you please have some simple Z80 code for that?
(By looking at the ROM upload source I'm not sure what does what).

Well, I ask here, because I assume it's of common interest for most M4 users :-)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:24, 08 March 22
@GUNHED
Cool!
Lets start with reading a file... As you mention I already referenced https://github.com/M4Duke/M4examples/blob/master/romup.s
If you extract the functions from the source of romup.s
fopen, fread, fclose
Then you have whats needed to read a file.

First use fopen to open the file and retrieve a file descriptor (fd) Input/Output parameters are commented just above each file function.
You need to set the mode for reading with the flag FA_READ and OR it with 0x80 (M4 real mode).
Using the file descriptor (fd), one can now read contents of the file using fread . However as the M4 works by making the data available through its "rom" buffer, there is only room to read 2048 bytes (0x800) at a time. So anything bigger than 2048 needs to be read in chunks and copied to the desired memory location, that is what my loop is for in the function of fread.
Finally when done reading, you gracefully close the file (to free up internal structures), using fclose function.
The functions are just wrappers for the hardware calls C_OPEN, C_READ & C_CLOSE.
So I'd suggest copying out those 3 functions for a start and try to get them working first. If any questions (there is not much actual code in the functions) let me know, I'll be happy to walk through them.
Once you got those working, I will write you a seperate f_write function if needed.
Title: Re: Amstrad CPC WiFi
Post by: Animalgril987 on 09:20, 09 March 22
@pelrun , @Duke  Many thanks  :D
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:21, 09 March 22
Quote from: Duke on 05:24, 08 March 22So I'd suggest copying out those 3 functions for a start and try to get them working first.
Great! And thanks a lot for your easy way of explaining it :-)))  :) :) :)

One more quick question, the M4 has the following modes:
FA_READ
FA_WRITE
FA_CREATE_NEW
FA_CREATE_ALWAYS
FA_OPEN_ALWAYS

The  FA_READ is probably for reading files, is it for both, ASCII and binary files?
FA_WRITE is probably for writing data (I'll have a closer look soon anyway).

But... What are the other four FA_ functions doing exactly?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 19:29, 09 March 22
Quote from: GUNHED on 15:21, 09 March 22
Quote from: Duke on 05:24, 08 March 22So I'd suggest copying out those 3 functions for a start and try to get them working first.
Great! And thanks a lot for your easy way of explaining it :-)))  :) :) :)

One more quick question, the M4 has the following modes:
FA_READ
FA_WRITE
FA_CREATE_NEW
FA_CREATE_ALWAYS
FA_OPEN_ALWAYS

The  FA_READ is probably for reading files, is it for both, ASCII and binary files?
FA_WRITE is probably for writing data (I'll have a closer look soon anyway).

But... What are the other four FA_ functions doing exactly?
Taken from the FATFS (underlaying FAT driver) documentation:
FA_READSpecifies read access to the file. Data can be read from the file.
FA_WRITESpecifies write access to the file. Data can be written to the file. Combine with FA_READ for read-write access.
FA_OPEN_EXISTINGOpens a file. The function fails if the file is not existing. (Default)
FA_CREATE_NEWCreates a new file. The function fails with FR_EXIST if the file is existing.
FA_CREATE_ALWAYSCreates a new file. If the file is existing, it will be truncated and overwritten.
FA_OPEN_ALWAYSOpens the file if it is existing. If not, a new file will be created.

You can combine flags, like FA_READ|FA_WRITE so you can read and write to the file with the same descriptor.
Also when you create a new file it would typically be FA_CREATE_ALWAYS | FA_WRITE
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 23:16, 09 March 22
Thanks a lot! That's very helpful.  :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:55, 10 March 22
Hi Duke!

Well, I got some problems with reading a file...

1. To open file using fopen only works with 'read mode' &01. 
Using read mode 1 the M4 card returns the file-descriptor byte &04.
Using the read mode &81 the M4 returns byte &FF (error).

2. Using fread I get the result byte &09. But there's no data available.

The used code is attached at this post. Please have a look at it and point me to the error if possible.  :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:45, 10 March 22
Quote from: GUNHED on 14:55, 10 March 22Hi Duke!

Well, I got some problems with reading a file...

1. To open file using fopen only works with 'read mode' &01.
Using read mode 1 the M4 card returns the file-descriptor byte &04.
Using the read mode &81 the M4 returns byte &FF (error).

2. Using fread I get the result byte &09. But there's no data available.

The used code is attached at this post. Please have a look at it and point me to the error if possible.  :)

Please use &81 when opening the other is mode is pretty much for inside DSK files (CPC AMSDOS compatible).
The return of 0xFF indicates that the file is not found. If the "FILENAME" is in root, try  "/FILENAME".
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:01, 11 March 22
I'll try using the "/" in front of the name and let you know... Thanks!  :) :) :)

EDIT: Well it doesn't work.
I tried to open an ASCII file with the name "A" by using filename "/A" + 0 byte to open.
Using read mode &81 it returns &FF (error) as status. The same for a BASIC file.

Can you please take another  look a my code?
Maybe there is a working example code somewhere?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 20:44, 14 March 22
Quote from: GUNHED on 18:01, 11 March 22I'll try using the "/" in front of the name and let you know... Thanks!  :) :) :)

EDIT: Well it doesn't work.
I tried to open an ASCII file with the name "A" by using filename "/A" + 0 byte to open.
Using read mode &81 it returns &FF (error) as status. The same for a BASIC file.

Can you please take another  look a my code?
Maybe there is a working example code somewhere?

I just made a new example for you. Stripped as much away, as I could, to make it clean and easy to read.
The example first creates a file with the contents "Hello world!". Reads it back to a buffer and displays it on screen.
It also uses the C_ROMLOW to detect the M4 rom number (quicker than looping through roms).
Also included the binary (with AMSDOS HEADER), so you can verify it works for you too (run"wr-rd.bin").
Hope this helps.

EDIT:
As I cannot attach files (?) to the post, I have put them on github:
https://github.com/M4Duke/M4examples
https://github.com/M4Duke/M4examples/blob/master/wr-rd.s
https://github.com/M4Duke/M4examples/blob/master/wr-rd.bin
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:37, 18 March 22
Thanks a lot, I'll let you know how it works...  :)

EDIT: The binary works as it should. Caring about source code now... :-)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:53, 21 March 22
BTW: In the source code I assume an "RET" instruction is missing, but it doesn't matter, because fwrite does directly run into fclose. fwrite is not ended by a ret, classical typo!

Anything else works very fine! Thanks!  :) :) :)

New question: How can I write a file bigger than 64 KB actually?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:04, 22 March 22
Quote from: GUNHED on 18:53, 21 March 22BTW: In the source code I assume an "RET" instruction is missing, but it doesn't matter, because fwrite does directly run into fclose. fwrite is not ended by a ret, classical typo!

Anything else works very fine! Thanks!  :) :) :)

New question: How can I write a file bigger than 64 KB actually?
Yes, RET missing is a bug , thanks ! (added it to the source).
To write more than 64KB, just call fwrite again, without closing the file (fix missing RET!).

Title: Re: Amstrad CPC WiFi
Post by: Fran123 on 18:34, 23 March 22
hello

how can you test if m4 is connected in basic?

thank  you
Title: Re: Amstrad CPC WiFi
Post by: dragon on 18:16, 24 March 22
I unable to make my 464 load 1.1 basic.


Even disconnecting all with only the m4 connected.(464+xmem+m4+ddi)

The 464 boot and then it scroll down after ready at the light of the speed forever in a  blue screen.

Try these tutorial:
https://auamstrad.es/hardware/m4-board-configuracion/

Or downloaded the 464 up directly from spinpoint.

Anny sugestions?



Title: Re: Amstrad CPC WiFi
Post by: ajcasado on 18:58, 24 March 22
Quote from: dragon on 18:16, 24 March 22I unable to make my 464 load 1.1 basic.
Have you used the matching lower rom? It will not work with the 464 lower rom.
Title: Re: Amstrad CPC WiFi
Post by: pabloingreece on 17:30, 26 March 22
@Duke I have a problem out of nowhere, the m4 stop booting with the information of the card in the CPC. I tried to put different firmware versions, the report.txt says that programming is successful, but the card is not working properly.

What can I do to revive it?

Thanks. Also if there is a chance to order a new card (2019 version) I would like to proceed. Please let me know :)

Greetings!
Title: Re: Amstrad CPC WiFi
Post by: CraigsBar on 01:04, 27 March 22
Quote from: dragon on 18:16, 24 March 22I unable to make my 464 load 1.1 basic.


Even disconnecting all with only the m4 connected.(464+xmem+m4+ddi)

The 464 boot and then it scroll down after ready at the light of the speed forever in a  blue screen.

Try these tutorial:
https://auamstrad.es/hardware/m4-board-configuracion/

Or downloaded the 464 up directly from spinpoint.

Anny sugestions?




I found the easiest way is to grab the 664 Lower Rom and 664 basic 1.1 Upload those with Basic in slot 0 and lower in slot 31. Set the low rom replacement in the M4webgui to enabled and using slot 31 and reboot. this will load both Lower and Basic from the SD card and give you a 664 (v2) sign on string if it all worked.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:19, 27 March 22
Quote from: CraigsBar on 01:04, 27 March 22
Quote from: dragon on 18:16, 24 March 22I unable to make my 464 load 1.1 basic.


Even disconnecting all with only the m4 connected.(464+xmem+m4+ddi)

The 464 boot and then it scroll down after ready at the light of the speed forever in a  blue screen.

Try these tutorial:
https://auamstrad.es/hardware/m4-board-configuracion/

Or downloaded the 464 up directly from spinpoint.

Anny sugestions?




I found the easiest way is to grab the 664 Lower Rom and 664 basic 1.1 Upload those with Basic in slot 0 and lower in slot 31. Set the low rom replacement in the M4webgui to enabled and using slot 31 and reboot. this will load both Lower and Basic from the SD card and give you a 664 (v2) sign on string if it all worked.
Or just run the installer I made here:
https://www.cpcwiki.eu/forum/technical-support/the-compatibility-of-the-m4-card/msg179715/#msg179715

The scrolling you experince @dragon would indicate, that the corresponding lowerrom is not installed or active.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 09:23, 27 March 22
Quote from: pabloingreece on 17:30, 26 March 22@Duke I have a problem out of nowhere, the m4 stop booting with the information of the card in the CPC. I tried to put different firmware versions, the report.txt says that programming is successful, but the card is not working properly.

What can I do to revive it?

Thanks. Also if there is a chance to order a new card (2019 version) I would like to proceed. Please let me know :)

Greetings!
You can send it back to me for a checkup.
As for a new M4 board, there is 100+ people on waiting list, to when I get new supplies of the STM chips, these are the worst to get apparently, due to chip shortage :/
Title: Re: Amstrad CPC WiFi
Post by: dragon on 20:42, 28 March 22
It don't apperar take the rom o.k maybe its i need put a power suply in the x4 board.It corrupt all times.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 22:21, 28 March 22
Hi Duke!
Thank's to your help I got now a couple of working basic routines for the M4 SD file usage.

However, can you please give me some hint which function to use to get the size of a file. Shall I use C_FSIZE? Is there some example code? From the docs I'm not sure which data I need to send to the M4 port.
Or would it be better to use another function of the M4? And how?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:50, 29 March 22
Quote from: GUNHED on 22:21, 28 March 22Hi Duke!
Thank's to your help I got now a couple of working basic routines for the M4 SD file usage.

However, can you please give me some hint which function to use to get the size of a file. Shall I use C_FSIZE? Is there some example code? From the docs I'm not sure which data I need to send to the M4 port.
Or would it be better to use another function of the M4? And how?
Yes, you can use C_FSIZE, it only needs the FD (file descriptor) which you derived from C_OPEN (fopen function...).
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:12, 29 March 22
To use C_FSiZE, I do need to send bytes: &00, &11, &43, File-Descriptor-Byte
Right?

Reading bytes from M4 ROM at &E800: Which bytes do contain the file size?
Do the first four bytes contain the file size, starting with the low byte?

EDIT: The file size can be read from the M4 ROM bytes &E803-6 (little endian as Duke told).
Title: Re: Amstrad CPC WiFi
Post by: Duke on 21:44, 29 March 22
Quote from: GUNHED on 17:12, 29 March 22To use C_FSiZE, I do need to send bytes: &00, &11, &43, File-Descriptor-Byte
Right?

Reading bytes from M4 ROM at &E800: Which bytes do contain the file size?
Do the first four bytes contain the file size, starting with the low byte?

Yes, send that sequence and yes the first 4 bytes contain the size, starting with the low byte (little endian format).


Title: Re: Amstrad CPC WiFi
Post by: JayBlood on 23:10, 29 March 22
Hi Duke. Can I have any chance to give one card? Thank in advance. ;) You can tell me here if it possible, or PM me. :)
Regards.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 11:01, 30 March 22
Quote from: JayBlood on 23:10, 29 March 22Hi Duke. Can I have any chance to give one card? Thank in advance. ;) You can tell me here if it possible, or PM me. :)
Regards.
This is the standard reply I send to all that contacts me:

 Due to the world wide chip shortage situation, I cannot source chips for the M4 board for the time being.

I can put you on my list to when supply get back to normal again. But I don't know when it will be. Current lead time at suppliers is more than 50 weeks :/

 Let me know if I should put you on my list.

So please send me PM with your email address and I'll add you to my waiting list (of 100++ people) if you want to wait.
To those who have not had replies to emails/messages/posts, I will get back to you, but I do get about 20 requests a week and I usually collect them go through the entire lot every 10-14 days or so. Please have patience :-)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:28, 30 March 22
Getting ahead with M4 functions. One more question: What's the difference between C_READ and C_READ2?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:00, 30 March 22
Quote from: GUNHED on 17:28, 30 March 22Getting ahead with M4 functions. One more question: What's the difference between C_READ and C_READ2?
As the documentation states, it will not skip reading the AMSDOS header into the buffer, if it is present.
C_OPEN some file with AMSDOS header and C_READ2 it. Then the first 128 bytes of the buffer will contain the AMSDOS header. If you used C_READ instead, it would not put the AMSDOS header into the buffer.
Title: Re: Amstrad CPC WiFi
Post by: JayBlood on 22:57, 30 March 22
Quote from: Duke on 11:01, 30 March 22
Quote from: JayBlood on 23:10, 29 March 22Hi Duke. Can I have any chance to give one card? Thank in advance. ;) You can tell me here if it possible, or PM me. :)
Regards.
This is the standard reply I send to all that contacts me:

 Due to the world wide chip shortage situation, I cannot source chips for the M4 board for the time being.

I can put you on my list to when supply get back to normal again. But I don't know when it will be. Current lead time at suppliers is more than 50 weeks :/

 Let me know if I should put you on my list.

So please send me PM with your email address and I'll add you to my waiting list (of 100++ people) if you want to wait.
To those who have not had replies to emails/messages/posts, I will get back to you, but I do get about 20 requests a week and I usually collect them go through the entire lot every 10-14 days or so. Please have patience :-)
No problem. I do. ;) Thanks!
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:18, 31 March 22
Eventually I got my M4 routines together, so if somebody needs Maxam source code let me know.
One (hopefully) last question: What's the difference between C_READ and C_READ2?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 02:13, 01 April 22
Quote from: GUNHED on 15:18, 31 March 22Eventually I got my M4 routines together, so if somebody needs Maxam source code let me know.
One (hopefully) last question: What's the difference between C_READ and C_READ2?
Good.
You already asked about C_READ and C_READ2 ? :)  Did you mean some other functions? (C_WRITE?)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:06, 01 April 22
Oh, I had the impression that C_READ does sometime show headers of ASCII files, but I will just try some experiments. Sorry for asking twice.

However, thanks a lot for your excellent support!!!  :) :) :) :) :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:36, 01 April 22
Quote from: GUNHED on 16:06, 01 April 22Oh, I had the impression that C_READ does sometime show headers of ASCII files, but I will just try some experiments. Sorry for asking twice.
No worries. Re-reading my reply, I can see it was a bit cryptic.

Let me try again.

C_READ   If the file is an AMSDOS file with valid header, it will not read the AMSDOS header into the rom buffer, only the actual data.
C_READ2 If the file is an AMSDOS file with valid header, it will read the AMSDOS header into the rom buffer, followed by the actual data.

Btw. ASCII files created on CPC can be without (AMSDOS) header.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 02:39, 04 April 22
For ASCII files I found the following:
C_READ provides an ASCII file (saved with Maxam) with Amsdos-compatible file header.
C_READ2 provides an ASCII file (saved with Maxam) with Amsdos-NONcompatible file header (the first &3F bytes seem to be &00).
Well, I stick with C_READ, should be just the right M4 function.  :)
Title: Re: Amstrad CPC WiFi
Post by: pabloingreece on 11:38, 08 May 22
Quote from: Duke on 09:23, 27 March 22
Quote from: pabloingreece on 17:30, 26 March 22@Duke I have a problem out of nowhere, the m4 stop booting with the information of the card in the CPC. I tried to put different firmware versions, the report.txt says that programming is successful, but the card is not working properly.

What can I do to revive it?

Thanks. Also if there is a chance to order a new card (2019 version) I would like to proceed. Please let me know :)

Greetings!
You can send it back to me for a checkup.
As for a new M4 board, there is 100+ people on waiting list, to when I get new supplies of the STM chips, these are the worst to get apparently, due to chip shortage :/

Hello Duke can you please send me your address in order to send you my damaged card? Thanks.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 13:43, 08 May 22
Quote from: pabloingreece on 11:38, 08 May 22Hello Duke can you please send me your address in order to send you my damaged card? Thanks.


I already did 27th of March 2022 via our email correspondance.
Title: Re: Amstrad CPC WiFi
Post by: pabloingreece on 16:43, 08 May 22
You're right, sorry for that.

I'll send it this week, hopefully, let me know whenever you receive it :)
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:06, 19 June 22
Quote from: Duke on 19:21, 16 September 21
Quote from: GUNHED on 02:07, 15 September 21Thanks for all the links. I would say, a simple example would be good for: Read SD card directory contents (actual DIR level) to RAM (fixed address). Something basic. The example in your ROM is actually quite complex.  ;) :)

No problem.
I made a quick example for you here:
https://github.com/M4Duke/M4examples/blob/master/getdir.s (https://github.com/M4Duke/M4examples/blob/master/getdir.s)

As you did not need any display code, I just make it start the hack menu after getting the directory.
You can display memory at 0x4000 to see the directory it retrieved (in the example from /m4 directory).

Hope it helps!
The example works great for all sub-directories. But somehow I don't manage to set the path to the root directory of the SD card.

I tried:
- "/"
- " / "
- &00,&00

But if I'm currently in a sub-directory I can't get back to the root.

Can somebody please let me know which string to enter to go back to the M4 root directory?
Title: Re: Amstrad CPC WiFi
Post by: francouai on 06:42, 25 July 22
spinpoint.org is down since few days.
What's wrong? :o
Title: Re: Amstrad CPC WiFi
Post by: Shaun M. Neary on 09:42, 25 July 22
It's not do in terms of a website, the Apache service is actually running.
Looks more like a web config issue causing the site not to display.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 12:55, 25 July 22
Quote from: francouai on 06:42, 25 July 22spinpoint.org is down since few days.
What's wrong? :o
Not sure what is wrong. I on vacation until next week. I think my web host has issues, so if it is not up before, I will deal with it when I get back.
Title: Re: Amstrad CPC WiFi
Post by: francouai on 07:43, 27 July 22
I sent you an email to your spinpoint.org account and it failed too.
Title: Re: Amstrad CPC WiFi
Post by: robcfg on 09:18, 27 July 22
I've noticed that also the url solver does weird stuff:

Screenshot 2022-07-27 at 10.17.31.png
Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:30, 29 July 22
Quote from: francouai on 07:43, 27 July 22I sent you an email to your spinpoint.org account and it failed too.
The server is up again now https://www.spinpoint.org , due to a failure at my webhost it was moved to another server with a new IP. The IP had to be updated in the dns records, this is done now.
Any mails for the last week to my @spinpoint.org address are lost, so please mail me again.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:06, 07 August 22

About Switching to sub directory and then back to root in the M4 SD-card: 

The example in Dukes provious post works great to switch to any kind of sub-directory. 
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:31, 08 August 22
Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:41, 10 August 22
Quote from: Duke on 05:31, 08 August 22
Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?

Yes. Which parameter do I need to use if I want to switch from a subdirectory (of a subdirectory) back to root?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:11, 10 August 22
Quote from: GUNHED on 15:41, 10 August 22
Quote from: Duke on 05:31, 08 August 22
Quote from: GUNHED on 21:06, 07 August 22About Switching to sub directory and then back to root in the M4 SD-card:

The example in Dukes provious post works great to switch to any kind of sub-directory.
But somehow I don't manage to switch back the path to the root directory of the SD card.

Well, I tried:
- "/"
- " / "
- &00,&00

How can I switch to the root directory of the SD card?
Can somebody please let me know which string to enter to go back to the M4 root directory?
 
Are you using C_CD command?

Yes. Which parameter do I need to use if I want to switch from a subdirectory (of a subdirectory) back to root?
You can use "/",0 or "\",0 to go back to root directory.
And "..",0 to go back one sub-directory.

This is what the |CD rsx command uses. You can see how it works in the m4rom source aswell. Maybe you need to reset C_DIRSETARGS, if it fails to work for displaying your directory.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 21:54, 10 August 22
I'll have a try. Thanks.  :)
Title: Re: Amstrad CPC WiFi
Post by: RobertM on 08:02, 12 August 22
Hi, I bough a M4 board a long time ago and the system was put away for years. I have recently set it up again and all works fine except one issue.

The CPC 6128 has an internal 3.5" floppy drive which I wan to use but I only have new blank IBM formatted disks.

Everything even games that have their own loader keep trying to read from internal 3.5" (light comes on).

I copied the .DSK file to the SD via wifi and I can do a |DIR and see all the files including PIP.COM but if I try |cpm it reads the internal drive and I have to get into CPM as far as I know to use a utility (I thought PIP) for format real disks.

Can anyone help please.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 10:00, 12 August 22
|CPM only works with an internal drive(s) because it don't "know" about the M4 and DSK images. It tries to reach your floppy drive due to its internal configuration.

Depends on what you want to do?

Assuming (from your chat) you try to do something with CPM & PIP.COM? Copying something or investigating files? Formatting with PIP (is that possible - never heard of it)?

If you want to work with CP/M together with a M4 board my recommendation is: try HDCPM ( https://www.cpcwiki.eu/index.php/HDCPM ). It's really cool and better than working with a floppy drive because you don't need it any more apart from copying some original files to your "hard drive".

Title: Re: Amstrad CPC WiFi
Post by: RobertM on 13:27, 07 October 22
OK I have HDCPM loaded - same problem

I wand to copy a .DSK file on the M4 SD to an actually floppy disk.

I ordered a GOTEK. I planing on putting the .DSK on the GOTEK and copying from the GOTEC to the floppy as A: and B:

I want to transfer CPM from a DSK to an actual floppy disk.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 16:07, 07 October 22
If you want to create a CP/M System disc then don't do that from CPM itself but with help of SymbOS DSK2Floppy application or the M4FE tool from basic or... or... or.. . There are a lot of tools which can do this.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 10:17, 08 October 22
Quote from: HAL6128 on 16:07, 07 October 22If you want to create a CP/M System disc [...] but with help of SymbOS DSK2Floppy application
http://www.symbos.de/appinfo.htm?00015
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 14:07, 28 October 22
Hi @Duke : There is a problem with files greater than 64 KB on the M4 SD-card.

Well, I'm just doing some functions to read files bigger than 64 KB into expansion RAM.

Now if there is a file of 96 KB for example, then it's file length is &018000 Bytes (64 KB and 32 KB).

The problem is that if I get the file size using function C_FSIZE then it returns a value of &8080. Because it seems to read the information from the header(file length) and adds the &80 bytes of the header itself.

The solution can be to add the over-byte of the file size:
The file size of a file up to 64 KB is located at relative header addresses &18 (low) and &19 (high).

To work with files greater than 64 KB the relative header address &1C contains the next 8 upper bits.

So file sizes (up to 16 MB) can encoded in:
bits 0...7 - relative header address &18
bits 8...15 - relative header address &19
bits 16...23 - relative header address &1C

This is true for binary files under FutureOS at least, they have the byte &82 (instead of &02 like in Amsdos) to indicate a binary file. It's at relative address &12.

It would be great if the 24 bit file length feature could be included into the M4 firmware.  :)
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 14:34, 28 October 22
Regarding to the documentation...

C_FSIZE   0x4311   Implemented v1.0.5. data = fd. Return data[0-3] = file size


...seems to return 4 bytes, or not? These 32bits are enough for filesizes of up to 4GB, which is what FAT32 can handle.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:05, 30 October 22
@GUNHED C_FSIZE should return 4 bytes as @Prodatron wrote, it returns the actual size the file uses on the microSD card (meaning the amsdos header is part of the size if present). Atleast this is when not inside a .DSK image.
It doesn't look into the AMSDOS header for the size.
Title: Re: Amstrad CPC WiFi
Post by: leexus on 08:27, 03 November 22
Hi Duke,
I am interested in one M4 board for amstrad cpc 6128 plus.
Thank you
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:18, 03 November 22
Quote from: Duke on 08:05, 30 October 22@GUNHED C_FSIZE should return 4 bytes as @Prodatron wrote, it returns the actual size the file uses on the microSD card (meaning the amsdos header is part of the size if present). Atleast this is when not inside a .DSK image.
It doesn't look into the AMSDOS header for the size.
Yes, C_SIZE returns 4 bytes. But only for ASCII files it's result can be bigger than 64 KB.
For binary files it cuts off everything bigger than 64 KB.

C_SIZE reads data from the file header if a file is binary. But for SD cards it would be great to be able to work with files greater than 64 KB. (Usage of ASCII files takes soooo long).

Solution:
Expand  C_SIZE in that way:
- C_SIZE reads byte &12 (file-type) from the header
- If the 8. bit is set then read byte &1C from the header and make its content bits 16-23 of the file length.

It would be (hopefully) relatively easy to expand C_SIZE in that way. And we all could work with binary files up to 16 MB in the native OS and also FutureOS.

It this is not doable then we can only work with ASCII files, and to handle them is very slow of course.

BTW: Prodatrons routines work with LBA sectors as he told me on XzentriX meeting. That's different vom M4 functions like  C_SIZE.

@Duke : it would be great if you could do this expansion of C_SIZE (and C_READ), lots of my software uses the expanded header feature. Now only from disc. Hopefully from M4 SD card too.  :) :) :)

Edit: Have a look at the attached file. It's 96 KB, but F_SIZE does tell &8080, as CAT does tell 32 KB.
And: Not more than 32 Kb can be loaded! So I can't access the remaining 64 KB with M4 C_... functions.
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 23:54, 03 November 22
Quote from: GUNHED on 13:18, 03 November 22BTW: Prodatrons routines work with LBA sectors as he told me on XzentriX meeting. That's different vom M4 functions like  C_SIZE.
Erm, today everything works with LBA sectors. SymbOS just doesn't use the highlevel filesystem routines of the M4 board, as it is accessing sectors directly (thanks again to Duke for making this possible!) - FAT12/16/32 has been implemented directly in Z80 in SymbOS back in 2004.

As Amsdos doesn't support binaries with >64K and random access for big ("ascii" :) ) files I guess the compatibility of the M4 board is already given. If you need more, you can use C_Size like it is etc.?
I still wonder if there is a new standard for handling big files and random file access (seek, random read/write) e.g. in new Amsdos compatible systems like UniDos etc?
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:24, 04 November 22
Here is an example how it does look like: Please look at file "Prowort.4OS"
One picture is from PC and the other one like it's shown on CPC screen.

The same file is shown as 32 KB under M4 DOS, but as 96 KB on PC.

Also the same file is 96 KB on every physical CPC disc.

Therefore it would be great to enhance M4 DOS in a way to be compatible with Amsdos or other DOS for floppies (they all show 96 KB in the directory).

Title: Re: Amstrad CPC WiFi
Post by: Duke on 14:09, 04 November 22
@GUNHED I havent had time to check up on it, but C_FSIZE, *should* report the correct filesize, it does not look in any header, unless you are inside a .DSK image. Can you confirm the file is in the FAT32 filesystem and not inside a .DSK image?

I will setup a test when I find some time.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:00, 04 November 22
Quote from: Duke on 14:09, 04 November 22@GUNHED I havent had time to check up on it, but C_FSIZE, *should* report the correct filesize, it does not look in any header, unless you are inside a .DSK image. Can you confirm the file is in the FAT32 filesystem and not inside a .DSK image?

I will setup a test when I find some time.
Yes, of course, it's a single file. Please have a look when you have time.
It would be awesome.  :) :) :) :) :) :) :)

For testing please use the file I posted in the ZIP before.  :) :) :) :) :) :) :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 19:43, 04 November 22
Works great here with my M4Board. ProWort.4OS is displayed with 96K.


  index.jpg 

The M4 board even displayes very large files (with "M" instead of "K") correctly.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 15:48, 05 November 22
Very strange!
Well, I assume you removed the file header in your case, so the size is shown correctly.
Can you check if a file-header is there? I guess not, so that's not the problem we're talking.
btw: Which firmware do you use?
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 16:46, 05 November 22
Of course I didn't modify the file, why should I? It's just the one you posted here, copied directly on the SD card.
For sure the M4Board doesn't examine any file headers when displaying the directory. That wouldn't make any sense, and the FAT filesystem is storing the exact filelength in bytes, it doesn't have these limitations of old CP/M based filesystems, in FAT there is no need for a header to have this information.
The firmware should be from around 2017.
The first 128bytes start with 0,"Prowort 4OS" and end with "TFM", so I guess that is the fileheader.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:23, 06 November 22
Hi there,
Well, over the weekend I did some testing and that's what I found out...
Having the same 96 KB file on SD card in root directory and in sub-directories seems to be different. The 96 KB file is shown with 96 KB in sub-directories (also C_FSIZE provides &018000 as result - all correct). In the root directory it was different.
After reformatting the SD card I wasn't able to reproduce the size difference. So I will make more tests to confirm this finding. 
Good thing: Now it all seem to work as it should. I will keep you updated about any new results. 
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 18:39, 06 November 22
In the root directory the same file is displayed with 96K as well.
I guess you broke something on your side, when copying the file on the SD card?index2.jpg
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 18:45, 06 November 22
All possible, need to do more testing.
Title: Re: Amstrad CPC WiFi
Post by: erebos007 on 16:06, 01 January 23
Hello !  :D

PM sent @Duke for 1 board when/if available
Title: Re: Amstrad CPC WiFi
Post by: JayBlood on 00:31, 31 January 23
Hi Duke. Cpc Wifi receveid today. Thanks a lot!!! :) :) :)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 19:58, 01 February 23
Quote from: Prodatron on 23:54, 03 November 22
Quote from: GUNHED on 13:18, 03 November 22BTW: Prodatrons routines work with LBA sectors as he told me on XzentriX meeting. That's different vom M4 functions like  C_SIZE.
Erm, today everything works with LBA sectors. SymbOS just doesn't use the highlevel filesystem routines of the M4 board, as it is accessing sectors directly (thanks again to Duke for making this possible!) - FAT12/16/32 has been implemented directly in Z80 in SymbOS back in 2004.

As Amsdos doesn't support binaries with >64K and random access for big ("ascii" :) ) files I guess the compatibility of the M4 board is already given. If you need more, you can use C_Size like it is etc.?
I still wonder if there is a new standard for handling big files and random file access (seek, random read/write) e.g. in new Amsdos compatible systems like UniDos etc?
If that is the case, how does Random Access Database work? Unfortuntaely I missed out on the one that sold on ebay - if anyone has it, it would be nice to get a dump of it.

"written in BASIC, and claims to have Random Access facilities, which is able to access, in theory:- 9 Mbytes (nine million bytes) of storage memory! Or to those who think of k rams; 9 Mbytes equals approximately 8800k of disc storage"
https://cpcrulez.fr/applications_bureau-random_accesss_database.htm
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 22:04, 01 February 23
CP/M is able to do random file access.
Amsdos not at all. Until you try to introduce some hacks.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 23:06, 01 February 23
Just some information for you:

The function C_WRITE2 (&431B) does take up blocks of up to 2 KB (not up to 64 KB as I thought from previous information).

If you write more than 2 KB using  C_WRITE2 the M4 expansion will crash and you need to do a reset of the M4 with its reset button.

This may only be of interest to programmers, but I thought I tell it here.  :)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 09:17, 07 February 23
Quote from: Prodatron on 22:04, 01 February 23CP/M is able to do random file access.
Amsdos not at all. Until you try to introduce some hacks.
Random Access Database is an AMSDOS BASIC program with some machine code subroutines, not sure what they did as I haven't been able to get a copy.  I did come across it many years ago and missed out on the ebay auction so it definitely exists.
Title: Re: Amstrad CPC WiFi
Post by: asertus on 13:23, 07 February 23
Do you mean this one? I had in my AMSOFT, Indescomp welcome disc, with my 6128.

https://www.cpc-power.com/index.php?page=detail&num=6355

https://www.cpc-power.com/index.php?page=detail&num=6356
Title: Re: Amstrad CPC WiFi
Post by: Prodatron on 00:31, 08 February 23
Quote from: zhulien on 09:17, 07 February 23
Quote from: Prodatron on 22:04, 01 February 23CP/M is able to do random file access.
Amsdos not at all. Until you try to introduce some hacks.
Random Access Database is an AMSDOS BASIC program with some machine code subroutines, not sure what they did as I haven't been able to get a copy.  I did come across it many years ago and missed out on the ebay auction so it definitely exists.
No idea how they did this. Maybe with direct sector read/write?
I remeber that there were some programs which used an ASCII file and read the original and wrote a copy of the complete file on the fly to insert/delete parts, which was horrible slow...
Random file access means, that you can open a file, move the file pointer to any position inside the file, and then read or write any amount of data to/from the file.
Amsdos only has sequential read/write for Ascii files or "in one piece" read/write for binary files.
CP/M was able to do random file access in 128byte records, or even in other portions since 3.x.
Title: Re: Amstrad CPC WiFi
Post by: Iridium+ on 14:46, 08 February 23
Quote from: erebos007 on 16:06, 01 January 23Hello !  :D

PM sent @Duke for 1 board when/if available

Me too! 👍
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 01:02, 09 February 23
I got my order in last night for an M4 board with Edge connector, and one of those adapter boards with and IDC on top and a pass through edge connector for the M4 wifi board. :)  Hoping to plug in some kind of ram expansion on the IDC connector. :)   Looking forward to receiving my M4 and adapter board. :) 

Title: Re: Amstrad CPC WiFi
Post by: zhulien on 14:35, 09 February 23
Quote from: asertus on 13:23, 07 February 23Do you mean this one? I had in my AMSOFT, Indescomp welcome disc, with my 6128.

https://www.cpc-power.com/index.php?page=detail&num=6355

https://www.cpc-power.com/index.php?page=detail&num=6356

Nope, this one.  Perhaps they wrote their own low level random access RSXs or calls - https://cpcrulez.fr/applications_bureau-random_accesss_database.htm

I'll open a new thread so we don't keep spamming this one - in applications.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 17:06, 09 February 23
Guys, maybe it's time to get the 'Random access' post out and make an own topic out of it. There it can be discussed which OS do support it. Or which software and so on...

Here it would be nice to focus on the M4 card.  ;)
Title: Re: Amstrad CPC WiFi
Post by: Apollo on 17:02, 16 February 23
@Duke Got my M4 yesterday, pure beauty! 8) Looking forward to my vacation to "play" with it. ;D
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 15:35, 18 February 23
Just a quick question,  is it possible to create a blank.dsk image put it on the sd card, and mount that disk image, then from basic 1.1 write and save basic programs to that mounted disk image, as if it were a floppy...   please let me know.   I have not received my M4 yet, so just wondering.
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 20:42, 22 February 23
I've been making my way through the  112 pages, and found this inquiry on page 73 about saving to a mounted .dsk image file.  It seems as of  M4FIRM_v204b6.zip this was not possible.   I will keep reading incase I find the answer.   Hoping it's possible as of the latest firmware, but certainly not the end of the world as I belive you can save your basic programs right onto the sd card. :)   I shall keep reading.  It's been great reading through, kills the time until my M4 arrives. :)  

Cheers. :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 08:08, 23 February 23
Quote from: waltermixxx on 20:42, 22 February 23I've been making my way through the  112 pages, and found this inquiry on page 73 about saving to a mounted .dsk image file.  It seems as of  M4FIRM_v204b6.zip this was not possible.  I will keep reading incase I find the answer.  Hoping it's possible as of the latest firmware, but certainly not the end of the world as I belive you can save your basic programs right onto the sd card. :)  I shall keep reading.  It's been great reading through, kills the time until my M4 arrives. :) 

Cheers. :)
Phew, thats a lot of posts to go through ;-)
You are right, I never enabled the writing of files inside the dsk images, as there was never a big push for it.
As you say, you can read/write (including save/load basic) files in the native FAT32 filesystem, use long filenames & sub directories and transfer them easily via the web interface - much more convenient.

Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 09:44, 23 February 23
Quote from: waltermixxx on 15:35, 18 February 23Just a quick question,  is it possible to create a blank.dsk image put it on the sd card, and mount that disk image, then from basic 1.1 write and save basic programs to that mounted disk image, as if it were a floppy...  please let me know.  I have not received my M4 yet, so just wondering.
Create a blank image with an emulator,  transfer it to your M4 SD, change directory into it, here you are...
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 13:34, 23 February 23
Eventually I created a 16 KB XROM for FutureOS with full support for the M4 SD card. 

Right now it provides a (G)UI with function: 
- RUN, 
- TYPE (files, pictures, headers), 
- REName (files or create directories), 
- ERAse files and 
- Copy from different origins to one target (floppy, M4, HD20 hard-disc). 

All DIRectories are displayed in a sorted way.

Two DIRectories are displayed at the same time (right and left)

Next step: Since the XROM actually is more a stand alone extension, the next step is a better integration into FutureOS.

If somebody wants to do a test, please EMail (/PM) me.
Title: Re: Amstrad CPC WiFi
Post by: Duke on 15:21, 23 February 23
Quote from: GUNHED on 13:34, 23 February 23Eventually I created a 16 KB XROM for FutureOS with full support for the M4 SD card.

Right now it provides a (G)UI with function:
- RUN,
- TYPE (files, pictures, headers),
- REName (files or create directories),
- ERAse files and
- Copy from different origins to one target (floppy, M4, HD20 hard-disc).

All DIRectories are displayed in a sorted way.

Two DIRectories are displayed at the same time (right and left)

Next step: Since the XROM actually is more a stand alone extension, the next step is a better integration into FutureOS.

If somebody wants to do a test, please EMail (/PM) me.
That's great news @GUNHED - thanks for your work. Will check it out later.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:02, 23 February 23
Thanks, but it's not uploaded somewhere yet. 
Will come the next month. 
Like to make some kind of manual before. :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:44, 23 February 23
Quote from: GUNHED on 16:02, 23 February 23Thanks, but it's not uploaded somewhere yet.
Will come the next month.
Like to make some kind of manual before. :)
Ah, I misread. Thought it was ready (and attached) ;-) will have to wait then.
Title: Re: Amstrad CPC WiFi
Post by: GUNHED on 16:43, 24 February 23
This time I want to provide it fully fledged, guess people don't want to download 3 betas before.  :)
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 04:14, 25 February 23
Another quick question, the M4 board sent out to me, is the edge connector a 90 degree one, or the one that is parallel to the pcb?   :)   just wondering.  (if you could post a pick of the type of M4 board and edge connector that would be great.  I'm not sure my discription is clear...)   Cheers.

Title: Re: Amstrad CPC WiFi
Post by: Duke on 10:53, 25 February 23
Quote from: waltermixxx on 04:14, 25 February 23Another quick question, the M4 board sent out to me, is the edge connector a 90 degree one, or the one that is parallel to the pcb?  :)  just wondering.  (if you could post a pick of the type of M4 board and edge connector that would be great.  I'm not sure my discription is clear...)  Cheers.


(https://www.spinpoint.org/m4s.jpg)
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 13:20, 25 February 23
Thank you :)

so looking forward to this.

Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 22:50, 25 February 23
I have my ZXUno to keep me busy.  I've always wanted an Amstrad CPC6128.  :)
I think the M4 and a memory upgrade and CPC464 should pretty much get me there. :)
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 22:55, 27 February 23
it arrived!!! :) thank you Duke,  now all i need is the Ram card to plug in the IDC female connector and I'm all set. :)

time to bring the CPC 464 to the Dining room along with my RGB2HDMI and Monitor   :)

Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 00:30, 28 February 23
After cleaning my edge connector really well,  the M4 roared to life. :)
now I shall watch the Retro Noob's excellent video on how to get this all sorted out. :)

Cheers

Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 02:58, 28 February 23
hi there,  ok things are going well.  but I have run into a snag.... long file names...

I found the ~ but I cannot seem to use it when changing directories,  I can use a * to change a directory, but when I try and mount a disk image, or CD into a disk imag with a long name.dsk  I cannot seem to do that.   it seems to lock up.

wondering what the proper syntax would be to change into directory: verylong~1 and from there, mount or CD into  bugger~1.dsk   as the "~" does not appear when typing ctrl 2 ( the 2 key is working and a ~ appears if I type it normally, just not after a |CD (enter) and then try and type bugger~1.dsk   the ~ does not appear...:(

so |CD Bugger(tild does not show up when doing ctrl 2)1.dsk   is there a trick i have not managed to find?  please advise. :)   if it's in M4info.txt i could not find it. :) any help appreciated. :)
Title: Re: Amstrad CPC WiFi
Post by: Duke on 05:33, 28 February 23
Try using |ls instead |dir to get the long filenames and use them directly. Also use cursor/copy for the filenames, its quicker and no problems with symbols.

And why havent you upgraded to basic 1.1 yet ?
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 05:37, 28 February 23
I'll give it a go tomorrow.  

Thanks!  :0)
Title: Re: Amstrad CPC WiFi
Post by: Fran123 on 13:25, 28 February 23
Quote from: Duke on 10:53, 25 February 23
Quote from: waltermixxx on 04:14, 25 February 23Another quick question, the M4 board sent out to me, is the edge connector a 90 degree one, or the one that is parallel to the pcb?  :)  just wondering.  (if you could post a pick of the type of M4 board and edge connector that would be great.  I'm not sure my discription is clear...)  Cheers.


(https://www.spinpoint.org/m4s.jpg)
are all of them sold?
Title: Re: Amstrad CPC WiFi
Post by: Duke on 18:16, 28 February 23
Quote from: Fran123 on 13:25, 28 February 23are all of them sold?
Yes, still 76 on the waiting list - although I have put a lot of effort in bringing it down lately.
Title: Re: Amstrad CPC WiFi
Post by: waltermixxx on 00:55, 01 March 23
how many sold now?   (what number was mine, I want to put a "serial number" on it)   just awesome work there Mr. Duke!!!  this thing fu***ing rocks.   and your suggestion above worked great. :)   woot woot. :) 
Title: Re: Amstrad CPC WiFi
Post by: poulette73 on 12:23, 03 March 23
M4 Board card received today!! 😉

Thank you very much Duke, I'm so happy!
I'm going to try it over the weekend. 👍
Title: Re: Amstrad CPC WiFi
Post by: Iridium+ on 21:05, 21 March 23
So... Looking forward to this arriving!

C'mon Mr Postman, hurry up!

Quick question.

Near the beginning of this thread, someone found an enclosure (box/case) on eBay that was nearly perfect for the M4. Unfortunately that listing was a while ago now and the it's gone.

Does anyone know which case it was - the manufacturer and ideally the case number?

I'm not too keen on printed cases as they always look rough with a bad finish - certainly not worthy of putting an M4 in! 😂

Many thanks.

Steve
Title: Re: Amstrad CPC WiFi
Post by: Mage on 18:06, 22 March 23
Hello @Duke 

I would like to purchase one M4 Wifi board.
Can you tell me here (or in box) how to proceed please ?

Regards
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 11:26, 18 April 23
I have a short question regarding a simple program (in conjunction with the M4). Maybe I missed a point or something else?
CPC6128 + M4 Board as hardware (only ORGAMS or MAXAM installed as ROMs)


Following the simple (shortened) program below should just open a file for reading. I'm coding it in Notepad++, compile it with RASM through Notepad++ (with the NppExec extension)...
>cd $(CURRENT_DIRECTORY)
>rasm $(FILE_NAME) -ob  $(NAME_PART).BIN

...and transfer the binary directly onto the CPC (with a binary header)
>xfer 192.168.178.125 -u  $(NAME_PART).BIN / 2 8000 8000

Starting the file (on the CPC itself or via xfer) creates a "PRESS PLAY then any key:" message and crashes the CPC

The same code (unchanged!!) written directly on the CPC with ORGAMS or MAXAM compiled works perfectly?
(By the way.. the file created with RASM also works perfectly in WinApe emulator)

I'm a little bit lost, because I don't know why it is so??
Did I correctly do the command with xfer?

cas_in_open equ #BC77
buffer2k equ #7000
org #8000

;open file
ld b,fnameA_end-fnameA
ld hl,fnameA
ld de,buffer2k
call cas_in_open
jp nc,fileerror

;....afterwards I'm going to read with cas_in_char the first 2k into Buffer for further purposes

;Screen A
fnameA
db "SCREENA.BIN"
fnameA_end
;error
fileerror
 ld hl,msg_99
 call message
 ret
Title: Re: Amstrad CPC WiFi
Post by: Duke on 16:27, 18 April 23
Quote from: HAL6128 on 11:26, 18 April 23I have a short question regarding a simple program (in conjunction with the M4). Maybe I missed a point or something else?
CPC6128 + M4 Board as hardware (only ORGAMS or MAXAM installed as ROMs)


Following the simple (shortened) program below should just open a file for reading. I'm coding it in Notepad++, compile it with RASM through Notepad++ (with the NppExec extension)...
>cd $(CURRENT_DIRECTORY)
>rasm $(FILE_NAME) -ob  $(NAME_PART).BIN

...and transfer the binary directly onto the CPC (with a binary header)
>xfer 192.168.178.125 -u  $(NAME_PART).BIN / 2 8000 8000

Starting the file (on the CPC itself or via xfer) creates a "PRESS PLAY then any key:" message and crashes the CPC

The same code (unchanged!!) written directly on the CPC with ORGAMS or MAXAM compiled works perfectly?
(By the way.. the file created with RASM also works perfectly in WinApe emulator)

I'm a little bit lost, because I don't know why it is so??
Did I correctly do the command with xfer?

cas_in_open equ #BC77
buffer2k equ #7000
org #8000

;open file
ld b,fnameA_end-fnameA
ld hl,fnameA
ld de,buffer2k
call cas_in_open
jp nc,fileerror

;....afterwards I'm going to read with cas_in_char the first 2k into Buffer for further purposes

;Screen A
fnameA
db "SCREENA.BIN"
fnameA_end
;error
fileerror
 ld hl,msg_99
 call message
 ret

Try to re-init M4 rom first thing, ie:
ld de,0x40
ld hl,0xB0FF
call 0xBCCB

Otherwise cas* vectors point to tape handling (if no M4 dos or AMSDOS) - it's  similar to run"filename (which de-initialize all roms), contrary to load"filename":call execvec.
Title: Re: Amstrad CPC WiFi
Post by: HAL6128 on 22:08, 18 April 23
That's it. Thank you very much @Duke!

And it's so amazing how fast a file will be loaded from the M4 into memory and transfer it parallel into a memory expansion  (1-2 sec. for 30kB with firmware call cas_in_char).
Title: Re: Amstrad CPC WiFi
Post by: Iridium+ on 15:20, 20 April 23
By the way, I forgot to say thanks, Duke! Received  ;D
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 15:54, 18 May 23
Hi, I tried to fit my M4 card into my CPC4ATX but it doesn't fit.  I then had a closer look at the video below, and it appears the M4 card is a bit smaller than mine.  A new revision?  Can I buy one of these smaller M4 cards?

What are the main differences between revisions?

https://www.youtube.com/watch?v=DykFhtNbgGk&t=615s  (about 10mins 30s in)
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 21:33, 16 June 23
Hi, not sure if this is an m4 bug or a unidos bug, have you come across seeing the same filename more than once when performing a CAT?
Title: Re: Amstrad CPC WiFi
Post by: SkulleateR on 22:03, 16 June 23
Nope ... but I'm not using Unidos here ;)
Title: Re: Amstrad CPC WiFi
Post by: poulette73 on 06:51, 17 June 23
Quote from: zhulien on 21:33, 16 June 23Hi, not sure if this is an m4 bug or a unidos bug, have you come across seeing the same filename more than once when performing a CAT?
Hello,

I just tried to reproduce the bug, with M4 on a CPC 6128. M4 rom is installed in Rom slot 4.

I tried the 2 scenarios with UNIDOS rom, before (Rom slot 2) and after (Rom slot 6).
(https://i.servimg.com/u/f59/18/51/04/47/uni210.jpg)

(https://i.servimg.com/u/f59/18/51/04/47/uni110.jpg)

Every time everything works, I can't reproduce the bug on a CAT command.
(https://i.servimg.com/u/f59/18/51/04/47/cat11.jpg)


Title: Re: Amstrad CPC WiFi
Post by: zhulien on 12:04, 17 June 23
Thanks, I will see if I can find a pattern.  I usually use a fastest patch in mode 2, but unless another rom also has one I can't imagine that being the cause.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 12:06, 17 June 23
Is there a good file utility that works with m4 and x-mass so its easy to transfer?  One of my folders causes a reset if I try change into it within basic, but symbos doesn't crash.
Title: Re: Amstrad CPC WiFi
Post by: zhulien on 21:24, 18 June 23
Quote from: zhulien on 12:04, 17 June 23Thanks, I will see if I can find a pattern.  I usually use a fastest patch in mode 2, but unless another rom also has one I can't imagine that being the cause.
after further testing without UniDOS, I cannot reproduce it - but I cannot rule it out either - hmm, maybe the UniDOS M4 driver because it doesn't appear to be happening for UniDOS X-MASS - at least not yet, Thanks.
Powered by SMFPacks Menu Editor Mod