Parsec ошибка инициализации com порта

ИНИЦИАЛИЗАЦИЯ КОНТРОЛЛЕРА

После того, как в систему был добавлен новый контроллер или же была произведена замена контроллера, необходимо проинициализировать его базу данных. Это разовая операция, которая заключается в том, что база данных контроллера (расписания доступа,  коды идентификаторов, привилегии и т.п.) полностью очищается, а затем наполняется данными из БД системы ParsecNET.

Для того чтобы в новую точку прохода сконфигурировать пользователей, эту точку нужно добавить в соответствующие группы доступа. Делать это нужно перед проведением инициализации.

Инициализацию можно успешно провести при условии, что с контроллером есть устойчивая связь.

ВАЖНО: Обращаем ваше внимание на то, что во время проведения инициализации контроллер будет недоступен (в зависимости от количества пользователей, имеющих доступ в точку проходу, типа контроллера и загруженности системы этот процесс может занять от нескольких секунд до нескольких минут) и точка прохода, которой он управляет, будет на это время заблокирована.

Инициализация в ПО ParsecNET 2.0-2.5

  1. Запустите программу ParsecNET;
  2. В основном окне программы нажмите на кнопку «Монитор»;
  3. В окне монитора выберите в левой панели новый контроллер;
  4. Откройте меню «Утилиты» и выберите пункт «Инициализация контроллера».
    Появится предупреждающее сообщение: «При инициализации все данные будут уничтожены. Продолжить?»
  5. Нажмите на кнопку «Да». Процесс инициализации начнётся (очистка и загрузка данных).
  6. Во время инициализации от контроллера последовательно должный прийти следующие события: «Иницилизация контроллера», «Загрузка контроллера», «Начало быстрой загрузки», «Конец быстрой загрузки». Сообщение «Конец быстрой загрузки» считается окончанием инициализации.

Инициализация в ПО ParsecNET 3

1.  Запустите консоль «Монитор» ParsecNET 3;

2.  Выберите дверь(турникет), которая относится к новому контроллеру;

3.  На панели инструментов нажмите на кнопку инициализации контроллера  или выберите аналогичный пункт в контекстном меню. Появится предупреждающее сообщение: «Инициализация может занять значительное время. Продолжить?»

4.  Нажмите на кнопку «Да». Процесс инициализации (загрузки данных) начнется;

5.  Во время инициализации от контроллера последовательно должный прийти следующие события: «Прямое управление с ПК», «Начало быстрой загрузки пользователей», «Конец быстрой загрузки пользователей». Сообщение «Конец быстрой загрузки» считается окончанием инициализации.


Примечание: от контроллеров модели NC-1000/4000 сообщения «Начало быстрой загрузки пользователей» и «Конец быстрой загрузки пользователей» приходить не должны.

Впоследствии новые карты будут загружаться в контроллер автоматически при условии наличия связи с контроллером. 

Сейчас повторял ошибку предварительно удалив файлы из папок Log и BugReport.
В папку BugReport не записалось ничего .. в папке Log думаю наибольший интерес вызывают строки:

