Cheap web-modem for the beeb/master (and arc if ya like!)

for bbc micro/electron hardware, peripherals & programming issues (NOT emulators!)
User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Fri Jul 13, 2018 10:56 am

Elminster wrote:
Fri Jul 13, 2018 10:00 am
Okay Scratch that it is working now. I wonder if it was just the Freewifi sketch when run on Lolin hardware that was issue. Wasnt a typo as was copy and paste.
Scratch my scratch.

If I enter ATWIFI in vritual console it works, if I do it in commstar terminal it errors. Phew. I dont like things work and not working randomly. Least I now see a pattern.

But once the pwd is enter via the virtual terminal the master prestel bits work fine.
prestel.jpg

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Fri Jul 13, 2018 10:57 am

marcusjambler wrote:
Fri Jul 13, 2018 10:28 am
Annnd... The bits n bobs finally arrived.

I have it working on a Master and a Beeb B... except its not as pretty as teletext.
There's something I'm missing I think.

IMG_4063a.jpg
Did you remember to exit terminal mode and go into prestel mode ?
term_em.jpg
i.e. <esc> # C

pre_em.jpg
Last edited by Elminster on Fri Jul 13, 2018 10:59 am, edited 1 time in total.

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Fri Jul 13, 2018 11:08 am

Use commstar version 1.4. Once connected change from terminal to viewdata mode and ensure you press I and change the speeds back to 2400 before pressing C to enter chat mode again (ie connect to the modem).

Commstar 2 won't work.

User avatar
marcusjambler
Posts: 465
Joined: Mon May 22, 2017 11:20 am
Location: Bradford
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by marcusjambler » Fri Jul 13, 2018 11:09 am

Did you remember to exit terminal mode and go into prestel mode ?
IMG_4066a.jpg
=D> =D> I was religiously selecting the wrong mode :lol:
Its not entirely clear which is which on the commstar 1.4 settings screen ( my excuse anyway )

Thanks Elminster

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Fri Jul 13, 2018 11:10 am

Duncan, I'm assuming it's a character in your password that's different on the beeb... No idea what though. Once the WiFi is set up the esp12 remembers it.
d.

User avatar
marcusjambler
Posts: 465
Joined: Mon May 22, 2017 11:20 am
Location: Bradford
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by marcusjambler » Fri Jul 13, 2018 11:17 am

Ah... I've spotted it ( Emulate : Prestel ) at the top of the screen :oops:

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Fri Jul 13, 2018 11:21 am

marcusjambler wrote:
Fri Jul 13, 2018 11:17 am
Ah... I've spotted it ( Emulate : Prestel ) at the top of the screen :oops:
Yep. That is why I did a screenshot for you above :)

Edit: perhaps I should have given more context I.e. bigger screen shot.
Last edited by Elminster on Fri Jul 13, 2018 11:34 am, edited 2 times in total.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Fri Jul 13, 2018 11:24 am

danielj wrote:
Fri Jul 13, 2018 11:10 am
Duncan, I'm assuming it's a character in your password that's different on the beeb... No idea what though. Once the WiFi is set up the esp12 remembers it.
d.
Almost certainly.

I expect other testers don’t have a very long password which is a mixture of case, numbers , punctuation and small gnomes.

I guess it needs to be classified as a ‘feature’

Edit: Although they are all standard ASCII characters. Guess I will have to hack the code to print out the character value it is about to send and spot the difference.
Last edited by Elminster on Fri Jul 13, 2018 1:06 pm, edited 2 times in total.

User avatar
marcusjambler
Posts: 465
Joined: Mon May 22, 2017 11:20 am
Location: Bradford
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by marcusjambler » Fri Jul 13, 2018 1:31 pm

Congratulations on another awesome project Daniel =D>

johnkenyon
Posts: 180
Joined: Wed Jul 20, 2011 2:21 pm
Location: Coventry
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by johnkenyon » Fri Jul 13, 2018 4:31 pm

danielj wrote:
Fri Jul 13, 2018 11:08 am
Use commstar version 1.4. Once connected change from terminal to viewdata mode and ensure you press I and change the speeds back to 2400 before pressing C to enter chat mode again (ie connect to the modem).

Commstar 2 won't work.
Why don't you patch Commstar so that it starts in 2400 baud mode for both Terminal and Prestel Mode?

Prestel mode:
&9497 Change from &04 to &05 (transmit speed)
&9498 Change from &01 to &05 (receive speed)
Terminal mode:
&92CD Change from &03 to &05 (transmit speed)
&92CE Change from &01 to &05 (receive speed)

