I bought a UHF RFID reader module(um202) which is support RS232 and the initial baud rate is 115200. But I try much time with my Arduino UNO and it all not works.
It is because of the maximum baud rate of Rx in UN0 is 57600, so it cannot receive the response?
#include <SoftwareSerial.h>
SoftwareSerial mySerial(5,6);
unsigned char incomingByte;
void sendIdentifyCmd ()
{
byte cmd[] = {0xA5, 0x5A, 0x00, 0x08, 0x00, 0x08, 0x0D, 0x0A};
for(byte i =0;i<sizeof(cmd);i++)(mySerial.write(cmd*));*
_ for(byte i =0;i<sizeof(cmd);i++)(Serial.print(cmd*));_
_}_
void setup ()
_{_
_ Serial.begin (57600);_
_ mySerial.begin (115200);_
_ Serial.println ("begin initial Serial!\n");_
_}_
void loop ()
_{_
_ sendIdentifyCmd ();_
_ while(mySerial.available()>0)_
_ {_
_ char incomingByte=mySerial.read ();_
_ Serial.print(incomingByte,HEX);_
_ Serial.print("done");_
_ }_
_ Serial.println("sent");_
_ delay(1000);_
_}*_