13:14:41.882 [6064] TQueueTasks.OnDataChange
13:14:41.882 [6064] TQueueTasks.OnDataChange — OK, Result=OK (0x0), dwTransid=0, hGroup=0, hrMasterquality=0, hrMastererror=0, dwCount=4, phClientItems=([4] 253, 254, 255, 256), pvValues=([4] 1, 5, 2, 8), pwQualities=([4] 192, 192, 192, 192), pftTimeStamps=([4] 16.01.17 09:44:05, 16.01.17 09:44:05, 16.01.17 09:44:05, 16.01.17 09:44:05), ItemIDs=([4] UniversContr.Globs.Adres, UniversContr.Globs.Speed, UniversContr.Globs.GlobMode, UniversContr.Globs.TypeIn)
13:14:43.375 [7692] [ComPort] Инициализации СОМ порта — OK, Порт=COM10
13:14:43.759 [7692] [ComPort] Ошибка СОМ порта, Порт=COM10
13:14:43.769 [6064] TQueueTasks.OnDataChange
13:14:43.769 [6064] TQueueTasks.OnDataChange — OK, Result=OK (0x0), dwTransid=0, hGroup=0, hrMasterquality=0, hrMastererror=0, dwCount=4, phClientItems=([4] 253, 254, 255, 256), pvValues=([4] 1, 5, 2, 8), pwQualities=([4] 280, 280, 280, 280), pftTimeStamps=([4] 16.01.17 13:14:43, 16.01.17 13:14:43, 16.01.17 13:14:43, 16.01.17 13:14:43), ItemIDs=([4] UniversContr.Globs.Adres, UniversContr.Globs.Speed, UniversContr.Globs.GlobMode, UniversContr.Globs.TypeIn)
13:14:54.931 [7692] [ComPort] СОМ порт недоступен, Порт=COM10
13:14:54.932 [7692] Ошибка инициализации порта (COM10 Адрес:1)
13:15:05.608 [7692] [ComPort] СОМ порт недоступен, Порт=COM10

тут видно, что сначала инициализация порта проходит «ОК» и сразу через 400 мс Ошибка COM порта. с чем это связано? хз.
сейчас видео скину как это выглядит.

Устранение неполадок

Если качество опрашиваемой переменной не равняется «Хорошее»
(см. «Пример работы»),
значит при опросе произошла ошибка. Ниже представлены действия по
исправлению:

  1. Качество «Ошибка инициализации COM порта» — ошибка при открытии
    коммуникационного порта:

    • В свойствах узла, которому принадлежит переменная, установить
      COM порт
      существующий в системе;
    • Закрыть другие программы использующие данный COM порт.
  2. Качество «Неопределенное» — переменная еще не опрашивалась:
    • Команда на опрос поставлена в очередь. Необходимо подождать
      пока подойдет очередь;
    • Установите свойство «Опрашивать» для узла, которой принадлежит
      переменная;
    • OPC клиентом должна быть установлена активность переменной и группы
      которой принадлежит данная переменная.
  3. Качество «Ошибка таймаута, устройство не отвечает» — устройство
    не ответило на запрос:

    • Подключите линию связи с устройством к тому COM порту, который
      указан в свойствах узла, которому принадлежит переменная;
    • Установите конфигурацию COM порта в соответствие с
      характеристиками устройства;
    • В свойствах узла, которому принадлежит переменная, установите
      верный Modbus адрес
      устройства;
    • Проверьте чтобы устройство правильно отрабатывало Modbus
      запросы.
  4. Качество «Ошибка CRC» — в полученном ответе не совпадает CRC:
    • Устраните помехи на линии связи.
  5. Качество «Ошибка конфигурации» — переменная не верно
    сконфигурирована:

    • Выполянется операция чтения и не задана Modbus функция чтения. Задайте
      номер функции чтения;
    • Выполянется операция записи и не задана Modbus функция записи. Задайте
      номер функции записи;
    • Записываемое значение выходит за пределы значимых битов (например:
      записываем 65536 в переменную с 16-тью(0-15) значимыми битами).
      Записывайте значение не выходящее за пределы значимых битов;
    • Для идентификации ошибки смотри лог.
  6. Качество «Ошибка соединения» — устройство не может отработать
    данный запрос:

    • Поверьте чтобы устройство отрабатывало запрос без ошибок, т.е.
      в возвращаемом номере функции старший бит не должен быть
      установлен;
    • Для идентификации ошибки смотри лог.
  7. Качество «Ошибка: неизвестный формат ответа» — ответ от
    устройства не является Modbus командой:

    • Проверьте чтобы устройство правильно отрабатывало Modbus
      запросы.
  8. Качество «Плохое» — неопределенная ошибка при опросе
    переменной:

    • Для идентификации ошибки смотри лог.

В случае если возникли вопросы по функционированию программы,
обращайтесь к разработчику (см. «Контакты»). При этом желательно выслать также:
используемую конфигурацию *.cfg, лог работы («c:Program
FilesLectus Modbus OPC and DDE serverLog*.log») и описать
последовательность действий для эмуляции рассматриваемой
ситуации.

Driver updates are a vital fix which can help with this issue

by Milan Stanojevic

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he… read more


Updated on September 14, 2022

Reviewed by
Vlad Turiceanu

Vlad Turiceanu

Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more

  • Serial ports are the interface between a PC and devices that don’t support a Bluetooth connection.
  • Driver errors or physical damage can cause your serial ports to become unresponsive.
  • In most cases, reinstallation or updates of your drivers should resolve this problem. 

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

If you are unable to open a serial port, you are in good company, and in this guide, we will be telling you all you should know.

A serial port can be helpful, but some users reported being unable to open serial port error messages on their PCs. This can be a big problem, and in today’s article, we’ll show you how to fix this error.

By the end of this article, you should have successfully fixed all problems with your serial port. Some of the solutions may be relevant to COM ports on Windows.

Why is serial port not working?

Here are the top reasons you should have in mind:

  • Incorrect communication settings – For the devices to work together correctly, they must be configured with the same communication settings.
  • Wrong serial cable – If you use the incorrect serial cable, you will be unable to connect.
  • Software conflicts – A software driver might make a serial port unusable. This driver can stop working if it is improperly installed or incompatible with a serial port.
  • Faulty wiring – This may cause issues when a control system is connected to a device.

Some variations of serial port problems that users have faced include:

  • Unable to open serial port access is denied – In most cases, Access Denied occurs when another program is utilizing the port.
  • Failed to open serial port Betaflight – Though it’s not a true USB interface, the flight controller communicates with your computer through a USB connection.
  • COM port not detected Windows 10 – Your PC will display the warning unable to open serial port if the COM port isn’t recognized.
  • Unable to open connection to com1 – This problem may sometimes arise if you don’t have the proper drivers.
  • Unable to open a connection to com1 Windows 10, com3 – This issue can sometimes appear if you don’t have the necessary drivers. To fix it, be sure to update the serial port driver and check if that solves your problem.
  • Putty unable to open serial port Windows 10 – Sometimes, this issue can occur due to certain Windows services. This isn’t a major problem, and you can fix it by disabling those services.
  • Unable to open serial port com1 access is denied – This issue can appear due to glitches with a serial port. Temporarily disable the serial port and check if that helps.
  • Unable to open com port win error code 5, 123, 3 – These are some common problems that can appear with a serial port, but you should be able to fix most of them with one of our above tips.

Now, let us show you how to resolve this error on your Windows PC.

How do I fix unable to open serial port?

1. Make sure that you have the necessary drivers

  1. Right-click the Start menu and select Device Manager.
    unable to open serial port
  2. Expand the Universal Serial Bus controller category.
  3. Right-click on your driver and choose Update driver.
  4. Lastly, click on Search automatically for drivers.

If you’re getting the Unable to open serial port message, perhaps the problem is related to your drivers. To fix this issue, we recommend updating your serial port driver.

To do that, you can visit your motherboard manufacturer’s website and download the latest drivers. Of course, you can always use a third-party tool if you find this process tedious or complex.

DriverFix will provide a detailed report of all of your current and obsolete device drivers. In addition, it updates the most recent device drivers from the complete database regularly.

DriverFix is the best choice when updating all your drivers automatically, with just a couple of clicks.

It will keep your computer safe from downloading and installing the wrong driver version, which can cause severe malfunctions and ease the process.

DriverFix

Keep all drivers up to date to avoid incompatibility issues.

2. Verify that the port isn’t open/disconnect the cable

Sometimes the Unable to open serial port message can appear if the port is already open. To fix this problem, users are suggesting disconnecting the cable from the other device and trying to connect again.

try to disconnect the cable

This is a simple workaround, but several users reported it worked for them, so feel free to try it out.

3. Stop the Windows Fax and Scan service

  1. Press Windows Key + R keyboard shortcut to open the Run dialog.
  2. Enter services.msc and press Enter or click OK.
    services run window can't open serial port
  3. When the Services window opens, locate Windows Fax and Scan service and double-click it to open its properties (If this service isn’t available, try changing the settings of the Fax service).
  4. Set the Startup type to Manual and click the Stop button to stop the service. Now click Apply and OK to save changes.
    manual startup type serial port not working

