Hallo hab mir auch so ein Set gekauft.
http://www.ebay.de/itm/APC220-Wirele...ht_4318wt_1186
Hab das eine Modul an den USB TTL Adapter gesteckt und das andere mit 5v versorgt dann beim "Empfänger" tx und rx des modules kurzgeschlossen um mal zu sehn ub die Kommunikation funktioniert.
Arduino gestartet den Comport ausgewählt (bei mir 1) und dann im Arduino das Terminal geöffnet.
Unten auf 9600 baud gestellt. Und schon kommt das was cih schreibe zurück. OK Module gehen.
Dann habe ich das Konfig programm geladen.
Satrten muß man als Administrator
Der com port muß einstellig sein.( wenn nicht im Gerätemanager ändern)
wie ich jetzt gelesen habe kann man es auch unter dem terminal mit befehlen ändern.
http://www.dfrobot.com/image/data/TE..._Manual_en.pdf
http://www.dfrobot.com/wiki/index.ph...e(SKU:TEL0005)
http://www.rcgroups.com/forums/showp...&postcount=843
http://wiki.openpilot.org/display/Do...iver+Telemetry
So die Module funktionieren jetzt auf 57600 baud ( Terminalantworttest ) OK
Jetzt habe ich mir einen neuen Multiwiiordner gemacht und in dem versucht die Baudrate auch auf 57600 zu setzen.
Also einmal in der
multiwiconfig.ino
und einmal in der
multiwii 2.1 unter config.h
Jetzt müste alles auf 57600 baud stehen und funtioniren, tut es aber nicht
Halllhab mal das standart sketch auf den arduino gepakt.
und dann das Terminal im arduino gestartet
läuft!
Also die Module funktionieren .
Wie bringe ich nun die GUI und den Arduino daz sich auf 57600 baud zu unterhalten ?
http://www.ebay.de/itm/APC220-Wirele...ht_4318wt_1186
Hab das eine Modul an den USB TTL Adapter gesteckt und das andere mit 5v versorgt dann beim "Empfänger" tx und rx des modules kurzgeschlossen um mal zu sehn ub die Kommunikation funktioniert.
Arduino gestartet den Comport ausgewählt (bei mir 1) und dann im Arduino das Terminal geöffnet.
Unten auf 9600 baud gestellt. Und schon kommt das was cih schreibe zurück. OK Module gehen.
Dann habe ich das Konfig programm geladen.
Satrten muß man als Administrator
Der com port muß einstellig sein.( wenn nicht im Gerätemanager ändern)
wie ich jetzt gelesen habe kann man es auch unter dem terminal mit befehlen ändern.
The other way of setting parameters is to use terminal on line. The parameters are setted by TTL/UART (4,5PIN) and the control pin of SET ( see the Figure 5).
APC220-43 will enter normal working (T1, see the Figure 4) mode after the voltage of
SET 50ms later. If user wants to set parameters online, you can lower the voltage of
SET firstly .Then APC220-43 will set the UART data rate at 9600bps automatically
and enter setting mode (T2) with no checkout 1ms later. User should send the
parameters command by RXD.After parameters checkout,the pin TXD will return
the parameters information(T3) in 200ms. User may set up the voltage of SET after
checking out the information that has been written.Finally, APC220-43 will work APC220-43
based on the new parameters in 10ms(T4). It must be noticed that user sent the
command to APC220-43 for only one time when APC220-43 at the setting mode. If
the command is wrong or the setting parameters are not completed, user should set
them again. However,one more important thing that user must do firstly is to set up
the voltage of the pin SET and enter the setting mode . It is the same as the way of
the last setting.
APC220-43 is set by ACSII. UART rate is 9600bps and no checkout. There are two
setting commands. They are reading and writing. It must use the capital letters. The
parameters are parted by blank. And the enter means end.
The command of reading parameters:
RD↙
ANSWER: PARA_frequency_rf data rate_output power_UART data rate_series
checkout
The command of writing parameters:
WR_frequency_ RF data rate_output power_UART rate_series_check↙
ANSWER: PARA_frequency_rf data rate_output power_UART data rate_series
checkout
The Parameters Table:
The parameters table
Parameters Bytes Instruction
Frequency 6 Unit is KHz,for example 434MHz is 434000.
Rf data rate 1 1,2,3 and 4 refer to 2400,4800,9600,19200bps
separetely.
Output power 1 0 to 9, 9 means 13dBm(20mW).
UART rate 1 0,1,2,3,4,5 and 6 refers to 1200,2400,4800,9600,
19200,38400,57600bps separately.
Series checkout 1 Series checkout:0 means no check,1 means even
parity,2 means odd parity.
APC220-43 will enter normal working (T1, see the Figure 4) mode after the voltage of
SET 50ms later. If user wants to set parameters online, you can lower the voltage of
SET firstly .Then APC220-43 will set the UART data rate at 9600bps automatically
and enter setting mode (T2) with no checkout 1ms later. User should send the
parameters command by RXD.After parameters checkout,the pin TXD will return
the parameters information(T3) in 200ms. User may set up the voltage of SET after
checking out the information that has been written.Finally, APC220-43 will work APC220-43
based on the new parameters in 10ms(T4). It must be noticed that user sent the
command to APC220-43 for only one time when APC220-43 at the setting mode. If
the command is wrong or the setting parameters are not completed, user should set
them again. However,one more important thing that user must do firstly is to set up
the voltage of the pin SET and enter the setting mode . It is the same as the way of
the last setting.
APC220-43 is set by ACSII. UART rate is 9600bps and no checkout. There are two
setting commands. They are reading and writing. It must use the capital letters. The
parameters are parted by blank. And the enter means end.
The command of reading parameters:
RD↙
ANSWER: PARA_frequency_rf data rate_output power_UART data rate_series
checkout
The command of writing parameters:
WR_frequency_ RF data rate_output power_UART rate_series_check↙
ANSWER: PARA_frequency_rf data rate_output power_UART data rate_series
checkout
The Parameters Table:
The parameters table
Parameters Bytes Instruction
Frequency 6 Unit is KHz,for example 434MHz is 434000.
Rf data rate 1 1,2,3 and 4 refer to 2400,4800,9600,19200bps
separetely.
Output power 1 0 to 9, 9 means 13dBm(20mW).
UART rate 1 0,1,2,3,4,5 and 6 refers to 1200,2400,4800,9600,
19200,38400,57600bps separately.
Series checkout 1 Series checkout:0 means no check,1 means even
parity,2 means odd parity.
http://www.dfrobot.com/image/data/TE..._Manual_en.pdf
http://www.dfrobot.com/wiki/index.ph...e(SKU:TEL0005)
http://www.rcgroups.com/forums/showp...&postcount=843
http://wiki.openpilot.org/display/Do...iver+Telemetry
So die Module funktionieren jetzt auf 57600 baud ( Terminalantworttest ) OK
Jetzt habe ich mir einen neuen Multiwiiordner gemacht und in dem versucht die Baudrate auch auf 57600 zu setzen.
Also einmal in der
multiwiconfig.ino
// initialize the serial port selected in the listBoxvoid InitSerial(float portValue) {
if (portValue < commListMax) {
String portPos = Serial.list()[int(portValue)];
txtlblWhichcom.setValue("COM = " + shortifyPortName(portPos, 8));
g_serial = new Serial(this, portPos, 57600);
init_com=1;
if (portValue < commListMax) {
String portPos = Serial.list()[int(portValue)];
txtlblWhichcom.setValue("COM = " + shortifyPortName(portPos, 8));
g_serial = new Serial(this, portPos, 57600);
init_com=1;
multiwii 2.1 unter config.h
/************************************************** ***********************************************/
/***************** ***************/
/**************** SECTION 5 - ALTERNATE SETUP *******/
/***************** ***************/
/************************************************** ***********************************************/
/****** Serial com speed *********************************/
/* This is the speed of the serial interface */
#define SERIAL_COM_SPEED 57600
/***************** ***************/
/**************** SECTION 5 - ALTERNATE SETUP *******/
/***************** ***************/
/************************************************** ***********************************************/
/****** Serial com speed *********************************/
/* This is the speed of the serial interface */
#define SERIAL_COM_SPEED 57600
Jetzt müste alles auf 57600 baud stehen und funtioniren, tut es aber nicht
Halllhab mal das standart sketch auf den arduino gepakt.
und dann das Terminal im arduino gestartet
läuft!
/*
DigitalReadSerial
Reads a digital input on pin 2, prints the result to the serial monitor
This example code is in the public domain.
*/
// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(57600);
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
// print out the state of the button:
Serial.println(buttonState);
delay(1); // delay in between reads for stability
}
DigitalReadSerial
Reads a digital input on pin 2, prints the result to the serial monitor
This example code is in the public domain.
*/
// digital pin 2 has a pushbutton attached to it. Give it a name:
int pushButton = 2;
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(57600);
// make the pushbutton's pin an input:
pinMode(pushButton, INPUT);
}
// the loop routine runs over and over again forever:
void loop() {
// read the input pin:
int buttonState = digitalRead(pushButton);
// print out the state of the button:
Serial.println(buttonState);
delay(1); // delay in between reads for stability
}
Wie bringe ich nun die GUI und den Arduino daz sich auf 57600 baud zu unterhalten ?