Use any tool you are comfortable with. I used to like printf()... See if the errno has anything to say where-ever the failure occurs. I am reasonably certain that the C SF has been used under cygwin because people ask about it on the list. I've never used it though. MS
Angel Bartomeu Bonillo wrote: > Java tools work perfect. Do you suggest to debug with gdb or anyone > else? > > Thanks. > > El vie, 28-11-2008 a las 07:25 -0700, Michael Schippling escribió: >> Did you say that you were able to use the Java based >> SF or Listen programs? If they work then I'd suggest >> debugging the C code to see exactly why the device >> open is failing. If Java doesn't work either then >> perhaps reinstalling the FDDI drivers and other USB >> related components might help. Otherwise, you've >> reached the limits of my abilities... >> >> MS >> >> Angel Bartomeu Bonillo wrote: >>> It's still doesn't work. >>> >>> Motelist returns: >>> Reference CommPort Description >>> ---------- ---------- ------------------------------------------- >>> M4AF4B9T COM6 tmote sky >>> >>> Then I do: >>> >>> /opt/tinyos-1.x/tools/src/sf/sf.exe 9001 /dev/ttyS5 56700 telosb >>> >>> Again, I have also tried many other combinations like typing >>> serial@/dev/ttyS5 or serial@/dev/ttyS6 (just in case), etc... >>> >>> It remains returning the same >>> "Couln't open serial port at /dev/ttyS5" >>> "Couln't open serial port at serial@/dev/ttyS5" >>> and so on. >>> >>> Any ideas? >>> >>> Thank u >>> >>> >>> El mié, 26-11-2008 a las 11:20 -0700, Michael Schippling escribió: >>>> try /dev/ttyS5 -- the tty port number is ComN-1 >>>> but I can make no guarantees about SF working. >>>> >>>> The whole /dev thing on cygwin is a mysterious-kludge-like-system, >>>> there seem to be 16 (0-15) tty devices hidden in some library >>>> someplace. Listing the directory with ls shows nothing but listing >>>> individual devices works fine. Good luck if you have a COM port >>>> above 15, as my usb-serial driver insisted on doing recently. >>>> >>>> MS >>>> >>>> Angel Bartomeu Bonillo wrote: >>>>> Hello, >>>>> >>>>> For the project I'm working on I need to use the C-based version of >>>>> SerialForwarder. I have been looking for info on the Internet but It >>>>> looks like nobody has used this program on Windows. >>>>> >>>>> I run motelist and it says that I have connected a tmote sky (telosb) on >>>>> COM6. Then, I run: >>>>> >>>>> /opt/tinyos-1.x/tools/src/sf/sf.exe 9001 COM6 56700 telosb >>>>> >>>>> and it cannot find the serial port. >>>>> >>>>> I have tried to change COM6 into [EMAIL PROTECTED], serial@/dev/ttyS6, >>>>> serial@/dev/ttyUSB6, and many other ways and it keeps returning the same >>>>> message : >>>>> >>>>> Couldn't open serial port at COM6:56700 or >>>>> Couldn't open serial port at serial@/dev/ttyS6:56700 >>>>> ... >>>>> and so on, depending on the second argument. >>>>> >>>>> Then I realized that in my cygwin, there are no devices under the >>>>> folder /dev but the stdout, stdin and one or two more. But nothing like >>>>> tty's. >>>>> >>>>> Then I wonder if C-based SerialForwarder is suitable for using it under >>>>> windows and, in that case, how should I run it or configure it. >>>>> >>>>> Thanks in advance >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Tinyos-help mailing list >>>>> [email protected] >>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
