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 - eagleeye

Pages: [1]
1
SBC66EC & SBC66ECL / TCPIP DEMO PAGE as shipped
« on: October 08, 2011, 05:13:01 AM »

Update June 2012
Our Netcruzer range of products has now got it's own web site at www.netcruzer.com, with a new forum at www.netcruzer.com/forum.
For all new posts relating to the Webserver Firmware, please USE THIS FORUM.


Hi
 Just a comment, I expected the SBC66EC when shipped to contain a web page for at least
manipulating the MXD2R so that I can start modifying it straight away as to my requirements.

Is this correct or am I suppose to download another set of webpages for an update on this forum somewhere?

If such a web page does not exist, it could also mean that the C code does not currently support the MXD2R and
I'll have to figure it out myself on how to access the MXD2R and the realtime clock from scratch?

Allan

2
Ethernet Boards (8-bit) / reverse polarity on sbc65
« on: February 07, 2010, 07:13:40 PM »
Hi
 I got some board where users plugged in DC voltage
with reverse polarity..

I checked the 7805 its working.. Any ideas on
what components to change to get it working again?
The board wont power up

Allan

3
Hi
 Looking at the old threads about the beta firmware for 3.10
there were some notes about not being able to build the firmware
source..

I manage to build mine and tested it on the IOR5E in 10 bit
a/d.

 I downloaded the websrvr68_v310.exe today
and extracted it to c:\68ec

I then COPIED mxwebsrv.c from websrvr65_v310.exe
over to the source folder.

1. Use MPLAB IDE.. open c:\websrvr68_v310\src\websrvr68_mc_hw221.mcp
2. Set project -> build options project -output directory = C:\68ec\websrvr68_v310\src\out
3. Set project -> build options project -library search path = C:\68ec\websrvr68_v310\src
4. Build it as release version (select  programmer = none)
5. browse the the out directory you should see websrvr68_mc_hw221.hex
6. use the bootloader to load it to the SBC68  - the LED should start flashing slowly
if not repeat the process by connecting the SBC68 DIRECTLY to the PC with manually
configured PC  IP addresses *192.168.1.123* and put the device in SAFE mode and punch it
192.168.1.1 as the target IP.

7. Compile the web pages from C:\68ec\websrvr68_v310\src\webpages\default
8. Upload the web pages (you should be successful)
 
At least now I can make use of my few SBC68 boards lying around.

Hope this helps those trying to build the source. Alternatively you
could simply use the fully built .HEX file in the src\ direectory if you
do not wish to build or change the source code.
 
I am using MPLAB IDE 8.4 and the latest version of the C18 compiler.

Allan

4
Ethernet Boards (8-bit) / filePutByte problems
« on: January 03, 2010, 02:33:29 AM »
 
Hi
 I am having some strange problems writing to files uploaded via
the webpage uploader.

The file is pre-filled with default data (ASCII)
Each line of data is terminated with a <CR><LF> so that
I can check it easily on the web. The file
is then compiled with the rest of the web pages
and uploaded.

Once uploaded the SBC65 Web server can display the file
no problems.

I found that If I change my filename or remove some other files
from the web page Image that I upload, my code works well
or it may fail.. such that the file pointer goes nuts and the data is written
incompletely and overwrites data in the file.

I have put plenty of Strings out the serial port to check
my logic and I can't find anything wrong.

Somehow the file offset pointer is getting destroyed
somewhere along the line.

I tried using the    XEEWrite(c);  process but also got
similar results.

The file is 158 bytes long..

Can someone tell me whats wrong?
 

Myfile.dat
 0<CR><LF>
*1*00:00-00:00**2*00:00-00:00**3*00:00-00:00*<CR><LF>
*2*00:00-00:00**2*00:00-00:00**3*00:00-00:00*<CR><LF>
*3*00:00-00:00**2*00:00-00:00**3*00:00-00:00*<CR><LF>


code snippet:

 FSEE_FILE_POS myfilepos = 0;
   FILE SBCDataFile;
.
.

strcpypgm2ram(fileName,(ROM char *) "myfile.dat");  
SBCDataFile = fileOpen(fileName, 0);

 if ((SBCDataFile != FILE_INVALID )&&( SBCDataFile != FSYS_NOT_AVAILABLE  ))

{

    myfilepos = (relay -1)  * (FILERECORDLEN+2);
    myfilepos = myfilepos + 3 ;// cater for relay pause offset

   FCB[SBCDataFile].offset =     myfilepos;   

 
a =0;
     do {
        c = relayOnOffStr[a];
         s= filePutByte(SBCDataFile,c);
       a++;
        } while ( (a < FILERECORDLEN) && s);


    c = 13;
     s= filePutByte(SBCDataFile,c);

    c = 10;
     s= filePutByte(SBCDataFile,c);


   fileClose(SBCDataFile);


   }

5
Ethernet Boards (8-bit) / SBC boards on PIC Emulators?
« on: July 11, 2009, 07:17:28 PM »
Hi
 Has anyone tried building the SBC68 or 65 code onto a PIC EMULATOR
