Ethernet multi function interface - issues

This forum is for information related with E series hardware.

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Ethernet multi function interface - issues

Post by oga83 »

This post is related to this wiki
yepp wrote:i got an error while compiling :

Code: Select all

error: invalid conversion from 'const __FlashStringHelper*' to '__FlashStringHelper*'
can you help?
Maybe you don't have the same version than me (1.0.1) ?
Based on your compilation error message, try to replace :

Code: Select all

__FlashStringHelper *HtmlHeader=F("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n");
by

Code: Select all

const __FlashStringHelper *HtmlHeader=F("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n");
__FlashStringHelper, along with F(), are used to move strings out of sram. As this sketch is not making intensive use of strings, there is no need to take care of memory waste.
you can also replace the above line by :

Code: Select all

const char *HtmlHeader="HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n";
Both modifications work for me.
Let me know if it solves your problem.

User avatar
juusso
SamyGO Moderator
Posts: 10128
Joined: Sun Mar 07, 2010 6:20 pm

Re: Ethernet multi function interface - compilation issue

Post by juusso »

Finally got my arduino uno R3 + ethernet shield. Same error as above on software v1.0.3.
Then downloaded 1.0.1 and got another error:

Code: Select all

Oga83.cpp: In function 'void loop()':
Oga83:295: error: expected primary-expression before 'long'
Oga83:295: error: expected `)' before 'long'
Oga83:295: error: 'i' was not declared in this scope
And solved by deleting one extra "(" here:
? for ((long i=Addr; i<Addr+Size; i+=32)
Now it looks like:
? for (long i=Addr; i<Addr+Size; i+=32)
and now sketch compiled w/o any problem. If Olivier finds it correct, perhaps code on wiki needed to be fixed as well?
Don`t have time to test LED or start making dump of micom config eeprom yet, need to make me famillar with arduino first, this toy is completely new for me :?

Oga83,do i need to adapt sketch for uno+ethernet shield? Or not needed?
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Ethernet multi function interface - compilation issue

Post by oga83 »

juuso wrote:If Olivier finds it correct, perhaps code on wiki needed to be fixed as well?
I have modified the wiki to fix :
- the __FlashStringHelper issue that was not compiling with Arduino 1.0.3
- the typo about the parenthesis (don't know how this happened)
- the stupid indentation due to tabs that did not import well in the wiki

I compiled it with Arduino 1.0.3 :)
juuso wrote:do i need to adapt sketch for uno+ethernet shield? Or not needed?
AFAIK, no modification is needed, but I don't have a Uno+Ethernet shield to test it

User avatar
juusso
SamyGO Moderator
Posts: 10128
Joined: Sun Mar 07, 2010 6:20 pm

Re: Ethernet multi function interface - issues

Post by juusso »

New sketch works, can send IR commands! phew... :)

EDIT1: i use 940nm IR diode, but TV won`t accept keys. Red led flashes at once when i send key, but no reaction. Shouldn`t be signal is too short?


EDIT2: Now just need to understand why my arduino loses connectivity after some idle (some minutes or so). To send other commands, need to reset it first. Here is no problem with example web server, this let me think unit ends and get`s out from main loop. it should be endless, or? I`m a bit scared to leave this issue, should be not really ok if it loose connectivity during eeprom write procedure...
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Ethernet multi function interface - compilation issue

Post by oga83 »

juuso wrote:Now just need to understand why my arduino loses IP after some idle. Need to reset to able send another commands
Never had this, but I heard about reset problems on previous version of the ethernet shield (reset was not connected to uno, and there was not reset controller on the shield)
Which version of the shield do you have (printed on the bottom layer) ?

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Ethernet multi function interface - issues

Post by oga83 »

Found this here :
Your Arduino needs to be able to reset the ethernet shield in case it loses its IP address. In order to do this, we first bend out the ethernet shield pin from the Arduino?s reset input (since we want the Arduino to be able to reset the shield, but not itself)...
... and then connect pin 9 to the ethernet shield?s reset input.

User avatar
juusso
SamyGO Moderator
Posts: 10128
Joined: Sun Mar 07, 2010 6:20 pm

Re: Ethernet multi function interface - issues

Post by juusso »

Hardware i have: As you see these are not original, but cheap clones of arduino. Here is no printouts on ethernet shield indicating it`s version, but according some research, it is older PCB design ("Ethernet Shield 05"). Strange you`re talking about missing reset on the shield, while this unit has one reset button...

Why then unit loses IP if your sketch is used, but don`t even loose IP with other examples? I left it for few hours of idle with web server sketch on board and it worked. Maybe IR interface sketch needs to add some extra checks for connectivity?

Edit: left for 30min already, still can connect and send keys.
Edit2: 60min, stll ok.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Ethernet multi function interface - issues

Post by oga83 »

Why then unit loses IP if your sketch is used, but don`t even loose IP with other examples?
I hope it's not a v1.0.3 side effect...
Mine is running since a few hours, compiled with this new release. I'll see if it runs well.

When you have the problem, http is not working anymore, but what about telnet and ping ?
[EDIT] @juuso :thanks for changing the thread subject. I was about to do it when I saw you already did;you were quicker than me.

oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: Ethernet multi function interface - issues

Post by oga83 »

juuso wrote:Edit2: 60min, stll ok.
Mine is working since more than one day without any problem. What about yours ?

User avatar
juusso
SamyGO Moderator
Posts: 10128
Joined: Sun Mar 07, 2010 6:20 pm

Re: Ethernet multi function interface - issues

Post by juusso »

During all tests i ever made (leaving idle for few hours and eeprom read/write procedures), everything worked. Just once i`ve had issue, but initially - after powering device on i couldn`t connect to it, IP scanner didn`t found it as well and to get it discoverable i have had to disconnect power. Perhaps issues are related to non original status of hardware. Can be Chinese devels missed something :D
btw, another issue...
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[E] Hardware”