chipKIT® Development Platform

Inspired by Arduino™

How to import a text file into the serial port of MPIDE?

Created Tue, 22 Sep 2015 19:08:59 +0000 by JackZ


JackZ

Tue, 22 Sep 2015 19:08:59 +0000

Hi I have a text file to import into the microcontroller through the serial port of MPIDE. I wonder how I can do this please?

Thanks, Jack


majenko

Tue, 22 Sep 2015 19:14:16 +0000

How do you mean "import"? You can use any serial terminal program to communicate with a chipKIT board (instead of the awful serial monitor) and most have an option to send a text file. At the very least they allow you to copy and paste.

There's nothing "magic" about the communication between the computer and a chipKIT board that makes MPIDE in any way special - it's is just purely a serial port and you can use whatever software you like with it.


JackZ

Fri, 16 Oct 2015 19:46:30 +0000

How do you mean "import"? You can use any serial terminal program to communicate with a chipKIT board (instead of the awful serial monitor) and most have an option to send a text file. At the very least they allow you to copy and paste. There's nothing "magic" about the communication between the computer and a chipKIT board that makes MPIDE in any way special - it's is just purely a serial port and you can use whatever software you like with it.

Sorry for the late reply. Would you please recommend me some software? I tried Tera Term and could not write anything in it, let alone uploading text files. Or do you know whether there are some good tutorials for Tera Term? I tried some in YouTube. Unfortunately all of them could write in Tera Term while I could not...

Thanks, Jack


majenko

Fri, 16 Oct 2015 19:54:26 +0000

Tera Term (and all proper terminal emulators) don't show you what you're typing - that is down to what you're communicating with to echo back what it gets.

Try this simple sketch and see if you can now type things:

void setup() {
    Serial.begin(115200);
}

void loop() {
    if (Serial.available()) {
        Serial.write(Serial.read());
    }
}