Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some issue with iio_create_default_context #301

Closed
rgetz opened this issue Aug 16, 2019 · 2 comments
Closed

some issue with iio_create_default_context #301

rgetz opened this issue Aug 16, 2019 · 2 comments
Labels

Comments

@rgetz
Copy link
Contributor

rgetz commented Aug 16, 2019

iio_create_default_context says it is supposed to

  • create a network context if the IIOD_REMOTE environment variable
  • the server will be discovered using ZeroConf (if set to an empty string)

This works:

rgetz@brain:~/github/libiio/examples$ IIOD_REMOTE="pluto.local" ./ad9361-iiostream -h
* Acquiring IIO context
* Acquiring AD9361 streaming devices
* Configuring AD9361 for streaming
* Acquiring AD9361 phy channel 0
* Acquiring AD9361 RX lo channel
* Acquiring AD9361 phy channel 0
* Acquiring AD9361 TX lo channel
* Initializing AD9361 IIO streaming channels
* Enabling IIO streaming channels
* Creating non-cyclic IIO buffers with 1 MiS
* Starting IO streaming (press CTRL+C to cancel)
	RX     1.05 MSmp, TX     1.05 MSmp
	RX     2.10 MSmp, TX     2.10 MSmp
	RX     3.15 MSmp, TX     3.15 MSmp
	RX     4.19 MSmp, TX     4.19 MSmp
^CWaiting for process to finish...
	RX     5.24 MSmp, TX     5.24 MSmp
* Destroying buffers
* Disabling streaming channels
* Destroying context

This fails:

rgetz@brain:~/github/libiio/examples$ IIOD_REMOTE="" ./ad9361-iiostream -h
* Acquiring IIO context
* Acquiring AD9361 streaming devices
* Configuring AD9361 for streaming
* Acquiring AD9361 phy channel 0
* Acquiring AD9361 RX lo channel
* Acquiring AD9361 phy channel 0
* Acquiring AD9361 TX lo channel
* Initializing AD9361 IIO streaming channels
* Enabling IIO streaming channels
* Creating non-cyclic IIO buffers with 1 MiS
Could not create TX buffer: Device or resource busy
* Destroying buffers
* Disabling streaming channels
* Destroying context

according to the doc, they should both be the same. (tested on Pluto).

@rgetz rgetz added the bug label Jan 7, 2020
@rgetz
Copy link
Contributor Author

rgetz commented Jan 10, 2020

I think this might be related to #307 as well...

Does anyone want to track this down? Or those that found it, fix it?

-Robin

@rgetz
Copy link
Contributor Author

rgetz commented Jan 13, 2020

The fix described in #307 fixes this as well...

IIOD_REMOTE="" ./tests/iio_attr -d
IIO context has 5 devices:
iio:device0: adm1177, found 0 device attributes
iio:device1: ad9361-phy, found 18 device attributes
iio:device2: xadc, found 1 device attributes
iio:device3: cf-ad9361-dds-core-lpc, found 0 device attributes
iio:device4: cf-ad9361-lpc, found 0 device attributes

so closing this

@rgetz rgetz closed this as completed Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant