Skip to content

Commit

Permalink
Merge pull request #8 from YooUp/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
LucBerge authored Apr 1, 2021
2 parents 9c8c2d4 + 8c0b568 commit 8ad6d53
Show file tree
Hide file tree
Showing 22 changed files with 50 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
paths:
- 'database/monitors/*.json'
branches:
- master

jobs:
CICD:
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/avocor.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Avocor",
"doc":"https://www.avocor.com/wp-content/uploads/2018/05/RS232-Command-Codes-2019.pdf",
"baudrate":38400,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[127,8,153,162,179,196,2,255,1,0,207],
"SET_POWER_OFF":[127,8,153,162,179,196,2,255,1,1,207],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/benq.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"BenQ",
"doc":"https://benqimage.blob.core.windows.net/driver-us-file/RS232-commands_all%20Product%20Lines.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[56,48,49,115,33,48,48,49,13],
"SET_POWER_OFF":[56,48,49,115,33,48,48,50,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/ctouch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"CTouch",
"doc" : "https://support.ctouch.eu/hc/en-us/categories/360002739100-Canvas-Series",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[169,17,0,1,138],
"SET_POWER_OFF":[169,17,0,0,138],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/dell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"DELL",
"doc":"http://ftp.dell.com/manuals/all-products/esuprt_display_projector/esuprt_Display/dell-c8618qt-monitor_Reference%20Guide2_en-us.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":
{
"SET_POWER_ON":[55,81,3,234,33,1,175],
Expand Down
4 changes: 3 additions & 1 deletion database/monitors/easypitch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name":"EasyPitch",
"doc" : "http://assistance.easypitch.fr/wp-content/uploads/documents/Commande_API_RS232.pdf",
"baudrate":115200,
"baudrate":115200,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[169,17,0,1,138],
"SET_POWER_OFF":[169,17,0,0,138],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/iiyama.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Iiyama",
"doc":"https://cdn.iiyama.com/f/7df9a5d921401d3399c3781da7688a8d_lexx40uhs-rs232-and-lan-commands.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[166,0,0,0,0,4,1,24,2,184],
"SET_POWER_OFF":[166,0,0,0,0,4,1,24,1,187],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/lg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"LG",
"doc":"http://partner.lge.com/fr/portal/download/download/retrieveManualList.lge",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[107,97,32,0,32,1,13],
"SET_POWER_OFF":[107,97,32,0,32,0,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/nec.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Nec",
"doc" : "https://www.sharpnecdisplays.eu/p/download/v/5d770ae3337e3f93a6cfa7906f09aa52/cp/Products/LargeFormatDisplays/Products/CurrentProducts/Shared/Command_Lists/External_Control_Rev1.8%28G4%29.pdf?fn=External_Control_Rev1.8%28G4%29.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[1,48,42,48,65,48,12,2,67,50,48,51,68,54,48,48,48,49,3,87,13],
"SET_POWER_OFF":[1,48,42,48,65,48,12,2,67,50,48,51,68,54,48,48,48,52,3,82,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/newline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Newline",
"doc":"https://newline-interactive.com/wp-content/uploads/2019/01/TRUTOUCH_X4K_usermanual.pdf",
"baudrate":19200,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[127,8,153,162,179,196,2,255,1,0,207],
"SET_POWER_OFF":[127,8,153,162,179,196,2,255,1,1,207],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/optoma_rk.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Optoma RK",
"doc":"https://www.optoma.fr/ContentStorage/Documents/89bdf74e-25f1-47d7-b2bb-9113ad0629a3.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[126,48,48,48,48,32,49,13],
"SET_POWER_OFF":[126,48,48,48,48,32,48,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/optoma_rke.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Optoma RKe",
"doc":"https://www.optoma.fr/ContentStorage/Documents/196b8abb-f43d-4eb1-a46d-21cbeb9660ea.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[58,48,49,83,48,48,48,51,13],
"SET_POWER_OFF":[58,48,49,83,48,48,48,50,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/philips.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Philips",
"doc" : "https://shop.kindermann.de/erp/KCO/avs/3/3007/3007000000/01_Anleitungen+Doku/RS232Codes.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[6,1,0,24,2,29],
"SET_POWER_OFF":[6,1,0,24,1,30],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/promethean.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Promethean",
"doc":"https://support.prometheanworld.com/article/1595/",
"baudrate":38400,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[246,1,1,1,249,111],
"SET_POWER_OFF":[246,1,1,0,248,111],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/samsung_exlink.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Samsung Exlink",
"doc":"https://www.samsung.com/us/support/troubleshooting/TSG01201603/",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[8,34,0,0,0,2,212],
"SET_POWER_OFF":[8,34,0,0,0,1,213],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/samsung_mdcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Samsung MDCP",
"doc":"http://www.electis.co.il/files/LFD%20Applications/MDC/MDC_Protocol_2020_mdc_ppmxxm6x_Protocolv15.0c.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[170,17,254,1,1,17],
"SET_POWER_OFF":[170,17,254,1,0,16],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/sharp_pnhw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Sharp PNHW",
"doc":"https://www.sharp.co.uk/cps/rde/xbcr/documents/documents/Marketing/Operational_manuals/PNHW861-HW751-HW651-HW551-HW501-HW431_manual_English.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_ON":[80,79,87,82,48,48,48,49,13],
"SET_OFF":[80,79,87,82,48,48,48,48,13],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/smartboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"SmartBoard",
"doc":"http://downloads.smarttech.com/media/sitecore/en/support/product/sbfpd/8000series/guides/rs232configsbid8070iv22apr2011.pdf",
"baudrate":19200,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[115,101,116,32,112,111,119,101,114,115,116,97,116,101,61,111,110],
"SET_POWER_OFF":[115,101,116,32,112,111,119,101,114,115,116,97,116,101,61,111,102,102],
Expand Down
4 changes: 3 additions & 1 deletion database/monitors/sony.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name":"Sony",
"doc" : "https://hf-files-oregon.s3.amazonaws.com/hdpjustaddpower_kb_attachments/2016/04-20/ab25a088-38d8-41a8-a136-fabda0005a1e/RS232_XBR5_protocol.pdf",
"baudrate":9600,
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[140,0,0,2,1,143],
"SET_POWER_OFF":[140,0,0,2,0,142],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/speechi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Speechi",
"doc" : "https://speechi-support.s3.amazonaws.com/Screens/SPEECHI_TOUCH/Fiche-technique/RS232_code.pdf",
"baudrate":9600,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[170,187,204,1,0,0,1,221,238,255],
"SET_POWER_OFF":[170,187,204,1,1,0,2,221,238,255],
Expand Down
2 changes: 2 additions & 0 deletions database/monitors/vestel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name":"Vestel",
"doc":"https://www.vestelvisualsolutions.com/files/vestel-visual-solutions-rs232-lan-customer-control-v1-1-d13c7b454990-929b94049819_F1F87B945757.pdf",
"baudrate":115200,
"stopbit":1,
"parity":0,
"commands":{
"SET_POWER_ON":[84,79,78,32,53,48],
"SET_POWER_OFF":[84,79,70],
Expand Down
8 changes: 6 additions & 2 deletions devscript/check_mandatory_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,14 @@ def main():

if not "name" in data:
missing_fields.append(" - Mandatory field 'name' is missing in file %s\n" % database_file)
if not "baudrate" in data:
missing_fields.append(" - Mandatory field 'baudrate' is missing in file %s\n" % database_file)
if not "doc" in data:
missing_fields.append(" - Mandatory field 'doc' is missing in file %s\n" % database_file)
if not "baudrate" in data:
missing_fields.append(" - Mandatory field 'baudrate' is missing in file %s\n" % database_file)
if not "stopbit" in data:
missing_fields.append(" - Mandatory field 'stopbit' is missing in file %s\n" % database_file)
if not "parity" in data:
missing_fields.append(" - Mandatory field 'parity' is missing in file %s\n" % database_file)
if not "commands" in data:
missing_fields.append(" - Mandatory field 'commands' is missing in file %s\n" % database_file)

Expand Down

0 comments on commit 8ad6d53

Please sign in to comment.