Author Topic: Как соединить платы с компьютером и вокс  (Read 8919 times)

0 Members and 1 Guest are viewing this topic.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Добрый день или вечер смотря у кого.  Прошу помощи у вас с вопросом как соеденить к примеру плату  по управлению светом  с компьютером и управлять ей при помощи voxcommando .  Уменя есть вот эта плата :
http://www.icstation.com/icstation-micro-control-channel-relay-module-p-4012.html
и желание учиться и развиваться .    Если есть возможность  прошу показать  примеры команд xml  файлои  что бы мне самому разобраться как это работает .   Или ткните где читать  так как  читать весь форум трудно  так как плохо знаю языки .  Зарание благодаю за ответ



Good afternoon or evening looking at someone . Please help you with the problem of how to bridge eg surcharge for light control with a computer and manage it with the help of voxcommando. Skills have here this board :
http://www.icstation.com/icstation-micro-control-channel-relay-module-p-4012.html
and a desire to learn and develop. If possible please provide examples of teams that have xml fayloi myself understand how it works. Or stick with which to read because it is difficult to read the whole forum know as the bad language . grace for the answer

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Hello Mr.Niki.

Do you already know how to control this relay board using Python?

Do you know which bytes you need to send in order to turn individual relays on and off?

The instructions on that web page are difficult for me to understand.
« Last Edit: January 22, 2016, 10:22:07 AM by jitterjames »

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
она работает правда опыта нехватает пока сделать ее полностью функциональной

теперь думаю как сделать по вайфаю выключение света и постараться сделать все это маленьких размеров

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
That is a good first step.  :clap

Can you share the Python code you are using?
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
я взял все от сюда  http://voxcommando.com/mediawiki/index.php?title=Arduino#Arduino_code
только без кода для arduino и есть проблеммы с командави  а именно с тем что нужно отправлять на плату

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Can you please:

1. Enable the VoxCommando log.
2. Repeat the same voice commands that you demonstrate in your video.
3. Post the file "voxlog.txt" here, so that we can read the log?

