Can't Find FONA error using set baud sketch

Adafruit cellular platform - SMS and IoT over celluar

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
NineFingers
 
Posts: 31
Joined: Fri Jun 02, 2017 1:38 pm

Can't Find FONA error using set baud sketch

Post by NineFingers »

Adafruit FONA - Mini Cellular GSM PRODUCT ID: 1946
antenna patch
I have tried the LiPo battery and I have also used an external power supply set to max 4.45 volts DC @ a max AMP of 2.25
VBATT to GND reads 4.33 VDC
Please see attached pictures and included sketch with the I.M.E.I section removed due to restrictions of forums.

It is my hope you can help me see the error in my ways and find a solution caused by an ID10t error and not a hardware issue.

Many thanking Ewes'
J


20200124_162247 (Medium).jpg
20200124_162247 (Medium).jpg (179.52 KiB) Viewed 213 times
20200124_162253 (Medium).jpg
20200124_162253 (Medium).jpg (255.05 KiB) Viewed 213 times
20200124_162453_LI (Medium).jpg
20200124_162453_LI (Medium).jpg (218.73 KiB) Viewed 213 times


Code: Select all

/***************************************************
  This is an example for our Adafruit FONA Cellular Module
  since the FONA 3G does not do auto-baud very well, this demo
  fixes the baud rate to 4800 from the default 115200

  Designed specifically to work with the Adafruit FONA 3G
  ----> http://www.adafruit.com/products/2691
  ----> http://www.adafruit.com/products/2687

  These cellular modules use TTL Serial to communicate, 2 pins are
  required to interface
  Adafruit invests time and resources providing this open source code,
  please support Adafruit and open-source hardware by purchasing
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.
  BSD license, all text above must be included in any redistribution
 ****************************************************/

#include "Adafruit_FONA.h"

#define FONA_RX 2
#define FONA_TX 3
#define FONA_RST 4

// this is a large buffer for replies
char replybuffer[255];

// We default to using software serial. If you want to use hardware serial
// (because softserial isnt supported) comment out the following three lines
// and uncomment the HardwareSerial line
//#include <SoftwareSerial.h>
//SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
//SoftwareSerial *fonaSerial = &fonaSS;

// Hardware serial is also possible!
 HardwareSerial *fonaSerial = &Serial1;

Adafruit_FONA fona = Adafruit_FONA(FONA_RST);

uint8_t readline(char *buff, uint8_t maxbuff, uint16_t timeout = 0);

void setup() {
  while (!Serial);

  Serial.begin(9600);
  Serial.println(F("FONA set baudrate"));

  Serial.println(F("First trying 115200 baud"));
  // start at 115200 baud
  fonaSerial->begin(115200);
  fona.begin(*fonaSerial);

  // send the command to reset the baud rate to 4800
  fona.setBaudrate(4800);

  // restart with 4800 baud
  fonaSerial->begin(4800);
  Serial.println(F("Initializing @ 4800 baud..."));

  if (! fona.begin(*fonaSerial)) {
    Serial.println(F("Couldn't find FONA"));
    while (1);
  }
  Serial.println(F("FONA is OK"));


  }

}

void loop() {
}

User avatar
NineFingers
 
Posts: 31
Joined: Fri Jun 02, 2017 1:38 pm

Re: Can't Find FONA error using set baud sketch

Post by NineFingers »

Correct serial baud rate to 115200
Still not working.

User avatar
NineFingers
 
Posts: 31
Joined: Fri Jun 02, 2017 1:38 pm

Re: Can't Find FONA error using set baud sketch

Post by NineFingers »

Set serial to software instead of hardware and lowered VDC to 3.79 V system is responding. AS I said ID10T error

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Can't Find FONA error using set baud sketch

Post by adafruit_support_mike »

Glad to hear you got it working!

Locked
Please be positive and constructive with your questions and comments.

Return to “FONA”