Several users reported that when they were unable to open a serial port while trying to use the serial port, it turned out that the problem was the Windows Fax and Scan service.

To fix this problem, you need to stop Windows Fax and Scan service. After doing that, check if the problem is still there.

Remember that this is just a workaround, so you might have to repeat it whenever you want to use a serial port on your PC.

4. Disable the serial port in Device Manager

  1. Press Windows Key + X and choose Device Manager from the list.
    serial port device manager
  2. When Device Manager opens, locate the serial port, right-click it, and choose Disable device from the menu.
  3. When the confirmation dialog appears, click Yes.
  4. Wait for a couple of moments, and then enable the serial port.

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

If you keep getting an unable to open serial port message on your PC, the issue might be related to the serial port driver.

A temporary glitch usually causes this, and to fix the problem; we recommend disabling the serial port temporarily.

After doing that, check if the problem is resolved. If this solution works for you, remember that you’ll have to repeat it every time you want to use your serial port.

5. Try using a different cable

Sometimes, an unable to open serial port error can appear if your USB cable isn’t working. Be sure to check if your cable is connected correctly. In addition, check for any visible damage.

try a different cable

If your cable seems in order, try replacing it and check if the problem appears with a different cable.

6. Restart the device

If an Unable to open serial port keeps appearing, perhaps you can fix the problem by restarting your devices.

Restart the device you’re trying to connect to and check if that solves the problem. Alternatively, you can restart your PC and see if that solves the issue.

7. Reinstall the serial port driver

  1. Open Device Manager.
  2. Locate your serial port, right-click it, and choose Uninstall device.
    uninstall device serial port can't open
  3. Now click Uninstall to confirm.
    confirm device uninstall serial port not working
  4. Once the device is uninstalled, restart your PC.

As we already mentioned, sometimes issues with your serial port can be caused by your drivers.

If you keep getting Unable to open serial port message, you might be able to fix the problem simply by reinstalling the serial port driver.

After your computer restarts, Windows should install the default driver, and the problem will be completely resolved.

8. Make sure that the system is up to date

  1. Open the Settings app and go to the Update & Security section.
  2. Now click the Check for updates button in the right pane.
    update windows open serial port
  3. If any updates are available, they will be downloaded automatically in the background and installed as soon as you restart your PC.

Sometimes, an unable to open serial port message can appear if your system isn’t out of date.

An outdated system can lead to various compatibility issues, and the best way to avoid these issues is to update your system.

This process is relatively straightforward in Windows 10, and for the most part, Windows installs the updates on its own. Once your system is updated, check if the problem is still there.

Read more about this topic

  • Time Synchronization Failed with time.windows.com: 4 Fixes
  • Werfault.exe Error on Windows 10: How to Fix & Main Causes
  • Fix: Windows Cannot Access the Specified Device, Path or File
  • Driver PNP Watchdog: 9 Easy Fixes For Windows

How to enable COM port in Windows 10?

  1. Click the Windows key, enter regedit and select the Registry Editor app.
  2. Navigate to the part below:
    ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR
  3. On the right pane, double-click on Start.
    unable to open serial port
  4. Change the Value data to 4 and click OK.
    unable to open serial port

Getting the Unable to open serial port message can be a problem for many users that use the serial port frequently, but you should be able to fix this problem using one of our solutions.

Remember that we have not made these solutions in any particular order, so you should try what seems most appropriate for your situation.

Let us know which one worked for you in the comments area below.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Newsletter

Driver updates are a vital fix which can help with this issue

by Milan Stanojevic

Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he… read more


Updated on September 14, 2022

Reviewed by
Vlad Turiceanu

Vlad Turiceanu

Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more

  • Serial ports are the interface between a PC and devices that don’t support a Bluetooth connection.
  • Driver errors or physical damage can cause your serial ports to become unresponsive.
  • In most cases, reinstallation or updates of your drivers should resolve this problem. 

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer’s security and performance
  • Restoro has been downloaded by 0 readers this month.

