PDA

View Full Version : localAddr()


joecool
07-22-2009, 11:19 AM
I am monitoring STDOUT on an RFE mounted on a protoboard. Why does


print localAddr()


only display a blank line in Portal's event log? I am also seeing a blank line when I do an mcastRpc() and use rpcSourceAddr() in the remote node's procedure that was called:


def sampleFunction():
string = rpcSourceAddr()
print string



What am I doing wrong? Portal shows the correct network addresses for my two RFEs, why can't they display addresses with localAddr() or rpcSourceAddr()?

joecool
07-22-2009, 11:21 AM
FYI, I am using Portal 2.1.26 and my RFEs have firmware version 2.1.8.

mgenti
07-22-2009, 11:24 AM
More than likely the address that Portal is trying to print contains not printable characters.

joecool
07-22-2009, 11:33 AM
More than likely the address that Portal is trying to print contains not printable characters.

Please tell me your next version will have better means of debugging other than simply using a print statement.

mgenti
07-22-2009, 11:59 AM
Adding a symbolic debugger is currently on our road map for a future release, in the mean time if you want to print out the hex values of your addresses check out the hexSupport.py file in the synapse snappyImages directory.

joecool
07-22-2009, 12:12 PM
Thanks, dumpHex() and the other routines will come in handy for debugging (and as examples).