gazroo Posted July 18, 2015 at 12:08 PM Share Posted July 18, 2015 at 12:08 PM 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 ! Quote Link to comment Share on other sites More sharing options...
remotecontrol Posted July 18, 2015 at 05:14 PM Share Posted July 18, 2015 at 05:14 PM 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. Quote Link to comment Share on other sites More sharing options...
gazroo Posted July 19, 2015 at 11:03 AM Author Share Posted July 19, 2015 at 11:03 AM My fault, and I apologise! I get involved in developing drivers for many different projects and I get so used to assuming UDP that I didn't read properly and just went ahead in creating a DatagramSocket. Everything working now - great product! Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.