If you are unable to open a serial port, you are in good company, and in this guide, we will be telling you all you should know.

A serial port can be helpful, but some users reported being unable to open serial port error messages on their PCs. This can be a big problem, and in today’s article, we’ll show you how to fix this error.

By the end of this article, you should have successfully fixed all problems with your serial port. Some of the solutions may be relevant to COM ports on Windows.

Why is serial port not working?

Here are the top reasons you should have in mind:

  • Incorrect communication settings – For the devices to work together correctly, they must be configured with the same communication settings.
  • Wrong serial cable – If you use the incorrect serial cable, you will be unable to connect.
  • Software conflicts – A software driver might make a serial port unusable. This driver can stop working if it is improperly installed or incompatible with a serial port.
  • Faulty wiring – This may cause issues when a control system is connected to a device.

Some variations of serial port problems that users have faced include:

  • Unable to open serial port access is denied – In most cases, Access Denied occurs when another program is utilizing the port.
  • Failed to open serial port Betaflight – Though it’s not a true USB interface, the flight controller communicates with your computer through a USB connection.
  • COM port not detected Windows 10 – Your PC will display the warning unable to open serial port if the COM port isn’t recognized.
  • Unable to open connection to com1 – This problem may sometimes arise if you don’t have the proper drivers.
  • Unable to open a connection to com1 Windows 10, com3 – This issue can sometimes appear if you don’t have the necessary drivers. To fix it, be sure to update the serial port driver and check if that solves your problem.
  • Putty unable to open serial port Windows 10 – Sometimes, this issue can occur due to certain Windows services. This isn’t a major problem, and you can fix it by disabling those services.
  • Unable to open serial port com1 access is denied – This issue can appear due to glitches with a serial port. Temporarily disable the serial port and check if that helps.
  • Unable to open com port win error code 5, 123, 3 – These are some common problems that can appear with a serial port, but you should be able to fix most of them with one of our above tips.

Now, let us show you how to resolve this error on your Windows PC.

How do I fix unable to open serial port?

1. Make sure that you have the necessary drivers

  1. Right-click the Start menu and select Device Manager.
    unable to open serial port
  2. Expand the Universal Serial Bus controller category.
  3. Right-click on your driver and choose Update driver.
  4. Lastly, click on Search automatically for drivers.

If you’re getting the Unable to open serial port message, perhaps the problem is related to your drivers. To fix this issue, we recommend updating your serial port driver.

To do that, you can visit your motherboard manufacturer’s website and download the latest drivers. Of course, you can always use a third-party tool if you find this process tedious or complex.

DriverFix will provide a detailed report of all of your current and obsolete device drivers. In addition, it updates the most recent device drivers from the complete database regularly.

DriverFix is the best choice when updating all your drivers automatically, with just a couple of clicks.

It will keep your computer safe from downloading and installing the wrong driver version, which can cause severe malfunctions and ease the process.

DriverFix

Keep all drivers up to date to avoid incompatibility issues.

2. Verify that the port isn’t open/disconnect the cable

Sometimes the Unable to open serial port message can appear if the port is already open. To fix this problem, users are suggesting disconnecting the cable from the other device and trying to connect again.

try to disconnect the cable

This is a simple workaround, but several users reported it worked for them, so feel free to try it out.

3. Stop the Windows Fax and Scan service

  1. Press Windows Key + R keyboard shortcut to open the Run dialog.
  2. Enter services.msc and press Enter or click OK.
    services run window can't open serial port
  3. When the Services window opens, locate Windows Fax and Scan service and double-click it to open its properties (If this service isn’t available, try changing the settings of the Fax service).
  4. Set the Startup type to Manual and click the Stop button to stop the service. Now click Apply and OK to save changes.
    manual startup type serial port not working

Several users reported that when they were unable to open a serial port while trying to use the serial port, it turned out that the problem was the Windows Fax and Scan service.

