상세 컨텐츠

본문 제목

Disable Extended Ack For [mac Home Automation]

카테고리 없음

by bisanide1982 2020. 1. 25. 08:15

본문

Disable Extended Ack For [mac Home Automation]

Kwikwai Command Line Interface (CLI) Kwikwai 1.1r879 (2018-04-14) The Command Line Interface is a text based protocol that can be used over TCP/IP, serial and/or USB. It supports most of the features of kwikwai and is designed to be easy to implement in Home Automation or other embedded controllers. News. HDMI settings Controller settings. HPD management: hdmi:hpd:get.

+5V management: hdmi:5v:get Notes. The main serial interface to kwikwai is the USB port. It will get all logging messages and allow for firmware download.

To use the USB port, a driver available on the FTDI website is required. In the default configuration, the USB port and the serial port of kwikwai are one and the same. You can use both ports at the same time, but you should be prepared to get on both ports the answers to commands sent by either port. Kwikwai allows to configure the serial port to control other devices.

Edition

In this case the serial port is no longer available for the CLI. In fact, characters received by the port are discarded.

Macintosh software for 2-way X10 home automation and security. An online tutorial. Newer X-10 Dimmer Controls New Features Although they all still use the X-10 technology, and most are made in the same factory, there are some newer dimmer controls which offer some very useful features. DISABLE extended ack for ie: disable extended ack for.

The increasing role of home automation in routine life and the. (LLC) and Media Access Control (MAC). (16 bits) and extended (64 bits) addressing. Enable (disable) parity generation and detection. Parext(-parext) Enable (disable) extended parity generation and detection for mark and space parity. Parodd(-parodd) Select odd (even) parity, or mark (space) parity if parext is enabled. Cs5 cs6 cs7 cs8. Select character size (see termio(7I)). Hang up line immediately. Hupcl (-hupcl).

Multiple individual connections are possible via TCP/IP. Some commands are only available via TCP/IP (for example, exit). Protocol basics Connection To connect via serial or USB, use 38400 bauds, no parity, 8 data bits, a stop bit (a.k.a 38400 8-N-1) and no flow control.

Note that for interactive session, you may want to activate local echo. Also note that kwikwai accepts any combination of Carriage Return (CR, ASCII 0x0D) and Line Feed (LF, ASCII 0x0A) on input but answers with a single CR.

To connect via TCP/IP, open a connection to kwikwai’s IP address on port 9090. To try commands, you can use the telnet client of most operating systems. Commands & replies Client sends commands in the form: command. On success, kwikwai answers with: OK command. On failure, kwikwai answers with: ERR command where  is some text describing the error (this text can contains spaces). For example, the command to send some message on the bus is cec:send.

It expects 2 parameters, the bus to send the command to and the message: cec:send A FF:36 OK cec:send A FF:36 If there is an error in the message, for example targeting an inexistent bus: cec:send B FF:36 ERR cec:send 4 Bus ID must be A in this version Asynchronous messages In addition to replying to commands, Kwikwai may also send two sorts of asynchronous messages:. for logging messages (on serial/usb, as controlled by the command)! As an example, the message provided to remember entering the password once connected through telnet:! Password required.

for events (as controlled by the command). command A typical CEC message. cec:message A 00:02:09.380 4F:82:10:00# Notes. For the client, examining the first char of the received message is enough to determine its type. Many implementations may safely discard anything starting with “!”. Replies repeat the command, which enables the sender to “forget” its requests and only manage kwikwai’s answers.

In other terms, kwikwai answers “done that” to the “do that” request, not just “done”. Available commands System level commands password Authorize the telnet connection. If a password is required (i.e. the password is not empty in the settings), this must be the first command exchanged upon connection, otherwise kwikwai drops the connection.

Password kwikwai OK password version:get Returns kwikwai’s firmware version. Version:get OK version:get 1.0r304 mac:get Returns kwikwai’s MAC address. Mac:get OK mac:get 00:50:C2:AD:80:00 reboot:upgrade Reboots the device in the firmware upgrade mode. The telnet session is disconnected and the device waits for a firmware file to be uploaded through XMODEM or the web interface. Reboot:upgrade OK reboot:upgrade exit TCP/IP only: terminates the TCP/IP connection. Exit OK exit Connection closed by foreign host.

Unix$ Settings commands name:get Returns kwikwai’s network name. Name:get OK name:get KWIKWAI name:set Sets the network name.

