Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Mac OS

  1. Issues with Makefile: Download latest version of serialbasedprotocol folder contents from here
  2. Change directory to your current Engine Installation and then to syslib folder.
  3. Unzip the perifupdate.zip file downloaded in step (2)
  4. Change directory to serailbasedprotocols and run command "make"
  5. Copy the libserial.dylib file from syslib/serialbasedprotocols/library to /Library/Java/Extensions/ folder

Raspberry Pi (or Other smaller Memory size Controllers)

...

Background

TQLEngine UI supports importing of projects whose contents (as .zip) are provided as HTTP downloadable file. In some cases the controllers on which TQLEngine is installed my not have proper / stable internet connection. Therefore importing of projects may be come problematic. Here are the steps on how to import projects where there is no internet connection.

  1. Download and install TQLEngine using normal procedure outlined here.
  2. Cd to TQLEngine installation folder
  3. Create directories:
    1. mkdir -p resources/fileserver/deploy
    2. mkdir localrepo
  4. Create a file named "GenericStaticFile.mqp.xml" in resources/fileserver/deploy folder with content:

    Code Block
    languagexml
    titleServe Files Locally
    linenumberstrue
    <NewPackage>
      <RESTHeaders>
        <Headers>
          <Connection>close</Connection>
          <Access-Control-Allow-Origin>*</Access-Control-Allow-Origin>
          <Access-Control-Allow-Methods>GET, POST, PUT
          </Access-Control-Allow-Methods>
          <Access-Control-Allow-Headers>Content-Type,
            X-Atomiton-Studio-Key,X-Atomiton-Session-Key
          </Access-Control-Allow-Headers>
        </Headers>
      </RESTHeaders>
    
      <NewFacetInstance fid='localfiles' name='File' Type='SffHttpStaticFileFacet'>
        <OnActivate>
          <Process BasePath='.' Resource='localrepo' TailPath='index.html'>
            <Include>RESTHeaders</Include>
          </Process>
        </OnActivate>
      </NewFacetInstance>
    </NewPackage>
  5. Add this entry to sff.local.config.xml file

    Code Block
    languagexml
    titleSff Local Config file
    linenumberstrue
    <sff.local.deploy>resources/fileserver/deploy</sff.local.deploy>
  6. Restart the engine.
  7. You can serve any file in localrepo folder using the endpoint

    Code Block
    languagexml
    titleFiles EndPoint
    linenumberstrue
    http://<HostORIPofTQLEngine>:<PortOfTQLEngine>/fid-localfiles/localrepo/<NameOfFileYouWantTOView>
  8. If you export the project from TQLStudio or get project zip files from elsewhere you can always copy the zip files to localrepo folder on the controller machine using (scp or other commands)
  9. Now you can import the project using endpoint in step 7.