This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is a short capture of a communication between the sample application and the energy meter using RS-485 | |
Energy Meter: DRS110M, DRS155M (from http://www.bg-etech.de/) | |
/?! | |
/YTL:001511420144 | |
[ACK]0:1 | |
{SOH}P0{STX}(00000000){ETX}{BCC 0x60}[SOH]P1[STX]()[ETX][BCC 0x61]{SOH}B0{ETX}{BCC 0x75}[SOH]B0[ETX][BCC 0x71] | |
/?! | |
/YTL:001511420144 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import sys | |
import time | |
import json | |
from struct import * | |
from twisted.web import server, resource | |
from twisted.internet.protocol import DatagramProtocol | |
from twisted.internet import reactor | |
from twisted.application.internet import MulticastServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true | |
do | |
echo "clear display" | |
eips -c | |
eips -c | |
for i in 1 2 3 4 5 6 7 8 9 10 11 12 | |
do | |
for i in 1 2 3 4 5 6 7 8 9 10 11 12 | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
def main(argv): | |
fname = "" | |
if len(argv) > 0: | |
fname = argv[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:ns1="http://www.placeholder.org/ver10/tmp/schema" xmlns:ns2="http://www.placeholder.org/ver10/tmp/wsdl" xmlns:tae="http://www.onvif.org/ver10/actionengine/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsse="http://docs.oasis-open.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:sc="http://www.w3.org/2003/05/soap-encoding" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"> | |
<s:Header /> | |
<s:Body> | |
<trt:GetProfilesResponse> | |
<trt:Profiles token="MediaProfile000" fixed="true"> | |
<tt:Name>MediaProfile_Channel1_MainStream</tt:Name> | |
<tt:VideoSourceConfiguration token="000"> | |
<tt:Name>VideoSourceConfig_Channel1</tt:Name> | |
<tt:UseCount>2</tt:UseCount> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mplayer -v vdpau long.mp4 -geometry 480x270+0+0 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+480+0 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+960+0 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+0+270 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+480+270 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+960+270 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+0+540 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+480+540 & | |
mplayer -v vdpau long.mp4 -geometry 480x270+960+540 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### by Huy Do (huydo1@gmail.com | |
package main; | |
use strict; | |
use warnings; | |
use POSIX; | |
sub muelltonnen_Initialize($$) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wichtig ist die Authentifizierung, sonst wird die Session sofort wieder abgebrochen! | |
TELNET: | |
GET /cgi-bin/eventManager.cgi?action=attach&codes=[VideoMotion,AlarmLocal] HTTP/1.0 | |
User-Agent: Synology Surveillance Station | |
Authorization: Basic YWRtaW46YWRtaW4= | |
HTTP/1.0 200 OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define LED_PIN 13 // LED connected to digital pin 13 | |
#define SW_PIN 10 | |
#define CLOCK 7 | |
#define LATCH 5 | |
#define DATA 6 | |
byte value[] ={ B11111001, // 1 |
OlderNewer