To fix this problem, you need to stop Windows Fax and Scan service. After doing that, check if the problem is still there.

Remember that this is just a workaround, so you might have to repeat it whenever you want to use a serial port on your PC.

4. Disable the serial port in Device Manager

  1. Press Windows Key + X and choose Device Manager from the list.
    serial port device manager
  2. When Device Manager opens, locate the serial port, right-click it, and choose Disable device from the menu.
  3. When the confirmation dialog appears, click Yes.
  4. Wait for a couple of moments, and then enable the serial port.

Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken.
We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

If you keep getting an unable to open serial port message on your PC, the issue might be related to the serial port driver.

A temporary glitch usually causes this, and to fix the problem; we recommend disabling the serial port temporarily.

After doing that, check if the problem is resolved. If this solution works for you, remember that you’ll have to repeat it every time you want to use your serial port.

5. Try using a different cable

Sometimes, an unable to open serial port error can appear if your USB cable isn’t working. Be sure to check if your cable is connected correctly. In addition, check for any visible damage.

try a different cable

If your cable seems in order, try replacing it and check if the problem appears with a different cable.

6. Restart the device

If an Unable to open serial port keeps appearing, perhaps you can fix the problem by restarting your devices.

Restart the device you’re trying to connect to and check if that solves the problem. Alternatively, you can restart your PC and see if that solves the issue.

7. Reinstall the serial port driver

  1. Open Device Manager.
  2. Locate your serial port, right-click it, and choose Uninstall device.
    uninstall device serial port can't open
  3. Now click Uninstall to confirm.
    confirm device uninstall serial port not working
  4. Once the device is uninstalled, restart your PC.

As we already mentioned, sometimes issues with your serial port can be caused by your drivers.

If you keep getting Unable to open serial port message, you might be able to fix the problem simply by reinstalling the serial port driver.

After your computer restarts, Windows should install the default driver, and the problem will be completely resolved.

8. Make sure that the system is up to date

  1. Open the Settings app and go to the Update & Security section.
  2. Now click the Check for updates button in the right pane.
    update windows open serial port
  3. If any updates are available, they will be downloaded automatically in the background and installed as soon as you restart your PC.

Sometimes, an unable to open serial port message can appear if your system isn’t out of date.

An outdated system can lead to various compatibility issues, and the best way to avoid these issues is to update your system.

This process is relatively straightforward in Windows 10, and for the most part, Windows installs the updates on its own. Once your system is updated, check if the problem is still there.

Read more about this topic

  • Time Synchronization Failed with time.windows.com: 4 Fixes
  • Werfault.exe Error on Windows 10: How to Fix & Main Causes

How to enable COM port in Windows 10?

  1. Click the Windows key, enter regedit and select the Registry Editor app.
  2. Navigate to the part below:
    ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUSBSTOR
  3. On the right pane, double-click on Start.
    unable to open serial port
  4. Change the Value data to 4 and click OK.
    unable to open serial port

Getting the Unable to open serial port message can be a problem for many users that use the serial port frequently, but you should be able to fix this problem using one of our solutions.

Remember that we have not made these solutions in any particular order, so you should try what seems most appropriate for your situation.

Let us know which one worked for you in the comments area below.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Newsletter

Сейчас повторял ошибку предварительно удалив файлы из папок Log и BugReport.
В папку BugReport не записалось ничего .. в папке Log думаю наибольший интерес вызывают строки:

