GPS (u-blox6) and USB to TTL(CP2102)

Hi,

I'm a few days (a few hours at night) trying to solve a problem. I have a GPS module that got the company where I work from u-blox, the u-blox, specifically u-blox6. It is sealed in a box with resin and has a USB cable (so I do not have access to hardware :frowning: ), I tested him in the u-center software and it is OK, no problem / defect.

I'm using a CP2102 (eBay):

and I'm using SoftwareSerial that comes with the Arduino IDE 1.0.4 to try to communicate, but if I try to perform this simple test the "available()" returns false, can someone help me? Already tried everything, done everything already :frowning:

#include <SoftwareSerial.h>

SoftwareSerial mySerial(3, 2);

void setup()  
{
  Serial.begin(9600);
  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
}

void loop() // run over and over
{
  if (mySerial.available())
    Serial.write("OK");
}

Tks

Sorry my poor english guys :frowning:

Pictures may be worth 1000 words, but one picture is useless.

Post links to the devices you are using, and a schematic showing how they are connected.

Does that mean you connected the USB output of the u-blox6 to the CP2102 module and that to an Arduino? Such a circuit cannot work because both USB devices (the u-blox and the CP2102) are slaves and you don't have a host (master) in your equation.

The u-blox6 modules (http://www.u-blox.com/en/download/documents-a-resources/u-blox-6-gps-modules-resources.html) are just GPS chips with UART interfaces so you probably have another module (maybe with a u-blox6 inside). If you provide a link to your product we can stop asking our crystal balls.

Thank you all for first aid,
I'm sorry the lack of information, is that I'm even in the dark, which informed me (who gave me this GPS that was unused in the company ...) is that this GPS is:
http://www.u-blox.com/images/downloads/Product_Docs/LEA-6_DataSheet_(GPS.G6-HW-09004).pdf

I don't have datasheet of module serial converter, but i have the link (ebay):
http://www.ebay.com/itm/CP2102-USB-2-0-to-UART-TTL-6PIN-Module-Serial-Converter-W-Free-Dupont-cables-/230945561413?pt=LH_DefaultDomain_0&hash=item35c56d9b45

It is being used in the MAX3232 output of GPS (RX / TX) to operate the USB.

For you to understand better my situation, I have this GPS in a box of plastic resinous, ie the electronic circuit of the GPS is in the midst of the resin inside the box, I do not have access to the circuit to check the connections made ??in the GPS, just a cable out of the box with a resinous USB tip, which when connected to the notebook, works perfectly with Docklight and u-center (software for reading the information from the u-blox GPS).

I found two sites that describe the operation of the u-blox NEO (other than mine) converter using a "USB to TTL":
http://ukhas.org.uk/guides:ublox6
http://www.ardushop.com/component/u-blox-neo-6m-gps-module-for-arduino-s-ide-sensor.html

Such a circuit cannot work because both USB devices (the u-blox and the CP2102) are slaves and you don't have a host (master) in your equation.

And is there a way to do this? (master)

Excuse my ignorance. :frowning:
tks

You can use a USB host shield but it's probably cheaper to buy a new GPS module than to connect this one to the Arduino.

Where is the information coming from that the GPS uses a MAX3232 to drive the USB bus?

Hi guys :slight_smile:

I getting open box GPS, and found a circuit board with several resistors and capacitors, but the main one was the antenna, module u-blox and MAX3232 (http://circuits.datasheetdir.com/122/MAXIM-MAX3232-pinout.jpg)

It is using the u-blox lea-6S
http://www.u-blox.com/en/gps-modules/pvt-modules/lea-6-family.html
http://www.u-blox.com/images/downloads/Product_Docs/LEA-6_DataSheet_(GPS.G6-HW-09004).pdf

The connection between MAX3232 and u-blox LEA-6 is performed as follows (I found using the multimeter):

(sorry my bad draw)

Could you help me? I have a arduino duemilanove and would like to use this GPS, I can use NewSoftSerial?
If I connect rx tx in arduino it will work now?

Thanks

MAX3232 converts the signal ttl (gps) to rs232?

The arduino is compatible with rs232?

Circumvent the MAX3232 and use a logic level converter to convert the Arduinos 5V to the u-blox6 module's 3V3.

MAX3232 converts the signal ttl (gps) to rs232?

The GPS chip does NOT have TTL level signals.

The arduino is compatible with rs232?

No, RS232 uses +/-15V which would damage the Arduino's input pins immediately.