Giter Site home page Giter Site logo

anvizcloudkit's People

Contributors

anvizjacobs avatar zhangluofeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anvizcloudkit's Issues

Unable to make W1 connect

I've been working on months for connecting my W1 to this web application, but the Network Test never passes.

I have the application uploaded to a Namecheap hosting having PHP 7.4 with php_soap and php_mcrypt enabled along with mod_rewrite.

I can get the WSDL from the URL http://anviz.sharafat.co.uk/sample/server/webserver

I registered a user through http://anviz.sharafat.co.uk/sample/client/register.php and got the Device Username 70186105 and Password 97518102.

I even tried setting KEY to ******** as suggested at Issue#1.

I configured the W1 device with the following:
User Name:70186105
Password: 97518102
Server IP: http://anviz.sharafat.co.uk/sample/server/webserver/

When I try to run the Network Test, the Cloud Server Test shows a loading indicator forever.

Any help will be extremely appreciated.

Ohh, one thing - Input the 000048+OK in device main UI to active cloud development mode. I couldn't make this work though. Inputting 000048+OK gives "Access Denied".

ClearLog option

There is no clear log option in this kit.
getNewRecords send new records (excludes those which are already submitted to server), but logs still remain in Device when we check through getRecords.

How to get them clear, and what happens if it reaches device's maximum capacity?

Unable to update date with setDatetime command

Hello,

We are having some trouble with W2 and W2 Pro devices where the date doesn't sync when we send the command setDatetime. I see the devices receives the command, but the date isn't changed.

Here is some extract of the log when we send the setDatetime command

06/13/2023 12:00:01 Debug actionTransport: :49f9a60f64b9b35efcbf609d1758e3ca
06/13/2023 12:00:01 Debug actionTransport: DATA:eSNTRv/kN0EMNTS3UsQoNF9hY/FAfVI7RvVbPnEtGsigCnaOV7Y2/PcHX4K2pFZGUSVr9EI2idotmpj8mS37vJ7wh0jgq+fwMeiSgIYCkMZHs+2Hgo2yTC2amPyZLfu8nvCHSOCr5/Atmpj8mS37vJ7wh0jgq+fwnvCHSOCr5/Bokoez0SaC4w==
06/13/2023 12:00:01 Debug actionTransport: Get Token:39846524
06/13/2023 12:00:01 Debug explodeCommand: Data-{"device_id":"49f9a60f64b9b35efcbf609d1758e3ca","id":"11111111","command":"9002","length":"00000080","content":"00010000000000010010000000000010000100000000000100010000000000010000000100000000"}
06/13/2023 12:00:01 Debug Next Command: Data:{"id":"9c2f9f83","params":{"year":"2023","month":"06","day":"13","hour":"18","minute":"00","second":"01"},"command":1004,"content":"FwYNEgAB"}
06/13/2023 12:00:07 Debug actionTransport: :49f9a60f64b9b35efcbf609d1758e3ca
06/13/2023 12:00:07 Debug actionTransport: DATA:eSNTRv/kN0EMNTS3UsQoNF9hY/FAfVI7RvVbPnEtGsjXDx2SQ1FeguqoDNBjEWRgaJKHs9EmguM=
06/13/2023 12:00:07 Debug actionTransport: Get Token:39846524
06/13/2023 12:00:07 Debug explodeCommand: Data-{"device_id":"49f9a60f64b9b35efcbf609d1758e3ca","id":"9c2f9f83","command":"1004","length":"00000000","content":""}
06/13/2023 12:00:08 Debug actionTransport: :49f9a60f64b9b35efcbf609d1758e3ca
06/13/2023 12:00:08 Debug actionTransport: DATA:eSNTRv/kN0EMNTS3UsQoNF9hY/FAfVI7RvVbPnEtGsigCnaOV7Y2/PcHX4K2pFZGUSVr9EI2idotmpj8mS37vJ7wh0jgq+fwMeiSgIYCkMZHs+2Hgo2yTC2amPyZLfu8nvCHSOCr5/Atmpj8mS37vJ7wh0jgq+fwnvCHSOCr5/Bokoez0SaC4w==
06/13/2023 12:00:08 Debug actionTransport: Get Token:39846524

