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: 2335
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: 2335
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: 6262
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: 361
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: 6262
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: 361
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: 2335
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: 2335
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: 361
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: 153
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: 153
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: 2335
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: 6262
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: 2335
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:

Post Reply