-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi packets http pages with the arduino #68
Comments
this the code i have used with two exemples : i wish you a good day |
Hello Fred, I'm just stating with Arduino development, and as I understood your hack is exactly what I need on my project, I made all the library changes, but unfortunately I couldn't make it work with my knowledge, could please post a simple usage example ? Thanks in advance, |
hello i send you the used code the exemple multipacketsd contain files i wish you a good day fred |
Hello Fred, Thanks for your answer, did you send the code? Unfortunately I haven't receive it, could you send to mais email ? fabiopulzi at gmail.com Thanks and have a nice day ! |
Hello Fred, I think that when you just answer the email with the file attached is not working, because it's an email from github and the file is not been attached there. Could you answer on github page and attached the file there ? Thanks in advance |
Hi, i need for a webserver a transmit and upload routine for transfer large files ~300k-500k to and from arduino. |
@mzartmann : First, do you know where you will store this data, SD card ? and as far as I know file upload isn't implemented yet, even with the official library (because arduino isn't really done for these kind of applications) |
@konfiot thanks for your reply! |
Hi! After some code reviewing we found the bug: Simply replace: with: After this change our little server runs very fine. BTW: We found also out, that sending many small packets is much faster than sending less big ones. |
mstuetz you do a great job! I had verified the capacity of variable type but i have missed something i think the next step is to upload something to the arduino ;-) |
Pls. see http://www.eskimo.com/~scs/cclass/int/sx4bb.html Can someone take over this changes to the github source? |
@mstuetz in reference to your last comment, what do you want to have done and why? |
My work is finsh, if you want ; you can take over this changes to the github source. if you have questions i will try to help you. |
I like this and will see what I can do to help create the patch and pull request. It will probably not be until next week though.Where is the latest source, just in this thread? |
Le 15/07/2013 18:27, Victor Aprea a écrit :
i have edited the issue openning message there are the latest news |
fredycpu, thank you for your EtherCard library enhancement! I am trying to accomplish that for 2 years now. Thanks Google i have found your work! I have developed a Lib to compile W5100 source-code into ENC28J60 hardware. Sorry about my english, too. I am brazilian. Take a look at: github.com/renatoaloi -- I would like to learn what you think about my work... There are 2 versions. Enc28CoreLib, about compiling W5100 code to ENC28J60 hardware; and EtherEncLib, a standalone multipacket implementation for ENC28J60. Do you send me some feedback about your thoughts? Thanks, Renato |
@renatoaloi your libraries sound really cool, I'll have to give them a try on Nanode! |
Thanks for your reply, Victor! Keep in mind it's a newbie's work :) On Tue, Dec 3, 2013 at 7:25 PM, Victor Aprea notifications@github.comwrote:
INTI Comercio de Componentes Eletronicos MEI |
i have modified your library for sending webpages with bigger length as a frame
EDIT :WORKING CODE ON 15 july 2013!!!!!
I figured out compatibility problem between SD library in arduino ide and ethercard lib
switched to tinyFAT library and works very well
transfered 240 Megabytes from SD card wihout any packet loss !
Transfer speed :130 kilobytes /second
what i have changed :(this is the final code with bug corrections)
// added in ethercard.h :
static void httpServerReply_with_flags (uint16_t dlen , byte flags);
static void httpServerReplyAck ();
// added in tcpiip.cpp (declarations)
static unsigned long SEQ;
// added in tcpiip.cpp (functions)
static void get_seq() { //get the sequence number of packets after an ack from GET
SEQ =(((unsigned long)gPB[TCP_SEQ_H_P]_256+gPB[TCP_SEQ_H_P+1])_256+gPB[TCP_SEQ_H_P+2])*256+gPB[TCP_SEQ_H_P+3];
} //thanks to mstuetz for the missing (unsigned long)
static void set_seq(word dlen) { //set the correct sequence number and calculate the next with the lenght of current packet
gPB[TCP_SEQ_H_P]= (SEQ & 0xff000000 ) >> 24;
gPB[TCP_SEQ_H_P+1]= (SEQ & 0xff0000 ) >> 16;
gPB[TCP_SEQ_H_P+2]= (SEQ & 0xff00 ) >> 8;
gPB[TCP_SEQ_H_P+3]= (SEQ & 0xff );
SEQ=SEQ+dlen;//next sequence number
}
void EtherCard::httpServerReplyAck () {
make_tcp_ack_from_any(info_data_len,0); // send ack for http get
get_seq(); //get the sequence number of packets after an ack from GET
}
void EtherCard::httpServerReply_with_flags (word dlen , byte flags) {
set_seq(dlen);
gPB[TCP_FLAGS_P] = flags; // final packet
make_tcp_ack_with_data_noflags(dlen); // send data
}
Here you will find the actual version of this libray with my updates and
two working exemples (sending http pages in more packets from programm, and sending http content from sd card)
the multipacketSD exemple uses about 15 kb of flash but dont forget to fill sd card with exemple content /library/exemples/multipackesSD/copy to sd !!! headers files are needed (.hea)
http://microinfo.fr/multipackets.rar
Sorry for my english , i'm french
Frédéric HERMS
The text was updated successfully, but these errors were encountered: