Error 254 with EB066 and PIC16F877A

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
UltimeChichi
Posts: 3
Joined: Mon Apr 25, 2016 2:16 pm
Contact:

Error 254 with EB066 and PIC16F877A

Post by UltimeChichi »

Hello everyone !

I must make a Flowcode program that sends fairly simple SMS. Problem: I have the error 254 after having an error 255. When I had the error 255, I put a 5 sec delay in my program, and all the error increased to 254. I I don't ee where is the problem because the simulation works fine ... I send you my FCF file, I use Flowcode 5

EB066-01 GSM module is connected to the port C, and the LCD is connected to port A. The SIM card is a SIM card Bouygues, but we tested a Orange and SFR SIM Card -> Same result. Even without a SIM card, there was an error 254.

Thank you in advance !

PS: I deleted my phone number from the program
Attachments
Test Du SMS.fcf
(8.5 KiB) Downloaded 616 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Error 254 with EB066 and PIC16F877A

Post by LeighM »

In your project you will need to change the GSM component connections for RTS and CTS.
CTS should be Port C bit 5 and RTS should be Port C bit 2
Also please check that the EB066 patch link is in position B
Details are in the EB066 datasheet.
Hope that helps and gets it working.

UltimeChichi
Posts: 3
Joined: Mon Apr 25, 2016 2:16 pm
Contact:

Re: Error 254 with EB066 and PIC16F877A

Post by UltimeChichi »

Now i have the return value 0 :p

But i don't have any SMS at all :(

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Error 254 with EB066 and PIC16F877A

Post by LeighM »

Hi,

After the initialize, it is best to wait in a loop until a connection is made with network before you attempt to send a message.
Use the macro CheckNetworkStatus

Post Reply