Skip to main content

Messages

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

Messages - mcdanne82

1
Web platform / How to create a new file?
Hi
I run a modified version of MCstackDemo2.
I would like to ad a type of log file to the webserver. If the log file dosent exist it should be created.
Have anybody tested something like this?

//Daniel
3
Web platform / Change MPFS max size
Hi!

It seems that the "MCstackDemo2" demo has a max limit of 128k webpages. If it is bigger none webpage works.
Is it possible to change the max size?


"GENERATED MPFS2 IMAGE: 127592 bytes" = Works
"GENERATED MPFS2 IMAGE: 133273 bytes" = Dosent work
5
Web platform / How to use the EEPROM?
Does anybody have same example code to read/write a byte array and LONG value to the EEPROM or SD card of the webserver.
How do you know what positions that is free and which is used by homepages?
6
Web platform / How to get the delayUS to work?
Hi
I am quite new to the C langue.
How do I get the delayUS to give the right values?
I have included the "libpic30.h" file, and what I understand I should change
#define FCY 40000000UL after the PIC clock.
But if I change it so the timing in practice is correct to __delay_us(100)  =  100us then I need to change the value to  #define FCY 2340550029UL
But then I get totally wrong timing when I use __delay_us(10)
That gives a timing around 50uS

I using the “TCP Demo App-C30”
What am I doing wrong??
8
Web platform / The webbserver stops, Problems with ENC28J60??
The web server stops, Problems with ENC28J60??
Hi
Is there anyone else that has problem with that the web server interface seems to stop, it doesn’t answer to ping, don’t show any homepage but the Led 1 continues to flash so it seems that the PIC continues to go.
I have read some bad things about the ENC28J60 so it is probably that chip that freezes.
It seems to happen if I start a Ping from my pc on a local switch within 3-10minutes
”ping 192.168.1.214 –t”
Or if I have the start page open in Internet Explorer for a longer time.
I using this demo http://dangerousprototypes.com/2009/12/11/prototype-web-platform/

Any bode worked out a workaround for problem like this?
After a reset it works fine for a while.
Maybe a self restart can fix the hookups, but that not seems reliable solution.
9
#twatch network LCD backpack / How can I connect buttons?
Hi
I am new to C, only worked in basic before.

It would be realy nice to add some buttons to the LCD and to read the status of them from PC software.
But there is not any free pins that is easy to connect to so i would like to start to connect the PGD and PGC to two buttons.

Code: [Select]
TRISB=0xC0; 
if  (PORTBbits.RB6=1) {
TCPPutROMString(MySocket, (ROM BYTE*) "S1:ON");
TCPFlush(MySocket);
}else{
TCPPutROMString(MySocket, (ROM BYTE*) "S1:OFF");
TCPFlush(MySocket);
}
if  (PORTBbits.RB7=1) {
TCPPutROMString(MySocket, (ROM BYTE*) "S2:ON");
TCPFlush(MySocket);
}else{
TCPPutROMString(MySocket, (ROM BYTE*) "S2:OFF");
TCPFlush(MySocket);
}

But I must have done somthing wrong while I only get S1:ON in respons when it is grounded and when it is connected to 3,3v

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01372358400session_write_close ( )...(null):0
20.01402489992ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01402490768Database_MySQL->query( ).../DatabaseHandler.php:119
40.05912629504Database_MySQL->error( ).../Db-mysql.class.php:273