<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/</id><updated>2020-02-27T14:45:15.540000Z</updated><subtitle>Recent posts to network scan with python</subtitle><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#a462" rel="alternate"/><published>2020-02-27T14:45:15.540000Z</published><updated>2020-02-27T14:45:15.540000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com52e6d72a38fca1b3284334913941774a6fda3765</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi, etamgul,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;etamgul hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi&lt;br/&gt;
I recently updated to SP7 and noticed that some of my script are failing (either entering debug mode or at login).&lt;br/&gt;
I'm still trying to figure out what went wrong but noticed a really strange behaviour in gateway setting:&lt;br/&gt;
When using the graphical interface (Device/Gateway configuration) I can enter the address of the device manually or choose my device &lt;br/&gt;
from the scan list. But seems there is a difference between these two. (Lets assume that I have a device with address '0003.2A0E.B0CA'.&lt;br/&gt;
a) Choosing the device from the list with double click will result a green connection&lt;br/&gt;
b) Entering manually the exact following string '0003.2A0E.B0CA' (without ofc '') will report me that there is no route to host&lt;br/&gt;
c) Entering manually the exact following string '&lt;span&gt;[0003.2A0E.B0CA]&lt;/span&gt;' will result a green connection&lt;br/&gt;
d) Entering manually the exact following string '&lt;span&gt;[0003.2A0E.B0CA]&lt;/span&gt; (active)' will result a green connection&lt;br/&gt;
Since from scripting there is no way to scan and choose a device from a list, I'm manually trying to force the values using set_getway...(...) call.&lt;br/&gt;
But this will result the same as I would have entered like point b).&lt;br/&gt;
Giving the c) or d) format to this interface function results an 'Invalid address format' exception.&lt;br/&gt;
Any idea whats wrong/changed/am I doing wrong with SP7?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As far as I can see, there were no code changes in this area of scripting APIs in SP7. &lt;/p&gt;
&lt;p&gt;In the UI, you need to put the address between brackets "&lt;span&gt;[1234]&lt;/span&gt;" to disambiguate them from names, for addresses like "AFFE". So putting in the address in Format b will try to search for a PLC with the string as the name.&lt;/p&gt;
&lt;p&gt;I think we could snip surrounding []s in the scripting API (to make it equally accept format b and c). Case D should not be accepted by the scripting API in my opinion.&lt;/p&gt;
&lt;p&gt;I can't tell why you don't get any connection using the script - this should be investigated and debugged, please contact  e &lt;a class="" href="mailto:support@codesys.com"&gt;support@codesys.com&lt;/a&gt; e .&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#bf88" rel="alternate"/><published>2020-02-27T14:45:15.004000Z</published><updated>2020-02-27T14:45:15.004000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.com8d01ce16ecafa12a3495295b24578d9a8e3f79fc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I recently updated to SP7 and noticed that some of my script are failing (either entering debug mode or at login).&lt;br/&gt;
I'm still trying to figure out what went wrong but noticed a really strange behaviour in gateway setting:&lt;/p&gt;
&lt;p&gt;When using the graphical interface (Device/Gateway configuration) I can enter the address of the device manually or choose my device &lt;br/&gt;
from the scan list. But seems there is a difference between these two. (Lets assume that I have a device with address '0003.2A0E.B0CA'.&lt;/p&gt;
&lt;p&gt;a) Choosing the device from the list with double click will result a green connection&lt;br/&gt;
b) Entering manually the exact following string '0003.2A0E.B0CA' (without ofc '') will report me that there is no route to host&lt;br/&gt;
c) Entering manually the exact following string '&lt;span&gt;[0003.2A0E.B0CA]&lt;/span&gt;' will result a green connection&lt;br/&gt;
d) Entering manually the exact following string '&lt;span&gt;[0003.2A0E.B0CA]&lt;/span&gt; (active)' will result a green connection&lt;/p&gt;
&lt;p&gt;Since from scripting there is no way to scan and choose a device from a list, I'm manually trying to force the values using set_getway...(...) call.&lt;br/&gt;
But this will result the same as I would have entered like point b).&lt;br/&gt;
Giving the c) or d) format to this interface function results an 'Invalid address format' exception.&lt;/p&gt;
&lt;p&gt;Any idea whats wrong/changed/am I doing wrong with SP7?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#f5d1" rel="alternate"/><published>2020-02-27T14:45:14.473000Z</published><updated>2020-02-27T14:45:14.473000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc05b5b56bb457e672eae0f57285929a0f9e416fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sadly, I don't have any good idea, that's why we did file the aforementioned improvement in our database.  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#27ed" rel="alternate"/><published>2020-02-27T14:45:12.966000Z</published><updated>2020-02-27T14:45:12.966000Z</updated><author><name>etamgul</name><uri>https://forge.codesys.com/u/etamgul/</uri></author><id>https://forge.codesys.com08976e5e2bf532149c608b56c05ca8991d894150</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My only problem with this that even if I know the installation-windows dependent GUID of the gateway I can not know the device ID since (even if the device is the same, with same firmware on the same IP) its changing from time to time.&lt;/p&gt;
&lt;p&gt;So hardcoding the GUID and "bus independent Codesys" address is not a solution.&lt;/p&gt;
&lt;p&gt;Any idea how to resolve this?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#10c4" rel="alternate"/><published>2020-02-27T14:45:12.420000Z</published><updated>2020-02-27T14:45:12.420000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com1e6fe18d93887d5211c02b4025639ab4ec97d7a0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can set a network path and gateway via scripting, if you have that information, but currently, a network scan cannot be triggered by the scripting yet.&lt;/p&gt;
&lt;p&gt;The improvement &lt;a class="" href="http://jira.3s-software.com/browse/CDS-24285" rel="nofollow"&gt;CDS-24285&lt;/a&gt; will implement that functionality, but it is not scheduled yet.&lt;/p&gt;
&lt;p&gt;If you want to influence the priority of this issue, you can use the usual channels (our support department for OEMs, your OEM for end-users) to increase it. &lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>network scan with python</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/bb29e1ec58/?limit=25#f8f4" rel="alternate"/><published>2020-02-27T14:45:11.874000Z</published><updated>2020-02-27T14:45:11.874000Z</updated><author><name>volker</name><uri>https://forge.codesys.com/u/volker/</uri></author><id>https://forge.codesys.com4c665e736545a8aba18c4c8ca9541305669ab688</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When I create a new project and click 'login', then I get a message box "No active path defined. Do you want to set it?".&lt;br/&gt;
If I click "Yes", there is done a network scan, my device will be found and I can go online.&lt;br/&gt;
How can I do this network scan in python?&lt;/p&gt;
&lt;p&gt;thank you&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>