(http://voxcommando.com/mediawiki/index.php?title=Log)

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
вот лог  есть только проблема с значениями которые надо отправлять на эту плату чтоб выключать определенный выключатель но я это и не преследую. это была проба своих сил. Я думаю как сделать это по wi-fi
и сделать размер как можно меньше .  Если у вас есть наработки буде рад помощи .  Я не программист и не электрик  я просто брал команды из поста по ссылке и додумывал их под себя.

Now log only problem with the values ​​that must be sent to the card to switch off some but I do not pursue it . This was a test of their strength. I think how to do it on the wi-fi
and make the size as small as possible . If you have achievements Buda glad to help. I'm not a programmer and not an electrician , I just took command of the post , and link them to think out for themselves.
« Last Edit: January 29, 2016, 07:38:28 AM by nime5ter »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
The only serial message displayed in the log is '\x01'. Unfortunately that is not enough information to identify a pattern.

In the video, it looks as though you were giving more than one command to control the relays.

The hardware does not have documentation so there is no way to help. You will need to experiment by yourself, systematically testing patterns.

Try starting with \x00. Write down what all the lights do.

Then try \x01. Write down what all the lights do.

Then try \x02, etc.

You can look online to find a table that explains hexadecimal vs. binary. I think, based on the very bad information that the seller provides, that you are trying to send messages that change the pattern of 4 bits.

We cannot diagnose the correct solution ourselves, but maybe with more experimenting you can figure it out yourself.

P.S. I deleted your log for privacy reasons.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Спасибо

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #9 on: February 01, 2016, 01:56:04 AM »
добрый день в России есть компания занимающаяся  умными домами  и у них есть наработки  по управлению светом и другими силовыми устройствами.  их плюс в том что управление идет по радио каналу, блоки имеют маленький размер , простота установки и соединения и Самый главный +  цена .  Хотелось бы спросить есть возможность совместить их с VC  и что для этого нужно (  Какая информация нужна вам чтобы подсказать возможно их совместить ) .  Возможно это будет интересно вашим пользователям в связи с низкой ценой устройств .  Спасибо за ответ .

Good afternoon, in Russia there is a company engaged in intelligent buildings and they have studies for light control and other security devices. their advantage is that the control is on the radio channel units are small size , ease of installation and connection , and most important + Price . I would like to ask is possible to combine them with VC and that it needs ( What information do you need to tell them is possible to combine ) . Maybe it will be interesting to your users at the low price of devices. Thanks for the answer .

http://noo.com.ru/magazin/folder/663169221 


это ссылка на их сайт с видео дающим представление о  том что это

is a link to their site with a video which gives an idea of ​​what it

http://www.noo.com.by/razrabotchikam.html

http://majordomo.smartliving.ru/Main/Noolight
« Last Edit: February 01, 2016, 04:36:47 AM by mr.niki »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #10 on: February 01, 2016, 08:53:07 AM »
Привет mr.niki. Спасибо за информацию. Если Ноотехника есть форум или поддержки клиентов, я предлагаю вам разместить там свой вопрос.

VoxCommando способен передавать и принимать информацию по-разному, как вы, возможно, уже понимают. Вы могли бы разместить ссылку на "особенности" веб-страницы VoxCommando и спросить их, что это возможно. http://voxcommando.com/home/features/

Если они говорят, что это возможно, то пользователи России VoxCommando придется выяснить, как создавать свои собственные решения голосовых команд. Мы не имеем доступа к этой технологии, поэтому мы не можем обеспечить много советов отсюда.

Hi mr.niki. Thanks for the information. If Nootehnika has a forum or customer support, I suggest you post your question there.

VoxCommando is able to send and receive information in several different ways, as you may already realise. You could post the link to the VoxCommando "features" web page, and ask them what is possible. http://voxcommando.com/home/features/

If they say that it is possible, then Russian VoxCommando users would have to figure out how to create their own voice command solutions. We do not have access to that technology, so we cannot provide much advice from here.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #11 on: February 02, 2016, 01:36:41 PM »
как сделать чтобы в нутри 1 компьютера  некая программа могла создать ивент в vc  как это делает программа tasker  на android  .  Пример : в этой программе возникает какое то действие и она может отправить запрос
http://192.168.1.168/api.htm?name=pult&cell=0&cmd=0&fmt=0&d0=0&d1=0&d2=0&d3=0

как сделать его понятным vc и так что бы он передался и появился treggerevent в vc


how to do that in the inside 1 kind of computer program to create the event in vc as it makes the program tasker on android. Example: In this application there is some action, and then it can request
http://192.168.1.168/api.htm?name=pult&cell=0&cmd=0&fmt=0&d0=0&d1=0&d2=0&d3=0

how to make it understandable and vc so that he transmits and appeared in treggerevent vc

thanks for the answer



nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #12 on: February 02, 2016, 02:05:54 PM »
Your example is the opposite. It is showing how to send a command to «НООТЕХНИКА», not to VoxCommando.

It is easy to make http requests in VC. Use the Scrape action.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.4-->
<command id="118" name="some command that controls a Russian device" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://192.168.1.168/api.htm?name=pult&amp;cell=0&amp;cmd=0&amp;fmt=0&amp;d0=0&amp;d1=0&amp;d2=0&amp;d3=0</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>some command that controls something in the Russian system</phrase>
</command>

However, if you want their hardware to send information to VC, then their http request API does not help.

As mentioned earlier, you need to get support from the Russian company's website, not here. You need to ask someone at the Russian website who understands English and who has some technical expertise to read VoxCommando's documentation, so that they can explain it to you and provide examples.

It doesn't make sense to ask us here.

Тем не менее, если вы хотите их оборудование для передачи информации VC, то их просьба HTTP API не помогает.
Как уже упоминалось ранее, необходимо получить поддержку с сайта российской компании, а не здесь. Вы должны спросить кого-то на российском сайте, который понимает по-английски, а кто имеет некоторый технический опыт, чтобы читать VoxCommando документацию, так что они могут объяснить вам и привести примеры.
Это не имеет смысла спрашивать нас здесь.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #13 on: February 05, 2016, 06:11:55 AM »
Я видел много видео как люди управляют светом в доме при помощи VC.  Мне интересно как они это реализуют?
Точнее что за устройства они для этого применяют ?  если вы в курсе можете набросать схемку как и при помощи чего они это делают ?  Благодарю за ответ.

с фирмой из постов выше я связался  пообщались и там есть 1 но огромная проблема
если я управляю через VC светом то проблем нет а вот если я включаю свет через выключатель то VC  не знает об этом и если я отдам команду то он пошлет запрос еще раз
 Тесть нет обратной связи между nooLite --> VC.  Они только разрабатывают систему обратной связи
вот поэтому и возник вопрос а как это делают другие люди ?

I have seen many videos as people run the light in the house with the help of VC. I wonder how they implement ?
More precisely what they are used for this device ? if you know you can jot down shemku as whereby they do it? Thank you for your reply.

with the company of the posts above I contacted communicated and there is but one huge problem
if I run through VC is light there is no problem but if I turn on the light switch via the VC does not know about this , and if I give the command that he would send the query again
 Father in law there is no feedback between nooLite -> VC. They only develop a feedback system
That's why there was a question as well as other people do ?
« Last Edit: February 05, 2016, 06:38:06 AM by mr.niki »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #14 on: February 05, 2016, 08:50:33 AM »
« Last Edit: February 05, 2016, 08:53:01 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #15 on: February 05, 2016, 11:25:20 AM »
Я читал все эти примеры и смотрел много видео но к сожалению они не совсем актуальны для России
1) Цена почти все они стоят средней зарплаты Русского человека и многие люди не в состоянии их себе позволить  , а я ищу решения с более низкой ценой .
2)  Часть решений не подходит под стандарты России. ( Например розетки или выключатели VERA )
3) Решения не должны иметь последствия в виде глобального ремонта в квартире

И еще 1 вопрос ?  почему эвент срабатывает на 1 секунду раньше

I read all of these examples, and watched a lot of videos but unfortunately they are not very relevant for Russia
1) Price almost all of them are average salary Russian person, and many people are unable to afford them, and I'm looking for solutions with a lower price. Or voobshe not sold in Russia
2) Part of the decision is not suitable under the Russian standards. (For example sockets or switches VERA)
3) Decisions shall not have consequences in the form of global repair in apartment

And one question? Why The event is triggered for 1 second before
although the drawdown time exactly 10:00
« Last Edit: February 05, 2016, 11:28:30 AM by mr.niki »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #16 on: February 05, 2016, 12:09:53 PM »
QUESTION 1:

Again, with regard to home automation questions, you are asking on the wrong forum. It is possible for VoxCommando to communicate with a wide variety of devices and programs, but you have to understand more about the technology and about programming.

As it explains in our documentation, VoxCommando can send and get information using, for example:

1. Scrape actions (HTTP requests)
2. TCP
3. UDP
4. Command line, if the automation software allows command line control (e.g. Telldus Tellstick)

Kalle has also shown how to use the free MySensors library with Arduino to control LED lights. http://voxcommando.com/forum/index.php?topic=1921.0

Maybe you can find some Russian speakers on the MySensors forum who can help you.

VoxCommando provides some "plugins" that make it easier to work with a few common systems such as the Vera controller or Belkin Wemo or Philips Hue. I agree that these are not cheap.


The Vera controller works with Zwave devices. My understanding is that there are Zwave products that meet Russian standards. http://www.zwaverussia.com/index.php

We do have Russian users who use these expensive controllers. I think the main problem is budget.

Of course, home automation is a luxury, not a necessity. It is not in everyone's budget, unfortunately.

However, it is often possible to control other systems if you are already knowledgeable, or willing to learn. Obviously, the language barrier is a problem. This is why I suggest that you find a Russian home automation community online. Anyone there who is technically knowledgeable and more fluent in English should be able to help you.

