cristof
Member
- Joined
- Sep 30, 2017
- Messages
- 117
Hi All,
I need Arduino help.
I want to use extra power from my inverter to "drive" the water heater resistor.
My inverter can be controled from RS232 serial com.
If I send a request to inverter, it will send back a feedback (a string of 145 number)
eg : I send with RS232 : "QPIGS"
response from inverter : "(11111 22222 33333 44444 55555 66666 77777 ....... and so..."
I am "new" with Arduino, and I made this small program to test the communication with inverter:
***********************
char retour[140];
void setup()
{
}
void loop() {
Serial.begin(2400);
delay(500);
Serial.flush();
Serial.println("QPIGS");
Serial.readBytes(retour,140);
delay(100);
Serial.println(retour);
delay(500);
Serial.flush();
Serial.end();
}
*****************
it's working , and I can receive a feedback.
I need now to extract from the "string" a few number. But, I don't know how to do !
Many years ago, I use to code with Visual Basic, but arduio is not the same
I hope somebody will be able to help me.
Many thanks.
I need Arduino help.
I want to use extra power from my inverter to "drive" the water heater resistor.
My inverter can be controled from RS232 serial com.
If I send a request to inverter, it will send back a feedback (a string of 145 number)
eg : I send with RS232 : "QPIGS"
response from inverter : "(11111 22222 33333 44444 55555 66666 77777 ....... and so..."
I am "new" with Arduino, and I made this small program to test the communication with inverter:
***********************
char retour[140];
void setup()
{
}
void loop() {
Serial.begin(2400);
delay(500);
Serial.flush();
Serial.println("QPIGS");
Serial.readBytes(retour,140);
delay(100);
Serial.println(retour);
delay(500);
Serial.flush();
Serial.end();
}
*****************
it's working , and I can receive a feedback.
I need now to extract from the "string" a few number. But, I don't know how to do !
Many years ago, I use to code with Visual Basic, but arduio is not the same
I hope somebody will be able to help me.
Many thanks.