13:14:41.882 [6064] TQueueTasks.OnDataChange
13:14:41.882 [6064] TQueueTasks.OnDataChange — OK, Result=OK (0x0), dwTransid=0, hGroup=0, hrMasterquality=0, hrMastererror=0, dwCount=4, phClientItems=([4] 253, 254, 255, 256), pvValues=([4] 1, 5, 2, 8), pwQualities=([4] 192, 192, 192, 192), pftTimeStamps=([4] 16.01.17 09:44:05, 16.01.17 09:44:05, 16.01.17 09:44:05, 16.01.17 09:44:05), ItemIDs=([4] UniversContr.Globs.Adres, UniversContr.Globs.Speed, UniversContr.Globs.GlobMode, UniversContr.Globs.TypeIn)
13:14:43.375 [7692] [ComPort] Инициализации СОМ порта — OK, Порт=COM10
13:14:43.759 [7692] [ComPort] Ошибка СОМ порта, Порт=COM10
13:14:43.769 [6064] TQueueTasks.OnDataChange
13:14:43.769 [6064] TQueueTasks.OnDataChange — OK, Result=OK (0x0), dwTransid=0, hGroup=0, hrMasterquality=0, hrMastererror=0, dwCount=4, phClientItems=([4] 253, 254, 255, 256), pvValues=([4] 1, 5, 2, 8), pwQualities=([4] 280, 280, 280, 280), pftTimeStamps=([4] 16.01.17 13:14:43, 16.01.17 13:14:43, 16.01.17 13:14:43, 16.01.17 13:14:43), ItemIDs=([4] UniversContr.Globs.Adres, UniversContr.Globs.Speed, UniversContr.Globs.GlobMode, UniversContr.Globs.TypeIn)
13:14:54.931 [7692] [ComPort] СОМ порт недоступен, Порт=COM10
13:14:54.932 [7692] Ошибка инициализации порта (COM10 Адрес:1)
13:15:05.608 [7692] [ComPort] СОМ порт недоступен, Порт=COM10

тут видно, что сначала инициализация порта проходит «ОК» и сразу через 400 мс Ошибка COM порта. с чем это связано? хз.
сейчас видео скину как это выглядит.

0 / 0 / 0

Регистрация: 15.01.2013

Сообщений: 4

1

21.05.2013, 20:42. Показов 25095. Ответов 5


Студворк — интернет-сервис помощи студентам

