Re: [casper] init_poco.py and poco_rx_i8_c256.py // IBOB Correlator

2014-04-04 Thread G Jones
Hi Rolando,
My guess is that you are not receiving data packets from the ibob, or if
you are, they are not the right size. Did you use wireshark to see if
packets are coming in and what they look like?
Glenn
On Apr 3, 2014 10:20 PM, Rolando Paz flx...@gmail.com wrote:

 Hi all.

 I run the command initiating transmission of data from the IBOB:
 init_poco.py i8_c256.py

 rolando@rolando-MS-7815:~/ibob/poco011$ init_poco.py i8_c256.config

 Parsing config file i8_c256.config...OK

 Writing override variables... OK

 Connecting to iBOB... OK

 After I run the command: sudo poco_rx_i8_c256.py i8_c256.config, in order
 to obtain data packages in MIRIAD file, but the following error occurs:

 rolando@rolando-MS-7815:~/ibob/poco011$ sudo poco_rx_i8_c256.py
 i8_c256.config

 Parsing config file i8_c256.config...OK
 Listening on port 7
 Expecting integration sizes of 18432 vectors, or 73728 bytes
 C2M Parameters:
 N Antennas: 8
  Bandwidth: 0.20 GHz
 SDF: 0.000781 GHz
  Int Time: 0.747520 s
 Array location:  ['38:25:59.24', '-79:51:02.1']
 Recording Bandpass to file... OK
 Starting file: zen.uv.tmp
 Beginning RX thread...
 Expecting total dump size from each x engine: 65536 bytes
 ERR: Buffer is too small for header unpack
 ERR: could not unpack header
 Exception in thread Thread-1:
 Traceback (most recent call last):
   File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner
 self.run()
   File /usr/lib/python2.7/threading.py, line 504, in run
 self.__target(*self.__args, **self.__kwargs)
   File /usr/local/bin/poco_rx_i8_c256.py, line 243, in _process_packets
 last_offset = p['offset']
 TypeError: 'NoneType' object has no attribute '__getitem__'

 Any suggestions?

 Is it a PC problem or script problem?

 Best Regards

 Rolando Paz



Re: [casper] init_poco.py and poco_rx_i8_c256.py // IBOB Correlator

2014-04-04 Thread G Jones
OK, that looks like all of the transactions to set up the registers etc.
Presumably the power PC code should be set up to send out data packets as
well. Again, I'm not familiar with this poco so maybe someone else can
chime in.
Glenn


On Fri, Apr 4, 2014 at 9:30 AM, Rolando Paz flx...@gmail.com wrote:

 Hi Glenn

 Indeed, I used wireshark. When I run Init_poco.py i8_c256.config, I get
 what you see in the attached image.

 But only that is observed.

 Rolando Paz



 2014-04-04 1:12 GMT-06:00 G Jones glenn.calt...@gmail.com:

 Hi Rolando,
 My guess is that you are not receiving data packets from the ibob, or if
 you are, they are not the right size. Did you use wireshark to see if
 packets are coming in and what they look like?
 Glenn
 On Apr 3, 2014 10:20 PM, Rolando Paz flx...@gmail.com wrote:

 Hi all.

 I run the command initiating transmission of data from the IBOB:
 init_poco.py i8_c256.py

 rolando@rolando-MS-7815:~/ibob/poco011$ init_poco.py i8_c256.config

 Parsing config file i8_c256.config...OK

 Writing override variables... OK

 Connecting to iBOB... OK

 After I run the command: sudo poco_rx_i8_c256.py i8_c256.config, in
 order to obtain data packages in MIRIAD file, but the following error
 occurs:

 rolando@rolando-MS-7815:~/ibob/poco011$ sudo poco_rx_i8_c256.py
 i8_c256.config

 Parsing config file i8_c256.config...OK
 Listening on port 7
 Expecting integration sizes of 18432 vectors, or 73728 bytes
 C2M Parameters:
 N Antennas: 8
  Bandwidth: 0.20 GHz
 SDF: 0.000781 GHz
  Int Time: 0.747520 s
 Array location:  ['38:25:59.24', '-79:51:02.1']
 Recording Bandpass to file... OK
 Starting file: zen.uv.tmp
 Beginning RX thread...
 Expecting total dump size from each x engine: 65536 bytes
 ERR: Buffer is too small for header unpack
 ERR: could not unpack header
 Exception in thread Thread-1:
 Traceback (most recent call last):
   File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner
 self.run()
   File /usr/lib/python2.7/threading.py, line 504, in run
 self.__target(*self.__args, **self.__kwargs)
   File /usr/local/bin/poco_rx_i8_c256.py, line 243, in _process_packets
 last_offset = p['offset']
 TypeError: 'NoneType' object has no attribute '__getitem__'

 Any suggestions?

 Is it a PC problem or script problem?

 Best Regards

 Rolando Paz