Serial connection at 9600 8-E-1
Device issues e0 until initialized with 81 40. Initialization code can be sent at any time.
import serial| # this is the GitLab-CI file for building the image | |
| variables: | |
| CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev | |
| stages: | |
| - dockerize | |
| dockerize: | |
| stage: dockerize | |
| script: |
| S = TcpSocket.New(); | |
| S.EventHandler = print; | |
| S:Connect(<HOST>, 80); | |
| S.ReconnectTimeout = 0; | |
| function randomWebSocketKey() | |
| return Crypto.Base64Encode(('x'):rep(16):gsub('.', function() return string.char(math.random(0,255)) end)); | |
| end; | |
| S.Connected = function() |
| --[[ | |
| Q-Sys Redis Client | |
| Author: Michael Goodyear | |
| Email: [email protected] | |
| Version: 1.1 | |
| Copyright 2020 Locimation Pty Ltd | |
| Permission is hereby granted, free of charge, | |
| to any person obtaining a copy of this software | |
| and associated documentation files (the "Software"), |
| --[[ | |
| Notes: | |
| - Remove any data:image/type; prefix | |
| - Legend = '' prevents the Style JSON from appearing as the button label | |
| - DrawChrome hides the button itself and just displays the image. | |
| ]] | |
| Controls['Artwork'].Style = json.encode({ | |
| DrawChrome = false, |
| -- First we find all the files in the "playlist" directory | |
| PlaylistFiles = dir.get('media/Playlists/') | |
| -- Next we make a table that's going to contain all our playlist names | |
| PlaylistNames = {} | |
| -- Next we go through the list of playlist files we've found | |
| for _,f in ipairs(PlaylistFiles) do | |
| -- Open the file |
| # this is the GitLab-CI file for building the image | |
| variables: | |
| CURRENT_IMAGE_TAG: rfid-applied/netcf35_build_environment:dev | |
| stages: | |
| - dockerize | |
| dockerize: | |
| stage: dockerize | |
| script: |
| You can use Visual Studio 2015 to compile to Compact Framework 3.5 by following the instructions below: | |
| - Install the '.NET Compact Framework 3.5 Redistributable'; | |
| - Copy files from '*C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE*'; | |
| - Paste the files at '*C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\\.NETFramework\v3.5\Profile\CompactFramework*' directory; | |
| - Create a directory named '*RedistList*'; | |
| - Create a file named '*FrameworkList.xml*' at '*RedistList*' directory; | |
| - Set the follwing content to the file created: | |
| <?xml version="1.0" encoding="utf-8"?> |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |