Jump to content

Cannot get responses to TCP/IP requests


gazroo

Recommended Posts

Hi all,

 

For reasons I won't go into just now, I need to use the TCP/IP API for my TinkerForge project. I'm using Java as my programming language to create and send the UDP packets to the Master Brick. The Brick/Bricklets are all live and can be viewed in the TF viewer. I have checked to make sure that the Master Brick can be pinged (it can), and that my byte sequences (for the UID) are correctly orderred (little-Endian). I'm only sending the simplest of 8-byte commands (without payload), i.e. asking the Master Brick for its Ethernet status, or asking a Temperature bricklet for its current temperature, but I'm just not getting any responses at all on the socket receive() call.

 

Can anyone suggest what else I can try, or some other way of debugging or making progress ? Please ?

 

Thanks !

 

Link zu diesem Kommentar
Share on other sites

You wrote

send the UDP packets to the Master Brick
, but you mean: you send TCP/IP packets to the brickd service or directly to a master with an ethernet extension?

 

You'll need a TCP socket, not an UPD socket.

 

You followed this instruction: http://www.tinkerforge.com/de/doc/Low_Level_Protocols/TCPIP.html#llproto-tcpip?

You should dump your data packet in your code first, then you can compare which bytes sequence you're sending.

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...