[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 580: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 636: sizeof(): Parameter must be an array or an object that implements Countable
Brads Electronic Projects Forum • How can I set up a communication from Medusa mini via RS232?
Page 1 of 1

How can I set up a communication from Medusa mini via RS232?

Posted: Wed Apr 12, 2017 6:07 pm
by Keniey
I'm trying to set up a communication from Medusa mini to a Gadgeteer Board via RS232 but I have problems to write to RS232 on the Medusa Mini (Arduino newbie).

Code: Select all

#include <Wire.h>
#include <SPI.h>
#include <Gadgeteering.h>
#include <Mainboards/FEZMedusaMini.h>
#include <Modules/RS232.h>

using namespace gadgeteering;
using namespace gadgeteering::mainboards;
using namespace gadgeteering::modules;

fez_medusa_mini board;
rs_232* my_Rs232;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  my_Rs232 = new rs_232(2);
  my_Rs232.write("Hello World");
}
I get the the errormessage:
Arduino: 1.6.5 (Windows 8.1), Platine: "FEZ Medusa"

Medusa_Mini_RS232_Test.ino: In function 'void setup()':
Medusa_Mini_RS232_Test:39: error: request for member 'write' in 'my_Rs232', which is of pointer type 'gadgeteering::modules::rs_232*' (maybe you meant to use '->' ?)
request for member 'write' in 'my_Rs232', which is of pointer type 'gadgeteering::modules::rs_232*' (maybe you meant to use '->' ?)

How can the string be sent?
Another question: how can the RS232 module be configurated different from the defaults:

Thanks in advance, Keniey

Re: How can I set up a communication from Medusa mini via RS

Posted: Fri Apr 14, 2017 3:17 pm
by Chuckt
Is there a way to select the stop bits and parity?
I just remember it from my modem days from the 80's. There are more than one type of RS232. It also depends on how you set the parity and stop bits.

http://forum.arduino.cc/index.php?topic=15615.0

Re: How can I set up a communication from Medusa mini via RS

Posted: Sat Apr 15, 2017 10:03 pm
by brad
It seems this question was solved here:
https://www.ghielectronics.com/communit ... c?id=24233