Здравствуйте! Недавно начал программировать так, что мой вопрос может показаться немного глуп)
Штука вот в чем. Создал программу которая должна управлять неким устройством. Управляет она им через виртуальный Ком-Порт, использовал компоненту СPotr-3.1. В общем на рабочем компьютере все работает отлично!)) решил перекинуть ее коллеге на другой комп и попробовать ее там(дрова на Виртуальный ком порт установил) подключил устройство, открываю,запускаю выводится ошибка » ком порт не обнаружен», хотя в диспетчере устройств он отображается. Беру Exemple Cport компилирую. exe-шник кидаю на комп коллеге Exemple работает как часы (и видит, и передает). В чем проблема может быть?? !!!! Поделывал такое на нескольких компах одно и тоже(((((



0



Пишу на Delphi…иногда

1423 / 1278 / 286

Регистрация: 03.12.2012

Сообщений: 3,914

Записей в блоге: 5

21.05.2013, 20:53

2

номера портов одинаковые? (что у тебя, что на другой машине)
либо встрой авто или ручной выбор порта на котором висит железо



0



0 / 0 / 0

Регистрация: 15.01.2013

Сообщений: 4

21.05.2013, 21:15

 [ТС]

3

У меня стоит выбор в ручном режиме.
после выбора порта задается скорость, паритет и количество бит
на железо идет сигнал с ком порта через преобразователь интерфейсов usb<=>RS485 (USB как виртуальный COM Port).
Просто при инициализации он вообще его не видит ни один .
а с терминалом exampel cport3.1 все работает.



0



Пишу на Delphi…иногда

1423 / 1278 / 286

Регистрация: 03.12.2012

Сообщений: 3,914

Записей в блоге: 5

21.05.2013, 21:28

4

список портов, как я понимаю, компонент СPotr-3.1. берет сам из реестра (не работал с этим компонентом), как вариант запустить проблемную программу под админом, если этот компонент такое не умеет (получать список портов), то сравнивать куски кода примера и проблемной программы в месте, где получается список портов…



1



0 / 0 / 0

Регистрация: 15.01.2013

Сообщений: 4

21.05.2013, 22:02

 [ТС]

5

Цитата
Сообщение от cotseec
Посмотреть сообщение

список портов, как я понимаю, компонент СPotr-3.1. берет сам из реестра (не работал с этим компонентом), как вариант запустить проблемную программу под админом, если этот компонент такое не умеет (получать список портов), то сравнивать куски кода примера и проблемной программы в месте, где получается список портов…

Получается тогда, когда происходит процесс опроса реестра?в пошаговом режиме я так понял?



0



Пишу на Delphi…иногда

1423 / 1278 / 286

Регистрация: 03.12.2012

Сообщений: 3,914

Записей в блоге: 5

21.05.2013, 22:23

6

Цитата
Сообщение от Terkin
Посмотреть сообщение

Получается тогда, когда происходит процесс опроса реестра?

не совсем понял…
список портов получается программой из реестра системы, в которой работает, затем отображается (или отображается по пунктам при считывании), как это происходит у вас — мне неизвестно, можно прошагать на проблемной машине (если такое возможно) или выводить какой-нибудь лог при работе



0



Устранение неполадок

Если качество опрашиваемой переменной не равняется «Хорошее»
(см. «Пример работы»),
значит при опросе произошла ошибка. Ниже представлены действия по
исправлению:

  1. Качество «Ошибка инициализации COM порта» — ошибка при открытии
    коммуникационного порта:

    • В свойствах узла, которому принадлежит переменная, установить
      COM порт
      существующий в системе;
    • Закрыть другие программы использующие данный COM порт.
  2. Качество «Неопределенное» — переменная еще не опрашивалась:
    • Команда на опрос поставлена в очередь. Необходимо подождать
      пока подойдет очередь;
    • Установите свойство «Опрашивать» для узла, которой принадлежит
      переменная;
    • OPC клиентом должна быть установлена активность переменной и группы
      которой принадлежит данная переменная.
  3. Качество «Ошибка таймаута, устройство не отвечает» — устройство
    не ответило на запрос:

    • Подключите линию связи с устройством к тому COM порту, который
      указан в свойствах узла, которому принадлежит переменная;
    • Установите конфигурацию COM порта в соответствие с
      характеристиками устройства;
    • В свойствах узла, которому принадлежит переменная, установите
      верный Modbus адрес
      устройства;
    • Проверьте чтобы устройство правильно отрабатывало Modbus
      запросы.
  4. Качество «Ошибка CRC» — в полученном ответе не совпадает CRC:
    • Устраните помехи на линии связи.
  5. Качество «Ошибка конфигурации» — переменная не верно
    сконфигурирована:

    • Выполянется операция чтения и не задана Modbus функция чтения. Задайте
      номер функции чтения;
    • Выполянется операция записи и не задана Modbus функция записи. Задайте
      номер функции записи;
    • Записываемое значение выходит за пределы значимых битов (например:
      записываем 65536 в переменную с 16-тью(0-15) значимыми битами).
      Записывайте значение не выходящее за пределы значимых битов;
    • Для идентификации ошибки смотри лог.
  6. Качество «Ошибка соединения» — устройство не может отработать
    данный запрос:

    • Поверьте чтобы устройство отрабатывало запрос без ошибок, т.е.
      в возвращаемом номере функции старший бит не должен быть
      установлен;
    • Для идентификации ошибки смотри лог.
  7. Качество «Ошибка: неизвестный формат ответа» — ответ от
    устройства не является Modbus командой:

    • Проверьте чтобы устройство правильно отрабатывало Modbus
      запросы.
  8. Качество «Плохое» — неопределенная ошибка при опросе
    переменной:

    • Для идентификации ошибки смотри лог.

В случае если возникли вопросы по функционированию программы,
обращайтесь к разработчику (см. «Контакты»). При этом желательно выслать также:
используемую конфигурацию *.cfg, лог работы («c:Program
FilesLectus Modbus OPC and DDE serverLog*.log») и описать
последовательность действий для эмуляции рассматриваемой
ситуации.

Понравилась статья? Поделить с друзьями:
  • Parking brake fault ошибки на ситроен с5
  • Parkbremse losen что означает ошибка
  • Park ошибка что значит бмв
  • Park brake on ошибка туарег
  • Paris is most beautiful than london исправить ошибку