Coder Social home page Coder Social logo

hacktag's People

Contributors

adityad0 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

hacktag's Issues

Weird characters from LTE module A7670C

I recently bought an LTE module SIM A7670C online when connected to my laptop with a USB-TTL adapter with a baud rate of 115200, I can communicate with the module without any issues, I can send and view SMS and also make and receive phone calls as all AT commands seem to work fine. However, when connected to an Arduino UNO to Pins 1 and 2, I see these weird characters appear on the serial monitor as a response every time I send an AT command or when I receive a call or text. I know the baud rate is correct, the connections are correct, and that the module works fine.
Here is what I receive when I type "AT," ����Q(�+'�RH� ���RJ��

Here is my program:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(1, 2);
void setup() {
Serial.begin(9600);
mySerial.begin(115200);
Serial.println("started");
char msg[100];
sendATcommand("AT", msg);
Serial.println(msg);
}
void loop() {
while(Serial.available()) {
mySerial.write(Serial.read());
}
while(mySerial.available()) {
Serial.write(mySerial.read());
}
}
int sendATcommand(const char* ATcommand, char* gsmMsg) {
char *ptr = gsmMsg;
mySerial.write(ATcommand);
delay(500);
while(mySerial.available() > 0) {
*ptr = mySerial.read();
ptr++;
}
*ptr = '\0';
return ptr - gsmMsg;
}

I've tried to recreate the same circuit with a SEEED Xiao SAMD 21, but unfortunately I'm still having the same issue.

LINK: https://forum.arduino.cc/t/weird-characters-from-lte-module-a7670c/1079880

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.