Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - grognut

Pages: [1] 2 3 4
1
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 17, 2012, 04:44:08 AM »
Hi gr,

My external eeprom is the normal size.

When I uploaded the code I load the default eeprom values to get back to basics so it was likely that the password would have gone back to default at that point.

Looking throught the code I found "void appcfgInit(void)" in appcfg.c which is called from main(). Looking at this it seems that the IP addresses etc are stored in the processor eeprom.

Prior to uploading the default pages the board did work properly. ie it displayed the Modtronix ones that had remain in the external eeprom. I uploaded the pages to test how much of the system was working.

My pages are stored in the first 64Mbyte of an external SDcard these did not need uploading because once I had my code in there they worked. Uploading them was to test the system further. Initially had trouble ftping to it but once I had selected the correct password and user it was OK. I also think some of the problem was having my WiFI still enabled.

I'll be hardcoding as many parameters as possible from now on so I can avoid problems in the future.

From this there could be a problem with the eeprom or it could have been simply overwritten by my code. The overall problem was that some of the paramters were zero eg the bootloader wait time so I could never upload without restoring the board to factory defaults.

Many thanks


2
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 16, 2012, 12:55:57 PM »
Got it working. Here's how.

I took the latest Modtronix software I had which had a source for V2.11 hardware. I changed the default IP and port addresses and re-compiled.
I put it into safe mode and loaded the software and the led flashed driven by the installed software. I up loaded the default web pages and these worked so I changed the defaults to something sensible like 8 seconds of bootloader delay instead of the zero it was.
I then uploaded my software and the web pages were there in the SDcard as before.

One significant thing was the disabling of my Wifi network at some point along the trail. I think this made a significant difference but I can't remeber exactly when I disabled it.

One more thing to fix is the ftp. I get 530 login required when tring to upload web pages. I'm using the same password/username to configure the board through the web page so it should be correct.
Any ideas??

edit: now working using the default password and user. Must be in eeprom from when I loaded the eeprom with the V3.10 software.

Cheers

3
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 14, 2012, 01:21:48 PM »
I've check the eeprom size and it's 512 so there should not be a problem there.

When I reload the software in safe mode and reboot out of safe mode I do not get any characters out of the serial port. I've looked with a 'scope and nothing.
I've loaded 304, 306 and 310 none work. I'm begining to think that the board has developed a fault.
I'll get to it with a 'scope tommorow evening and see what I can find. It still could be a duff eeprom. I'll have to get another.

Many thanks

4
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 14, 2012, 12:14:57 AM »
Hi,
Thank for your suggestions.

One question is whether the board should talk FTP on 10.1.0.1 in safe mode after reloading the default software and leaving it in safe mode. I can't remember if I tried it. I think I did but I'm not sure.

I supppose it could be a duff eeprom. The only thing that make me think it's not is that I could change the ip address and the http port number with the original software.
I need to get hold of another one.
I think I'm going to have to make up a serial lead and try it because I did read that someone managed to sort out the board using the serial lead when other interfaces failed.

I've just thought of something. I recall looking at using a larger eeprom and I need to check what's fitted. If it is the 24lc1025 then it's possible that the standard software won't work with it.

I'll look this evening (UK time).

5
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 13, 2012, 11:25:11 AM »
Now I'm a little stuck and I'm sure someone can help me.

I've put the unit into safe mode and set my local machine to IP address 10.1.0.2 and connected the board to the PC with a crossover cable.
I downloaded 3.04 stack from the Modtronix website and unzipped it.
I ran the Bootloader and connected to 10.1.0.1 and reflashed it with the following results:
<-
19:10:04.718 - Trying to connect with Target..
19:10:04.796 - Found: SBC65EC, Hardware V2.11 (PIC18F6627)
19:10:04.812 - Bootloader V1.0
19:10:04.812 - Successfully connected
19:10:46.531 - Do not close program or switch target's power off!!
19:10:46.546 - Upgrading firmware...........................
19:10:46.546 - Erasing Target...
19:10:48.609 - Target successfully erased
19:10:49.000 - Programming target FLASH from 0x800 to 0x7235............................
19:10:54.281 - Target successfully programmed!
19:10:54.312 - Target exited bootloader mode
19:10:54.312 - Target has been reset
->
So I conclude that it now has original firmware in it
I powered it down, put the link back to normal and removed the eeprom. I powered it up and replaced the eeprom but I cannot connect with a browser so I deduce the webpages are corrupt. Using the bootloader I try to up load the default web page using admin and pw but the ftp will not connect.
I've also tried Filezilla on 10.1.0.1 to see if I get a connection but no luck.

I assume I'm missing something.

Has anyone any ideas?

6
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 13, 2012, 04:58:43 AM »
Hi gr,

On powerup I notice the LED flashes once so I guess its OK but that's not the real problem.

Unfortunatley the bootloader startup delay is zero so it will not run and it won't set to any other value although I can set the IP address and port numbers. Having searched the forum some more I will try the safe mode after hard coding the essential parameters and try to see it the eeprom has died.

I keep the web pages in an SD card so the eeprom only contains the system parameters.

One solution is to use an ICD2 with care. This has the benefit of allowing the normal debuging.

Cheers




7
Ethernet Boards (8-bit) / Re: Can't set check boxes on SBC65EC
« on: February 11, 2012, 11:16:22 PM »
On further investigation I discover that the Bootloader startup delay is also zero and I can't set it to non-zero so the Network Bootload software can't connect with it.

Does anyone have any ideas on how to get round this.
If I can re-program the board I can fix all the flags in code.


Cheers

