Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to configure ethernet card to make it work without router?
Qt 6.11 is out! See what's new in the release blog

How to configure ethernet card to make it work without router?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 5 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shalongbasi
    wrote on last edited by
    #1

    I want to connect a desktop to a microcontroller board through ethernet interface. when desktop is connected to the router, it is automatically configured and I can use UDPsocket to send the packet out, I can see the packet sent out info with WireShark software.
    But when desktop connected to microcontroller, it cannot be configured correctly since microcontroller cannot provide any ethernet related information. so I manually configure the ethernet card in the desktop with fixed IP address, netmask, gateway. but I still cannot see UDP packet sent out with WireShark software. anything else I need to configure to make it work? thanks

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      bq. anything else I need to configure to make it work?

      Maybe. Are you operating any machine based firewall? Did you bring the configured interface up? How you do that depends on platform.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shalongbasi
        wrote on last edited by
        #3

        desktop's OS is ubuntu 12.0. no firewall.

        1 Reply Last reply
        0
        • JeroentjehomeJ Offline
          JeroentjehomeJ Offline
          Jeroentjehome
          wrote on last edited by
          #4

          What type of microcontroller are you using? Microchip TCPIP stack?
          UDP is by the way not fun to work with in terms of embedded code! Better to use the TCPIP setup instead. Then you don't need to verify every received message, contents and sequence before using the data.
          Did you also enble your host IP address in the same ranges etc? Maybe for a test you could send messages on your host to the home server and see if wireshark catches those.
          Bit more info might be needed for better help here.
          Greetz

          Greetz, Jeroen

          1 Reply Last reply
          0
          • U Offline
            U Offline
            utcenter
            wrote on last edited by
            #5

            You do know that for direct connection you need a differently wired network cable?

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #6

              [quote author="utcenter" date="1361433882"]You do know that for direct connection you need a differently wired network cable?[/quote]For modern Ethernet chips it doesn't matter.

              shalongbasi@ Do you check connection availability by ping or somehow else? If connection present its hard to say what is problem, try send packets from microcontroller.
              What Microcontroller you use?

              1 Reply Last reply
              0
              • U Offline
                U Offline
                utcenter
                wrote on last edited by
                #7

                ^^ Maybe the microcontroller's is not all that modern.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  shalongbasi
                  wrote on last edited by
                  #8

                  I used PIC32MX microcontroller from Microchip with external TLK110 ethernet chip, but I did not include their TCP/IP stack into my codes. for the cable wire, it is ok since it does support Auto-MDIX. I tested microcontroller before with direct connection to desktop PC under WindowsXP, Wireshark can see the incoming packet to PC from microcontroller. But I did not tested it under Linux to see if it can receive packet from Microcontroller. as I said before, I tested the packet sent out from PC, but Wireshark did not catch anything. Maybe ethernet card configuration under linux has problem.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved