librelist archives

« back to archive

Can not access to device

Can not access to device

From:
Qader Dorosti
Date:
2014-07-25 @ 15:53
Dear Sir/madam,

I'm trying to read out my E-mill device, using pycampbellcr1000
software, but unfortunately I get the "Can not access to device" error
message. I'm able to readout the device using an independent linux base
read-out software, i.e. PbCdlComm. So I'm sure that my serial
configuration is set correctly. Bellow I will post you the messages I
get when I activate the debug option of pycampbellcr1000.

I sincerely appreciate if you could please guide me how to get
pycampbellcr1000 running on my linux machine.


Yours faithfully,
Qader

message using the pycr1000 gettime --timeout=2 serial:/dev/ttyr00
--debug command:

2014-07-25 14:50:30,876 INFO: init client 
2014-07-25 14:50:30,876 INFO: Get the node attention 
2014-07-25 14:50:30,882 INFO: Create header 
2014-07-25 14:50:30,883 INFO: Packet data: 90 01 58 02 00 01 08 02 09 01
00 02 07 08 
2014-07-25 14:50:30,883 INFO: Calculate signature for packet 
2014-07-25 14:50:30,883 INFO: Calculate signature nullifier to create
packet 
2014-07-25 14:50:30,883 INFO: Quote packet 
2014-07-25 14:50:30,884 INFO: Write: BD 90 01 58 02 00 01 08 02 09 01 00
02 07 08 F6 86 BD 
2014-07-25 14:50:30,884 INFO: Wait packet with transaction 1 
2014-07-25 14:50:33,882 INFO: Read packet: A8 02 10 01 08 02 00 01 89 01
00 01 FF FF 6C 75 
2014-07-25 14:50:33,882 INFO: Unquote packet 
2014-07-25 14:50:33,882 INFO: Check signature : OK 
2014-07-25 14:50:33,883 INFO: Decode packet 
2014-07-25 14:50:33,883 INFO: HiProtoCode, MsgType = <0, 89> 
2014-07-25 14:50:33,883 INFO: Create header 
2014-07-25 14:50:33,883 INFO: Packet data: 90 01 58 02 00 01 08 02 09 02
00 02 07 08 
2014-07-25 14:50:33,883 INFO: Calculate signature for packet 
2014-07-25 14:50:33,884 INFO: Calculate signature nullifier to create
packet 
2014-07-25 14:50:33,884 INFO: Quote packet 
2014-07-25 14:50:33,884 INFO: Write: BD 90 01 58 02 00 01 08 02 09 02 00
02 07 08 AF 69 BD 
2014-07-25 14:50:33,884 INFO: Wait packet with transaction 2 
2014-07-25 14:50:36,848 INFO: Create header 
2014-07-25 14:50:36,848 INFO: Packet data: 90 01 58 02 00 01 08 02 09 03
00 02 07 08 
2014-07-25 14:50:36,848 INFO: Calculate signature for packet 
2014-07-25 14:50:36,849 INFO: Calculate signature nullifier to create
packet 
2014-07-25 14:50:36,849 INFO: Quote packet 
2014-07-25 14:50:36,849 INFO: Write: BD 90 01 58 02 00 01 08 02 09 03 00
02 07 08 69 4C BD 
2014-07-25 14:50:36,849 INFO: Wait packet with transaction 3 
2014-07-25 14:50:40,400 INFO: Create header 
2014-07-25 14:50:40,401 INFO: Packet data: 90 01 58 02 00 01 08 02 09 04
00 02 07 08 
2014-07-25 14:50:40,401 INFO: Calculate signature for packet 
2014-07-25 14:50:40,401 INFO: Calculate signature nullifier to create
packet 
2014-07-25 14:50:40,401 INFO: Quote packet 
2014-07-25 14:50:40,401 INFO: Write: BD 90 01 58 02 00 01 08 02 09 04 00
02 07 08 23 2F BD 
2014-07-25 14:50:40,402 INFO: Wait packet with transaction 4 
Traceback (most recent call last):
  File "/usr/local/bin/pycr1000", line 9, in <module>
    load_entry_point('PyCampbellCR1000==0.1', 'console_scripts',
'pycr1000')()
  File

"/usr/local/lib/python2.6/dist-packages/PyCampbellCR1000-0.1-py2.6.egg/pycampbellcr1000/__main__.py",
line 254, in main
    args.func(args, device)
  File

"/usr/local/lib/python2.6/dist-packages/PyCampbellCR1000-0.1-py2.6.egg/pycampbellcr1000/__main__.py",
line 30, in gettime_cmd
    print("%s" % (device.gettime()))
  File

"/usr/local/lib/python2.6/dist-packages/PyCampbellCR1000-0.1-py2.6.egg/pycampbellcr1000/device.py",
line 89, in gettime
    self.ping_node()
  File

"/usr/local/lib/python2.6/dist-packages/PyCampbellCR1000-0.1-py2.6.egg/pycampbellcr1000/device.py",
line 83, in ping_node
    raise NoDeviceException()
pycampbellcr1000.exceptions.NoDeviceException: Can not access to device.
2014-07-25 14:50:42,795 INFO: Send bye command 
2014-07-25 14:50:42,795 INFO: Create header 
2014-07-25 14:50:42,795 INFO: Packet data: B0 01 18 02 00 01 08 02 0D
00 
2014-07-25 14:50:42,796 INFO: Calculate signature for packet 
2014-07-25 14:50:42,796 INFO: Calculate signature nullifier to create
packet 
2014-07-25 14:50:42,796 INFO: Quote packet 
2014-07-25 14:50:42,796 INFO: Write: BD B0 01 18 02 00 01 08 02 0D 00 50
6D BD