I have been trying to better understand what services are running for 
Machinekit on my linux mint development computer and my windows computer. I 
generated the list I have below for this. I have been working on the zeroMQ 
interface but not sure what the sequence of commands need to be to 
establish a connection or if the ports used for the various services are 
static. 

It looks to me that the links to all the services are there with a minor 
difference on the mkwrapper which at the time of this capture was PID 
13824. This has a service count of four on linux but six on windows.

Services list from my Machinekit LinuxMint computer
cnc@cnc1:~/Desktop$ lsof -i
COMMAND     PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
gvfsd-smb  2681  cnc   12u  IPv4  198599      0t0  TCP 
localhost:34550->cnc1:netbios-ssn (ESTABLISHED)
linuxcncs 13762  cnc    3u  IPv4 1676096      0t0  TCP *:5005 (LISTEN)
rtapi_msg 13784  cnc   13u  IPv6 1676082      0t0  TCP *:49152 (LISTEN)
haltalk   13813  cnc   13u  IPv6 1677304      0t0  TCP *:6500 (LISTEN)
haltalk   13813  cnc   16u  IPv6 1677306      0t0  TCP *:6501 (LISTEN)
haltalk   13813  cnc   19u  IPv6 1677308      0t0  TCP *:6502 (LISTEN)
mkwrapper 13824  cnc    6u  IPv4 1676178      0t0  TCP *:40081 (LISTEN)
mkwrapper 13824  cnc   15u  IPv4 1676185      0t0  TCP *:36405 (LISTEN)
mkwrapper 13824  cnc   17u  IPv4 1676186      0t0  TCP *:38569 (LISTEN)
mkwrapper 13824  cnc   19u  IPv4 1676187      0t0  TCP *:39591 (LISTEN)
mkwrapper 13829  cnc    6u  IPv4 1676178      0t0  TCP *:40081 (LISTEN)
mkwrapper 13829  cnc   15u  IPv4 1676185      0t0  TCP *:36405 (LISTEN)
mkwrapper 13829  cnc   17u  IPv4 1676186      0t0  TCP *:38569 (LISTEN)
mkwrapper 13829  cnc   19u  IPv4 1676187      0t0  TCP *:39591 (LISTEN)
mkwrapper 13829  cnc   25u  IPv4 1677992      0t0  TCP *:49153 (LISTEN)
mkwrapper 13829  cnc   34u  IPv4 1677995      0t0  TCP *:49154 (LISTEN)
cnc@cnc1:~/Desktop$ 

---------
On windows7 computer and using the (Bonjour Browser v1.13) I get services:
Type: _machinekit._tcp. Name: Log service on cnc1.local pid 13784
Type: _machinekit._tcp. Name: HAL Group service on cnc1.local pid 13813
Type: _machinekit._tcp. Name: Previewstatus service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Preview service on cnc1.local pid 13824 
Type: _machinekit._tcp. Name: Command service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Error service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Status service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: File service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: HAL Rcommand service on cnc1.local pid 13813
Type: _machinekit._tcp. Name: HAL Rcomp service on cnc1.local pid 13813

---------
Breaking these down based on their PID number

rtapi_msg 13784  cnc   13u  IPv6 1676082      0t0  TCP *:49152 (LISTEN)
Type: _machinekit._tcp. Name: Log service on cnc1.local pid 13784

Linux Machine - Haltalk (My port numbers)
haltalk   13813  cnc   13u  IPv6 1677304      0t0  TCP *:6500 (LISTEN)
haltalk   13813  cnc   16u  IPv6 1677306      0t0  TCP *:6501 (LISTEN)
haltalk   13813  cnc   19u  IPv6 1677308      0t0  TCP *:6502 (LISTEN)
Windows Machine (may not be in correct order)
Type: _machinekit._tcp. Name: HAL Group service on cnc1.local pid 13813
Type: _machinekit._tcp. Name: HAL Rcommand service on cnc1.local pid 13813
Type: _machinekit._tcp. Name: HAL Rcomp service on cnc1.local pid 13813

Linux comuputer - MKwrapper (not use what is on what port))
mkwrapper 13824  cnc    6u  IPv4 1676178      0t0  TCP *:40081 (LISTEN)
mkwrapper 13824  cnc   15u  IPv4 1676185      0t0  TCP *:36405 (LISTEN)
mkwrapper 13824  cnc   17u  IPv4 1676186      0t0  TCP *:38569 (LISTEN)
mkwrapper 13824  cnc   19u  IPv4 1676187      0t0  TCP *:39591 (LISTEN)
Windows computer (shows two more services)
Type: _machinekit._tcp. Name: Previewstatus service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Preview service on cnc1.local pid 13824 
Type: _machinekit._tcp. Name: Command service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Error service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: Status service on cnc1.local pid 13824
Type: _machinekit._tcp. Name: File service on cnc1.local pid 13824

Linux computer - These appear to be local services
mkwrapper 13829  cnc    6u  IPv4 1676178      0t0  TCP *:40081 (LISTEN)
mkwrapper 13829  cnc   15u  IPv4 1676185      0t0  TCP *:36405 (LISTEN)
mkwrapper 13829  cnc   17u  IPv4 1676186      0t0  TCP *:38569 (LISTEN)
mkwrapper 13829  cnc   19u  IPv4 1676187      0t0  TCP *:39591 (LISTEN)
mkwrapper 13829  cnc   25u  IPv4 1677992      0t0  TCP *:49153 (LISTEN)
mkwrapper 13829  cnc   34u  IPv4 1677995      0t0  TCP *:49154 (LISTEN)

------

Port 5005 comment.
Linux computer
linuxcncs 13762  cnc    3u  IPv4 1676096      0t0  TCP *:5005 (LISTEN)

Port 5005 can accept direct NML commands. I have done this in the past.
Linuxcnc and Machinekit access formats and serial number tracking are
different. Commands sent to port 5005 can confict with those generated
internally by middleware presently being used internally such as the
Python module and Gstat. Remote use of this port (tcp server) should
likely be disabled.

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/fb6b9087-9054-4dc5-89de-86d9fae09635%40googlegroups.com.

Reply via email to