Page 2 of 3

Re: GSM E Block

Posted: Tue Jul 19, 2011 8:10 am
by Steve
Please post the FCF and C file for your project.

Chip loading error

Posted: Mon Jul 25, 2011 11:18 pm
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?

Re: GSM E Block

Posted: Tue Jul 26, 2011 9:56 am
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.

GSM E Block

Posted: Tue Jul 26, 2011 8:05 pm
by greentech
YES BENJ I AM TRYING THE SAME WAY. FLOW CODE FOR PIC MICRO DOES NOT GIVE THIS ERROR.

Re: GSM E Block

Posted: Wed Jul 27, 2011 10:39 am
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?

Re: GSM E Block

Posted: Thu Jul 28, 2011 5:30 pm
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.

Re: GSM E Block

Posted: Thu Jul 28, 2011 5:49 pm
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.

Re: GSM E Block

Posted: Thu Jul 28, 2011 8:17 pm
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. "

Re: GSM E Block

Posted: Fri Jul 29, 2011 9:52 am
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.

Re: GSM E Block

Posted: Sun Jul 31, 2011 9:40 pm
by greentech
hey benj hope this finds u in good health, i tried with jumper on usb but same prob.

Re: GSM E Block

Posted: Mon Aug 01, 2011 4:18 pm
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

ICD error

Posted: Mon Aug 01, 2011 7:50 pm
by greentech
i made a test program for icd exactly as shown in the video, but it isnt working.....

Re: GSM E Block

Posted: Tue Aug 02, 2011 10:23 am
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.

Re: GSM E Block

Posted: Tue Aug 02, 2011 9:29 pm
by greentech
thanks benj, its working now....:)

Re: GSM E Block

Posted: Thu Aug 04, 2011 10:39 am
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.

Re: GSM E Block

Posted: Thu Aug 04, 2011 2:20 pm
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"

Simple TXT Message Flowcharts

Posted: Thu Aug 04, 2011 6:37 pm
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.

Re: GSM E Block

Posted: Fri Aug 05, 2011 9:46 am
by Benj
1 in 10 people understand binary, the other one doesn't !
Loving the quote John :D

Re: GSM E Block

Posted: Fri Aug 05, 2011 8:52 pm
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.......

Re: GSM E Block

Posted: Sat Aug 06, 2011 9:31 am
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.

Re: GSM E Block

Posted: Sat Aug 06, 2011 9:38 am
by greentech
john i understand that, but what im trying to figure out is how to? i tried with serial commands but invain.

Re: GSM E Block

Posted: Thu Sep 15, 2011 12:54 am
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?

Re: GSM E Block

Posted: Thu Sep 15, 2011 9:45 am
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.

Re: GSM E Block

Posted: Thu Sep 15, 2011 2:09 pm
by greentech
here is the fcf file benj.

Re: GSM E Block

Posted: Thu Sep 15, 2011 2:54 pm
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.