Hardware Connection and Network Configuration
Connect the server and the host computer to the same local area network (LAN) to enable communication between them.
Step1: Connect the gripper device to power
Plug the power adapter of the gripper device into a mains power socket.
Wait for the gripper to complete initialization, and observe that the status light first flashes and then stays on steadily.
Step 2: Connect to the network
Method 1: Use a switch
Connect the gripper and the computer to different network ports of the switch respectively and ensure network connectivity. At this time, the gripper’s IP address is automatically obtained using dhcp; later, you need to use ezros for scanning.
Method 2: Directly connect to the computer’s network port
At this time, the gripper uses a static IP 192.168.99.2. The computer needs to set its own IP in the same network segment as the gripper (open Network Settings -> Wired Settings -> IPv4). The reference settings are as follows:
Parameter Item |
Example/Fixed Value |
Configuration Description |
|---|---|---|
IP Address |
|
Format: |
Subnet Mask |
|
Fixed configuration, no changes needed |
Use an Ethernet cable to directly connect the Ethernet port of the PC to the network port of the gripper device, and ensure the Ethernet cable is firmly plugged into the PC’s port.
Tips
When using the SDK, if the host computer is both wired to the gripper and connected to WiFi, configure multi-network card discovery at the beginning of the program:
from xensesdk import setup_multi_net_interface
setup_multi_net_interface()
Step 3: Test network connectivity
Open the PC’s command prompt (Windows: press
Win+R, entercmdand press Enter; Linux: open the terminal).Enter the following command in the command line and press Enter:
ping 192.168.99.2
Result Judgment:
If a message similar to “Reply from 192.168.99.2” is displayed, you can directly proceed with the subsequent operations.
If “Request timed out” is displayed, troubleshoot the following items in order:
Whether the Ethernet IP configuration is correct (recheck Step 2)
Whether the Ethernet cable is loose or damaged
Whether the gripper device has completed initialization (whether the status light is on steadily)