Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by pkowalski

  1. I wanted to pass the state of the digital pins and a couple of the analog pins between a network of boards and act on the information (anywhere from 2 to maybe even 8 boards). Each board will have a unique address and be daisy chained sort of like RS-485. I intent to also add a checksum in case bits get lost. After playing with this some more it seems that this works ok: Receiver Board (Which will ultimately be the sender as well): #include <SoftwareSerial.h> SoftwareSerial mySerial(P1_4, P1_3); // RX, TX void setup() { pinMode(RED_LED, OUTPUT); pinMode(P1_6, OUTPUT)
  2. Sorry to keep adding to this. After some debugging it appears that I am getting data one byte at a time. And if the data is sent faster than the receiver can receive it some kind of overflow happens. Is it possible to send entire strings over serial or is it only possible to get one byte at a time? Also, I still haven't figured out why I'm not getting data from the hardware UART. It would seem to me that if I use serial.write on the sending board I should be able to pull up the serial monitor on the receiver board and see the messages coming through without having to use Serial
  3. After doing some more testing am I correct in assuming that the serial data is sent one byte at a time? Am I also correct in assuming that the buffer can only store 14 bytes? I am basing this by looking at the mySerial.available() function. When my wires are connected the value is always 14. As soon as I disconnect the RX/TX pins the value drops by 1 each loop until finally it gets to 0. Thanks.
  4. To add to my post above, if on the board that is receiving the serial commands I comment out the serial.write code so that no serial.write exists shouldn't I get the information in the serial console coming from the board that is sending the information? I have pin 1.1 and 1.2 crossed for both boards. However, when I do this and open up the console I get nothing. I am attaching a picture of my setup to make sure I have the wires connected correctly: http://i.imgur.com/TMNaEgg.jpg?1 Thanks!
  5. Thank you for your help with this, looks like it got me on the right path. However, I am having an issue which I'm sure is due to me not understanding how serial communication works on these devices. I looked at the serial reference library on Energia as well as the more detailed one on Arduino and unfortunately I'm still lost. It appears that when I try to send a string of characters the characters are sent (or possibly read) back one by one and only up to a certain point (like the buffer is getting full). Here is what I am getting using serial monitor:
  6. Edit: Never mind, I didn't select the right processor. Thanks, giving this example a try now.
  7. A part of my post above got cut off after the quote tag, sorry about that. I was saying I searched around but couldn't find anything in regards to this so my apologies if it was already covered. I also can't find where serial1 is defined. This is my code from the example: /* Multple serial test Receives from the main serial port, sends to the others. Receives from serial port 1, sends to the main serial (Serial 0). The circuit: * Any serial device attached to Serial port 1 * Serial monitor open on Serial port 0: created 30 Dec. 2008 by Tom Igoe This e
  8. Hello, I am just getting started with the MSP-EXP430G2 development board so that I can use it for a project. For this project I need to receive/send serial commands on one port and then send/receive them on another. I pulled up the MultiSerial example to get me a quick example and I get an error when trying to compile:
  • Create New...