January 11, 2010 3:32 AM
updated: January 11, 2010 3:39 AM
Helibot said: It seems to work fine with my XP and com1. One more test you can try- When "Incoming connections" (IC) has Com3 ticked , can you open com3 with Hyperterminal or Teraterm? I guess that you can. (you shouldnt be able to open it if IC has it opened.)
Strange! And yes, I can open it freely. So, it is not locked by "Incoming Connections". BTW, do you use a USB-to-Serial adapter like me, or somehow connect RSM's serial port directly to your PC's COM1?
Helibot said: Out of interest why are you using com3? Why not com1 or 2? Is Com3 a std comport? Can you try com 1 or com 2?
Because I use this "old-style" motherboard with both standard COM1 and COM2 hardware ports implemented (quite a rare case for modern "legacy-free" PC's). And I do think, it's a correct way. The place for any additional or virtual ports like Parallax PropClip USB-to-Serial adapter etc. is on COM3-COMXX. In my case, COM3 is assigned to PropClip automatically by it's driver setup routine. Theoretically, I can try COM1 or COM2 by disabling the hardware ports in CMOS Setup, then reinstalling the Parallax driver, but for now, I'm a bit lazy to do so just to do it back. I don't think it will make any difference. Maybe, if any else will fail...
Helibot said: If you have another com port and a serial cable (null modem) you could try running FSM on com1, IC on com1 , use the serial cable to connect from com1 to com3
Impossible, because COM3 (serial side of Parallax PropClip) is hardwired to RSM's Media Board. And it have a 3v logical levels. So even theoretically it will need a level converter to connect to 12v COM-port of PC like COM1.
Helibot said: Dont you hate this - we finially get RSM PPP stuff worked out and now its good ole Microst that stops us now!! Cheers Helibot
Indeed, inscrutable are the ways of Microsoft ;) But to state so, we have to exclude the possibility of our failure.
I will play with it more this evening after work if time permits.
P.S. You mentoned before the possibility of testing PPP connection under Linux on PC side. Theoretically, possible, but we will need to make Parallax PropClip work under Linux first...
For anyone interested here is some more info about what I know of the networking for RSMedia (Its going to get technical prettry quickly, so skip it if you are not interested):-
1) In RSMedia version 2 robots there is a USBNET menu item in media mode. The version2 robots also have networking built into the linux kernel and some extra network related files in the root filesystem.
2) When USBNET is activated it loads a usb-serial driver into the Linux kernel (instead of the USB mass storage driver). It also loads a ppp program that tries to create a 'ppp' connection over the /dev/ttyUSB device. Once the USB cable is connected to the PC the ppp program should send 'ppp' negotiation packets out the USB port to the PC.
3) Windows (or Linux) can be setup to connect to other devices via PPP (usually it done over serial and parallel ports)
So my best guess is that the whole thing should work like this :-
1) USBNET is activated (usbserial module is loaded and PPP program sends packets to the PC)
2) USB cable is plugged into the PC
3) PC recognises the USB device and loads drivers.
4) Driver should make the USB device appear as a virtual serial or parallel or (network?) port.
5) The windows PPP server should be listening to the serial or parallel (or network?) port and should then receive the PPP packets from RSMedia.
6) Windows PPP server should exchange packets with RSMedia ppp program and negotiate the link parameters (IP address,subnet mask,gateway etc)
7) Once negotiated then Rsmedia ppp program and windows ppp server will setup the networking interfaces in the linux kernel and Windows OS respectively.
8) Connection is complete - RSMedia should be able to ping and connect to network services on the PC.
I think that steps 1& 2 are working.
I know how to setup Windows to listen for a PPP connection (used in step 5)
Steps 6 & 7 should work OK - although there is a good chance we will have to configure some ppp stuff in Linux or Windows to make the negotiation successful.
So the missing piece is step 4 - We don't have a USB driver for the PC that will recognise the RSMedia USBserial device and make it appear as a virtual serial port or parallel port. I have no idea what Wowwee intended here. As far as I am aware they never supplied a USB driver for the PC for the usb-serial functionality.
So where to go from here?
I have four ideas -
1) Use a Version 2 RSMedia robot with a serial hack done, then change the PPP setup on the RSMedia to use the serial port instead of the USB device. The PPP setup packets should go out the serial port and be received by Windows PPP server ( which I do know how to setup for a serial device). But my bot is not a V2 bot :-( Does anyone out there have a V2 bot with the serial hack done?
2) Create a USB driver for Windows that makes a virtual serial port. (Similar to what I did for the USBconsole work). From a quick investigtion there doesnt seem to be any opensource drivers :-(
3) Create/find a USB driver for Linux that makes a virtual serial port. There sshould already be many drivers supported (with source of course!)
4) Find an existing USB2serial converter driver and install it into Windows, hack the usbserial driver in RSMedia to report itself as a supported device. Plug in RSMedia and see if it recognises the device and successfully installs it as a com port. (I have tried this once with the FTDI driver, it detected the device and started installing driver, but never finished).
I will try one more Windows USB2serial converter driver (from a real USB2serial converter I have) , if this fails I think I will give up on windows and try with linux (full source is available and I maybe able to use a 'generic USB2serial converter' type driver. This probably has more chance of working than an existing windows driver.) If this fails we are back to writing/modifying a driver from scratch :-(.
Also at this point I am assuming that the RSMedia mx1_ads-usbserial.o device supplied by Wowwee actually works OK. I tried using this for the USBConsole work, but couldnt make it work.....so this is a risk. If it doesnt work then we maybe able to use the version created for USBConsole (although it doesnt support large packet sizes properly).
Also one last point - Linux supports a thing called "USBNET" which is networking over USB, I am not sure that it is supported in the RSMedia Linux Kernel. Also it usually doesnt use ppp but RSMedia definitely comes with ppp support. So I decided to investagte down the 'ppp' path first , maybe we can look more at USBNET if ppp cant be made to work.
Wow this turned out to be a really long post (actually I wrote most of it to help collect my thoughts on PPP, but then decided to post it.... so sorry for my ramblings....hope its interesting to someone!!)
Cheers
Helibot