Hi,
I'm using the SIM7600CE shield designed by dfrobot, this is the link to it
I need it for a very simple HTTP get to retrieve data from a database with the aid of PHP script pre-uploaded to the server
so to start with it, i used this code:
#include <SoftwareSerial.h>
SoftwareSerial myserial(7, 8); //Define virtual serial port name as myseria,Rx is port 7, Tx is port 8
void setup()
{
myserial.begin(115200); //Initialize virtual serial port
Serial.begin(115200); //Initialize Arduino default serial port
}
void loop()
{
while(1){
while (myserial.available()) {
Serial.write(myserial.read());//if Serial received data, output it via mySerial.
}
while(Serial.available()) {
myserial.write(Serial.read());//if myserial received data, output it via Serial.
}
}
}
So I'm doing okay with the HTTP execution and everything. However, often i get weird characters or even wrong letters in names for example it prints the letter Q instead of S, this "weirdness" happens so randomly and in different places everytime i repeat the whole thing
Example of these weird characters:
You see the second line here, it is supposed to be +HTTPREAD:
The word following Name, it is supposed to be Second, I have no idea how did this S get replaced with Q
And guys before you say this could be a problem from my server, this issue can sometimes happen in another line while this line being perfect, it's just that there is no consistency in the location of the error
So do you have any thoughts on this? how can fix this?
Also FYI:
1-I did try restarting everything
2- my HTTP request is okay, i tried it in the browser and it works nicely