8
Ethernet Boards (8-bit) / Can't set check boxes on SBC65EC
« on: February 11, 2012, 12:40:43 PM »
Hi All,

I've had a SBC65EC running for many years and a few months ago I noticed that the LED was no longer flashing. I reset the board and it did not flash so assumed a led failure.
 
I've since moved house and powered up the board and it serves web pages but ALL the system tickboxes are unchecked. I can check them and run update but then the page comes back with them unchecked.
I can change the server port number and this sticks.

I've tried connecting with the latest version of the bootloader but it will not connect.
As the led flashing is controlled by the web page I assume that this failure took place some time ago.
I've also noticed that I don't need to login to see the system pages.

Also as the newwork bootloader is enabled by one of these sheck boxes I'm stuck 'cause I can't up load any debug code.

I'm running Stack Version V2.47 and Web Server Version V3.06.

Has anyone any ideas on how to fix this.

Many thanks in advance

Andy

9
Projects / Re: webserver relai and Opto cupler - board selv made
« on: April 09, 2009, 11:05:02 AM »
Hi Helmut,

I was hoping to add comments to the code but I don't have time so I'm posting it now.

The wind direction software was written by me, based on an algorithm I found on the web. I would like to give credit to the author but I can't remember who it was. I will post the credit at a later time.

I had a few problems talking to the wind direction unit as you see in the code, but it worked in the end. Unfortunately I haven't had a chance to install the anemometer because I haven't got easy access to my roof. It's the AAG device by the way.

As I said in an earlier post the hardware interface I use the DS2482. I used SKpang's board (http://www.skpang.co.uk/catalog/product_info.php?cPath=33_35&products_id=136) which worked well. It comes with an RTC and locations for eeprom. If you don't use the DS2482 you will need to write low level drivers for the one wire system. It's not difficult, I have done it before on an 8051 and the Dallas web site is good for info. I may be able to help you with this if you need it. The biggest problem is that the timing requires interrupts off for up to 500us which may be a problem in some systems, ie buffering in a uart with less than a two byte buffer at 19200 baud.

If you need any explanations I will help as well as I can.

Good luck

Grognut


10
Projects / Re: webserver relai and Opto cupler - board selv made
« on: April 05, 2009, 01:17:24 PM »
Hi,

There are two ways to get a steady signal from 50Hz.
1) Supply side: assuming you already have a diode and a high voltage, current limiting resistor in series with the opto diode you need to place a capacitor across the diode. I'm not quite sure what value you need but it must be sufficient to supply enough current into the opto diode for approx 20ms. When the supply voltage is under the value to energise the opto diode the capacitor will discharge into the diode and keep it on until the supply voltage reaches a high enough voltage.

2) Isolated side: assuming the opto is a open collector transistor you will need a capacitor across the pull up resistor. When the opto transistor is on the the capacitor will be charged to the isolated supply voltage. When the opto transistor switches off the capacitor will discharge through the pull up resistor and the voltage will rise slowly.


The software I have is written in C and is working on  a modtronix webserver. I will tidy up the code and add comments and put on this forum for all. It will take me a few evenings.


Good luck,

Grognut.

11
Projects / Re: webserver relai and Opto cupler - board selv made
« on: April 05, 2009, 01:00:49 AM »
Hi Helmut,

Your English is better than my German.
I followed the links but they are in German so I could go much further.

Are you asking why you may need zero crossing or how to detect an a.c. input though the opto couplers?

I have code for the DS18S20 which I believe is similar to the 18b20.
I have used the SKPang 1-wire interface board and some of his supplied routines. I can send my code but it is not very tidy but it has worked for several years over 30m of cat5e cable.

Let me know if you feel that it is useful to you.

Regards
Grognut

12
Ethernet Boards (8-bit) / Re: Password help
« on: September 23, 2008, 01:22:50 PM »
Hi mattp,

I've actually forgotten exactly how I fixed my problem.
I think I reloaded the eeprom data from a software upload after setting the declarations in the source code.

I don't know enough about HTTP authentication to be able to help you unfortunately.

After having some reliability problems, my application has been working without any intervention for several months now.


Regards
Grognut.

13
Ethernet Boards (8-bit) / Re: Password help
« on: May 04, 2008, 11:44:18 PM »
AND
I've just noticed the memory model options for C18. I'm now trying it with large memory model to see if that's the problem. If not it's throw out code until I find the broken bit.

Thanks All

Grognut

14
Ethernet Boards (8-bit) / Re: Password help
« on: May 04, 2008, 11:17:40 PM »
hi kometen,

Thank you for that info. I've found this code and reading further I beleive that this can be extracted from the hex file by the Modtronix bootloader and programmed into the board when uploading code. So I'm going to type in my defaults and give it a try when I'm in a position to recover if any thing goes wrong.

Grognut

15
Ethernet Boards (8-bit) / Re: Password help
« on: May 02, 2008, 03:34:14 PM »
Hi Niroblock,

Thanks for you reply.
I tried Brutus Ae but it kept giving errors.

So I searched the software again and found the line
Code: [Select]
httpInfo->flags.bits.bUserLoggedIn = TRUE;in HTTPProcessHdr.
Putting it at the end of the function bypasses the login user/password requirement.
Then on the config web page I enter a new user and password but this does not take and when I log in again it rejects me.
So I'm not out of the woods yet but I do have a useable system again.
It's odd that i can still upload ftp and code which use the same password. Mmm! I wonder if its a web browser problem!

Regarding the C18 compiler. It's the application code on the modtrox board that crashes not the compiler. I don't know if saying this will change your answer?.

regards
grognut

Pages: [1] 2 3 4