Sponsored Content
Special Forums Hardware Controlling Peripheral Relay/Switch with Scripts Post 302881383 by Akshay Hegde on Sunday 29th of December 2013 12:02:22 AM
Old 12-29-2013
From your requirement it looks like you are interested to control electronic / electrical devices with script, for this you need to have embedded modules which is usually microcontroller based, for usb based controlling you can use usbmicro's U451 module, and you'll need some wire, wire cutters, crimpers, and nuts etc to hook it all up.

For web based control you can use some webrelay, for this you need to have 9-28 Volts of power supply, which has got interface for connecting relays, and one Ethernet port for connecting LAN cable from PC to module, control will be either browser based or xml messages, which we can do through scripting. or you can buy Net Control NC-800 electronic module, from which you can control maximum 8 relays, from internet/intranet, buying modules are little expensive.

So if you are familiar with PCB designing , Basic Knowledge of programming 8051 / 8052 Microcontroller, Soldering, usage of breadboard, then you can buy components and can build your own module with less money, afters it can be controlled through scripting.

Probably you can go through http://www.electronicsforu.com , build your module, come back to us and tell us how you would like to control devices through scripting, what is medium of communication USB/LAN/Wireless, what command / message device will recognize / use to activate or deactivate relay.
This User Gave Thanks to Akshay Hegde For This Post:
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

controlling screen display

How can I control the screen output when trying to read a large file onto the screen x number of lines at a time. I'm trying to use this is a bourne shell script. I want to display 10 lines of a file, pause the screen so that a user can read the file, and then display the next 10 lines of the file,... (6 Replies)
Discussion started by: jrdnoland1
6 Replies

2. UNIX for Dummies Questions & Answers

Resetting hung serial ports and peripheral devices.

Working in SunOS 2.6 without the GUI, I am trying to find out what command line syntax I can use to reset the serial port. I have also been curious how to reset peripheral devices without having to reboot the machine. If anyone has a cheat sheet for that, that would be great! (1 Reply)
Discussion started by: mcherry
1 Replies

3. UNIX for Dummies Questions & Answers

Controlling logfiles

I support an app that outputs alert and audit messages to one log file (vendor says they can't be separated). The script that I have written takes a copy (mv cmd) of the file to do the separation and reformatting. I have a problem that I loose records (messages are being written constantly, upto 3+... (5 Replies)
Discussion started by: nhatch
5 Replies

4. Programming

controlling terminal

What is controlling terminal in the case of daemon process? (2 Replies)
Discussion started by: Madhu Babu
2 Replies

5. Filesystems, Disks and Memory

Controlling I/O

Hi guys, Can anyone please tell me how I can control the I/O on my hardware devices in Suse Linux 8.1. I find that everytime I am reading a CD, or copying from a CD, I am unable to listen to music of watch a movie. Maybe this is intended to be like so, for the current high street technolgy... (1 Reply)
Discussion started by: bionicfysh
1 Replies

6. Shell Programming and Scripting

ps: no controlling terminal

Any one know the below means : ps: no controlling terminal I had run a script in background : nohup ./benchmark.sh & and shutdown my windows system from where i connected through SSH I am using bash: The above script perfoms various tasks of Benchmarking Repositories Today the... (3 Replies)
Discussion started by: sriram003
3 Replies

7. Solaris

configure solaris 10 mail to relay email alerts from SAN switch

I want to be able to use an account on a solaris 10 server, eg root@myhost to act as a relay to forward mail to my domain account me@mycompany.com The reason for this is to configure root@myhost as a mail relay on Brocade SAN switches - so that when a port goes bad i get an email alert.... (0 Replies)
Discussion started by: wibidee
0 Replies

8. Shell Programming and Scripting

how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable

hi, how to access console of a switch having rj45 on switch side to db 9 female on pc side console cable which needs to be connected to one console server having rj11 on its side and db 9 female on other end.i.e. on switch side,console cable has rj45 and db 9 pin female connector on other side of... (1 Reply)
Discussion started by: pankajd
1 Replies

9. Red Hat

"rhgb quiet" controlling the display of commands in single user mode ?"rhgb quiet" controlling the d

Why does removing "rhgb quiet" from the kernel boot parameters control whether or not the commands I enter are displayed in single user mode ? For instance, if I do not remove "rhgb quiet", when I am in single user mode, whatever command I type will not be displayed on the screen. The... (0 Replies)
Discussion started by: Hijanoqu
0 Replies
usb_as(7D)							      Devices								usb_as(7D)

NAME
usb_as - USB audio streaming driver SYNOPSIS
sound@unit-address DESCRIPTION
The usb_as driver is a USBA (Solaris USB Architecture) compliant client driver that supports the USB Audio Class 1.0 specification. The usb_as driver processes audio data messages during play and record and sets sample frequency, precision, encoding and other functions on request from the USB audio control driver. See usb_ac(7D). This driver is plumbed under the USB audio control driver and does not directly interface with the user application. FILES
/kernel/drv/usb_as 32-bit x86 ELF kernel module /kernel/drv/amd64/usb_as 64-bit x86 ELF kernel module /kernel/drv/sparcv9/usb_as 64-bit SPARC ELF kernel module ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+------------------------------+ |Architecture |SPARC, x86, PCI-based systems | +-----------------------------+------------------------------+ |Availability |SUNWusb | +-----------------------------+------------------------------+ |Stability level |Evolving | +-----------------------------+------------------------------+ SEE ALSO
mixerctl(1), attributes(5), usba(7D), usb_ac(7D), audio(7I), mixer(7I), streamio(7I) Writing Device Drivers Universal Serial Bus Specification 1.0 and 1.1 System Administration Guide: Basic Administration http://www.sun.com/io DIAGNOSTICS
In addition to being logged, the following messages may appear on the system console. All messages are formatted in the following manner: Warning: <device path> (usb_as<instance num>): Error Message... where <device path> is the physical path to the device in /devices directory. No bandwidth available. There is no bandwidth available for the isochronous pipe. As a result, no data will be transferred during play and record. Operating a full/high speed audio device on a high speed port is not supported. The USB software does not currently support full or high speed audio devices connected to an external USB 2.0 hub that is linked to a port of a USB 2.0 host controller. Audio devices must be connected directly to a port of a USB 2.0 controller or to any USB 1.1 port. Cannot access device. Please reconnect <name>. There was an error in accessing the device during reconnect. Please reconnect the device. Device is not identical to the previous one on this port. Please disconnect and reconnect. A USB audio streaming interface was hot-removed while open. A new device was hot-inserted which is not identical to the original USB audio device. Please disconnect the USB device and reconnect the device to the same port. NOTES
The USB audio streaming interface will be power managed if the device is idle. SunOS 5.10 9 Oct 2004 usb_as(7D)
All times are GMT -4. The time now is 01:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy