Is it possible to implement a tcp server with arduino?

Discussion in 'Arduino IDE' started by simcode, Dec 2, 2013.

  1. simcode

    simcode New Member

    Joined:
    Dec 2, 2013
    Messages:
    8
    Likes Received:
    0
    Is it possible to implement a tcp server with arduino?

    source that has been implemented in ethernetshield exists, but this I do not behave.

    What shall I do?
     
  2. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    You mean plug in an Arduino Due ethernet shield to the SAM3X8E, and load/run the corresponding networking library to provide a full tcp/ip stack, then load on top of that a lightweight server to serve requests?

    sure, by why would you want to?

    you have a full fat i.MX6 with all the networking already done on the same board.
     
  3. simcode

    simcode New Member

    Joined:
    Dec 2, 2013
    Messages:
    8
    Likes Received:
    0
    I have to say, it is one that was want to know how you can arduino to a server role in arduino in udoo board.

    How to implement an tcp server on arduino?
     
  4. freedomotic

    freedomotic Member

    Joined:
    Oct 19, 2013
    Messages:
    77
    Likes Received:
    6
    Hi all,
    I'm adding a question: how is it possible to reuse arduino sketch based on ethernet shield without using it?
    Can i.MX6 simulate an ethernet shield? Any code sample?
    Thanks
     
  5. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    You mean a 'loopback'? Ought to be available, most network stacks do that in logical rather than physical layers.

    Google/text search the library you have for that phrase.

    localhost and 127.0.0.1 would work too of course.
     
  6. DracoLlasa

    DracoLlasa UDOOer

    Joined:
    Oct 15, 2013
    Messages:
    419
    Likes Received:
    3
    im a bit confused by the various questions, and assuming languange differences..
    first off,
    Can you use the arduino as a TCP Server, Yes, but since the Due cant directly access the wifi on the i.MX6 side, you would need a shield
    The point made by Lifeboat_Jim, though is why bother... the i.MX6 running linux can run a 'very' powerful TCP Server with wired and wireless networking with very little setup. it can then pass info to and from the SAM3X8/Due chip as needed. this i generally the easiest way from what i have seen so far.

    Freedomatic, from what i recall (and i may be a bit rusty on the details) i dont think its currently possible for the i.MX6 to provide the SAM3X8 access to the wireless card to be able to emulate or simulate a functional wireless shield.. maybe i misunderstood the question?
     
  7. simcode

    simcode New Member

    Joined:
    Dec 2, 2013
    Messages:
    8
    Likes Received:
    0
    thank you.
    Any code sample?
     
  8. freedomotic

    freedomotic Member

    Joined:
    Oct 19, 2013
    Messages:
    77
    Likes Received:
    6
    @DracoLiasa I'd like to use the board ethernet connection instead to add a specific shield.
     
  9. simcode

    simcode New Member

    Joined:
    Dec 2, 2013
    Messages:
    8
    Likes Received:
    0
    i mean that need arduino sketch code example..
     
  10. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    Can't be done. Ethernet port is physically connected to the i.MX6.
     
  11. Bulbox

    Bulbox New Member

    Joined:
    Feb 18, 2014
    Messages:
    10
    Likes Received:
    0
    Hi guy's, i have tried to connect ethernet shield to arduino board implemented in udoo QUAD ..but it don't work, because the arduino board implemented in UDOO QUAD haven't ICSP pinout , These pins allow communication from ethernet shield and arduino!!!!

    it is possible to connect in some other way the ethernet shield for arduino to UDOO QUAD ARDUINO 2 board???
     
  12. Bulbox

    Bulbox New Member

    Joined:
    Feb 18, 2014
    Messages:
    10
    Likes Received:
    0
    SOLVED!!!!!!!!!!! now i post how!
     
  13. Bulbox

    Bulbox New Member

    Joined:
    Feb 18, 2014
    Messages:
    10
    Likes Received:
    0
    connect ICSP pin's of ethernet shield to UDOO :

    [​IMG]

    [​IMG]

    1 (shield) -- MISO -- 1 (UDOO)
    3 (shield) -- SOCK -- 3 (UDOO)
    4 (shield) -- MOSI -- 2 (UDOO)
     
  14. theravech

    theravech New Member

    Joined:
    Feb 4, 2014
    Messages:
    7
    Likes Received:
    0
    And the pin 2 of the shield connect to pin4 of udoo?
     
  15. zisosak

    zisosak New Member

    Joined:
    Mar 19, 2015
    Messages:
    14
    Likes Received:
    1
    What do mean with that waht is the pin number from the shield and the pin numeber on udoo;
     
  16. RickyTerzis

    RickyTerzis New Member

    Joined:
    Aug 2, 2017
    Messages:
    2
    Likes Received:
    0
    Hi...i am a new user here. As per my knowledge Due cant directly access the wifi on the i.MX6 side, you would need a shield.The point made by Lifeboat_Jim, though is why bother, the i.MX6 running linux can run a very powerful TCP Server with wired and wireless networking with very little setup. it can then pass info to and from the SAM3X8/Due chip as needed.

    pcb manufacturing
     
    Last edited: Nov 17, 2017

Share This Page