Other speeds - look at OSBYTE 7/8 noting that Commstar doesn't support 19200

John

johnkenyon
Posts: 180
Joined: Wed Jul 20, 2011 2:21 pm
Location: Coventry
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by johnkenyon » Fri Jul 13, 2018 5:00 pm

OK, I've been keeping this one to myself for too long.
I've posted an annotated disassembly of the Commstar 1.40 ROM at viewtopic.php?f=32&t=15377

If someone wants to provide me with the strings you need to send, I'm willing to either hack together a version which will send the init strings when you hit the otherwise unused F4 or F6 keys in Prestel mode. (Note I don't have the web-modem thingy)

Note that Commstar fits snuggly in an 8k ROM - there's another 8k of ROM there to play with and that's before you think about the "Get Emulation" extension (which you can't access from Prestel mode...)

/John

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Fri Jul 13, 2018 9:24 pm

Elminster wrote:
Fri Jul 13, 2018 10:56 am
Elminster wrote:
Fri Jul 13, 2018 10:00 am
Okay Scratch that it is working now. I wonder if it was just the Freewifi sketch when run on Lolin hardware that was issue. Wasnt a typo as was copy and paste.
Scratch my scratch.

If I enter ATWIFI in vritual console it works, if I do it in commstar terminal it errors. Phew. I dont like things work and not working randomly. Least I now see a pattern.

But once the pwd is enter via the virtual terminal the master prestel bits work fine.

prestel.jpg
Scratch the scratch of my scratch.

Fully working now, not sure why. They matched in the virtual terminal before, but Virtual input worked and beeb didnt. Went to all the effort of making it print the ascii value before sending .... and now it works on both. It is a conspiracy I tell you.

Although I did notice it seems to behave better if you turn the beeb on and off after flashing (the board), even if they actually connected together, which makes no sense, but several times it has fixed issues I had without me changing anything at all.

So all working properly, although not sure why it didnt for a couple of days, I havent changed about how the code works, not changed any config on the access point, and not changed anything on the Beeb. Maybe it is old age creeping up on me. Or my natural 'breakability'.

But at least I realised a couple of feature enhancements that are/were required on the code for freewifi when it comes out, and got all my cables sorted.

Just need Daniel to pull his finger out now =D>
Last edited by Elminster on Fri Jul 13, 2018 9:26 pm, edited 1 time in total.

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Sat Jul 14, 2018 7:05 am

Glad it's working! Only "enhancement" I'm intending to add is the dacom compatibility mode and eeprom saving of various settings. If anyone wants anything else I would encourage them to contribute it :D

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Sat Jul 14, 2018 8:46 am

You just don’t get the same level of customer service these days :evil: :wink:

User avatar
edcox86
Posts: 18
Joined: Wed Sep 01, 2010 10:02 pm
Location: Kidderminster
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by edcox86 » Sat Jul 21, 2018 1:40 pm

Would it be possible to purchase one of these pre-ensembled from anywhere/one? The technical know how on here never ceases to amaze me!

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Sat Jul 21, 2018 1:51 pm

You might be best off waiting for the freewifi module Daniel is doing in another thread. Then persuade him to build some!
Last edited by Elminster on Sat Jul 21, 2018 1:51 pm, edited 1 time in total.

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Sat Jul 21, 2018 1:54 pm

Or someone else. It's an open source design :)

d.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Tue Oct 16, 2018 9:27 pm

Random question, what was the telnet server for? Not really mentioned int the docs unless I missed something. Was this for some future expansion?, or came from code sniffled from somewhere?

User avatar
trixster
Posts: 693
Joined: Wed May 06, 2015 11:45 am
Location: York
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by trixster » Wed Oct 17, 2018 6:34 pm

E13B5D56-E071-49D0-911F-88748F918E47.jpeg
8338982B-E501-4620-BA53-BEE1B6958AF9.jpeg
7B7CB0A7-44B1-4BD0-A5DB-CA422B723700.jpeg
Woohoo! Up and running! :) =D>
A3020 | A3000 | A420/1 | BBC B + 128K RAM/ROM + 20K Shadow + Pi0 + VideoNuLA
Master Turbo + DC + BeebSID | Atom | A4000 060 | A3000 060 | A1200 060 | A500
Atari Falcon 060 | Saturn | PS1 | SNES | CPC6128 | C64 | 3DO | MD | Jaguar

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Wed Oct 17, 2018 7:57 pm

