yosh 121 Posted February 9, 2016 Share Posted February 9, 2016 Try using pins 3 and 4 for the ESP : use jumper wire from these pins to connect to the ESP. Then remove the RX TX jumpers from the Launchpad (the most left one and the one next to it). Use softwareserial(e.g. on Pins 5 and 6 with 9600 baud) for debugging : connect the pins 5 and 6 e.g. with jumper wires to the pins where you have removed the jumpers. energia, reaper7 and umesh 3 Quote Link to post Share on other sites
umesh 1 Posted February 9, 2016 Author Share Posted February 9, 2016 Thanks yosh i will try this.. Quote Link to post Share on other sites
yosh 121 Posted February 9, 2016 Share Posted February 9, 2016 Thanks yosh i will try this..Had a typo ... of Pins 3 and 4 (RX and TX) for hardware serial! Sorry ... Edit: Jumper Layout is like this http://forum.43oh.com/index.php?/topic/9179-MSP-<-->-EMULATOR-explanation#entry69818 Entry #3 umesh 1 Quote Link to post Share on other sites
umesh 1 Posted February 23, 2016 Author Share Posted February 23, 2016 Hello yosh I tried by connecting ESP to Hardware UART as per you suggest and i use software UART for debugging. The code is as follows: #include <SoftwareSerial.h> SoftwareSerial dbgSerial(5,6); // make RX MSP line is pin 5, make TX MSP line is pin 6. // This means that you need to connect the TX line from the esp to the MSP's pin 5 // and the RX line from the esp to the MSP's pin 6void setup(){ Serial.begin(115200); dbgSerial.begin(9600); // your esp's baud rate might be different} void loop(){ if(Serial.available()) // check if the esp is sending a message { while(Serial.available()) { // The esp has data so display its output to the serial window char c = Serial.read(); // read the next character. dbgSerial.write©; } } if(dbgSerial.available()) { // the following delay is required because otherwise the arduino will read the first letter of the command but not the rest // In other words without the delay if you use AT+RST, for example, the Arduino will read the letter A send it, then read the rest and send it // but we want to send everything at the same time. delay(1000); String command=""; while(dbgSerial.available()) // read the command character by character { // read one character command+=(char)dbgSerial.read(); } Serial.println(command); // send the read character to the esp8266 }} and i got the response but it is not in standard format. For "AT+RST" command it is giving response as: AbOSCO 8cau m0096taim 0xle l0encebe0oDOaKue{ Quote Link to post Share on other sites
yosh 121 Posted March 2, 2016 Share Posted March 2, 2016 @@umesh are you sure your ESP8266 is set to 115.200 baud? Your output looks like the baudrate could be wrong. Maybe give 57.600 or even 9.600 baud a try !? umesh 1 Quote Link to post Share on other sites
Dhrumil 0 Posted March 17, 2020 Share Posted March 17, 2020 I am trying to use SoftwareSerial.h library in MSP439FR5969 .But it is giving me error as "Multiple library were found for software serial.h"Do anyone know this issue? Quote Link to post Share on other sites
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.