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.

Topics - grognut

Pages: [1]
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


Ethernet Boards (8-bit) / Password help
« on: April 29, 2008, 05:08:48 AM »
Hi All,

For some reason my username/password stored in my unit has been lost/corrupted.
I want to hard code the password for now so I can at least log in and correct things. (I must admit that I haven't tried uploading new software so I may be completely stuck.)
BUT I can't find where the software checks the presented password with the stored one.
Can anyone help?

Also, has anyone had problems with code over 64k using the c18 compiler? I have problems with it crashing every few days and I don't want to be chasing my tail over somthing I can't control. If it's my software I'll have to fix it but if there's a compiler problem I'll have to start chopping out the dead wood.


Ethernet Boards (8-bit) / Greater than 64K of web pages
« on: October 23, 2007, 03:45:40 PM »
I seem to using circa 63K of eeprom for web pages. When I increase this above 64k the web pages aren't serve properly. I read in that I should fit a 128K eeprom.
I fitted a 24lf1025 but it didn't solve the problem.
I looked through the code and found that in the  function  XEESetAddr(unsigned char control, XEE_ADDR address)
it assumes a 16 bit address only. ie the type XEE_ADDR can hold 24 bits but this is truncated in the function. Also there is no apparent code for addresses higher than 64k.

Am I correct in assumpting that code changes are required?


Ethernet Boards (8-bit) / Firmware 3.06: Getting it running
« on: September 03, 2007, 03:51:32 PM »
Hi all,
I'm struggling again!

I've been using 3.04 firmware and have an application running with a few problems (sntp timouts and TCP conking out), so I thought I'd migrate to 3.06 to see if this would help.

I've down loaded 3.06 and m'chip 3.12 compiler
I compiled the software using "websrvr_mc_hw211.mcw" no errors but a few warmings.
I've loaded it into my board and used the default web pages supplied with the firmware.
It doesn't serve any pages. The configuration menu's work from the serial port but when I exit with '8' I get
"Now running application...
Running Application, IP address:"

I can upload web pages and the LED flashes but no HTTP

I believe that the software is OK or everyone would be screaming so I guess I must be doing something wrong.

Any ideas anyone!


Programming / printf
« on: September 01, 2007, 10:21:41 PM »

When using the C18 compiler I always get
Warning [2066] type qualifier mismatch in assignment
When using printf.
An example line is
printf("WriteI2C return -1\n\r");

Does any one have any ideas as to why, is there a compiler flag to set or something and is it a problem to the compiled code.

My code seems to work but I have a few strage behaviour issues and am trying to elimnate all possibilties.



Ethernet Boards (8-bit) / input=submit query
« on: August 31, 2007, 04:14:34 PM »
Hi all,

I have the following html code
Code: [Select]
<td><input type=text size=2 maxlength=4 name=f value=%wA1><input type=submit name=P value=Set></td></tr>
This produces and entry box and a submit button the screen.
My confusion is that when the button is pressed if need to catch 'f' in HTTPExecGetCmd to read the value from the entry box and not 'P'.

Can someone enlighten me as to the best practice for doing this.

Best regards

Ethernet Boards (8-bit) / input type=submit problem
« on: August 31, 2007, 04:09:42 PM »
Hi All,

I have a problem using "input type=submit" on a HTML page and I'm looking for some help.
I have the code
Code: [Select]

<tr><td><input type=submit name=T value="Get Time"></td></tr>
When I press the submit button HTTPExecGetCmd(....) is called, it catches param[0] == T and sets a variable which is used elswhere to start a SNTP call to get the time.
This works fine but I also have
Code: [Select]
<meta http-equiv="refresh" content="5">
at the beginning of the html page and every 5 seconds it refreshed the page and sets the variable to set the time.
How can I make it set the variable only the time when I press the button?

The obvious way is to set param[0] to some unused value but that seems a very clumsy way.

I'm using 3.04 software.

Thanks in advance


Ethernet Boards (8-bit) / A few words of help required refTCP
« on: July 26, 2007, 03:29:12 PM »
Hi all,

I'm using a modtronix board with version 3.04 software.
Part of my application consists of a TCP transfer where the Modtronix board is the server and a program running on a linux box is the client. The client requests data from the modtronix board using a 3 letter command every minute.

The problem I have is that about once per week the modtronix board apprears to stop responding and I have to power down to restart the TCP transfer. Prior to resetting the HTTP server is still working.
So this points to something going wrong in the TCP stack. OK I may be wrong but I want to make the application robust by doing some form of re-initialising to keep the unit running.
What I want to do is check that there has been a data access at least once every two minutes, if not then re-initialise or re-start TCP or similar.

This is where I need help. It's easy to get to a point to add the re-initialise code but what do I add.
My code is base on the TCPecho example so I'm executing a TCPlisten(port) at the initialisation stage and in the main loop checking the status of TCPIsConnected(tcpSocketUser) and acting accordingly, ie reading the received data checking the message and sending a reply.
Can I execute void TCPDisconnect( TCP_SOCKET s )  and then execute TCPlisten(port)  or is there something better to do.

FYI: My client program create a socket, connects sends data, does a non-blocking recv and then closes the socket. This is repeated every minute.


Ethernet Boards (8-bit) / 10 Bit ADC Conversion
« on: May 07, 2007, 02:40:22 AM »
Hi Guys,

I found a typo in "V3.04"  and V3.06RC2 of the server code

            #if defined(APP_USE_ADC8)
            AdcValues[adcChannel] = ADRESH;
            #elif defined(APP_USE_ADC10)
            AdcValues[adcChannel] = ((WORD)ADRESH << 8) || ADRESL;

Should read

            #if defined(APP_USE_ADC8)
            AdcValues[adcChannel] = ADRESH;
            #elif defined(APP_USE_ADC10)
            AdcValues[adcChannel] = ((WORD)ADRESH << 8) |  ADRESL;  // <---------------------------------

I guess others have rewritten their code but I was using it for debuging othe code.


ps Don't know how the smiley got in there!!!!!!!!!!!!!!!

Pages: [1]