A.IR Shield Nano RPi Python script: Difference between revisions

From AnalysIR WiKi
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
The A.IR Shield Nano is a versatile IR tranciever built on top of the Ardiono Nano. It connects to a PC vis the included serialUSB port connector and feature advanced IR cirsuitry for sending & receiving IR signals.
The A.IR Shield Nano is a versatile IR tranceiver built on top of the Arduino Nano. It connects to a PC via the included serialUSB port connector and features advanced IR circuitry for sending & receiving IR signals. It can also record the IR carrier frequency with every signal.


This page describes some sample PYTHON (2.7) scripts for using the shield on the RPi. The script can alos be used on any LINUX system along with windows, subject ot PYTHON compatability.
This page describes an example PYTHON (2.7) scripts for using the shield on the RPi via HTTP POST requests. The script can alos be used on any LINUX system along with windows, subject ot PYTHON compatability.




Line 7: Line 7:


This is described elsewhere as follows:
This is described elsewhere as follows:
* Detailed information is available in the [http://www.example.com Data Sheet]
* Detailed information is available in the '''[https://www.analysir.com/blog/product-sheet-a-ir/ Data Sheet]'''
* and also on our on-line shop [http://www.example.com Buy the A.IR Shield Nano here]
* and also on our on-line shop where you '''[https://www.analysir.com/blog/product/a-ir-shield-nano-advanced-infrared-module/ Buy the A.IR Shield Nano by clicking here]'''
 
 
== About the Script ==
The script source code, is only available to those who have purchased a shield. Just email for the download link. You will require PYTHON 2.7 to run the script and it should be intalled on your RPi or other platform. We are happy to provide sript specific support, but you should be prepared to troubleshoot your PYTHON & RPi installation by yourself.
 
== Running the Script ==
The script should be executed as follows: ''python servAIR.py 9449''
where:
* '''python''' - starts a python process to run the script
* '''servAIR.py''' - is the name of the script and is located in your active directory.
* '''9449''' - is the port number to use for communications & ideally should be the same number that you use for AnalysIR.
* Experience users will be able to run from other locations, force running in the background(''python servAIR.py 9449 &'') and pipe script output to a log file.
 
 
 
 
 
== Is it free to use the script in my own project? ==
 
Yes, there are no restrictions on using the script on your own commercial or hobby(non-commercial) projects, provided it is used together with an official A.IR shield purchased from AnalysIR or an authorised re-seller/agent. For other uses please contact us directly. We always appreciate when users provide a link back to '''[https://www.AnalysIR.com/blog/ our site]'''.

Revision as of 09:59, 30 November 2017

The A.IR Shield Nano is a versatile IR tranceiver built on top of the Arduino Nano. It connects to a PC via the included serialUSB port connector and features advanced IR circuitry for sending & receiving IR signals. It can also record the IR carrier frequency with every signal.

This page describes an example PYTHON (2.7) scripts for using the shield on the RPi via HTTP POST requests. The script can alos be used on any LINUX system along with windows, subject ot PYTHON compatability.


About the A.IR Shield Nano

This is described elsewhere as follows:


About the Script

The script source code, is only available to those who have purchased a shield. Just email for the download link. You will require PYTHON 2.7 to run the script and it should be intalled on your RPi or other platform. We are happy to provide sript specific support, but you should be prepared to troubleshoot your PYTHON & RPi installation by yourself.

Running the Script

The script should be executed as follows: python servAIR.py 9449 where:

  • python - starts a python process to run the script
  • servAIR.py - is the name of the script and is located in your active directory.
  • 9449 - is the port number to use for communications & ideally should be the same number that you use for AnalysIR.
  • Experience users will be able to run from other locations, force running in the background(python servAIR.py 9449 &) and pipe script output to a log file.



Is it free to use the script in my own project?

Yes, there are no restrictions on using the script on your own commercial or hobby(non-commercial) projects, provided it is used together with an official A.IR shield purchased from AnalysIR or an authorised re-seller/agent. For other uses please contact us directly. We always appreciate when users provide a link back to our site.