You are not logged in.
Dear Rex Control,
yesterday I tried to install Monarco HAT on Raspberry Pi2 with latest OS RASPBIAN JESSIE WITH PIXEL after apt-get update and upgrade. The installation of the Monarco went through without errors and I was also able to upload compiled executive and connect to it using both RexDraw and RexView. The running executive was using two AIN and two DOUT as PWM and was doing its job. Despite the executive was working fine I noticed following error in the system log:
Could you please explain what exactly this error means?What should be done to get rid of this error?
One more question: In Monarco HAT HW Reference Manual in Analog input section are analog voltage inputs described with two ranges:
Range1: 0-10V
Range2: 0-5V
Are these ranges also SW switchable?Can I switch them using the correct driver flag? In the folowing picture are shown AIN flags and there are two types AIx and AINx. What is the difference? First one si Range1 and second one Range2?
Thx for reply
Offline
Dear Rex Control,
yesterday I tried to install Monarco HAT on Raspberry Pi2 with latest OS RASPBIAN JESSIE WITH PIXEL after apt-get update and upgrade. The installation of the Monarco went through without errors and I was also able to upload compiled executive and connect to it using both RexDraw and RexView. The running executive was using two AIN and two DOUT as PWM and was doing its job. Despite the executive was working fine I noticed following error in the system log:
Could you please explain what exactly this error means?What should be done to get rid of this error?
Dear hondzeek!
You probably have one of the very first Monarco HAT boards which we've sent to testers with firmware version 2.3. This version does not have implemented some minor features and service registers which cause errors you can see in the system log - the messages just inform you that read/write of several registers failed. If you are interested in deep, you can find service registers description in the doc: https://github.com/monarco/monarco-hat- … escription
It should not affect any functions except switching COUNTER modes. In firmware 2.3 COUNTER1 is fixed in quadrature mode, and COUNTER2 is disabled.
During this week, we will release firmware-upgrade tool so you will be able to upgrade firmware to the latest version in your Monarco HAT. Thanks for patience.
One more question: In Monarco HAT HW Reference Manual in Analog input section are analog voltage inputs described with two ranges:
Range1: 0-10V
Range2: 0-5VAre these ranges also SW switchable?Can I switch them using the correct driver flag? In the folowing picture are shown AIN flags and there are two types AIx and AINx. What is the difference? First one si Range1 and second one Range2?
In current firmware, only the ranges 0-10V and 0-20(25)mA are supported. We are working on this, but there are some complications caused by ADC implementation in the microcontroller when we want to set different range on each input. For 0-5V signals, you can use 0-10V range for now - you only loose 1bit of resolution.
AIx and AINx - this is aliases to the same function. Someone preffer shorter notation, someone more illustrative. So we support both. Switching to current-loop mode is done by appending the "C" suffix - for example AIN2C.
Thank you for questions and for using Monarco HAT!
Offline
Dear Mr. Setka,
thank you very much for your explanation.
Where will be the firmware upgrade tool available for download?
Offline
Dear hondzeek,
We just released firmware upgrade tool, and current firmware v2.004 binary image. Now it is available as github repository here: https://github.com/monarco/monarco-hat-firmware-bin
If you want to upgrade your Monarco HAT firmware, just follow the steps described in README.md in the repository:
Disable serial console on RPi UART (if you already haven't done that):
sudo sed 's/ console=serial0,[0-9]\+//' -i /boot/cmdline.txt
Stop Rexcore (if using RS485 on Monarco HAT via /dev/ttyAMA0 with Modbus Driver or from REXLANG block):
sudo service rexcore stop
Install dependencies, clone repository and run firmware download:
sudo apt update
sudo apt install git perl libdigest-crc-perl libdevice-serialport-perl
git clone https://github.com/monarco/monarco-hat-firmware-bin
cd monarco-hat-firmware-bin
sudo ./monarco-flash.pl flash ./firmware-bin/fw-monarco-hat-2004.bin
New firmware versions will be released to this github repository, and we will also announce them here on forum.
Last edited by setka@rexcontrols.cz (2016-11-28 22:43:42)
Offline