We do have some Russian users here who are very knowledgeable and also bilingual, but very few of our users are active on our forums.

---
Yandex:

Вопрос 1:

Опять же, что касается домашней автоматизации вопросы вы задаете на неправильный форум. Можно для VoxCommando взаимодействовать с широким спектром устройств и программ, но вы должны понять больше о технологии и о программировании.

Как он объясняет в нашей документации, VoxCommando могут отправлять и получать информацию, используя, например:

1. "Scrape" actions (http-запросов)
2. Протокол TCP
3. УДП (UDP)
4. Командной строки, если программное обеспечение для автоматизации позволяет из командной строки управлять (например, Telldus Tellstick)

Калле также показано, как использовать свободное MySensors библиотека с Arduino для управления СИД фары. http://voxcommando.com/forum/index.php?topic=1921.0

Может быть, вы можете найти некоторые русскоязычные на MySensors форуме, кто может помочь вам.

VoxCommando предоставляет некоторые "плагины", упрощающие работу с несколькими распространенными системами, такими как Вера контроллер или Белкин wemo или Philips оттенок. Я согласен, что эти не дешевые.


Вера контроллер работает с Zwave устройств. Мое понимание заключается в том, что есть Zwave продукты, отвечающие российским стандартам. http://www.zwaverussia.com/index.php

У нас российских пользователей, которые используют эти дорогие контроллеры. Я думаю, что основная проблема-это бюджет.

Конечно, домашняя автоматизация-это роскошь, а не необходимость. Не в каждый бюджет, к сожалению.

Однако, очень часто можно управлять другими системами, если вы уже знающий, или желающий научиться. Очевидно, что языковой барьер является проблемой. Вот почему я предлагаю вам найти в русской домашней автоматизации сообщество онлайн. Кто-нибудь есть кто технически грамотный и более свободно на английском языке должны быть в состоянии помочь вам.

У нас есть некоторые российские пользователи здесь, которые очень хорошо осведомлены и также двуязычный, но очень немногие из наших пользователей активны на нашем форуме.
« Last Edit: February 05, 2016, 12:27:30 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #17 on: February 05, 2016, 12:12:25 PM »
Question 2: Please post the xml for the relevant command(s). There is no way to answer without seeing the commands. Also, it is better to create a new topic for new questions.

Вопрос 2: просим Вас присылать XML для соответствующих команд(ы). Нет никакого способа, чтобы ответить, не видя команды. Также, лучше создать новую тему для новых вопросов.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7713
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Как соединить платы с компьютером и вокс
« Reply #18 on: February 05, 2016, 12:59:48 PM »
1) Price almost all of them are average salary Russian person, and many people are unable to afford them, and I'm looking for solutions with a lower price. Or voobshe not sold in Russia
This is what we call a luxury.  It means that if you can't afford it and because you don't really need it, you live without it.  Most people in the world must live with this.  If you want to find a cheaper solution then you need to get creative and maybe do some research and some work on your own.

And one question? Why The event is triggered for 1 second before
although the drawdown time exactly 10:00
???
I am not able to tell by just looking an image of your history window whether the event was really triggered 1 second early or one microsecond early.  In order to see a more accurate time I would need to see the log.

Even if it is a whole second early, does it really matter?  Your computer does not contain an atomic clock and your macro will take some time to execute anyway.  Better early than late.
« Last Edit: February 05, 2016, 01:12:04 PM by jitterjames »

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #19 on: February 05, 2016, 01:19:50 PM »
Я согласен на творчество и на само обучение и на само развитие.
Я и так узнаю много команд из вашего форума и переделываю их для России И для русских пользователей
То что я  могу сделать я делаю  К примеру 3 домашних телевизоров я перевел на raspberry и можно ими управлять.   Нашел как решить что-бы генерировался русский язык в Xml  файлы  к названиям фильмов 
Сейчас ищу и музыку. 
Сделал Tasker на андроид  и управление в определенное время
Да команд не очень много но я Делаю что могу и делюсь с Русскими пользователями в соц сетях
Я могу позволить купить себе vera и не искать проблем ,  но я пока ищу более дешевые средства реализации
Я человек творческий могу паять  и придумывать ,  есть друзья программисты но все упирается в меня и знаний очень часто не хватает. В России домашняя автоматизация набирает обороты и пока все  наработки не демонстрируются для широкого круга пользователей  ( то есть хочешь купить купи все  или ничего)
Буду искать и думать как все это сделать
Спасибо за помощь.
 
I agree to work on the training itself and the development itself.
I know so many teams from your offline and rework them for Russia and for Russian users
What can I do, I do, for example 3 Pets TV I turned to raspberry and can manage them. I found how to solve that-be generated in the Russian language Xml files to the movie title
Now I am looking and music.
Did Tasker on android and management at a particular time
Yes, teams do not have much but I do what I can and share with Russian users in social networks
I can afford to buy and not to seek vera problems, but I'm still looking for cheaper means of implementing
I am a creative person and think I can solder, programmers have friends but everything depends on me, and the knowledge is often not enough. In Russia, home automation is gaining momentum and is all the achievements are not shown for a wide range of users (that is, you want to buy buy all or nothing)
I will look and think how to do it all
Thanks for the help.

Phobophile

  • Jr. Member
  • **
  • Posts: 36
  • Karma: 7
    • View Profile
    • Facebook
Re: Как соединить платы с компьютером и вокс
« Reply #20 on: February 05, 2016, 07:02:45 PM »
В свое время отказался от намерения купить nooLite как раз из-за отсутствия обратной связи. Самый доступный рабочий вариант с обратной связью - это z-wave, но ценник конский. Поэтому планирую делать автоматизацию при помощи Raspberry Pi, Arduino и соответствующих датчиков. Для включения/выключения света - реле, для контроля текущего состояния (вкл или выкл) - датчик тока. Все эти компоненты стоят копейки, сложностей в программировании никаких нет.

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
Re: Как соединить платы с компьютером и вокс
« Reply #21 on: February 06, 2016, 02:37:16 AM »
НУ   тут как бы спорный вопрос расбери  стои 4500 + вайфай на нее 856   я сделал 3 приставки на телики
и знафю что почем из них.  Вера стоит 19000  все упирается только в переделку проводки   noolite  разработчики я с ними обшался и они в ближайшие 5-6 месяцев сделают решение с обратной связью  они подкупают тем что датчики не очень дорогие и в принципе  можно позволить  плавный переход на их разработку   У  z wav   очень дорогие датчики  к примеру рэле на свет  самое  дешовое  стоит 3000  ну как то очень не кисло и надо проводку переделывать немного так как жилы не хватает надо на люстку не только пост фазу но и 0 и 0 от выключателя в контроллер тянуть .   Подкупают они обратной связью  вообшем буду еще искать

RomanSt82

  • Jr. Member
  • **
  • Posts: 8
  • Karma: 2
    • View Profile
Я реализовал все устройства на pic-контроллерах. Свет, Датчик температуры, Датчик уровня воды, Управление приборами с инфракрасными пультами, шторы и т.п. Сперва всё было через RS-485, потом отказался т.к. ремонт уже был сделан. Позже нашёл недорогие радиомодули 185 руб. пара приёмник и передатчик. В общем все затраты кроме компьютера составили около 2000-3000 руб. VOX у меня связан с самописной программой управления через самописный плагин (спасибо разработчикам за пустой шаблон плагина).Помимо этого VOX связан с интернетом новости, погода, музыка, фильмы и т.п. Так же есть связь с самописным ИИ опять же через самописный плагин. К чему всё это? Ответ. При огромном желании можно создать своё бюджетное решение, к тому же это ещё и увлекательный процесс, в котором можно познать много всего нового. :)

mr.niki

  • Contributor
  • ***
  • Posts: 84
  • Karma: 1
    • View Profile
можешь выложить примеры команд я не очень селен в программировании и за любую наводку где посмотреть почитать   я был бы благодарен
погода рассветы закаты время я сделал  могу дать пингование сделал  и многое другое но части нет