Data storage for Groov epic


#1

I have a mobile data application in which I will not have network access. I thought I could use the USB ports to write out a data file and store the data for later processing.

Is there anyway to store about 250MB of data without adding another computer to the mix?


#2

While you can not access the USB ports for data storage, you can easily access the local 3Gb of user file space on the EPIC.

From PAC Control, you can open a com handle to the file space and read and write to there.
From Node-RED you can use a File Node to read and write from the local file space.

In either case, you can then FTP the file to an FTP server for long term storage and processing once you are back to a location where the EPIC has network.


#3

That sounds like more than enough! :sunglasses: I am new to OPTO22 and I am trying to read TCP data now through a comm handle. Is there any sample code on how to open one to the file space?

Beno - I read your “sketch” on how to use comm handles in charts and will be trying it today to unpack a hex message string.

I am trying to learn quickly.


#4

Yup, we have a sample right here;
https://www.opto22.com/support/resources-tools/downloads/1642_optotutorial_file_management_and_ftp-zip

Doc and sample code.


#5

Well I wasn’t aware of the restriction on the USB port, I guess I just assumed it would be same as R/S series in this respect. Unfortunately I told someone that it did access the USB ports, although, the primary reason for this feature is to allow for adding a USB drive and then using the strategy to load a new strategy and reboot.

I found that Mikrotik routers have a USB port that can be used for this purpose and then using the FTP commands in Epic and install and reboot or restart. Is it still possible to do this (with any FTP device) on Epic?

I know that Kyle said that restricting access to the ports was for security reasons, but why not give the developer that choice to decide if they want “to restrict , or not restrict”? It seems to me this would be a pretty simple change…?


#6

USB access is on the road map, we just need to decide a few issues first.

As far as uploading a new strategy from a USB stick, this is also on the roadmap, but is not as straight forward as just copying a file over and rebooting.

Look for both of these features in future firmware updates.


#7

Ok, so right now you simply cannot move a strategy patch into Epic and then install and run it?
If not, when? My project starts n November.

If that is not an option up front, then how can I make this happen? I assume I could use a batch file on the associated PC and run command line?

Also, is it possible to run C code or batch file from the shell to stop Pac control, and load new strategy and start it?

Another idea is, will it be possible to run shell programs to access the USB?


#8

I guess I want to be clear on one other thing. Is the user file space accessible from FTP internally and externally?
I get my LC tomorrow.


#9

While I’m on the subject Beno…

I gather you have become a fan of Mikrotik and I thought I should mention here that most of the Mikrotik routers/switches come with a USB port on them. I have found that using this for a flash drive works pretty conveniently and the capability of fire wall rules for FTP is endless. It even has the capability of formatting the drive as well.