reComputer R1000
© 2009-2024 Seeed Technology Co.,Ltd. All rights reserved.
break
ser.close()
except Exception as e1:
print ("communicating error " + str(e1))
3.11 USB Hub Testing
To test the USB hub, you can use the following steps:
1. Check if the USB hub is detected by running the lsusb command. This command lists all connected USB devices
, including hubs.
Running this command should display information about the USB devices connected to your system, including any USB
hubs that are present.
If the USB hub is functioning properly, you should see its details listed in the output of the lsusb command. If it's not liste
d, there may be an issue with the hub or its connection to the system. In such cases, you may need to troubleshoot the US
B hub or its connections.
3.12 MAC Address of Ethernet
To test the MAC address of a hub's Ethernet port, you can follow these steps:
1. Read EEPROM:
Use the following command to read the EEPROM of the Ethernet port (replace eth1 with the appropriate interface name):
sudo ethtool -e eth1 offset 0 length 512
This command will display the contents of the EEPROM, including the MAC address.
2. Write EEPROM Method 1:
Use the following command to write to the EEPROM of the Ethernet port using method 1:
sudo ethtool -E eth1 magic 0x9500 offset 0 length 1 value 0xA5
This command writes a value of 0xA5 to the EEPROM at the specified offset.
3. Write EEPROM Method 2:
Alternatively, you can write to the EEPROM using method 2:
sudo ethtool -E eth1 magic 0x9500 offset 0 length 256 < eeprom.bin
This command writes the contents of the eeprom.bin file to the EEPROM starting at the specified offset.
4. Reboot and Verify:
After writing to the EEPROM, reboot the system and check if the MAC address has been updated. You can use the ifconfi
g command to verify the MAC address of the Ethernet port.
For more detailed information on EEPROM programming, you can refer to the Microchip Lightning Support article.
Make sure to replace eth1 with the appropriate interface name for your system. Additionally, exercise caution when writin
g to the EEPROM, as incorrect modifications can lead to device malfunction.
3.13 RTC
To test the Real-Time Clock (RTC) functionality, follow these steps:
1. Disable automatic time synchronization: