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?
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.
That sounds like more than enough! 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.
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âŚ?
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.
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.
Hi ben, im trying to storage data from a Epic Pr2 via FTP but I couldnât create it, The error it generates is file not found on server, but I ran the same program on an R1 and it worked without problems, I donât know if I have to make a special configuration in the EPIC.
I was already able to create the file temporarily in the epic, but it does not send it to the ftp server, which does register the connection attempt, the code I use to send it is the following.
SetCommunicationHandleValue(âfile:a,/home/dev/unsecured/FTP.txtâ,chGarzaHandle);
Estado_Archivo = OpenOutgoingCommunication(chGarzaHandle);
if (Estado_Archivo == 0) then
DelaySec (1.0);
SetCommunicationHandleValue(âftp:xxx.xxx.xxx.xxx:21,anonymous,â,chGarzaFTP);
Estado_Archivo = OpenOutgoingCommunication(chGarzaFTP);
delaysec (5);
if (Estado_Archivo == 0) then
Estado_Archivo = SendCommunicationHandleCommand(chGarzaFTP, âappe:/home/dev/unsecured/FTP.txt,FTP.txtâ);
if (Estado_Archivo == 0) then
Estado_Archivo = SendCommunicationHandleCommand(chGarzaHandle, âdeleteâ);
endif
DelaySec (1.0);
Ah, sorry, your original post said âcouldnât create itâ⌠That threw me off.
What version of EPIC firmware and what version of PAC Control do you have?
Both of those had FTP bug fixes some time back, but itâs possible you are using older versions with the issue in them.
Not exactly, I created the file at this address of the EPIC file:w,/home/dev/unsecured/T_FTP.txt, and then with NodeRed precisely this node ânode-red-contrib-ftp: ftp inâ, take the file from the path and sent it to the FTP address I wanted.
I created 1 file each day and sample 1 point every 15 min. on EPIC: â/home/dev/unsecured/FTP.txt,â with Node-Red and PAC Control.
I need to get the EPIC files to PC via FTP, the program operates correctly in PAC R1 (data stored in Micro SD card), but in EPIC, Maybe I need to install FTP server on EPIC