Author Topic: Issue with Advanced HIM and Linux mint  (Read 5250 times)

MrOverCast

  • Newbie
  • *
  • Posts: 31
    • View Profile
Issue with Advanced HIM and Linux mint
« on: December 03, 2024, 06:55:09 PM »
Hey guys

I found an old post about a guy that got Advanced HMI working on Linux mint by installing mono, I went head and tried this on my linux mint and Advanced HMI worked, Except now im facing this issue where if you click on a button in Advanced HMI it takes a good 2 min for the converter to send it to the PLC and for it to respond. The TX and RX light on my converter flash every 3 seconds instead of every 300ms. I know its not a PLC or Advanced HMI problem Because If I plug the converters usb into a windows 10 computer everything works fine and the TX and RX light flash every 300ms. This is obviously a linux problem. Has anyone encountered this issue or have any suggestions on why this would happpen?

Thanks

bachphi

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #1 on: December 04, 2024, 10:57:24 AM »
Does your Linux Mint setup run on a PC, VMware or virtualBox?
« Last Edit: December 04, 2024, 10:59:12 AM by bachphi »
UCL =================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
My understanding of computer is well below six Σ.
Unless what I am saying is logically defined in a PLC, everything else might be beyond my control.
LCL =================

MrOverCast

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #2 on: December 04, 2024, 12:49:06 PM »
Does your Linux Mint setup run on a PC, VMware or virtualBox?

Nope I just installed mono and clicked the Advanced HMI.exe file and it opened. I put /dev/ttyUSB0 in the port name and it was able to open the USB port but it just has an extremely slow response time

bachphi

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #3 on: December 04, 2024, 01:00:45 PM »
I am still unclear about your response.
Are you running Linux Mint from a USB drive or CD/DVD in a live session on a PC or laptop that’s running Windows 10/11?


PS:  Posting issue related to the apostrophe seemed to work in this case.  "that's"
« Last Edit: December 04, 2024, 01:03:46 PM by bachphi »
UCL =================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
My understanding of computer is well below six Σ.
Unless what I am saying is logically defined in a PLC, everything else might be beyond my control.
LCL =================

dmroeder

  • Administrator
  • Full Member
  • *****
  • Posts: 217
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #4 on: December 04, 2024, 01:59:26 PM »
I took the "nope" as Linux is running on bare metal, not in a VM.  I suppose that might be assuming a lot

MrOverCast

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #5 on: December 04, 2024, 02:12:45 PM »
I am still unclear about your response.
Are you running Linux Mint from a USB drive or CD/DVD in a live session on a PC or laptop that’s running Windows 10/11?


PS:  Posting issue related to the apostrophe seemed to work in this case.  "that's"

sorry about that I kinda skimmed through the response and I wasn't paying attention, my Linux mint is running on an all in one touchscreen desktop computer.

again sorry

bachphi

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #6 on: December 04, 2024, 03:13:52 PM »
Your response only partially addresses my question. I’ll assume you are not running a live session from your AIO PC and have instead installed a permanent version of Linux Mint. Here are a few suggestions you can try:

Add your username to the dialout and tty groups.
Disable pwrstatd.
Remove brltty.
UCL =================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
My understanding of computer is well below six Σ.
Unless what I am saying is logically defined in a PLC, everything else might be beyond my control.
LCL =================

MrOverCast

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #7 on: December 04, 2024, 05:02:24 PM »
Yes I have Linux mint installed permanently on its own separate computer, I went head and tried all 3 of those and I still get this ridiculously slow response time. I would rather not use windows 10 because this computer is from 2013 so hopefully someone chimes in with another possible cause. Like I said the program works perfectly fine its just not usable because how slow it is

I didn't mention this before but im using Serial RTU with my PLC, im using a waveshare USB to RS232/485/TTL converter. Maybe the drivers need to be installed for the converter? someone said I shouldn't have to install drivers cause TTY takes care of that.

bachphi

  • Hero Member
  • *****
  • Posts: 690
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #8 on: December 04, 2024, 06:56:27 PM »
Have you restarted the system to ensure the changes are applied? I’m assuming you’ve already run update and upgrade.

Since this is an older PC, what baud rate did you configure for the port? Instead of testing with AAHMI, try using a basic terminal program like minicom to test the connection. You might also want to test a different port to rule out hardware issues.

It seems the Waveshare serial adapter uses either the FTDI or CH340 chipset, so make sure the appropriate driver is installed and functioning correctly.
UCL =================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
My understanding of computer is well below six Σ.
Unless what I am saying is logically defined in a PLC, everything else might be beyond my control.
LCL =================

MrOverCast

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Issue with Advanced HIM and Linux mint
« Reply #9 on: December 04, 2024, 08:07:33 PM »
Have you restarted the system to ensure the changes are applied? I’m assuming you’ve already run update and upgrade.

Since this is an older PC, what baud rate did you configure for the port? Instead of testing with AAHMI, try using a basic terminal program like minicom to test the connection. You might also want to test a different port to rule out hardware issues.

It seems the Waveshare serial adapter uses either the FTDI or CH340 chipset, so make sure the appropriate driver is installed and functioning correctly.

The baud rate is set to 19200, and that is because that is the only baud rate that will work. any other rate and the converter stops responding. Before I started messing with Linux I had windows 10 on this old computer and it had no problem running AHMI, So it cant be a hardware issue also I did confirm that im using ftdi_sio so I guess that fine?

seems like something in linux is buffering the data going through?