GSM component with PIC16F1619 have any errors
1. After firt start of created project, component properties UART channel havent predefined uart tx and rx pins, show Unconnected
Click to "Software" showed as "Chanel1" with Unconnected pins
Click to "Chanel1" showed as "Chanel1", but seems as need to be a "Software", it have predefined TX and RX pins, and have active Remap tx and rx.
2. Simple program with
GSM Init ------Loop, in loop only macro SendTextMessage and 10sec delay
start to send to gsm module many times per second commands AT+CMGF=17,167,0,0, AT+CNMI=1,2,0,0,00, AT+CSMP=17,167,0,0 . I see commands with Putty terminal program on controller TX pin with disconnected GSM module.
Other question:
How I can send " sign inside the string?
For example to use UART component Send String for sending AT command AT+CMGS="12345678"
String "AT+CMGS="12345678"" give sintax error
Thanks
GSM component on PIC16F1619 ERROR
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
I'm not sure I understand your question, do you mean that you think we should predefine a default for Rx and Tx?1. After firt start of created project, component properties UART channel havent predefined uart tx and rx pins, show Unconnected
Click to "Software" showed as "Chanel1" with Unconnected pins
Click to "Chanel1" showed as "Chanel1", but seems as need to be a "Software", it have predefined TX and RX pins, and have active Remap tx and rx.
You need to check network status first, before you attempt to send a message2. Simple program with
GSM Init ------Loop, in loop only macro SendTextMessage and 10sec delay
"AT+CMGS=\"12345678\""How I can send " sign inside the string?
For example to use UART component Send String for sending AT command AT+CMGS="12345678"
String "AT+CMGS="12345678"" give sintax error
-
- Posts: 36
- Joined: Mon Dec 22, 2014 10:04 pm
- Location: TALLINN
- Has thanked: 5 times
- Been thanked: 2 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
Thank you!LeighM wrote:I'm not sure I understand your question, do you mean that you think we should predefine a default for Rx and Tx?1. After firt start of created project, component properties UART channel havent predefined uart tx and rx pins, show Unconnected
Click to "Software" showed as "Chanel1" with Unconnected pins
Click to "Chanel1" showed as "Chanel1", but seems as need to be a "Software", it have predefined TX and RX pins, and have active Remap tx and rx.
If you choose "Channel1"in properties, you cannot change uart pins, Flowcode use microcontrollers hardware uart channel. But in this situation program show Unconnected pins and you cant change it. Please check GSM component Channel properties if used 16f1619 picYou need to check network status first, before you attempt to send a message2. Simple program with
GSM Init ------Loop, in loop only macro SendTextMessage and 10sec delay
Ok, i will try to check"AT+CMGS=\"12345678\""How I can send " sign inside the string?
For example to use UART component Send String for sending AT command AT+CMGS="12345678"
String "AT+CMGS="12345678"" give sintax error
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
Right, thanks, I see now, there is something strange going on with the Channel selection drop list.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
Hello,
The GSM component shouldn't provide a Software channel, this is because the component relies on the hardware UART receive interrupt and so a software channel wouldn't work.
The TX and RX pins are provided by the TX Remap and RX Remap options on the PIC16F1619 as the chip has an advanced remappable peripheral feature.
When initially dragging the GSM component onto the panel the software channel is not available which is correct. On saving and reloading the project the software channel is now there in the list which is wrong.
This has now been fixed in the updated component, simply copy to your "Flowcode 7/components" folder and restart Flowcode for the changes to be loaded.
The GSM component shouldn't provide a Software channel, this is because the component relies on the hardware UART receive interrupt and so a software channel wouldn't work.
The TX and RX pins are provided by the TX Remap and RX Remap options on the PIC16F1619 as the chip has an advanced remappable peripheral feature.
When initially dragging the GSM component onto the panel the software channel is not available which is correct. On saving and reloading the project the software channel is now there in the list which is wrong.
This has now been fixed in the updated component, simply copy to your "Flowcode 7/components" folder and restart Flowcode for the changes to be loaded.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 36
- Joined: Mon Dec 22, 2014 10:04 pm
- Location: TALLINN
- Has thanked: 5 times
- Been thanked: 2 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
Please check PIC16F1619 Watchdog settings.
Watchdog timer is always ON with fixed WDT period.
Program starts, works 3 seconds and restarts.
Program works fine only if set "auto clear watchdog"
UPDATED: Program do not work fine, WDT autoclear setting increase program restarting time from 3sec to 6 sec.
WDT enable-disable option and WDT period setting do not make any change : WDT always on with foxed period ~3sec
In attached picture WDT disabled, but really it is enabled Bug, or any my mistake?
Thanks!
Watchdog timer is always ON with fixed WDT period.
Program starts, works 3 seconds and restarts.
Program works fine only if set "auto clear watchdog"
UPDATED: Program do not work fine, WDT autoclear setting increase program restarting time from 3sec to 6 sec.
WDT enable-disable option and WDT period setting do not make any change : WDT always on with foxed period ~3sec
In attached picture WDT disabled, but really it is enabled Bug, or any my mistake?
Thanks!
- Attachments
-
- wdt1.jpg (80.25 KiB) Viewed 5588 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
Hello,
It looks like it should be disabled, I've double checked with the datasheet and that seems to confirm.
If you increase the WDT Configuration Period does this give you a longer runtime? This would confirm that the watchdog is still active.
You can also try forcing a software disable using the following in a C icon at the start of your program.
It looks like it should be disabled, I've double checked with the datasheet and that seems to confirm.
If you increase the WDT Configuration Period does this give you a longer runtime? This would confirm that the watchdog is still active.
You can also try forcing a software disable using the following in a C icon at the start of your program.
Code: Select all
WDTCON0 = 0x24;
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 36
- Joined: Mon Dec 22, 2014 10:04 pm
- Location: TALLINN
- Has thanked: 5 times
- Been thanked: 2 times
- Contact:
Re: GSM component on PIC16F1619 ERROR
After using C code inserted, WDT has disabled.
Change of WDT period setting not give any effect.
Seems as any trouble with configs
Change of WDT period setting not give any effect.
Seems as any trouble with configs