Switching deployment/debugging between USB and COM1/COM2
#21
Posted 13 August 2012 - 05:44 PM
#22
Posted 13 August 2012 - 05:46 PM
#23
Posted 13 August 2012 - 05:48 PM
#24
Posted 13 August 2012 - 06:19 PM
Thanks, Chris.
What methods do I need to invoke in the SecretLabs.Diagnostics namespace? (I'm attempting to download the Netduino Touch Keyboard sample over Serial but I don't see the Diagnostics namespace included in either the Program.cs or the Keyboard.cs modules.) Is there an article on the forums that describes switching deployment to COM1?
--Donn
Chris: I downloaded the new instance of MFDeploy, and used the Target/Connect to establish a connection to my Plus board. However, I still cannot deploy my app over serial. (Nor can I ping the board from MFDeploy.)
Attaching screenshot.
#25
Posted 13 August 2012 - 07:35 PM
Chris: I downloaded the new instance of MFDeploy, and used the Target/Connect to establish a connection to my Plus board. However, I still cannot deploy my app over serial. (Nor can I ping the board from MFDeploy.)
Which option did you select? It should be under Target > Configuration > Deployment Transport. Then select "COM1".
Can you please re-attach the screenshot? There's an "Attach This File" button that needs to be pressed after browsing for the image. I miss it sometimes too.Attaching screenshot.
Chris
#26
Posted 13 August 2012 - 10:05 PM
Thanks, Chris.
What methods do I need to invoke in the SecretLabs.Diagnostics namespace? (I'm attempting to download the Netduino Touch Keyboard sample over Serial but I don't see the Diagnostics namespace included in either the Program.cs or the Keyboard.cs modules.) Is there an article on the forums that describes switching deployment to COM1?
--Donn
Chris: Appreciate the help. Unfortunately, I've tested the updated MFDeploy tool on two machines (Win7/64-bit and Win7/32-bit) and it fails with identical errors on both. If I attempt to Ping the Netduino plus board from the MFDeploy app, I see a "Pinging... Error: No response from device." when the serial cable is connected. Now, if I attempt Target/Connect, I see "Connecting to COM2...Connected"; but, if I attempt a Ping after this, I see a "Pinging... NoConnection". (I see identical behavior for COM1 and COM2.)
Now, if I disconnect the serial cable, attach a USB cable, and restart MFDeploy, I can ping the device, retrieve device capabilities, etc. Are there known issues with specific serial cables/converters/chips? (Re-attaching screenshot.)
Thanks!
--Donn
Attached Files
#27
Posted 13 August 2012 - 10:34 PM
#28
Posted 13 August 2012 - 10:35 PM
#29
Posted 13 August 2012 - 11:21 PM
No problem. Glad you're up and running! Let us know if you need anything elseChris: I just got serial deployment to work. (What I'd needed to do was start the process with my USB cable connected. After re-attaching the USB cable, I was able to reconfigure the Target/Configuration/Deployment Transport with the updated MFDeploy and we were in business.)
Appreciate your help today!
Thanks,
--Donn Morse
Chris
#30
Posted 04 March 2013 - 12:57 PM
Hi Guys,
My Name is Kyle, and I would like to offer whatever help or insight I can into the issue of PC communication over a single USB Cable. Sorry for the long post, hopefully it is worthwhile
I am a software developer with 15 years experience writing software that interacts with HID/Serial devices that act as remote controls for my software. Although I am a newbie to Hardware/Firmware development, I recently got into the NetDuino/Arduino so that I could learn to build these HID/Serial remote control devices myself.
I believe I might be able to help work out some of the HID issues in the UsbClient stuff (someone mentioned instablility), but I am unclear as to whether the hardware will support HID communication and .Net Micro debugging. Since there would be a learning curve for me with writing firmware, I wanted to aske these questions before I invested too much time...
Do you guys already know if HID + .Net Micro is not possible with existing hardware, or is it worth me poking around a bit in the firmware?
Most commercial "Custom HID" devices I have worked with don't really use the Read/Write Report mechanisms. I use the HID Api to enumerate and open a handle to the device, but then I use ReadFile/WriteFile functions to communicate with device as if it were a normal Serial device. I believe this may be the key to more stable HID communication. Did you guys see this possibility when developing the UsbHidEchoNetduinoApp, or is it worth some investigation?
Another issue with the UsbHidEchoNetduinoApp solution is that it seems that the NetDuino needs power before being plugged into the computer (the program needs to be running). If I intend to use the single usb connection for power, does that mean I have to have whatever HID code built into the firmware? If that is true, is it possible to set up the firmware to communicate with the NetDuino program to customize what data is sent back and forth?
Thanks guys. Sorry for the long post, but making a single cable device is the whole ball game for me (and probably others), and I just want to offer whatever help I can.
Kyle
#31
Posted 04 March 2013 - 03:45 PM
Kyle,
Welcome! They could probably use your insight into USB over here --> Looking for a few ninja code contributors...
#32
Posted 05 March 2013 - 07:03 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users