Author Topic: Amstrad CPC WiFi  (Read 329314 times)

0 Members and 4 Guests are viewing this topic.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1750 on: 21:08, 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:
Code: [Select]
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$ ??
« Last Edit: 22:07, 03 August 17 by Duke »

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1751 on: 22:02, 03 August 17 »
Simple solution to turn it into a variable:
Code: [Select]
80 B$="":LOCATE 1,2:FOR n=0 TO 8:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1752 on: 23:26, 03 August 17 »
Simple solution to turn it into a variable:
Code: [Select]
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

IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1753 on: 23:46, 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:
Code: [Select]
80 B$="":LOCATE 1,2:FOR n=0 TO 18:B$=B$+CHR$(PEEK(&908B+n)):NEXT:PRINT B$

Also do a:
Code: [Select]
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.
« Last Edit: 23:54, 03 August 17 by Duke »

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 919
  • Likes Given: 141
Re: Amstrad CPC WiFi
« Reply #1754 on: 15: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!
Targhan/Arkos

Arkos Tracker 2 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1755 on: 22: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

IRC:  #Retro4All on Freenode

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 919
  • Likes Given: 141
Re: Amstrad CPC WiFi
« Reply #1756 on: 15: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?
Targhan/Arkos

Arkos Tracker 2 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1757 on: 23:52, 20 August 17 »
@CraigsBar & @Targhan

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

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1758 on: 00:29, 21 August 17 »
@CraigsBar & @Targhan

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

IRC:  #Retro4All on Freenode

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1759 on: 18:21, 21 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

IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1760 on: 20:23, 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..

Offline Targhan

  • Supporter
  • 6128 Plus
  • *
  • Posts: 959
  • Country: fr
  • Liked: 919
  • Likes Given: 141
Re: Amstrad CPC WiFi
« Reply #1761 on: 21: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 :).
Targhan/Arkos

Arkos Tracker 2 - alpha 7 now released! - Follow the news on Twitter!
Disark A cross-platform Z80 disassembler/source converter

Imperial Mahjong
Orion Prime

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1762 on: 22:14, 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 ;)

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1763 on: 23:32, 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

IRC:  #Retro4All on Freenode

Offline AlexD

  • CPC464
  • **
  • Posts: 15
  • Country: fr
  • Liked: 3
  • Likes Given: 0
Re: Amstrad CPC WiFi
« Reply #1764 on: 12: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.



« Last Edit: 12:47, 23 August 17 by AlexD »

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1765 on: 15:18, 23 August 17 »
@AlexD

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.

Offline AlexD

  • CPC464
  • **
  • Posts: 15
  • Country: fr
  • Liked: 3
  • Likes Given: 0
Re: Amstrad CPC WiFi
« Reply #1766 on: 16:48, 23 August 17 »
I use the standard CPC cartridge, I downloaded SymbIRC from http://members.home.nl/evanzanten/appstore/


Offline blackdalek

  • Supporter
  • CPC6128
  • *
  • Posts: 225
  • Country: au
  • Fraser
  • Liked: 96
  • Likes Given: 289
Re: Amstrad CPC WiFi
« Reply #1767 on: 19: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?
CPC6128 modded with ABBA switch. External 5.25" floppy drive with side switch and Multiface 2. Now also sporting a joystick splitter and M4 WiFi board.

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1768 on: 19:50, 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).

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1769 on: 15: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

IRC:  #Retro4All on Freenode

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.084
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3929
  • Likes Given: 410
Re: Amstrad CPC WiFi
« Reply #1770 on: 15:31, 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.

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1771 on: 15: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

IRC:  #Retro4All on Freenode

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.084
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3929
  • Likes Given: 410
Re: Amstrad CPC WiFi
« Reply #1772 on: 15:49, 05 September 17 »
Does the M4 allow you to replace the lower ROM? I wasn't aware of that feature.

Bryce.

Offline CraigsBar

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.280
  • Country: ie
  • The party ain't over yet
    • index.php?action=treasury
  • Liked: 1171
  • Likes Given: 79
Re: Amstrad CPC WiFi
« Reply #1773 on: 16:26, 05 September 17 »
Yes it does.

Sent from my ONEPLUS 3t using Tapatalk
IRC:  #Retro4All on Freenode

Offline Duke

  • Supporter
  • 6128 Plus
  • *
  • Posts: 1.137
  • Country: dk
    • spinpoint.org
  • Liked: 1221
  • Likes Given: 918
Re: Amstrad CPC WiFi
« Reply #1774 on: 17:43, 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.