Author Topic: Help needed in specific configuration  (Read 10699 times)

jonaspaulo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Help needed in specific configuration
« Reply #15 on: March 31, 2010, 10:56:56 pm »
Quote
and have connected via SPI or CAN some sensors

 through GPIO pins in the switches

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Help needed in specific configuration
« Reply #16 on: March 31, 2010, 11:29:45 pm »
Quote
and have connected via SPI or CAN some sensors

 through GPIO pins in the switches

ok...you might have mentioned that 'small' detail earlier ;-)

So you have extended or adapter openwrt in some way to allow the sensors data to be accessed or pushed out onto the LAN I assume...or does something have to poll a port on an IP address to get at the sensors data? Please explain this aspect...how does the various sensors data get transferred across the LAN?

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

jonaspaulo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Help needed in specific configuration
« Reply #17 on: April 01, 2010, 12:25:18 am »
yes that is my doubt also. my job in the project is the part of integration with linuxmce, and the part of sensors is of other persons, and of course i need to know that. but since it is already in a open state, what would be the best approach to seamelessly integrate with linuxMCE?

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Help needed in specific configuration
« Reply #18 on: April 01, 2010, 01:26:52 am »
yes that is my doubt also. my job in the project is the part of integration with linuxmce, and the part of sensors is of other persons, and of course i need to know that. but since it is already in a open state, what would be the best approach to seamelessly integrate with linuxMCE?

Well you need to provide a technical description of how data from the sensors is accessed from the network side of the openwrt switch. By that I mean ignoring LinuxMCE how would the data the sensors collect be made available to the LAN. Does the switch allocate each sensor to a port number (my guess is that is probably does). The next question is does the switch have a protocol or API that allows remote LAN based devices to communicate with it? My assumption is again that it must... and it is that API/Protocol that must be built into a Device Template in LinuxMCE so that your S2/S3 switches can be auto-detected on the LAN when you plug them in and any sensors that are attached can be discovered - ie to make the switch PnP etc.

The concept of the switches + sensors sounds very exciting...but you need to make more of the LAN side API/Protocol publicly available otherwise no one here can really be of much help to you. How you implement the internal aspects of the switch and the sensors need not be discussed in any detail. 

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

jonaspaulo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Help needed in specific configuration
« Reply #19 on: April 01, 2010, 03:40:39 am »
hm i see, i will work on it and update this. since the sensors aren't ready yet and i have to continue my part of the project, i will simulate a sensor in some pc in the network for now. thanks a lot for the help

jonaspaulo

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Help needed in specific configuration
« Reply #20 on: April 10, 2010, 03:50:07 pm »
@totallymaxed some other questions, isn't there documentation about all the functions available to use or at least the most needed ones? Another thing , regarding the sensors how is handled the communication between them and LMCE? I mean i need to code the sensors to send their info periodically to the network in order to LMCE catch that info? Or do i implement some sort of polling algorithm or other method? thanks

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Help needed in specific configuration
« Reply #21 on: April 10, 2010, 06:23:40 pm »
@totallymaxed some other questions, isn't there documentation about all the functions available to use or at least the most needed ones? Another thing , regarding the sensors how is handled the communication between them and LinuxMCE? I mean i need to code the sensors to send their info periodically to the network in order to LinuxMCE catch that info? Or do i implement some sort of polling algorithm or other method? thanks

As I said earlier in the thread if you can provide more information about the devices, what they need to communicate with etc etc then forum member can help you - without that information then its difficult for anyone to be very helpful.

There is plenty of documented code in the svn & examples in the wiki - look in both for examples of what you need.

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk