News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Duke

Amstrad CPC WiFi

Started by Duke, 07:36, 07 May 16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

breiztiger

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

Duke

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.

breiztiger

thanks for the tip

shifters74

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

pelrun

Simple fix: in parse.c change #ifdef __unix__ to #ifndef __unix__ or just delete that entire block.

shifters74

Great!!
Worked like a charm!!
Many thanks
Shifters

SOS

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)

shifters74

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

zhulien

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?

GUNHED

Hi @Duke : 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?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

VincentGR

That and add at least 512KB  ;D

asertus

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

KaosOverride

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...
KaosOverride · GitHub
MEGA Amstrad Public Amstrad folder

Duke

Quote from: GUNHED on 14:28, 18 June 20
Hi @Duke : 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!).

GUNHED

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.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

RetroCPC

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 :)

Duke

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.

zhulien

this must be the longest running thread for hardware on this forum, congrats for surpassing 100 pages!

GUNHED

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?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

genesis8

Quote from: GUNHED on 14:28, 18 June 20
Hi @Duke : 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)
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).


____________
Amstrad news site at Genesis8 Amstrad Page

RetroCPC

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.

GUNHED

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?
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

asertus

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.

GUNHED

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.  :) :) :)
http://futureos.de --> Get the revolutionary FutureOS (Update: 2023.11.30)
http://futureos.cpc-live.com/files/LambdaSpeak_RSX_by_TFM.zip --> Get the RSX-ROM for LambdaSpeak :-) (Updated: 2021.12.26)

robcfg

That is quite unusual, what model of router do you have?

Powered by SMFPacks Menu Editor Mod