Injector for GSM component (SOLVED!)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Injector for GSM component (SOLVED!)

Post by tiny »

Is there a way to test the GSM component in Flowcode via an injector directly on the PC?
Thanks
Christina
Last edited by tiny on Mon Dec 04, 2017 3:54 pm, edited 1 time in total.

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

I would like to connect a SIM900 board via a USB to TTL Uart to my PC, and then test some flowcode routines. This is the easier way than writing the program into the PIC and then testing it out. Therefore my question: is there an injector with which this works?

Christina

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

Does nobody have an answer for me?

Christina

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

Re: Injector for GSM component

Post by LeighM »

Sorry, yes, there is a "COM Injector" component that can be attached to the GSM component and do what you require

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

Thanks for the answer!
I had tried with the COM injector. Either the flowcode crashes or the routine already hangs on the GSM initialise command.
With an ESP8266 or Nextion Display, it works well with the injector, but not with the GSM component.
This is also the reason for my request here.
Christina

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

Re: Injector for GSM component

Post by LeighM »

Hi Christina
I have had a look at the GSM component and do not yet see any reason why it should not work, but I don't at present have any GSM hardware to test.
So, just to confirm, your ESP8266 works via USB virtual COM port to the COM injector with the Flowcode ESP8266 component?
What Windows version is your PC?
Thanks,
Leigh

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

I am using Windows 7 Pro 64Bit and Flowcode 7.2.1.4
The COM injector with the UART component works very well, even if I control the SIM900 module via UART. Only with the GSM component there is the problem.

Test:
Macro GSM Initialise and SendString without USB-to-UART works
Macro GSM Initialise with USB-to-UART, but without SIM900 does not work, flowcode hangs.
So it does not matter if a GSM board is connected to the USB-to-UART module.

Christina

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

Re: Injector for GSM component

Post by LeighM »

Thanks for the information.
I will look a further into the issue.

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

Re: Injector for GSM component

Post by LeighM »

Hi Christina,
I've found and fixed some timeout issues with the GSM use of the COM injector.
Please try the attached updated component.
Drop it into your Flowcode installation \Components directory and re-load the project.
Attachments
GSM.fcpx
(16.85 KiB) Downloaded 251 times

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

Hanging on initialization is now gone, but there is no communication between Flowcode (injector) and the FTDI USB-to-Uart module.
With the UART component, I can see the activities between Flowcode and the hardware on the FTDI Status Leds Receive and Transmit, with the GSM component no activity and also no reaction of the connected SIM900 Board.

Christina

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

Re: Injector for GSM component

Post by LeighM »

That is odd, I got output from my test program, from a USB FTDI, with oscilloscope connected to tx/output pin.
I don't have any hardware to send a reply.
I've attached my simple test program in case the property settings are useful to you.
Attachments
GSM_TEST_COMM.fcfx
(9.38 KiB) Downloaded 280 times

User avatar
tiny
Posts: 200
Joined: Wed Jul 08, 2009 8:29 am
Has thanked: 51 times
Been thanked: 93 times

Re: Injector for GSM component

Post by tiny »

You're right, the mistake was my mistake!
It works, thank you very much !!!
Great!!!

Kind regards
Christina

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

Re: Injector for GSM component

Post by LeighM »

Glad you have it working now, thanks for letting us know.

Post Reply