Module is not awake when connect to arduino uno

The SparqEE CELLv1.0 device.
stupidteddy
Posts: 2
Joined: Thu Sep 15, 2016 4:21 am

Module is not awake when connect to arduino uno

Postby stupidteddy » Thu Sep 15, 2016 4:50 am

Hi dear friends, it would be really nice if someone can help us with our project. We want to use 3g data connection to send message back to our own server. Currently we are testing on the website that is provided by the Sparqee (www.dbunplugged.com).
We are using arduino uno and sparqee cellv1.0.
So we already test the 3g on the module with a sim card and it is working and able to send message back. But when we trying to use jumper wire to connect module and arduino to send message to this www.dbunplugged.com, and it shows check power,the module not on. so can we ask
1. what's the correct connection between arduino uno and module. We get really confused with 3.3v, 5v , tx rx and other pins.
2. how to wake up the module.

Thank you :D

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Thu Sep 15, 2016 6:19 pm

How did you then test the SIM card and the 3G if you can't get the module working?

The module is powered on by bringing the PO pin low to GND. You can do it manually with a jumper wire or with a command off of an IO pin from the arduino. For connection, you should look at the CELLv1.0 page at: http://www.sparqee.com/portfolio/sparqee-cell/. Here is the image explaining the connections:
Image
Vin is connected to VBUS. If you're not using USB, only VIN needs power and there is an onboard regulator. Vref is supposed to be the power level of the IO pins of your connecting board - so on an arduino, connect it to Vref on the Arduino (5v or 3.3V depending on the model). GND is to GND and PO to an IO which can momentarily bring it low to turn on. Then obviously RX and TX are the UART pins.

If you're not using the arduino shield (http://www.sparqee.com/portfolio/sparqee-shielda/), you'll need to modify the code or just use the generic CELLv1.0 code. This is because the shield looks for specific pins (which you can mirror with jumper wires by looking at the schematic. If you're just looking at above image and using minimal pins, your monitoring pins need to be chosen based on your needs/desires/options - for example, you might not have 3 DIO pin on the network status (red, blue, green) indicating power and network connectivity - although I would suggest those are the three pins to use in order to monitor - if one of them is on, the module is on, and if green or blue is on, it's connected to a network.

stupidteddy
Posts: 2
Joined: Thu Sep 15, 2016 4:21 am

Re: Module is not awake when connect to arduino uno

Postby stupidteddy » Mon Sep 19, 2016 11:02 pm

Thank you so much for your reply. The module is working when we test it but when we connect it with arduino uno, it says module is sleeping and check power. So can we ask more details how shall we connect with arduino uno? Thank you so much.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Thu Sep 22, 2016 12:59 pm

stupidteddy wrote:Thank you so much for your reply. The module is working when we test it but when we connect it with arduino uno, it says module is sleeping and check power. So can we ask more details how shall we connect with arduino uno? Thank you so much.


Can you be more specific on what you're seeing... an exact screenshot of the code would point at where the issue is coming from.

Did the lights turn on - red, blue, green or are you testing those pins? You'll need to test them with resistors.

REGSteve
Posts: 10
Joined: Thu Sep 22, 2016 8:02 am

Re: Module is not awake when connect to arduino uno

Postby REGSteve » Wed Sep 28, 2016 8:14 pm

Hi, I am having the same issue. This is my connection:

Cellv1.0
VIN---->VBUS
RX----->ARDUINO_1 PIN 1(TX)
TX----->ARDUINO_1 PIN 0(RX)
GND--->ARDUINO_1 GND
PO----->ARDUINO_1 PIN 9 (PO)
VREF-->ARDUINO_1 5V

ARDUINO_1
ARDUINO_1 PIN 11(TX)---->ARDUINO_2 PIN 0(RX)
ARDUINO_1 PIN 10(RX)---->ARDUINO_2 PIN 1(TX)

The cell is also connected to the main power supply via the adapter.
Image

I am using the shield talk arduino program. i am using software serial:
int sw_rx = 10;
int sw_tx = 11;

SoftwareSerial mySerial(sw_rx, sw_tx); // RX, TX

void loop() {
// mySerial.listen();
if (mySerial.available()) {
char myChar = (char)mySerial.read();
Serial.print(myChar);
}
}


void serialEvent() {
while (Serial.available()) {
char inChar = (char)Serial.read();
mySerial.println(inChar);
//Serial.print(inChar);
}
}

I also momentarily pull-down PO using PIN 9. Followed by monitoring both arduinos on serial monitors but there is no response from the CELL.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Thu Sep 29, 2016 3:54 am

Clever setup using 2 arduinos

Is PO connected to the arduino and set high or floating? Leave it floating if ur just manually toggling it.

I would check the polarity of the tx/rx as nothing is popping out as wrong at the moment. And by check I just mean flip.

If you can status the 3 network pins (red green blue), thatd be helpful. 10k resistor from vdd to the pin then monitor the pin. Or put an led+res across to simply see the light to know whats happening a little better.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Thu Sep 29, 2016 3:55 am

Also, is this all the code? I dont see the HW serial being initialized or the dio pint to connect to arduino 2

REGSteve
Posts: 10
Joined: Thu Sep 22, 2016 8:02 am

Re: Module is not awake when connect to arduino uno

Postby REGSteve » Sun Oct 02, 2016 6:27 pm

I have tried swapping around the rx/tx pin but there is still no reply from the arduino. I am using the sample arduino shieldA_talk program and just deleted the call function of cmd_power() and gpio_turnOn(). Instead, i just toggle the PO pin from HIGH to LOW and back to HIGH again. What do you mean by "dio pint to connect to arduino 2".

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Sun Oct 02, 2016 6:35 pm

on your second arduino, if you directly connect rx to tx, do you see an echo when you type?

Do you have a shield or just the CELLv1.0? Because the shield will give you extra indicator lights.

User avatar
donjohnii
Site Admin
Posts: 686
Joined: Tue Jul 30, 2013 2:19 pm

Re: Module is not awake when connect to arduino uno

Postby donjohnii » Sun Oct 02, 2016 6:36 pm

donjohnii wrote:Also, is this all the code? I dont see the HW serial being initialized or the dio pint to connect to arduino 2


I mean you're not initializing the serial driver, so if you're not initializing the driver for the HW serial and SW serial, then it wont work in general.


Return to “CELLv1.0”

Who is online

Users browsing this forum: No registered users and 1 guest