Elminster wrote:
Tue Oct 16, 2018 9:27 pm
Random question, what was the telnet server for? Not really mentioned int the docs unless I missed something. Was this for some future expansion?, or came from code sniffled from somewhere?
It was in the original software. Not documented as I never played with it. I'm fairly sure if you telnet into the esp12E it'll issue a "RING" allowing a piece of BBS software to pick up...

d.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Wed Oct 17, 2018 8:06 pm

danielj wrote:
Wed Oct 17, 2018 7:57 pm
Elminster wrote:
Tue Oct 16, 2018 9:27 pm
Random question, what was the telnet server for? Not really mentioned int the docs unless I missed something. Was this for some future expansion?, or came from code sniffled from somewhere?
It was in the original software. Not documented as I never played with it. I'm fairly sure if you telnet into the esp12E it'll issue a "RING" allowing a piece of BBS software to pick up...

d.
Yes. You can pick it up ok with ATA and words appear on the ESP serial typed on termianl, but that is about all you can do currently. wasnt sure if you had anything else in mind. Answer that question. Thanks.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Wed Oct 17, 2018 8:07 pm

trixster wrote:
Wed Oct 17, 2018 6:34 pm

Woohoo! Up and running! :) =D>
Hopefully worth the wait :)

User avatar
trixster
Posts: 693
Joined: Wed May 06, 2015 11:45 am
Location: York
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by trixster » Wed Oct 17, 2018 9:05 pm

It certainly is! It’s very cool indeed :)

So is it possible to connect to bbs’s as well, such as those that are hosted for c64s, Amstrads and Amigas?
A3020 | A3000 | A420/1 | BBC B + 128K RAM/ROM + 20K Shadow + Pi0 + VideoNuLA
Master Turbo + DC + BeebSID | Atom | A4000 060 | A3000 060 | A1200 060 | A500
Atari Falcon 060 | Saturn | PS1 | SNES | CPC6128 | C64 | 3DO | MD | Jaguar

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Thu Oct 18, 2018 5:41 am

Of course, it's just a serial link - so long as you can display what they're sending.

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Thu Oct 18, 2018 5:44 am

Elminster wrote:
Wed Oct 17, 2018 8:06 pm

Yes. You can pick it up ok with ATA and words appear on the ESP serial typed on termianl, but that is about all you can do currently. wasnt sure if you had anything else in mind. Answer that question. Thanks.
You really need to learn how to sound less demanding!

It's a fork of open source software. You can see the source, and do what you like with it! I just made it work for my purposes and didn't remove anything that was already there.

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Thu Oct 18, 2018 8:10 am

Demanding? I wasn’t asking you to do anything. 😊 Was exactly because I have forked and playing with the code That I was wondering what you had intend to do, if anything, it.

User avatar
danielj
Posts: 6693
Joined: Thu Oct 02, 2008 4:51 pm
Location: Manchester
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by danielj » Thu Oct 18, 2018 8:22 am

Smileys go a long way :)
It is just code that was there already. As I think I said somewhere else though, I'd recommend considering the zimodem fork I've got here:

https://github.com/drdpj/Zimodem

It's better firmware with more features. I've just not implemented hardware flow in hardware yet...

User avatar
Elminster
Posts: 3143
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK
Contact:

Re: Cheap web-modem for the beeb/master (and arc if ya like!)

Post by Elminster » Thu Oct 18, 2018 8:42 am

danielj wrote:
Thu Oct 18, 2018 8:22 am
Smileys go a long way :)
It is just code that was there already. As I think I said somewhere else though, I'd recommend considering the zimodem fork I've got here:

https://github.com/drdpj/Zimodem

It's better firmware with more features. I've just not implemented hardware flow in hardware yet...
:) :) :) :) :) :) :) :) :) :) :) :) :)

Ok so are you saying to not fork and tweak your 'official' firmware for FreeFI232 (on stardot) and instead fork drdpj? Don't think I saw that post before. But then I am not active in anything thing to do with C64s so maybe it got mentioned on a post there.

Interesting I see drdpj has a seperate fork of esp8266_modem (but the source of the fork is a different fork/leg of esp8266 to the stardot fork of the same base). So I am assuming that you now think the zimodem code base is a better starting point then esp8266_modem, but this hasnt been retweaked for starfot repo. Hmm. And I was just starting to get my head around the latter as well.

Edit: So it makes sense.

Edit2: Hmm This branch (Zimodem) is much more complicated that the originally stardot one. Might just stick with the stardot one for now, at least until I get around to get more to grips with arduino/ESP type sttuff.
Last edited by Elminster on Thu Oct 18, 2018 2:03 pm, edited 2 times in total.

Post Reply