Easy IoT is a simplest IoT Solution presented by DFRobot
#7657
have A problem with the DFRobot Expansion IO Shield V5.0
Was it discontinued because it did not function?

Here are my products with links
DFRobot Expansion I/O Shield V.5
HC-06 Bluetooth Bee Bluetooth Wireless Module

There does not seem to be much information on how to get into AT mode with this device. I looked at the v7 wiki but not much there either.
My pins are in the default positions. I am not sure where to put them to get the bluetooth in AT mode. Any help would be appreciated.

Also when I run this passthrough code
Code: Select all
void setup()
{
  // Set up both ports at 9600 baud. This value is most important
  // for the XBee. Make sure the baud rate matches the config
  // setting of your XBee.
  XBee.begin(9600);
  Serial.begin(9600);
}

void loop()
{
  if (Serial.available())
  { // If data comes in from serial monitor, send it out to XBee
    XBee.write(Serial.read());
  }
  if (XBee.available())
  { // If data comes in from XBee, send it out to serial monitor
    Serial.write(XBee.read());
  }
}


I get gibberish from the serial monitor. This is a copy paste from the monitor

õ¥%å­J^õ¥%å­J€�¨,J€�¨,êþõ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€
õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€õ¥%å­J€
õ¥%å­J€õ¥%å­J€÷¥%å­J€õ¥%å­J€õ¥%


I have tried various bits of code to communicate to the Bluetooth module and I get unreadable replies.
I have also tried other serial monitors as well and get the same thing...

My questions are these
How can I get into AT Mode with this setup? I have no switches on my units.
Why am I getting gibberish in the serial monitor? I have set the baud to be 9600 for the monitor

Thanks in advance for any help.
#7658
Hello,

Welcome!

1 You may need the module to enter Xbee's AT mode_Xbee adapter, the expansion shield could not do that job.

2 What's the baud reat setting on your monitor, it might not be 9600 so you got the gibberish. Check it please!

(9.48 KiB) Downloaded 2812 times


Btw, what's the arduino controler you use? Leonardo? I guess the leonardo or mega because I saw the code below:
Code: Select all
if (Serial.available())
  { // If data comes in from serial monitor, send it out to XBee
    XBee.write(Serial.read());
  }
  if (XBee.available())
  { // If data comes in from XBee, send it out to serial monitor
    Serial.write(XBee.read());
  }
#7662
catttdaddy2000 wrote:Thank you. I will try to pick up an adapter.
No my baud is 9600... I also have NL&CR selected but still get gibberish....
I am using an Arduino UNO.


okay, then remember to set the Xbee module's serial rate to 9600bps.
#7665
Code: Select all
  
XBee.begin(9600);


Sorry I am not familiar with the library which include "XBee.begin(***);" This bit of code seems dealing with configuring the Xbee module's serial baud rate. But I am not sure, you may better look into its manual book or its library Description, etc to confirm it. Usually, we use Xbee official software "XCTU" to configure the module.

(58.74 KiB) Downloaded 2796 times