Welcome! Log In Create A New Profile

Advanced

IoT (Internet of Things) Getting Started

Posted by ByHeck 
IoT (Internet of Things) Getting Started
November 29, 2014 02:25AM
I have just got the IOT.

I seem to have a few errors I can't sort out.

The menu shows up like in the documentation on start up.

But option 10 and option 11 are missing


Also in option 3 my wireless router (or anything else is not showing)

My laptop shows the wireless router + others nearby

When I put in the SSID and Password, it forgets it. But the screen says I only need to do it once

Its in WI FI mode 2

Firmware 00160901

The Blue LED flickers when I send commands so it looks as if everything is talking

The module shows up on my Laptop so that must be transmitting and receiving OK

Anyone have any ideas to what I may be doing wrong?
Re: IoT (Internet of Things) Getting Started
November 29, 2014 08:38AM
hello,
1) Option 3: shows the status of the ESP8266,it does not scan for the local Access Points
2) It will only remember a valid SSID and password, if they don't exist then it will not register them
3) The information on how to use the library is http://www.bypic.co.uk/index.php/ESP8266
Re: IoT (Internet of Things) Getting Started
November 29, 2014 11:48AM
Thanks for the pointers Jimeer

When I ordered the unit I thought I was buying a kit with a preloaded server
See the first picture on this page
[www.bypic.co.uk]
But you are right

I have purchased this by mistake
[www.bypic.co.uk]
See the first picture on this page
And the server options are not included in the menu

Not sure what I did wrong
Re: IoT (Internet of Things) Getting Started
November 29, 2014 12:44PM
Its not a problem you can load the server software yourself. The only thing is that the server software assumes there is an LED and temperature and humidity module present so the results returned will not be correct, but the server will still work.

1) Download the IDE, this is just a terminal emulator with an editor but the editor (PSPad) has some macros. http://www.bypic.co.uk/index.php/IDE
2) Establish communications with the ByPic through the new terminal emulator (you may be using this already). On the terminal emulator black screen type .edit ( dot edit) PsPadwill now appear.
3) On the black screen type flclear(0), this will remove all the ByPic firmware from flash.
4) Copy this URL to the clip board
http://www.byvac.com/mBlib/flb/Library/wifi/ESP8266_DHT.script
( select and ctrl C)

5) In PsPad select scripts>Open URL in Clip, then press ok to the small dialog box
6) You will now have a copy of the script, press CTRL+SHFT+R this will transfer the files to the ByPic
7) When complete (1 to 1.5 minutes) reset the ByPic by pressing .r (dot r) once or twice and you will now have the menus with the client and server on.

Let me know how you get on.

This firmware is intended for the Internet discovery kit so the details of how to use it will be in the link. But there will be no temperature or RH results.
Re: IoT (Internet of Things) Getting Started
November 29, 2014 01:41PM
Thanks Jimeer, your a start for spending your Saturday with me

I have tried the following

If I connect a ESP8266 either direct to my PC or to a PIC chip

Then send AT+CWLAP CR LF
I see the access points

If I send AT+CWJAP="ID","PW" CR LF
It connects and I can send a UDP

If I try to connect with the menu, nothing seems to happen


I followed "Example Walk Through"

It fails at join xxx xxx

Error 0

wflist give me a list of servers so I know I have typed the SSID in right

I have checked and reset the password 3 times, so that is right too

I will load your code next, a bit worried I could overwrite everything
Re: IoT (Internet of Things) Getting Started
November 29, 2014 01:51PM
OK I have the connection now.

My WIFI dongle as it comes out the box SSID has a " " and a "-" in it.
That's not uncommon

I have just changed the SSID to a Single word and hey presto, yip ee

There was no typo on my part, somehow the PIC + ESP8266 don't like space or -

Even though it shows up correct.

To tired to think about it now

Thanks again, your a STAR (not a start) sorry for the typo
Re: IoT (Internet of Things) Getting Started
November 29, 2014 02:03PM
That's good news.
Don't worry about wiping all the code, its designed so the user can put it back.

Try a few commands that are in the ESP8266.bas library, e.g. wflist() should list the access points near by.
Re: IoT (Internet of Things) Getting Started
December 04, 2014 01:28PM
Hi,

Downloaded software as above, it all downloaded OK after I connected the DSR pin

But now I have lost the menu

From OK, I can put in commands such as wflist() and the ESP8266 responds.

Just seem to have lost the menu with the server
Re: IoT (Internet of Things) Getting Started
December 04, 2014 01:58PM
have you tried menu()
Re: IoT (Internet of Things) Getting Started
December 04, 2014 02:21PM
Hi Jim

"have you tried menu"

Not sure what you mean

Since I loaded the new software the old menu has disappeared and the new menu does not show either.
Re: IoT (Internet of Things) Getting Started
December 04, 2014 03:05PM
Sorry I didn't look at the previous posts.

1) I am assuming you have a BV508
2) You have wiped all the firmware with flclear(0) and loaded a script
3) If the menu is not there but wflist() is then I think you have downloaded the ESP8266.bas library as part of the script from this page.
4) Use flclear(0) again and down load the firmware from this page. The green script file at the top of the page. This has the menu() firmware. The script is in fact for the wi-fi kit but will work with the BV508 and provide a menu.
5) As an alternative you could keep the library and just download the menu part which is in the above script.
Re: IoT (Internet of Things) Getting Started
December 04, 2014 04:50PM
That's the same link as above that I am using

It gets to
Sending flsave("")
Waiting for Bytes to save
Sending reset
Waiting for ok
Time out waiting for ok
Re: IoT (Internet of Things) Getting Started
December 04, 2014 05:04PM
One or more of the programs in the script is not loading, which one is it? When the script is loading it tells you the file and the function on the back screen, which was the last file loaded?
Re: IoT (Internet of Things) Getting Started
December 04, 2014 06:06PM
[main.bas](157) function: main()
Re: IoT (Internet of Things) Getting Started
December 05, 2014 08:08AM
That is the last function so everything is loaded okay. From the information given a reset will give you the menu, if not then either I have missed something from the information above or there is some information missing that would tell me why you are not getting the menu.
From the above there is no reason why you are not getting a menu?
Sorry, you do not have permission to post/reply in this forum.