Jump to content

Recommended Posts

After googling a large portion of my day away, I found I am stuck

I have purchased a rs485 usb dongle “USB to RS485 Converter Adapter ch340” to be exact

With a r421a08 Relay board. I can turn relays on and off using a python test script.

(https://github.com/Erriez/R421A08-rs485-8ch-relay-board)

 I would like to be able to send commands using autoit.

I have tried to use putty and send commands, but I have no idea how to do so.

 If some one can give an example on how to turn on and off a relay, I would be much obliged.

Link to post
Share on other sites

It may be possible to convert the code, but i know nothing of python.

I guess you'd have to go through python and find the equivalent in autoit.

Step by step, communicate with the correct port

Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to post
Share on other sites

Hello. You just need to find a COM library around the forum. Then send the correct Command to the COM port.

 

Saludos

Link to post
Share on other sites

I imagine that I could turn on the relay with putty if that were the case.

anyone have any ideas as how to do this manually? if I can do it though putty I can do it though autoit.

 

I wonder if the issue is with the relay board and how it expects to be treated more then the serial usb dongle.

Link to post
Share on other sites

If you want to use PuTTY with the command line, try using Plink.  There are different Plink UDFs around the forum.  Here's the one I used to connect to a Mac computer, but you should be able to use the Plink functions for what you need.  

 

Adam

 

Link to post
Share on other sites

i think @AdamUL is right.  Here is my flavor of Plink command organization (with bonus pipe to log)

 

 

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to post
Share on other sites

I guess the issue is, I have no idea what to send to this com port plink prompt.

I have tried things like "com4 1 on 3" which translates to send to com 4 channel 1 turn relay 3 on.

Is this an issue with me not sending hex? is Com supposed to be capitalized? do I need to send the relay in binary?

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By ripdad
      I have had several people ask for this, so I decided to work the algorithm for it and this is the result.
      What is it?
      A Gateway Proxy Sends and Receives Data Unmodified.
      https://en.wikipedia.org/wiki/Proxy_server
      What is it used for?
      You can use it as a gateway, relay or router between two known static IP addresses.
      More information is in the header of the script.
      Download: LocalGatewayProxy.au3
      You will need WSA_NBTCP.au3 from here:
      https://www.autoitscript.com/forum/topic/191954-wsa_nbtcp-v100-udf/
      If you have any questions or problems, let me know.
       
×
×
  • Create New...