Max 15 alphanumerical characters. Name:set myprecious OK name:set myprecious verbose:get Returns the verbosity level of the logging function. Debug messages are only sent over serial/USB. Verbose:get OK verbose:get 0 verbose:set Sets the verbosity level of the logging function. 4 is the maximum level. Debug messages are only sent over serial/USB.

Verbose:set 4 OK verbose:set 4 ipsettings:get Returns the network settings: “DHCP” or “STATIC”, the ip address, mask, gateway and dns (the ip address, mask gateway and dns information are only relevant for static configurations). Ipsettings:get OK ipsettings:get DHCP 192.168.10.200 255.255.255.0 192.168.10.1 192.168.10.1 ipsettings:set Sets the network settings: “DHCP” or “STATIC”, the ip address, mask, gateway and dns. When done over telnet, the connection may be disconnected if kwiwai must be reconfigured.

Ipsettings:set STATIC 192.168.1.100 255.255.255.0 192.168.1.1 192.168.1.1 OK ipsettings:set STATIC 192.168.1.100 255.255.255.0 192.168.1.1 192.168.1.1 ipconfig:get Returns the currently allocated ip address, mask, gateway and dns. Ipconfig:get OK ipconfig:get 192.168.1.61 255.255.255.0 192.168.1.1 192.168.1.1 time:local:get Returns the local time time:local:get OK time:local:get 15:06:50 time:local:set Sets the local time. If enabled, this time configuration is overwritten by the SNTP synchronization. Time:local:set 12:34:56 OK time:local:set 12:34:56 time:offset:get Returns the offset (in seconds) between utc and local time. Time:offset:get OK time:offset:get 0 time:offset:set Configures the offset (in seconds) between utc and local time. Time:offset:set 3600 OK time:offset:set 3600 time:sntp:get Returns the name or ip address of the Simple Network Time Protocol (SNTP) server kwikwai contacts regularly to get accurate time. If the string is empty, the feature is disabled.

Time:sntp:get OK time:sntp:get time.windows.com time:sntp:set Sets the Simple Network Time Protocol (SNTP) server name. The synchronization is done regularly. Use an empty string to disable the synchronization. Name length is limited to 47, forbidden characters are controls, space and “ /:.? Time:sntp:set time.apple.com OK time:sntp:set time.apple.com password:set Sets the password. Max 31 alphanumerical characters. Password:set secret OK password:set.

HDMI related commands cec:ack:get Returns the list of Destination Logical Addresses whose frames are acknowledged by kwikwai. Logical addresses are separated by commas and in hex.

Cec:ack:get A OK cec:ack:get A 5,7,8 cec:ack:set Defines the list of Destination Logical Addresses whose frames are acknowledged by kwikwai.This enables kwikwai to emulate a CEC device (for example to add CEC to an HDMI device lacking the feature, like a PC video card). Logical addresses to acknowledge shall be in hex separated by commas. An empty lists clears all adresses (i.e. send cec:ack:set A.) cec:ack:set A 2,3,B OK cec:ack:set A 2,3,B cec:listen:get Returns the state of the listening feature for CEC messages. Cec:listen:get OK cec:listen:get 0 cec:listen:set Enables or disables the listening feature for CEC messages. Use 1 or 2 to enable, 0 to disable, and nothing to toggle (between 0 and 1). Mode 1 returns messages as defined by the CEC specification. Mode 2 returns additional information for debugging (values of the CEC blocks flags).

Cec:listen:set 1 OK cec:listen:set The listening feature results in CEC frames being sent asynchronously to the client as follows. cec:message where  is the busis the local time including milliseconds, and, for mode 1is a sequence of bytes separated by “:”, potentially followed by “#” to indicate the frame was acknowledged.

For example:. cec:message A 00:02:09.380 4F:82:10:00# In mode 2 (i.e. Cec:listen:set 2), the flags are appended to each byte (when set) using letters “a” for the ACK bit and “e” for the EOM bit. The global acknowledgement indicator “#” is no longer shown. Colons “:” are replaced by semicolons “;” to separate bytes (to distinguish the modes).

Automation]

For example, the message above would appear as:. cec:message A 00:02:09.380 4Fa;82a;10a;00ae In both modes, additonal messages are reported as below to indicate a react filter match, or the rise or fall of 5V and HDP signals:. hdmi:match. hdmi:5v:get. hdmi:hpd:get where  is the bus and filterid is the ID of the matching filter. Cec:send Sends the CEC frame cecstring on bus busid. Currently only bus “A” is supported (“A”).

The frame shall be formatted as byte:byte:byte: cec:send A FF:36 OK cec:send A FF:36 ddc:read Reads the DDC information from the sink connected to bus busid (“A” for kwikwai k1-100). Pageno is the ddc page number (which can be useful for a rare device having multiple pages – most don’t.) The results are returned asynchronously by 128-bytes blocks. Ddc:read OK ddc:read A 0. OK ddc:read A 0 0x00 00:ff:ff:ff:ff:ff:ff:00. OK ddc:read A 0 0x80 00:b3:00:95:00:01:01:02. Hdmi:hpd:get Returns the state of the Hot Plug Detect signal of bus busid (“A” for all kwikwais so far). This will typically be true when a valid source-sink pair is connected to kwikwai (the HPD line is powered by the sink from the +5V of the source).

Hdmi:hpd:get A OK hdmi:hpd:get 0 When listening (see command cec:listen:set), hpd value changes are returned as follows:. hdmi:hpd:get hdmi:5v:get Returns the state of the +5V signal of of bus busid (“A” for all kwikwais so far).

This will typically be true when a valid source is connected to kwikwai. Hdmi:5v:get A OK hdmi:5v:get 0 When listening (see command cec:listen:set), 5v value changes are returned as follows:. hdmi:5v:get Controller settings controller:serial:config:set Configure the serial port for kwikwai’s controller feature. When the feature is enabled, the serial port can be used to send commands in reaction to events on the HDMI cable. When disabled, kwikwai’s serial port can be used for the Command Line Interterface (i.e. this API). Enable is 0 to disable, 1 to enable, and nothing to toggle. Baudrate is the baud rate in decimal.

Config is either 96 (for 8N1), 102 (for 8E1) or 104 (for 8N2) mintimtrm is the minimum time interval between transmissions on the serial port, in milliseconds (a number equal to or smaller than 9999). React:serial:config:set 1 14400 96 200 OK react:serial:config:set 1 14400 96 200 controller:serial:config:get Returns the configuration of the controller serial port. See above for parameters. React:serial:config:get OK react:serial:config:get 1 14400 96 200 controller:rule:set ' Sets the index-th rule of the kwikwai controller. The command will be sent by kwikwai should condition occur on busid, after delay.

Index is from 1 to 6. Busid may be either “A” (in which case all other parameters must be provided), or ““, in which case the feature is disabled, for example temporarily. In this last case conditon and all following fields are optional. Conditon is the event on the bus to react to.

One of the following values: 1. +5V raising 2.

+5V falling 3. HPD raising (Hot Plug Detect) 4.

Disable Extended Acl For Mac Home Automation Systems

HPD falling 5. CEC filter cecfilter is only required/present for condition 5 and consists of an hex string separated by “:”. In the first byte, “?” is accepted to indicate any source or destination id.

Microsoft Office For Mac Home

The string may finish with “:.” to indicate the message may be longer than the filter. Output is the output port to use to send command. 1 for CEC and 2 for Serial (if enabled). Delay is the delay in 1/10th seconds before sending command.

For serial, command is an hex string which can contain spaces (spaces are ignored when sending). For CEC, command is an hex string win the standard kwikwai cec format (hex bytes separated by “:”). Controller:rule:set 1 A 5 0?:36 2 '0C 88 AB' OK controller:rule:set 1 5 A 0?:36 2 '0C 88 AB' controller:rule:set 1 OK controller:rule:set 1 5 0?:36 2 '0C 88 AB' controller:rule:set 2 A 1 1 '0F:36' OK controller:rule:set 1 A 1 1 '0F:36' When listening (see command cec:listen:set), matches are returned as follows:. hdmi:match controller:rule:get Returns the index-th rule of the kwikwai controller. Index is from 1 to 6. Controller:rule:get 1 OK controller:rule:get 1 0?:36 2 '0C 88 AB' controller:rule:test Tests the index-th rule of the kwikwai controller.

Sends the related command immediately, over CEC or serial. This command is mainly useful to test serial connectivity. Index is from 1 to 6. Controller:rule:test 1 OK controller:rule:test 1 Error codes. Not authentified.

Unknown command. Too many arguments (8 max.). Bad argument. DDC time out. Serial not enabled – cannot test serial command.

Disable Extended Ack For [mac Home Automation]