Thank you

Add record

Skimming through the project, I can not find a way to add or modify records.

There are "CMD_GETALLRECORD', 3001" and "CMD_GETNEWRECORD', 3002" but no uploading of new records.

I can only guess that it should be "3102" but can't get it to work. Any clues? Thanks!

Delete All Records From Device

Hi,
anyone has the function DelRecord from protocol.php archive??
I need to empty device of all the records
Thanks in advance.

Ignacio

Every 7 seconds "actionRegister: Register Success!"

Hi I have a model "c2proNew" with firmware "03.12.04". The log shows every 7 seconds "actionRegister: Register Success!" and "actionRegister: Device Info:{"id":"xxxx","token":"xxx"}".

I can see the device in the list and the cloud icon on the device is white (no red line crossing) although I do not get "cloud connection ok". Downloading records or employees does not work, it just says "loading...." with no info in the logs.

I can only guess that the communication happens only one way, do I need some kind of port forwarding on the router for the c2 pro?

Thank you

conect with PHP

hello, someone has managed to connect w1 or some device through PHP. If so, could you tell me how, I have been a month and there is no way. I have all the steps but the device does not connect

HTTPS Connection

Hi!

Is there a way to set the connection to work over https?
There is mention of https in the code of this library but it seems that the devices doesn't support https.

I'm using C2 Pro fw 2.00.38

I tried to set the redirect in the htaccess - the device doesn't follow the directive.
I tried to enter https://ip on the device - it doesn't even try to connect.
I tried to enter ip:443, the device uses the port but still sends data in plain http causing 400 error on the server.

Http works well, but if using remote hosting it seem not quite secure.

Regards
Eikro

is_admin is always 64

lib/protocol.php
function EmployeeDevice()

Tested with Anviz C2Pro:
character 37 of string is always "@" so the ascii character is 64 and all the employees is inserted in DB with is_admin = 64

$record['is_admin'] = ord($row[37]);

Thank you

Add License information

Hello,

please add license information to the repo. It's currently unclear how we can use this library.

Regards

bug

there is a bug in lib/Tools.php log function on line 25:
if (!DEBUG && ($type != 'error' || $type != 'warning')) {

It should be
if (!DEBUG && ($type != 'error' && $type != 'warning')) {
or
if (!DEBUG && !($type == 'error' || $type == 'warning') {

It doesn't connect on Anviz W1

I have been trying this library for almost 4 days . I follow the procedure but the device get stuck on cloud connection test for hours . Is there something m doing wrong ?
Tried it with php 5.5 and 7.1 still no luck .
The url i get after registering a user to this something like http://192.168.0.108/ac/sample/server/ but when i put this url on browser i get the folder directory ..
Is there something m doing wrong or missing ?

Protocol::EnrollFinger returns empty array

I'm trying to enroll a finger of any user into the Anviz but when "$result = Protocol::EnrollFinger($data['content']);" is called after "case CMD_ENROLLFINGER:" in "Montitor.php", the result is an array of 4 elements but all empty.

First $data['content'] has a coded element (the fingerprint, it should) but the protocol method returns empty array.

nexttime has no effect

I've implented the API in node / JavaScript but the nexttime parameter does not seem to have any effect. The device is contacting the server every secord.

Any ideas?

Stuck on actionRegister

The code you provided did not work on Anviz W1.

12/12/2017 17:20:46 Debug actionRegister: Device ID - ffad05f38cbd0e28afea7ea4f8628e2e

It keeps hitting actionRegister, Please check above log,
Further, Cloud icon in device also has exclamatory mark.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.