Home arrow Forums
914 PC Bots Forum  


Ulf
User

Expert Boarder
Posts: 27
graphgraph
Karma: 0  
There was a problem attempting to initialize M3 - 2007/03/05 17:27 When i configure the mainboard power switch to hibernate mode i get a TTS error after "rebooting":
"there was a problem attempting to initialize M3, I can't feel my legs "

There seems to be a problem with the resetting of the M3
( M3PMD_NOERROR != PMDChipsetReset( hAxis1 ) in M3_core.cpp)

Does anyone have an idea why or how to make a workaround ?
  | | The administrator has disabled public write access.
edaniels
User

Platinum Boarder
Posts: 240
graphgraph
Karma: 2  
Re:There was a problem attempting to initialize M3 - 2007/03/06 00:40 The PMDReset command is basically just trying to establish a serial connection to your M3 board, so it sounds like a serial comms issue to me. Why is a difficult question though...

The serial data path is PC -> USB-Serial port -> M3 board FTDI chip -> PMD chips. Hibernating and then restoring must be disrupting something along that path.

-Ernie
  | | The administrator has disabled public write access.
Ulf
User

Expert Boarder
Posts: 27
graphgraph
Karma: 0  
Re:There was a problem attempting to initialize M3 - 2007/03/06 05:22 Yes Ernie,

i`m thinking the serial connection is still established but interupted and a new connection on the same serial port isn`t possible.

When resetting the M3 (connection?) by turning the M3 power (green power switch) off and on (after komplete reboot) everything works fine again.

So the question is how to "reset" the connection by software in the right way.

The very fast shutdown and reboot time is worth to solve that issue, isn`t it ?
  | | The administrator has disabled public write access.
Marcus8675
User

Platinum Boarder
Posts: 267
graphgraph
Karma: 3  
Re:There was a problem attempting to initialize M3 - 2007/03/06 05:35 Just courious if stoping and restarting the service allows you to reestablish connection or are you required to do a complete reboot?
  | | The administrator has disabled public write access.
edaniels
User

Platinum Boarder
Posts: 240
graphgraph
Karma: 2  
Re:There was a problem attempting to initialize M3 - 2007/03/06 05:40 I have noted that if my application gets a PMD comms error and then exits with an exception, the next time I run the application it always fails. But if I run it a second time it succeeds in connecting.

When I shut down normally, I call PMDCloseAxisInterface() on PMDAxis1, perhaps this is what gets the serial port to reset in the operating system. But it may be something in Windows XP or the USB-serial driver, I really don't know.

-Ernie
  | | The administrator has disabled public write access.