so that you can interact with it just like a real board?

Also has anyone been able to get this woriking with
ICD2 so that the source can be debugged step by step?

Regds
Allan

6
Hi

 For those new to this board  :-)

 If you are loading the latest firmware for the SBC65 you need to note that the
file aval.cgi catered only for the previous 8 bit a/d.. The new
firmware now has 10 bit resolution so the A/D will return

0..1023 as opposed to 0..255 for the 8 bit firmware.

if you move to src\webpages\js_adc
and open aval.cgi


function write5v(i)
{
var num = i/(255/5);
var result = num.toFixed(2);
document.write(result);
}

.
.
.

Replace all  255 found to 1023 so that you
will get the correct outpuit. You can connect
a 5v directly to the MXD2R from its own regulated
source and you should see the correct values
when you upload the JS_ADC web page

Then compile and upload the webpage
to the board and you have a nice view of the
voltages as scaled down to 5 volts.


If yoiu want to try it using your own Windows internet Explorer
then

change

var AN0 = %n10 ;

to

var AN0 = 1023 ;

rename the file to .HTM from .cgi
click on the file and allow say yes to the security
warning.. you should see the correct value on
AN0.  You can change all the rest of the %xx to
various numbers  as though the SBC65 has changed
them.



 
Hope this helps.

Allan

7
Hi
 After downloading the production source for the SBC65ec, I still get
references to USART2 in the souirce as mentioned by other users
in the BETA source threads. 


Can the Admin please update the production source on the download
link for the SBC65EC?

I also noted that the link to examples are broken for the SBC65EC.

I finally managed to get this build prooerly - but not tested
on the board yet. I am using  HW 3.01

Anyway for those new to this.. the Project File for MPLAB released
in the source does not preserve all the correct parameters when moved from 1
version of MPLAB IDE to another.. 


To build this source conveniently just do the following
you need MPLAB IDE (any version), CC 18 3.02 or higher
mine is CC18 3.31

0. MPLAB IDE - Project Open -websrvr65_mc_hw211.mcp
1. MPLAB IDE - Configure - Projects - Uncheck Halt build on first failure
2. MPLAB IDE - Configure Select device - PIC18F6627 (mine was incorrect when the project file was loaded)


3. Project BUILD ALL

4. appcfg.c  - comment out references to serial2 as directed by the build errors
5. buses.c   -  as above

you can save WORKSPACE to a name of your choice so you can continue where
you left off.

In MPLAB IDE 8.33 there is a BULD CONFIGURATION on the project tab.. THis is set to
DEBUG , I am not sure if this has any impact on the modtronix source but you
may want to set it to RELEASE. Since we cannot use ICD on this source.

Anyway hope this helps for you doing this first time



 Allan

8
Ethernet Boards (8-bit) / help with Ping From SBC68EC?
« on: April 29, 2009, 08:21:39 AM »
Hi
 I am trying to experiment with Pinging my PC from the SBC68EC
I got this piece of code from user who is using the Microchip
Tcp/ip Stack and I got it to compile without errors by
adding it to mxwebserver.c
.
It seems to be that the current source code for
the modtronix does not support receiving reply
packets when a ping is sent to another device..

Can someone share their ICMP ping source
if they have done it?  I'm still  a beginner
and need some help

Thanks
Alllan



NODE_INFO PingDest;

void ping(IP_ADDR *IPAddr)
{
       
    NODE_INFO remoteNode;   
    int PingData[]="abcdefghijklmnnopqrstuwxvyz12345";
    int i;
    static int SeqNo=0;
   
    remoteNode.IPAddr = *IPAddr;
    for(i=0;i<6;i++)
    ICMPPut(&remoteNode,ICMP_ECHO_REQUEST,&PingData[0],32,0,SeqNo);

}

9
Ethernet Boards (8-bit) / Problems building websrvr68_v306
« on: June 08, 2008, 07:28:18 AM »
Hi
 I downloaded
1. websrvr68_v306
2. Mplab IDE 8.1
3. MPLAB-C18-Student-Edition-no-doc-v3_02

project file used: websrvr68_mc_hw221.mcp


When I tried to build I got the errors
C:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:354:Error [1105] symbol 'TRISF' has not been definedC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:354:Error [1101] lvalue requiredC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:358:Error [1105] symbol 'TRISG' has not been definedC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:358:Error [1101] lvalue requiredC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:374:Error [1105] symbol 'LATF' has not been definedC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:374:Error [1101] lvalue requiredC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:375:Error [1105] symbol 'LATG' has not been definedC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:375:Error [1101] lvalue requiredC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:412:Error [1105] symbol 'ADCON2' has not been definedC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:412:Error [1101] lvalue requiredC:\Documents and Settings\PB5\Desktop\modtronix\Modtronix\websrvr68_v306\src\appcfg.c:503:Warning [2053] return value expectedHalting build on first failure as requested.

The forum had some other person having a similar problem a long time ago.

The source code web page indicated: "MPLAB C18 V3.02 and higher compiler" But nothing on the IDE.
How can I fix this problem?

Eagleeye

Pages: [1]