Community
cancel
Showing results for 
Search instead for 
Did you mean: 
wcaro
New Contributor I
1,407 Views

puertos uart galileo gen 2

hello friends,

4dsystem need to connect a screen, and adafruit thermal printer, but not if the intel Galilean gene 2 has two UART ports rs232

thanks for the help you can give me

Tags (1)
0 Kudos
4 Replies
Juan_M_Intel
Employee
105 Views

Hi wilson941,

We are moving your question to the appropriate forum. About your question I don't understand it, could you explain what are you trying to accomplish?

Regards,

 

JPMontero_Intel
RBrad2
Valued Contributor I
105 Views

Hi Wilson

If you do an Internet search for 4D screens Galileo you can find some discussions

Ex:

http://forum.4dsystems.com.au/forum/forum-aa/4d-systems-hardware/arduino-display-modules-and-shields... http://forum.4dsystems.com.au/forum/forum-aa/4d-systems-hardware/arduino-display-modules-and-shields...

https://www.sparkfun.com/products/12720 https://www.sparkfun.com/products/12720

as for the printer, the Library and example on the Adafruit site uses softserial which, to the best of my knowledge, still isn't supported on the Galileo

You could make a small print server with an Atmega chip and send the print commands to it.

rgb

RBrad2
Valued Contributor I
105 Views

Hi Wilson

My mistake

According to Diego, Software Serial is supported on the Galileo gen 2 -he provided a sample in his response in the following discussion

javascript:;

https://communities.intel.com/thread/59729 https://communities.intel.com/thread/59729

regards

rgb

wcaro
New Contributor I
105 Views

hi,

finally the ability to communicate the printer and 4D can write to mailto:ventas@saggios.net ventas@saggios.net

this is a example:

# include

# include "Adafruit_Thermal_Galileo.h"

Adafruit_Thermal_Galileo printer;

# include

Genie display2; // Genie Display 2

# include

int x,y,w,v=0,menu=0,boton,cont=0,cont2=0,cont3,c=0,z=0,m=0,q=0,pri=0;

long previousMillis=0,config;

long intervalo = 59000; // 1 minuto

char *buf;

char buf2[9];

void setup(){

//EEPROM.write(0,35); //tiem ciclo de MOTORES

//EEPROM.write(1,10); //tiem ciclo de instrumental

//EEPROM.write(2,30); //tiem ciclo BOWIE & DICK

//EEPROM.write(3,10); //tiem ciclo ROPA

//EEPROM.write(4,121); //temp ciclo MOTORES

//EEPROM.write(5,134); //temp ciclo instrumental

//EEPROM.write(6,135); //temp ciclo bowie

//EEPROM.write(7,136); //temp cicwlo ROPA

//EEPROM.write(8,10); //correcion temperatura

//EEPROM.write(9,169); //correcion presion

//EEPROM.write(10,30); //tiempo de secado instrumental

//EEPROM.write(11,41); //tiempo de secado MOTORES

//EEPROM.write(12,0); //ciclos maquina 1 "cuenta 250"

//EEPROM.write(13,0); //ciclos maquina 2 "cuenta 250"

//EEPROM.write(14,0); //ciclos maquina 3 "cuenta 200"

system("telnetd -l /bin/sh"); //Start the telnet server on Galileo

system("ifconfig eth0 192.168.0.5 netmask 255.255.255.0 up");

pinMode(A0, INPUT); //entrada temperatura

pinMode(A1, INPUT); //entrada presion

pinMode(4, OUTPUT); //salida vapor

pinMode(5, OUTPUT); //salida Vacio

pinMode(6, OUTPUT); //salida puerta

pinMode(7, OUTPUT); //salida buzzer

pinMode(8, OUTPUT); //salida ventilacion

pinMode(9, INPUT); //Entrada termico bomba vacio

Serial.begin(9600); // Serial0 @ 200000 (200K) Baud

printer.begin();

Serial2.begin(115200); // Serial1 @ 200000 (200K) Baud

display2.Begin(Serial2); // Use Serial1 for talking to the Genie Library, and to the 4D Systems display # 2

display2.AttachEventHandler(myGenieEventHandler2); // Attach the user function Event Handler for processing events for display 2

f=(EEPROM.read(12)+EEPROM.read(13)+EEPROM.read(14));

printer.justify('C');

printer.println("AUTOCLAVE MINIKLAV GV2");

printer.println("Ciclos Maquina");

printer.println(f);

printer.println(" ");

printer.println(" ");

display2.WriteObject (GENIE_OBJ_TIMER, 0x00,0); //apago timer0

display2.WriteObject (GENIE_OBJ_FORM, 1, 0) ; // Select Form2 of the Display

menu=0;

}

void loop()

{

Reply