Passing data between a C# application and a C console application in visual studio while debugging -


i working on embedded system protocol communicate micro-controller computer. micro-controller code in c , computer application in c#. debugging purposes, have micro-controller portion in visual studio project since faster compile , step through on micro-controller directly. able pass data , forth between c# application , c console application , have both running in own debuggers can step through steps of communication loop.

i have seen references should possible redirecting stdin , stdout c console application, of examples when process launched c# application. since both application need launched vs debug sessions, not sure how connection working.

all need way send byte array in each direction , receive in other application.

any appreciated!

thanks, john vickers

cairn o.,

thanks pointing me onto icp, hadn't thought doing sockets because assumed complex server in c under windows. after doing reading on different types of icp, came across article:

http://www.binarytides.com/winsock-socket-programming-tutorial/

it has simple examples working creating client , server in c. method should work me because direct emulation of 1 of connection methods have in micro (usb , rs232 being other types of connections).

this way can test ethernet socket connection code in c# application @ same time, , don't have fake out thought have other methods!

hope helps else too!

thanks again, john vickers


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -