Skip to main content
deleted 311 characters in body
Source Link
CPA
  • 143
  • 1
  • 6

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?

EDIT: Questions:

  1. Should I use a background task to read sensor data near realtime from a serial port?

  2. Is it possible to use SignalR on Windows IoT? And if yes, how would I do that?

  3. Is there any best practice to read send sensor data and send them to a SignalR Hub in near real time? How can I read and send data continuously?

I just want to run these steps:

  1. Start Raspberry Pi
  2. Start automatically app
  3. Start automatically infinite loop
  • read sensor data
  • send sensor data to a SignalR Hub

I don't know if there is any better way instead of using an infinite loop to read an send data continously.

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?

EDIT:

  1. Should I use a background task to read sensor data near realtime from a serial port?

  2. Is it possible to use SignalR on Windows IoT? And if yes, how would I do that?

  3. Is there any best practice to read send sensor data and send them to a SignalR Hub in near real time?

I just want to run these steps:

  1. Start Raspberry Pi
  2. Start automatically app
  3. Start automatically infinite loop
  • read sensor data
  • send sensor data to a SignalR Hub

I don't know if there is any better way instead of using an infinite loop to read an send data continously.

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time.

Questions:

  1. Is it possible to use SignalR on Windows IoT? And if yes, how would I do that?

  2. Is there any best practice to read send sensor data and send them to a SignalR Hub in near real time? How can I read and send data continuously?

I just want to run these steps:

  1. Start Raspberry Pi
  2. Start automatically app
  3. Start automatically infinite loop
  • read sensor data
  • send sensor data to a SignalR Hub

I don't know if there is any better way instead of using an infinite loop to read an send data continously.

added 510 characters in body
Source Link
CPA
  • 143
  • 1
  • 6

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?

EDIT:

  1. Should I use a background task to read sensor data near realtime from a serial port?

  2. Is it possible to use SignalR on Windows IoT? And if yes, how would I do that?

  3. Is there any best practice to read send sensor data and send them to a SignalR Hub in near real time?

I just want to run these steps:

  1. Start Raspberry Pi
  2. Start automatically app
  3. Start automatically infinite loop
  • read sensor data
  • send sensor data to a SignalR Hub

I don't know if there is any better way instead of using an infinite loop to read an send data continously.

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?

EDIT:

  1. Should I use a background task to read sensor data near realtime from a serial port?

  2. Is it possible to use SignalR on Windows IoT? And if yes, how would I do that?

  3. Is there any best practice to read send sensor data and send them to a SignalR Hub in near real time?

I just want to run these steps:

  1. Start Raspberry Pi
  2. Start automatically app
  3. Start automatically infinite loop
  • read sensor data
  • send sensor data to a SignalR Hub

I don't know if there is any better way instead of using an infinite loop to read an send data continously.

Source Link
CPA
  • 143
  • 1
  • 6

Using SignalR Client in UWP running on Windows IoT

I'm running Windows IoT on a Raspberry Pi.

After I turn on my Raspberry Pi and Windows IoT starts up, I want to automatically begin reading sensor data from a serial port continuously, and also send the data to a SignalR server/hub continuously. I don't need any UI.

I'm new at UWP apps. I want to use a SignalR client to send the data near real-time. Is it possible to use same SignalR client libraries as I would for a .net console application? Is it best practice to use a headless background task for doing it? But how can I make sure, that the data reading and sending interval is not too long (~1-20ms)?