AN00152 bidirectional xscope

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
klausbusse
Member
Posts: 11
Joined: Thu Jan 10, 2013 11:28 pm

AN00152 bidirectional xscope

Post by klausbusse »

I need some help.

I would like to use the AN00152 but it does not work after download via xTIMEcomposer.

On my Host PC is Win 8.1 running.

If I am starting with Project>Build Project - I got 1 Error: fatal error: 'simplefs.h' file not found

If I am starting Host>Win32 xscope_host_console.exe I got error xscope _endpoint.dll missing in the Host PC.

Any Idea's?


User avatar
Thomas
Experienced Member
Posts: 66
Joined: Fri Feb 05, 2010 12:34 pm

Post by Thomas »

Hi Klaus
Please make sure that you're using the latest tools release 14.1.2.
Then you can import the AN00152 directly from the xTIMEcomposer GUI:
- click on Examples then search for xscope.
- Double click xSCOPE - Bi-Directional Endpoint
- Build and run.

On the host side:
Make sure that the tools are installed in your shell where you compile.
See chapter 3.2 Start the command-linetools
https://www.xmos.com/download/private/x ... 4.x%29.pdf

Best Regards, Thomas
klausbusse
Member
Posts: 11
Joined: Thu Jan 10, 2013 11:28 pm

Post by klausbusse »

Thanks. Problems are solved. Now I can exchange data between PC and XCORE-200-EXPLORER Board in both Direction.


Now an other question: When I transmit from PC a string with 1024+1 octet. The string wil be splitted by xscope_data_from_host like:

1. 256 octets
2. 256 octets
3. 256 octets
4. 256 octets
5 1 octet

Is there any posibility to configure no spliting e.g no fragmenting between PC and Device in both direction.

see AN00152...


char data[1024];
PC Host function: xscope_ep_request_upload(strlen(data)+1, (const unsigned char *)data);

XCORE-200-EXPLORER: case xscope_data_from_host(xscope_data_in, rxbuf, bytesRead):
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

Unfortunately, due to the way the xSCOPE connection has currently been implemented it will fragment the data into 256 byte chunks. You should be able to very easily implement your own protocol on top of xSCOPE to do what you want. For example, send a length word first and then follow it with the data that you can place into a large buffer before passing it to the application.
klausbusse
Member
Posts: 11
Joined: Thu Jan 10, 2013 11:28 pm

Post by klausbusse »

OK. Many Thanks.
I will implement a header and a protocol as proposed. At the moment the last fragment of the data stream triggers the problem.
monsonite
Newbie
Posts: 1
Joined: Thu May 26, 2016 10:49 pm

Post by monsonite »

Hi,

I have exactly the same problem as Klaus.

Using xTimecomposer Version: Community_14.2.0 (build 11257, May-12-2016)

Downloaded xscope example AN00152

Trying to run xscope_host_console.exe under Win 8 - complains that xscope_endpoint.dll is missing from computer.

Does the host code have to be recompiled to generate this dll ?

How exactly do I fix this please?


TIA


Ken
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

You need to ensure that you are running the xscope_host_console.exe in a xTIME Composer Command Prompt (icon should have been added to your desktop on installation), otherwise the path will not be set up so that the xscope_endpoint.dll can be found.