Forum Software Ferduino code Problem serial1

Problem serial1


Post Number:#1 Post Sun Feb 19, 2017 12:54 pm
Posts: 101
Topics: 22
Solve rating: 0
Joined: Wed Sep 10, 2014 7:07 pm
Topics: 22
Age: 49
Gender: None specified
National Flag:
Italy
hello fernando

I have problems to run the serial port 1 hardware with the code ferduino
whether the use without ferduino uploaded works

I added this to the setup screen

Serial1.begin(9600);   //inizializza seriale 1
delay (2000);


then if I send a command like this or any command

Serial1.println("AT+CMGF=1\r");               
 delay(1500);
 Serial1.println("AT+CMGS=\"xxxxxxxxxx\"\r"); 
 delay(1000);
 Serial1.println("message");         
 delay(1000);
 Serial1.write(0x1A); 


does not work
if I try to load only the test code works perfectly

along with ferduino code does not work

thank you

Post Number:#2 Post Sun Feb 19, 2017 2:52 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Where's connected your RTC?

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Sun Feb 19, 2017 4:45 pm
Posts: 101
Topics: 22
Solve rating: 0
Joined: Wed Sep 10, 2014 7:07 pm
Topics: 22
Age: 49
Gender: None specified
National Flag:
Italy
rtc is connected to Pin 20 21 scl and sda

the Serial1 on pin 18 19
but I've also tried with Serial2, 3
but it does not work

does not send commands

Post Number:#4 Post Sun Feb 19, 2017 5:16 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

If this variable is commented it should work.

#define USE_PINS_18_AND_19_FOR_RTC


Serial 2 and 3 are used for stamps.

If it doesn't work I have no idea about the reason and I haven't hardware (GSM module) to make tests.
Last edited by Fernando Garcia on Sun Feb 19, 2017 6:27 pm, edited 1 time in total.
Reason: Fix typo
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.




Return to Ferduino code





Who is online

Users viewing this topic: No registered users and 1 guest

cron