Skip to main content
Submitted by nimams on Mon, 11/27/2017 - 19:43

Hi,

I have a DMC 4060 connected to PI. While ago it used to work like a plug & play device.
Now when I connect it, it doesn't work. I can locate the device with the following information:

3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:4e:3e:6c brd ff:ff:ff:ff:ff:ff
inet 169.254.65.204/16 brd 169.254.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::ebc8:179b:3c39:b169/64 scope link
valid_lft forever preferred_lft forever

Also, I'm able to ping the IP. When I use nmap the output is the following:
Nmap scan report for 169.254.65.204
Host is up (0.0030s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
22/tcp open ssh

However, when I use the python and import the gclib, I get the 'failed to open the device' error. Also, 'GIpRequests()', the ip request returns null.
I would like to know how I should solve the problem.

Thank you.

Sincerely,
Nima Sarrafi

Comments 2

MichaelC_Galil on 11/28/2017 - 14:40

Hello Nima,

In order to help you with this issue, there is some additional information that would be needed to understand why you cannot connect to the controller.
What has changed in the system since last you connected to the controller? Have you updated either the Pi, gclib, or the Python code since the last successful connection?
What is the IP address of your PI, and what is the GOpen string you are calling when attempting to connect to the controller?

You are welcome also to reach out directly to our support team by emailing us at support AT galil DOT com. If you send an email to the support address with as much information about your issue as you can, we can better support you there.

Sincerely,

Michael Cox, Applications Engineer, Galil Motion Control

henry01 on 06/15/2018 - 00:13

Assuming you already did the usual set up for the serial port, as you had it working on a pi2 before, then it could just be the case that as the raspberry pi 3 has changed things around a bit, ttyAMA0 now refers to the serial port that is connected to the bluetooth. The old serial port is now called ttyS0.