Welcome to %s forums

BrainModular Users Forum

Login Register

Text file send and receive

I need help on a Patch
Post Reply
dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 02 Jan 2018, 18:31

Hey guys. Was just scratching my head at the process and not being able to send/get properly. I have an FTP hosting site and cannot get the file to upload or download. Is there a way to have get file access an FTP site directly instead of a HTTP url? Or is there something I'm not seeing?

Thanks!

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 11 Jan 2018, 19:40

.text file ?

dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 25 Apr 2018, 21:31

yes .text file. The idea is, if i send a text file that equates on the other side as osc data, technically, I can send OSC through the internet using ftp get/send. If i want something on, I send a .text file with "1", off with a "0" but how?

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 26 Apr 2018, 12:00

If you want to use the network, maybe simpler to use the Share option in Usine no ?
Or maybe i misunderstood

dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 30 Apr 2018, 22:15

The concept is this: If use "Write Textfile" with something as simple as "0" and then use "FTP Putfile" to send it to an FTP, then receive it with "Get File" and assign it to say, a state of a button - Is it then possible to send the "0" to turn a button off between two different systems that are on two different networks (not in same space, over the internet)?

dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 27 Dec 2018, 08:23

Anyone able to tell me how to use these two modules? seems simple enough and I am able to upload txt files, however am having a hard time getting them. Any thoughts?

User avatar
oli_lab
Member
Posts: 1263
Location: Brittany, France
Contact:

Unread post by oli_lab » 27 Dec 2018, 09:54

did you try to get the file by its http address ?

http://yoursite/yourfile.txt
http://oli-lab.org

Win11 Ryzen9/32GB RAM - RME MADIFACE - SSL alpha link 4-16 - OSC capable interfaces

follow OLI_LAB adventures on Mastodon
@olivar_premier@mastodon.social

dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 06 Jan 2019, 18:45

Ok, so after having a blonde moment, I realized that the ftp has to have a published website attached to it. Seemed like something I should have known but tried to do it "the free way" first. I am able to read the txt files like a dream, however have this issue that happens every time...I press the put file button and at first, there was a very big slowdown and it appeared that the software was hanging. Now religiously Hollyhock crashes and there is nothing that brings it out of hanging state. I just upgraded to the latest version and am trying it on a separate computer in a day or two, so I'll keep you posted.

dmitriyc
Member
Posts: 84
Contact:

Unread post by dmitriyc » 08 Jan 2019, 23:07

....More findings! I was able to send text and get the same .txt file, however there seems to be an issue....if the delay between send and get is below 800ms, then get file doesn't see the change until the next time it gets the file. Here is where it gets tricky: if i don't delay the time between the send files at 3000ms, Usine freezes and becomes unresponsive. Also, I tried to insert a secondary get ftp in between this 3000ms delay and i get mixed results. Sometimes it works for 20 seconds, other times it freezes right away. Is this how this is or is there a way to shorten the delay necessary between send texts? Preferably I would like a text file to be sent and received every 5ms. Is that too lofty of a goal?

Post Reply

Who is online

Users browsing this forum: No registered users and 84 guests