Hi Wes,

Thanks a lot for your quick reply. I'm using ROACH 1 so I can't use
multicast.

Do you happen to know which command starts the data flow from the ROACH to
the client? I haveTCP-IP implemented on a PIC32 micro controller and I want
to get data into it. I can connect to the ROACH and program the FPGA with a
certain bof file using "?progdev bof_file.bof". But I can't get further
than that. Is there another document besides the KATCP memo where this
commands are specified?

I'm trying to understand how the python script that I'm using works but
it's very difficult to me since programming is not my specialty. I know
most of the functions are inside katcp_wrapper.py (where I found the
multicast function). Is just as straight forward as putting "?" before any
function that is listed?

Still, my main concern is to establish data flow from the ROACH to the PIC,
so any command for that will be highly appreciated.

Pablo.




On Mon, Jun 30, 2014 at 4:48 PM, Wesley New <[email protected]> wrote:

> Hi Pablo,
>
> Multicast is only supported on ROACH2 and you will need to make sure that
> your power pc is running the latest firmware.
>
> Wes
>
> Wesley New
> South African SKA Project
> +2721 506 7365
> www.ska.ac.za
>
>
>
>
> On Mon, Jun 30, 2014 at 10:22 PM, Pablo Vasquez <[email protected]>
> wrote:
>
>> Hi All,
>>
>> I'm trying to send a simple spectrometer data stream from the ROACH to
>> more than one IP address.
>>
>> I've installed the corr-master library from GitHub which has a function
>> called tap_multicast_add_send function in katcp_wrapper.py
>>
>> I'm trying to use it but I get an error message back from the ROACH, here
>> I copy the prompt info:
>>
>>
>> Connecting to server 172.17.89.179 on port 7147...  ok
>>
>> ------------------------
>> Trying multicast to PIC
>> FAILURE DETECTED. Log entries:
>> 172.17.89.179: Starting thread Thread-1
>> 172.17.89.179: #version poco-0.1
>> 172.17.89.179: #build-state poco-0.2804
>> 172.17.89.179: Joining the multicast groups 0.0.0.69 - 0.0.0.70.
>> 172.17.89.179: ?tap-multicast-add PIC send 0.0.0.69+0
>>
>> 172.17.89.179: !tap-multicast-add invalid unknown\_command
>> 172.17.89.179: received reply %r
>> 172.17.89.179: Request tap-multicast-add failed.
>>   Request: ?tap-multicast-add PIC send 0.0.0.69+0
>>   Reply: !tap-multicast-add invalid unknown\_command.
>> None
>> Traceback (most recent call last):
>>   File "spectrometer_64bits_float_s12_dif_ed_sin_acc_data_upper_low3.py",
>> line 297, in <module>
>>     exit_fail()
>>   File "spectrometer_64bits_float_s12_dif_ed_sin_acc_data_upper_low3.py",
>> line 160, in <module>
>>     fpga.tap_multicast_add_send('PIC', 69, n_addresses=1)
>>   File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py",
>> line 346, in tap_multicast_add_send
>>     reply, informs = self._request("tap-multicast-add", self._timeout,
>> tap_dev, 'send', str(ip_str_first) + '+' + str(n_addresses-1))
>>   File "/usr/local/lib/python2.7/dist-packages/corr/katcp_wrapper.py",
>> line 196, in _request
>>     % (request.name, request, reply))
>> RuntimeError: Request tap-multicast-add failed.
>>   Request: ?tap-multicast-add PIC send 0.0.0.69+0
>>   Reply: !tap-multicast-add invalid unknown\_command.
>>
>>
>> Am I using the command correctly or I have some sort of library problem?
>>
>> Is there another way to get the info sent to another IP?
>>
>> Best Regards
>>
>> --
>> Pablo Vasquez
>> Ingeniero Eléctrico
>> DAS Universidad de Chile
>> (+562)29771119
>>
>
>


-- 
Pablo Vasquez
Ingeniero Eléctrico
DAS Universidad de Chile
(+562)29771119

Reply via email to