We have launched a new Community! Please post any new forum topics there. This forum will remain available as an archive, but we hope you enjoy the new experience and feature set the latest NCD Community will offer!

Software Library Question / Azure IoT

Hi,

I'm trying to put together a prototype simple device that uses a Raspberry Pi 3 running a Windows 10 core and your 4 channel 4-20ma current loop receiver. I want to interface some older industrial process analyzers and read outputs on them. I understand I will need the I2C adapter for the Pi and a cable to connect between the sensor and the adapter. Anything else I am missing? (I am going to use a Current Loop Simulator to test with).

The most important question I have is are there any .NET APIs to talking to the sensor device or code samples for talking to it? I read one example in the tutorial section that looked like it was C++ example. We are working with C#. Any documentation?

On a different note, I saw your announcement with Microsoft of the Azure IoT, are you going to be publishing any documents/how-tos on how to work with Azure IoT?

Thanks in advance.

R

Sorry for the delay in getting back to you, ironically, our developers are working directly with Microsoft today and tomorrow in preperation for a demo with Azure IoT.  We do have Visual Studio samples in progress that will work with Windows 10 (should be finished tomorrow).  You will need our USB to I2C Converter to run the sample programs.  Rest assured, our friend at Microsoft are working with us to help develop tons of samples for Azure IoT, we will be maturing this topic significantly throughout 2018.

Thanks,

Ryan

M

Hi Ryan,

Thank you for getting back to me. Just one question of clarification: Will you be putting together examples or an API library in .NET that can be used to access the board or is there any documentation on how to do that anywhere? 

I'm working on a design for the 4-20ma sensor and trying to see exactly how I would get a reading from it. This is for building a stand-alone unit using the Windows 10 core and talking directly to the sensor through a .NET program. I would be logging data to a sql server repository or displaying using UWP on a touch screen on the device. This is my first task - the secondary task is a long term plan to integrate with Azure. 

Thanks!

-m

R

The only new samples we have planned at this time are for Visual Studio.  I must say, the samples are very straight-forward, I can't imagine they would be difficult to integrate into your application.  We also have Python samples that are extremely easy to read:

https://github.com/bhaskar-anil429/MCP3428_4_20mA/blob/master/4-20mA_4Ch...

Microsoft support is a top priority for us throughout 2018, but this will take some time to put together.

Thanks,

Ryan

M

Thanks for the quick reply. I went through the python code and traced out the smbus library. I think I've found the area to focus on in .NET but would appreciate if you could tell me if I'm on the right track:

I found these links for I2C devices as a starting point: https://docs.microsoft.com/en-us/uwp/api/windows.devices.i2c.i2cdevice

From the I2C device library, it is following the paradigm of the following: https://docs.microsoft.com/en-us/uwp/api/windows.devices.enumeration.dev...

Are these correct assumptions?

 

R

Sorry, I wish I could help you on this, but we do not have anyone available to answer these questions.

Thanks,

Ryan