Uw opmerkingen

Для смены пина

sudo su -
nano /boot/cmdline.txt
add this line:
bcm2708.w1_gpio_pin=07
reboot
modprobe w1-gpio
modprobe w1-therm

Для получения нескольких интерфейсов Вам придется перекомпилировать kernel, внеся изменения в файл bcm2708.c

http://holyhead.de/RaspberryPi/bcm2708-multiple_w-1.patch-3.12.21.txt

но этот вопрос не в этот форум


http://support.iridiummobile.net/topics/11933-1-wire-na-raspberry-pi-3-gpio/

Maybe you must join data to one request.

and

HTTP/1.0 defines the octet sequence CR LF as the end-of-line marker for all protocol elements
except the Entity-Body (see Appendix B for tolerant applications). The end-of-line marker
within an Entity-Body is defined by its associated media type, as described in Section 3.6.
HTTPServer.Send(['HTTP/1.0 200 OK\r\nConnection: keep-alive\r\nContent-Type: text/plain\r\n\r\nOK you requested: ' + httpRequest]);

use Wireshark to understand what happens


http://www.cs.columbia.edu/~jae/3157/files/overview-sockets-http.pdf
HTTP 1.1 is better for persist connections

In Russia (and CIS) Dahua is better known as RVi.


simple for GET:

http://admin@admin:192.168.1.110/cgi-bin/accessControl.cgi?action=openDoor&channel=[&UserID= >&Type=]

JSON as also available as RPC

POST:80/RPC2_Login


Requesting session ID

{"method":"global.login",
            "params":{
                "userName":admin,
                "password":"",
                "clientType":"Web3.0"},
            "id":10000}

 Logging in

{"method":"global.login",
            "session":S_E_S_S_I_O_N_I_D,
            "params":{
                "userName":admin,
                "password":admin,
                "clientType":"Web3.0",
                "authorityType":"OldDigest"},
            "id":10000}


POST :80/RPC2

{"method":"accessControl.openDoor","params":{"Type":"Remote"},"id":10000+INCREMENT,"session":1234567890,"object":1234567890}

If you write a some code, please post it here for everyone to see.


DAHUA_HTTP_API_FOR_IPC - DAHUA_HTTP_API_FOR_IPC&SD-V1.40.pdf

DAHUA_HTTP_CGI_FOR_VDP.pdf

Amcrest AMCREST_HTTP_API_SDK_V2.10.pdf

You are right.


For change background color of whole list use

l_list = IR.GetPage("Page 1").GetItem("ConList");
l_list.GetState(0).Color=0xFFFFFF99; 
for "Items" you may change background color of Popups
l_oTemp.GetState(0).Color=0x00FF00BB;
l_oTemp2.GetState(0).Color=0xFF0000BB;
IR.AddListener(IR.EVENT_START,0,function()
{
var l_oTemp = IR.CreateItem(IR.ITEM_POPUP,'popup1',0,0,320,50);
var btn1 = l_oTemp.CreateItem(IR.ITEM_BUTTON, "Button 1", 0, 0, 320, 50);
btn1.GetState(0).Border=2 ;
btn1.GetState(0).Color=0x00FF0055; 
 
var l_oTemp2 =IR.CreateItem(IR.ITEM_POPUP,'popup2',0,0,320,50);
var btn2 = l_oTemp2.CreateItem(IR.ITEM_BUTTON, "Button 2", 0, 0, 320, 50);
btn2.GetState(0).Border=2
btn2.GetState(0).Color=0xFF000055;
var GList1 = IR.GetPage("Page 1").CreateItem(IR.ITEM_GOOD_LIST, "ConList", 50, 50, 320, 600);
   GList1.Color= 0xFFFFFFFF;
   GList1.SelectMode = 1; 
   GList1.Direction = 1; 
   
   GList1.Adapter = {
      total: 20,   
      
      GetCount : function ()  
      {   
               return this.total;    
      }, 
        
      GetItem: function(in_nPos)  
      {  
         if (in_nPos % 2)
         var l_oItem = l_oTemp.Clone(l_oTemp.Name + in_nPos);
         else
         var l_oItem = l_oTemp2.Clone(l_oTemp2.Name + in_nPos);  
         return l_oItem;   
       },
      
      SetSelected : function (in_oItem, in_bSelected)  
      {   
      }     
   };   
});

http://support.iridiummobile.net/topics/9195-new-list-alpha-channel/#comment-61522

List: http://support.iridiummobile.net/uploaded/file/15553/3/6454/749c9977bc4cbae3383b458419c4b782.irpz