GSM E Block

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

Moderators: Benj, Mods

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: GSM E Block

Post by Steve »

Please post the FCF and C file for your project.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Chip loading error

Post by greentech »

It is doing the same with pic30f2020 which is supported by the data sheet. The software will not switch between any micro and caution me that the target micro fil eis missin or corrupt.... can u provide me the fix for this error steve?

User avatar
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 E Block

Post by Benj »

Hello Greentech,

Are you switching the target using the View -> Project options menu or via the Chip -> Configure menu. The Chip -> Configure menu will give you the error if you try to change the device there.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

GSM E Block

Post by greentech »

YES BENJ I AM TRYING THE SAME WAY. FLOW CODE FOR PIC MICRO DOES NOT GIVE THIS ERROR.

User avatar
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 E Block

Post by Benj »

What if you click file -> new can you select a different target without error then?

Flowcode for PIC allows you to change to target via the config menu, Flowcode for dsPIC does not allow you to do this due to changes in the configuration mechanism.

All else fails, have you tried uninstalling and reinstalling?

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

I DID TRY RE INSTALLING but no use.... same probs.

I just recieved new eb006 v7 from matrix.

and an icd. is there any how to video?

when i open ppp it says NTPORT.DLL NOT FOUND?

i have a multiprogrammer made in china, it works gr8 with just usb, but for this eb006 i have to connect power. is there a way i could program using just usb? my jumper is on usb..

how do i connect icd coz the icd port is different on multi programmer.

User avatar
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 E Block

Post by Benj »

Hello,
I just recieved new eb006 v7 from matrix. and an icd. is there any how to video?
No how to video im afraid but the datasheet should be enough to get you up and running. The v7 multiprogrammer has the ICD functionality built in.
when i open ppp it says NTPORT.DLL NOT FOUND?
Are you using the PPP included with Flowcode or the standalone PPP? If its the standalone version then you may have to download the latest version to avoid this message. Its basically just saying it cannot find the parallel port for the old legacy Matrix programmers.
is there a way i could program using just usb?
EB006 v7 board requires a USB and a power supply connection i'm afraid. Next generation of the board (v8) is able to supply the programming power to the chips from USB but has other downfalls such as you still need a PSU if you are driving a gLCD or anything requiring access to the larger voltage.
how do i connect icd coz the icd port is different on multi programmer.
ICD connects through one of the normal D-type ports but you will not need this as I previously mentioned, the ICD is built into the v7 multiprogrammer. You can keep the Flowkit for debugging your own hardware etc or you can return it and just use the built in one on the EB006.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

benj thanks for replying,

eb007 is up and running. how can i use icd function (just change the jumper to icd?) when i click on icd in flowcode and click simulate icon it returns an error "ICD HAS FAILED TO COMMUNICATE WITH THE TARGET make sure the target is powered correctly, then reset it and try again. "

User avatar
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 E Block

Post by Benj »

Hello,

For the Flowcode ICD to work you must keep the jumper in the USB position and click the simulate icon. The ICD position is used for Microchip ICD and PICkit programming.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

hey benj hope this finds u in good health, i tried with jumper on usb but same prob.

User avatar
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 E Block

Post by Benj »

Hello,

Have you tried a simple 1 second flasher program in non ICD mode? If this is not working then the ICD is not going to work.

There is a troubleshooting guide to ICD available by clicking Help -> Online Resources in Flowcode.

Also maybe you could attach your program and detail which hardware you are using including crystal speeds etc?

Here is a video on ICD.
http://www.matrixmultimedia.com/video.php?v=YE2ShqSZ1v0

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

ICD error

Post by greentech »

i made a test program for icd exactly as shown in the video, but it isnt working.....
Attachments
error in icd2.jpg
(163.21 KiB) Downloaded 4088 times
error in icd.jpg
(163.59 KiB) Downloaded 4088 times

User avatar
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 E Block

Post by Benj »

Hello,

The star * symbol on the title bar indicates that Flowcode has unsaved changes. When this icon is present the ICD will not work as the instance number will have changed.

You need to save your Flowcode file so the star disappears and then use the compile to chip option to send the program to the device. Once you have done this clicking the play button should allow the ICD to startup.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

thanks benj, its working now....:)

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

HI THERE,

i have written a small code for gsm txt msg. but it doesnt seem to work. the gsm module is on rx, tx pins are correctly connected. i am a little confused about at commands.

ATDT<PHONE NUMBER>; DOESNT MAKE A CALL.

BAUD RATE IS 9600
I AM USING SIM900D GSM MODULE.

User avatar
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 E Block

Post by Benj »

Hello,

Have you tried sending the command "AT\n" and seeing if you get a "OK" reply.

You need to send a carriage return character after every command to tell the GSM that the command has finished.

The command to dial a number does not have the second "T" character.

eg to dial a number you would use a string like this.

"ATD07891234567;\n"

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Simple TXT Message Flowcharts

Post by JohnCrow »

Here are 3 simple FC 4.5 programs to send & receive a txt message

Receive a text.
Receive Simple Text Message.fcf
(7.5 KiB) Downloaded 304 times
Send a text. (Change 00000000000 to the number of the phone you want to send to.
Send Simple Text Message.fcf
(9 KiB) Downloaded 336 times
Receive a text & send acknowledgement.
This receives the txt, reads the number it was sent from and sends a message back to that number.
Ackowledge Simple Text Message.fcf
(9.5 KiB) Downloaded 276 times

Hope these simple routines help anyone having problems getting the board to work.

They need FC4.5.18.74 or later. They have been tested on hardware.
1 in 10 people understand binary, the other one doesn't !

User avatar
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 E Block

Post by Benj »

1 in 10 people understand binary, the other one doesn't !
Loving the quote John :D

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

"Life would be so much easier if we only had the source code."

John i am using the latest fcd for ds pic. the component doesnt load in it.......

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: GSM E Block

Post by JohnCrow »

Hi
The GSM e-block component is not included in the dsPIC version of flowcode (Im running 4.4.13.69)
This was released early 2011, before the gsm board was available.
You will have to wait until the next update for this.
There are posts on here about using the board with serial commands, you may have to us it that way for now.
1 in 10 people understand binary, the other one doesn't !

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

john i understand that, but what im trying to figure out is how to? i tried with serial commands but invain.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

Hi benj,
I hope all is well, i just came across a strange problem with gsm module.

I send at command via rs232
"AT+CMGS="MYNUMBER"; "
"13"
"MESSAGE"
"26"
"0"

THE MODULE SENDS SMS BUT ALONG WITH THE TXT IT ALSO SENDS THE AT COMMAND THE MESSAGE SEEMS AS FOLLOW
AT+CMGS="MY NUMBER" AND FOLLOWED BY THE MESSAGE IVE SENT.

CAN U HELP?

User avatar
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 E Block

Post by Benj »

Hello Greentech,

Could you post up the program. Any chance the string containing the AT instruction is being sent twice, once to set up the SMS and again during the message body.

User avatar
greentech
Flowcode V4 User
Posts: 158
Joined: Mon Jan 31, 2011 2:11 pm
Has thanked: 10 times
Been thanked: 2 times
Contact:

Re: GSM E Block

Post by greentech »

here is the fcf file benj.
Attachments
gsm.fcf_pic16
(6.5 KiB) Downloaded 249 times

User avatar
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 E Block

Post by Benj »

Hello,

Please can you give this a try, I have included commands to allow the SMS message format to be defined before the message is sent out.
Attachments
gsm.fcf_pic16
(11.5 KiB) Downloaded 304 times

Post Reply