Page 1 of 1

Flowcode simulator control with an Android phone

Posted: Mon Oct 14, 2013 9:11 pm
by benp
Hello,

I had a dream and flowcodeV6 can do it: control flowcode simulation with Android.
Here is the video which explain what I did:
[/youtube]

I explained in the past how to do this with eblocks only:
http://www.elektor.fr/magazines/2012/se ... 0319.lynkx
http://www.matrixmultimedia.com/resourc ... ndroid.pdf

You can now do it with simulation and hardware!!!

How can this be done? Matrix staff don't know but give the right tool: it is possible to send the rs232 traffic to a com port.
Then you only need to send the information to TCP or UDP.

What you need to do this:
FlowcodeV6
Android device(simulator can be used)
Packet injection (on google play for Android)
A virtual COM port to udp software

As virtual COM to udp, you can use this:
http://pcmicro.com/TCP-COM/index.html

The basic steps to do this yourself:
-Install packet injection on your Andoid device
-Connect the android to your wifi network
-Install the virtual com to your windows computer
-start with UDP, IP adress of phone port 5000
-Start flowcodev6 with this program
test led rs232.fcfx
(8.24 KiB) Downloaded 346 times
-Connect flowcode to the virtual com port (port 7 for me)
-start packet injection
-connect to android device ip port 5000
-start simulation
-send 1 or 2 or 4 with packet injection and Enjoy!!!

Re: Flowcode simulator control with an Android phone

Posted: Sun Nov 24, 2013 10:50 am
by benp
Did somebody of you test this.
I am looking for a free software to do the udp(or tcp) to virtual com.

I used this software for the youtube exemple:
http://pcmicro.com/TCP-COM/index.html
But there is no site licence for this one.

Do you know another one or can matrix do it?

Re: Flowcode simulator control with an Android phone

Posted: Sun Jan 19, 2014 10:05 am
by benp
Any news from the matrix staff on the possible implementation of a connection to UDP or TCP without a third party software?
This development would be great to be able to do a true electronic and mechanical control on line.

In the meantime, here is a free solution to do a com to tcp bridge (no com to udp):
http://www.hw-group.com/products/hw_vsp/index_en.html

Re: Flowcode simulator control with an Android phone

Posted: Mon Jan 20, 2014 11:43 am
by Benj
Hello,

The current TCP Base component built into v6 is linked to a DLL that we wrote that allows TCP and UDP comms to be performed in simulation on a PC.

If you want to have a play around with this then we can send across the examples we have so far to try and get something up and running for you.

Re: Flowcode simulator control with an Android phone

Posted: Mon Jan 20, 2014 4:06 pm
by benp
Hello,

Are your UDP simulation working on EB023-1 only or can it be used on EB069?
-> Can you send examples of a working UDP(better) or TCP simulation on a PC.
One way for me would be to use EB023 simulation to simulate the UDP COM on PC and use RS232 for hardware COM with EB069.

Another better way for me would be to modify the RS232 component and add the UDP output to your dll.
-> Do you have a document which explain how to modify one component or can you do this?

If we want that the simulation behave like the EB069, no need to specify an IP adress, only the port is necessary (answer to the last IP input)
The equivalent netcat command (terminal from/to udp in linux) would be:
nc -l -u 5000 (which mean -l:listen to any IP/answer to that IP -u:UDP 5000:port 5000)

We use EB069 and there is no UDP component. Your way to use the EB069 is not easy because there is a lot to programm.

We use the wifi component that way(I am the author of this document):
http://www.matrixmultimedia.com/resourc ... ndroid.pdf
See p7 for wiring: now simplified, only TX and RX connected, RST wired to 0V and trig to 5V.
See p9 for config: web interface only, no RS232 config
That way, the EB069 just act as a RS232 to UDP (or TCP) bridge. Only 8 flowcode steps to perform that example.

Re: Flowcode simulator control with an Android phone

Posted: Mon Jan 20, 2014 10:52 pm
by benp
I try this for UDP simulation.
UDPtest.fcfx
(7.06 KiB) Downloaded 392 times
I can see no traffic on UDP
Is this the right way?