groober

Hi all,

Have a freshly built Raspberry pi (Model B) with the Raspbian Jessie V8 fully patched, OpenPLC and support code latest as of 2 days ago.
The Arduino is a Mega 2560 with the latest firmware also as of a couple of days ago.

All compiled ok and seems to run ok from the small amount of testing thus far (Still on Learner plates) but I get the following messages in the PLC log:
The messages come in bursts around 20 a minute - some more, sometime less.

OpenPLC Server

OpenPLC Software running...
Port found: platform-20980000.usb-usb-0:1.4:1.0
Trying to open /dev/ttyACM0

Setting main thread priority to RT
Locking main thread memory

Server: Listening on port 502
Server: waiting for new client...
No response from IO. Error: Success

Getting current time

No response from IO. Error: Success
No response from IO. Error: Success
No response from IO. Error: Success
...
No response from IO. Error: Success

Have not been able to find anything in the forum or google as yet.
Any advice as to what this could be?


Thanks in advance.

Reply 0 0
thiagoralves
The OpenPLC tries to find your Arduino board automatically. In order to do that, it sends messages to all COM ports available in an attempt to find the right one. These messages are probably coming from the failed attempts. If it continues appearing after your Arduino is connected and working, it might indicate a problem, although the error code reports success. I'll recheck the code again and look for possible faults.
Reply 0 0
groober

Hi,

The errors occurs even when communications with the Arduino has been established.
I have both the Tx and Rx lights flashing away happily on the Arduino and I can see the input status changes I apply to the Arduino in Radzio Mobus application indicating there is comms.

Great work with OpenPLC BTW, clearly a lot of work, thoughts and hours involved.


Regards.

Reply 0 0
eyasu
Hello guys,

I am encountering the same problem. Receiving the "No response from IO. Error: Success" message when trying to run the OpenPLC hello_world program. Please find attached the screenshot. Any solution? Thiago, have you tested it using linux machine or RPI?OpenPLC_Arduino.png
Reply 0 0
Joe Cal
Hello friends, I have the same problem, the open plc server connects to the arduino UNO board, the RX and TX LEDs are flashing, but the following appears when I try to enter View PLC logs:
open plc server.png 
Reply 0 0
thiagoralves
Joe, in your case it seems that your COM port is busy, so OpenPLC can't use it. Do you have the Arduino IDE open while you're trying to run OpenPLC? If you do, please close it before starting OpenPLC, and have your Arduino board connected to the USB port at all times.
Reply 0 0
Joe Cal
Hi friend, check and the Arduino IDE is closed, no application is using the COM port.


open_plc_server.png
  
Reply 0 0
only

Hi, 

same problemy whit my Arduino MEGA. Using "Hello World" program with digital ports. 
error.jpg 

Reply 0 0
thiagoralves
These messages are normal until the OpenPLC finds the correct COM port. It starts probing all ports and eventually might get errors like port busy or not available. If you scroll down to the end of the log, you will see that the messages stop appearing once OpenPLC finds the correct port for your arduino.

The important thing is to have Rx/Tx LEDs flashing constantly in your arduino board. If they are flashing, then the software is working
Reply 0 0
only
What if the message appears without end. I waited longer and the error appeared even after waiting 10 minutes. Is it a bug that I should ignore?

Thanks for the help. I'll look into this tomorrow and I will do my best to describe it If needed.
Reply 0 0
groober
only wrote:
What if the message appears without end. I waited longer and the error appeared even after waiting 10 minutes. Is it a bug that I should ignore?

Just as a FYI Thiagoralves, Same here - as mentioned at the top of the post, even though Tx/Rx are flashing fine and I have perfect comms to the MEGA, the error messages continued to appear approximately 20 a minute, varies a bit - sometime more and sometimes less.
Reply 0 0
thiagoralves
I fixed the issue. OpenPLC now only reports COM errors after finding the right port (no point in showing errors for the wrong ports, right!?). Also, the "No response from IO Error: Success" basically means that the Arduino has already sent everything it had and has nothing else to send. It is not properly an error. So in that case, the message was omitted as well.

If you want to try the new code, please remove your current OpenPLC folder and clone it again from git. Then run the build script again. These steps should work if you installed OpenPLC in the default home directory:

cd ~/
rm -Rf OpenPLC_v2/
git clone https://github.com/thiagoralves/OpenPLC_v2.git
cd OpenPLC_v2
./build.sh    (or ./build_win.sh if you're on Windows)

Try this new code and let me know if it worked for you all. Thanks!
Reply 0 0
only

Works fine, no errors happens. Thanks for your help! 

Reply 0 0
pgops
Hi,
my Uno not getting connected.please find the log below.I have closed Arduino IDE and no other app is using the COM port.

 

Starting OpenPLC Application...
OpenPLC Software running...

Port found: ttyS0
Port found: ttyS2

Trying to open /dev/ttyS0

The port didn't respond properly

Trying to open /dev/ttyS2

Getting current time


Server: error binding socket: Address already in use

OpenPLC application terminated

Reply 0 0
thiagoralves
The application is being terminated because you have some other software using port 502 - required for Modbus communication.
Reply 0 0
Reply