Yepkit / ykurcmd

YKUR USB Relay Board Control Utility
MIT License
1 stars 2 forks source link

master broken? #3

Open jsalatiel opened 6 years ago

jsalatiel commented 6 years ago

I am trying to get ./ykurcmd work, but i can not get the state of any port.

I can list just fine

# ./ykurcmd  -l

Attached YKUR Boards

---------------------
YKUR device found with Serial Number: YK00038
  Manufacturer: Yepkit Lda.
  Product:      YKUR

But when i try to get the state of any port i get the help.

# ./ykurcmd  -g 1

./ykurcmd Help

Port Switching Commands
---------------------------

Switch port Up/On

ykurcmd [-s <serial_number>] -u <port>

Switch port Down/Off

ykurcmd [-s <serial_number>] -d <port>

Get port switching status

ykurcmd [-s <serial_number>] -g <port>

Configuration Commands
----------------------

Write Port Default Parameter

ykurcmd [-s <serial_number>] -cwpd <port> <state>

Read Port Default Parameter

ykurcmd [-s <serial_number>] -crpd <port>

YKEMB Interface Commands
------------------------

Write byte to YKEMB

ykurcmd [-s <serial_number>] ykemb -w <i2c_addr> <byte_addr_MSB> <byte_addr_LSB> <byte>

Read byte from YKEMB

ykurcmd [-s <serial_number>] ykemb -r <i2c_addr> <byte_addr_MSB> <byte_addr_LSB>

For detailed explanation of all the commands and options please refer to the ykushcmd User Manual, available for download in the product page at yepkit.com

If you guys change the master a lot, try to create a stable branch here

yep1 commented 6 years ago

Hi, thanks for your contact.

The issue has been solved in the latest commit.

Please note that the get switching state command is only supported in YKUR boards with firmware version equal or greater than Rev.1.2.0.

To check the firmware version of your board attach the board to the PC and run the following command. ykurcmd -v

Best Regards.