Jump to content

Search the Community

Showing results for tags 'Connected launchpad'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 3 results

  1. Hello Gentlemen, I'm trying to develop a TCP/IP client with the new TI Connected LaunchPad board but I have some problem with the code that I couldn't figure out and maybe someone can give me a hand, here is the code (based on the Web client example but with some modifications): #include <Ethernet.h> // Enter a MAC address for your controller below. byte mac[] = { 0x00, 0x1F, 0xB0, 0x02, 0xFE, 0x30 }; IPAddress ipLocal(169,254,41,200); IPAddress server(169,254,41,198); unsigned int localPort = 8080; // local port to listen on char SendBuffer[] = "Something to send\n"; //test data char ReceiveBuffer[64] = " "; //receive buffer // Initialize the Ethernet client library // with the IP address and port of the server // that you want to connect to (port 80 is default for HTTP): EthernetClient client; void setup() { //start the Ethernet Ethernet.begin(mac,ipLocal, server); Ethernet.enableLinkLed(); Ethernet.enableActivityLed(); //Connect to server client.connect(server, localPort); //start the serial library: Serial.begin(9600); Serial.println("\n\nTCP/IP Client setup"); // start the Ethernet connection: if (Ethernet.begin(mac) == 0) { Serial.println("Failed to configure Ethernet using DHCP"); // no point in carrying on, so do nothing forevermore: while(true); } // print your local IP address: Serial.print("My IP address: "); for (byte thisByte = 0; thisByte < 4; thisByte++) { // print the value of each byte of the IP address: Serial.print(Ethernet.localIP()[thisByte], DEC); Serial.print("."); } Serial.println(); Serial.print("connecting to server\n"); //Serial.println(server); server.printTo(Serial); // if you get a connection, report back via serial: if (client.connect(server, localPort)) { Serial.println("connected to"); server.printTo(Serial); // Make a HTTP request: //client.println("GET /search?q=arduino HTTP/1.0"); //client.println(); } else { // kf you didn't get a connection to the server: Serial.println("connection failed"); } } void loop() { // if there are incoming bytes available // from the server, read them and print them: if (client.available()) { char c = client.read(); Serial.print(c); } client.write(SendBuffer); // if the server's disconnected, stop the client: if (!client.connected()) { Serial.println(); Serial.println("disconnecting."); client.stop(); // do nothing forevermore: while(true); } } //End of code On the serial monitor it displays "TCP/IP Client setup" then stops, when I try to find the board using "arp -a" command from the windows cmd it shows nothing about the board (neither the MAC nor the IP address I have assigned to it), tried to connect to the board using a small sockets example written in C++ and for sure nothing happened (just to make sure windows networking utilities aren't screwed). Thanks in advance folks
  2. Hello, I am a long time Arduino user, and I was tempted by the $20 price on the newest "Connected" launchpad TM4C1294XL. Seemed mighty powerful for the price! So I am basicly a noob only when it comes to this platform, and I've been going thru the tutorials and 'getting started' videos and I'm still stuck. First of all, I am trying to get started and the "Blink" example does not work on this board. Apparently because whatever I/O pin that Energia maps as "RED_LED" is not the same as any of the I/O pins that drive the 4 LEDS on my TM4C1294XL board. According to the docs for my board, the LEDs are connected to GPIO pins PN0, PN1, PF4, and PF0. This board has a heckuva lot of I/O pins. How are they all numbered/named in Energia? I've tried all sorts of numbers and names and either it doesn't compile because it's not recognized, or it compiles but the lights don't actually blink. It apparently uploads as it seems to have overwritten the Exosite demo app that came pre-loaded on the board. Likewise, I can't get the "Hello" example to work either. No text is received in the terminal. Checked baud rate, com port, hit reset, etc. And likewise, I can't get "Blinky" or "Hello" to work in Code Composer either. No errors that appear fatal. At this point, I'm not sure if my board even works. I have not been able to get either the blinky or hello world sketches to work, either in Energia, or Code Composer. I'm not entirely sure the sketch is even being uploaded to the board. But the Exosite app worked before I apparently overwrote it. I don't see any fatal errors. Like I said, I'm a noob to this platform, but pretty good with Arduino, I've been working with it for years. (Stellaris virtual COM drivers are installed, Windows Device Manager sees my board as COM4) WizBlink.ino
  3. Elrayes

    TCP/IP client

    Hello Gentlemen, I'm trying to develop a TCP/IP client with the new TI Connected LaunchPad board but I have some problem with the code that I couldn't figure out and maybe someone can give me a hand, here is the code (based on the Web client example but with some modifications): #include <Ethernet.h> // Enter a MAC address for your controller below. byte mac[] = { 0x00, 0x1F, 0xB0, 0x02, 0xFE, 0x30 }; IPAddress ipLocal(169,254,41,200); IPAddress server(169,254,41,198); unsigned int localPort = 8080; // local port to listen on char SendBuffer[] = "Something to send\n"; //test data char ReceiveBuffer[64] = " "; //receive buffer // Initialize the Ethernet client library // with the IP address and port of the server // that you want to connect to (port 80 is default for HTTP): EthernetClient client; void setup() { //start the Ethernet Ethernet.begin(mac,ipLocal, server); Ethernet.enableLinkLed(); Ethernet.enableActivityLed(); //Connect to server client.connect(server, localPort); //start the serial library: Serial.begin(9600); Serial.println("\n\nTCP/IP Client setup"); // start the Ethernet connection: if (Ethernet.begin(mac) == 0) { Serial.println("Failed to configure Ethernet using DHCP"); // no point in carrying on, so do nothing forevermore: while(true); } // print your local IP address: Serial.print("My IP address: "); for (byte thisByte = 0; thisByte < 4; thisByte++) { // print the value of each byte of the IP address: Serial.print(Ethernet.localIP()[thisByte], DEC); Serial.print("."); } Serial.println(); Serial.print("connecting to server\n"); //Serial.println(server); server.printTo(Serial); // if you get a connection, report back via serial: if (client.connect(server, localPort)) { Serial.println("connected to"); server.printTo(Serial); // Make a HTTP request: //client.println("GET /search?q=arduino HTTP/1.0"); //client.println(); } else { // kf you didn't get a connection to the server: Serial.println("connection failed"); } } void loop() { // if there are incoming bytes available // from the server, read them and print them: if (client.available()) { char c = client.read(); Serial.print(c); } client.write(SendBuffer); // if the server's disconnected, stop the client: if (!client.connected()) { Serial.println(); Serial.println("disconnecting."); client.stop(); // do nothing forevermore: while(true); } } //End of code On the serial monitor it displays "TCP/IP Client setup" then stops, when I try to find the board using "arp -a" command from the windows cmd it shows nothing about the board (neither the MAC nor the IP address I have assigned to it), tried to connect to the board using a small sockets example written in C++ and for sure nothing happened (just to make sure windows networking utilities aren't screwed). Thanks in advance folks
×
×
  • Create New...