Jump to content
Sign in to follow this  
BobRice

Connected Launchpad Telnet server

Recommended Posts

Hi,

 

I have a Mac desktop app that connects to a Connected Launchpad via USB serial. I decided to try to add ethernet port connection. I got tantalizing close but no cigar! I've been stuck on this for a week now so I need help.

 

I had no problems adding the Ethernet.h library except for something very weird trying to do a conditional import. I have been using directives to compile for either the LaunchPad or the Connected LaunchPad:

 

#ifdef PART_TM4C1294NCPDT // Connected LaunchPad

  #include "Ethernet.h"
#elif defined( PART_LM4F120H5QR )  // LaunchPad
#endif
 
This seems to have been working, but it doesn't work for the above code. I have to comment out the  #include "Ethernet.h" to compile for the EX-TM4C123GXL, but this is only a minor inconvenience.
 
I set up a Telnet socket and was able to connect to it using the Unix Telnet program. I could connect, disconnect and reconnect, but the server does not recognize the disconnection. The client.connected() function continues to return true so I only get my sign message with the first connection.
 
Still, I thought I was ready to go so I added NSStream to my app. It could connect and exchange a few messages before giving me a Stream Code 54: The operation couldn

z6MainEthernet.ino

Share this post


Link to post
Share on other sites

Update,

 

I didn't see any replies to my problem so I gave up on the Ethernet connection for awhile, but went back to try again after upgrading to Energia release 14. Unlike release 13, I had no problems upgrading to release 14, no performance problem, but the upgrade didn't seem to fix any bugs for me either. I still have to request a baud rate of 172800 to get 115200 for the LaunchPad.

 

So I decided to try using the EthernetUDP library since that wold be better for my real-time application anyway. Again I came close to getting it working but no cigar!

 

Seems that I can read datagrams OK but I can only write the first one. On each suceeding set of calls to:

Udp.beginPacket

Udp.write

Udp.endPacket

the Connected LaunchPad resends the first packet and does not send the new packets.

 

Has anyone else reported this problem? Am I using the library wrong?

 

Thanks,

Bob Rice

Share this post


Link to post
Share on other sites

Can you post this as an issue on the energia github? https://github.com/energia/Energia and then we can apply any fixes with that issue as a reference. I am tempted to play around with that EthernetUDP scenario. I've yet to have trouble with Serial though but I have mine attached to a Linux box (ubuntu 64-bit).

 

Sent from my Galaxy Note II with Tapatalk 4

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×