Re: TINI and Socket Programming
Bill Troyer <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Hi -- Are you creating a new connection when you feed the dog - If you are not when you reset Tini a your connection will be lost... Why do you need 3 systems?? Bill At 11:51 AM 2/18/2004 -0700, Swami Venkataramani wrote: >I have 3 programs running, 2 of them on 2 different TINI boards (TINI A and >TINI B) and 1 program running on a PC. Basically this is what happens: TINI A >is listening on 2 different ports and TINI B is listening on 1 port. On TINI >A, one of the ports is listening to commands from the PC, and when it gets >a command (a string message), it sends it to TINI B. If however, the command >is 'n', TINI B sends a message back to TINI A on its second port, which then >resets the board because the Watchdog stops feeding. > >basically: > >PC ---- (send command) ---> TINI A --- (forward command) ---> TINI B > >If command is 'n' then TINI B -- (send reset message) ---> TINI A > > >Once TINI A resets, the program on TINI A should start running again, and the >process continues. I added the line on the .startup file on TINI A that makes >the program automatically start after reset. However, When the program comes >up again, it does not recieve any messages from the PC. When I do a PS, >however, it shows that the program is running. > >So, this whole setup works the first time, but after the first reboot when the >program starts automatically, it doesn't work. > >Can anyone help me to fix this problem? > >Thanks! > >Swami. > > >_______________________________________________ >TINI mailing list >TINI-6tN4nzCoH/[email protected] >To UNSUBSCRIBE, edit your profile, or see list archives: >http://lists.dalsemi.com/mailman/listinfo/tini _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini