Esempio n. 1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bitbots_dynamixel_debug.connector import Connector
from bitbots_dynamixel_debug.parser import parse
import sys

args = parse(id_req=True, data_req=True)

c = Connector(args['protocol'], args['device'], args['baudrate'])

max_id = args['id']
for i in range(max_id + 1):
    c.write_baud(i, args['data'], doPrint=True)

c.closePort()
Esempio n. 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bitbots_dynamixel_debug.connector import Connector
from bitbots_dynamixel_debug.parser import parse
import sys

args = parse(id_req=True, register_req=True, data_req=True)

c = Connector(args['protocol'], args['device'], args['baudrate'])

c.write_1(args['id'], args['reg'], args['data'], doPrint=True)

c.closePort()
Esempio n. 3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bitbots_dynamixel_debug.connector import Connector
from bitbots_dynamixel_debug.parser import parse
import sys

args = parse(id_req = False, register_req = False)

print("Searching on baud 4000000")
c = Connector(args['protocol'], args['device'], 4000000)
for i in range(0, 254):
	c.ping(i, doPrint=True)
c.closePort()

print("Searching on baud 2000000")
c = Connector(args['protocol'], args['device'], 2000000)
for i in range(0, 254):
	c.ping(i, doPrint=True)
c.closePort()

print("Searching on baud 1000000")
c = Connector(args['protocol'], args['device'], 1000000)
for i in range(0, 254):
	c.ping(i, doPrint=True)
c.closePort()

print("Searching on baud 57600")
c = Connector(args['protocol'], args['device'], 57600)
for i in range(0, 254):
	c.ping(i, doPrint=True)
Esempio n. 4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from bitbots_dynamixel_debug.connector import Connector
from bitbots_dynamixel_debug.parser import parse
import sys

args = parse(id_req=True)

c = Connector(args['protocol'], args['device'], args['baudrate'])

c.ping(args['id'], doPrint=True)

c.closePort()