Welcome, Guest
Username: Password: Remember me

TOPIC: Arduino problem in 5.6

Arduino problem in 5.6 4 years 1 week ago #10535

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
Hello all my friends!

I have an ongoing problem with Arduinos

I upgraded from 5.4 to 5.6, and the arduinos do not work !

Issue 1 --
Proview will communicate with the arduinos, read the temperature from ONEWIRE and DALLASTEMPURATURE, and switch the arduinos switches off and on, and read the analog inputs.
BUT
the time keeping function of Proview gets messed up.
The normal ORDER - DELAY in the PLC is way off. Like 3 minutes instead of the 40 sec specified.
when the Proview program is run WITHOUT the usb / arduinos plugged in, it keeps proper time.
a 40 sec delay is 40 sec.
When the USB / arduinos are plugged in, the proview program goes haywire. and does not keep proper time anymore. BUT it will still communicate with the arduinos--- ALSO proview does NOT have any error messages.

Issue 2 --
when an arduino is unplugged, there is no red light on -- in the communication or RUN button in proview. It used to do that in 5.4 --
In 5.6 it does not show a breakdown in communication with the arduino.

The proview brewery program I created is the exactly the same for 5.4 and 5.6--
there are no error messages in proview, it compiles fine in both 5.4 and 5.6
I have used arduino 1.0.5 (both on the 5.4 and 5.6)
and also used the newest updated arduino 1.8.12 (on the 5.6)
i used the libraries for arduino (onewire and dallastempurature) from the original 5.4 install on both 5.4 and 5.6 --
and used updated libraries for 1.8.12 on the 5.6 --

Again, this setup worked great for 4 years. in 5.4-- and arduino 1.0.5--
Now it will NOT work in 5.6 , with arduino 1.0.5 or 1.8.12-- using the old libraries for onewwire and dallastemp-- or the new updated libraries.

I am including screenshots of the Console printout, and the arduino settings, and the grafcet that i am using for timing.

H-E-L-P !

I am at wits end. I cannot figure out what is wrong. And really would like to upgrade from 5.4 to 5.6--

THANKS!

bill
Last Edit: 4 years 1 week ago by brew. Reason: mistake
The administrator has disabled public write access.

Arduino problem in 5.6 4 years 1 week ago #10536

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Brew,

How did you upgrade:

- Did you upgrade Proview AND your project?
- Did you upgrade your Ubuntu version?

Arduino's

- Are the RX/TX blinking without stalling?
- Are /dev/MEGA and /dev/UNO symlinks?
- Are you using udev to identify the Arduino's?
- Can you simplify your system for example by using in first case only one Arduino?

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Arduino problem in 5.6 4 years 1 week ago #10537

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
Hello Marc,

Thanks for the help!

- Did you upgrade Proview AND your project?
yes
both to 5.6
the project works fine.
IF the arduinos are not plugged in.

- Did you upgrade your Ubuntu version?
yes to 18.04.4

- Are the RX/TX blinking without stalling?
yes
the lights blink and act just as before
and the arduinos talk to proview just fine for
*turning switches off and on
*reading analog pressure sensors
*reading onewire sensors

when the arduinos are hooked up, it just screws the timing inside of proview
so ORDER DELAY goes haywire.
and shows no error messages.

- Are /dev/MEGA and /dev/UNO symlinks?

not sure what you mean
do you mean this ? i put this code chunk into --sudo gedit /etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0042", SYMLINK+="MEGA"
SUBSYSTEM=="tty", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0043", SYMLINK+="UNO"

- Are you using udev to identify the Arduino's?

not sure what you mean...
you mean the code above?

- Can you simplify your system for example by using in first case only one Arduino?
no
its got too many things going on
besides, it works great in 5.4 -- for 4 years now.

thanks man!

hope you are staying healthy ! Enjoy the spring weather.

bill
The administrator has disabled public write access.

Arduino problem in 5.6 4 years 1 week ago #10538

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Brew,

Let's get things straight.

You had everything running with:

Ubuntu 14.04 ?
Proview 5.4 (pwr54_5.4.0-1.3_i386.deb) ?
You are running a development station as operator/process station ?

You made a update because you want Proview 5.6:

You made a Proview upgrade by following the upgrade56.pdf documentation with 5.4->5.5->5.6 as steps?
You made a copy/dump of your project ?
You made an upgrade of Ubuntu 14.04 to 16.04 ?

Or..... did you install a complete fresh 16.04 and tried to copy the project?

Please describe all the steps you made...

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.

Arduino problem in 5.6 4 years 1 week ago #10539

  • brew
  • brew's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 108
  • Karma: 0
Hi Brew,
Let's get things straight.
You had everything running with:

Ubuntu 14.04 ?
Proview 5.4 (pwr54_5.4.0-1.3_i386.deb) ?


yes, correct. but x64 bit

You are running a development station as operator/process station ?

both.
development station and --
a RTT runtime station --
separate computers.

You made a update because you want Proview 5.6:

yes

You made a Proview upgrade by following the upgrade56.pdf documentation with 5.4->5.5->5.6 as steps?

I just did a install of pwr56_5.6.1-1_amd64 on the new 18.04.4 computer
i did the copy of the project and fix as shown below.

You made a copy/dump of your project ?

no, just copied the folders (below) from 14.04 to 18.04

You made an upgrade of Ubuntu 14.04 to 16.04 ?


no

Or..... did you install a complete fresh 16.04 and tried to copy the project?

i did a complete fresh install of 18.04.4
and then install of pwr56_5.6.1-1_amd64
and then copied my project over...
Here is my note for this upgrade.
copied the project over and changed this info
go to usr-> Local→ pwrp→ brewery2
and also the folders under usr-> pwrp-> adm
and copy the brewery2 folder, and adm folder, to the new hard drive
then change the" usr→ pwrp→ adm→ db→ pwr projectlist" and "pwr volume list" to match the old hard drives info.
Run the upgrade directions for 5.4 to 5.5 if needed
reload.sh
and the upgrade.sh
Also,
Set NodeName to NEW COMPUTER NAME from OLD COMPUTER NAME (i do not do this, since the old and new computer have the same name, BREWBRAIN) in the NodeConfig object for bus 999 and build the node. This will generate the requested file.
Please describe all the steps you made...

i can redo the upgrade, if you think it will make a difference, but the program runs fine without arduinos hooked up.
and the program runs fine for input/output on the arduinos,
it just screws up the proview timing.

thanks man!

bill
Attachments:
Last Edit: 4 years 1 week ago by brew.
The administrator has disabled public write access.

Arduino problem in 5.6 4 years 6 days ago #10540

  • marc
  • marc's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 710
  • Thank you received: 70
  • Karma: 24
Hi Bill,

I think it's a good idea to make a very small test project on your development station with an Arduino and a timer.
If this works then something went wrong with your update/upgrade.

You are 100% sure (stty - rc.local) the serial communication is ok?

The next couple of days I have no time at all.
I need to work long shifts, eat and sleep.
The small company I am working for is a little pressed at the moment.

No spring weather for me. There is not even day light....

Take care.

/Marc
Please, use the Wiki if you succeeded your project or solved your problem. Share your work, so we can learn from each other.
The administrator has disabled public write access.
Time to create page: 7.570 seconds