Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

MDIO to RS232 communication

I am trying to communicate with Puma AEL1002 board from Aeluro using Labview. It has MDIO (Management data nput/output) interface. I know the format: 32 bit preamble (all 1), 2-bit start of frame, 2-bit Opcode, 5-pit port address, 5-pit device address, 2-bit turnaround, 16-bit address/data, totally 64 bits for each command.
 
There are some software writen in C. But I know very little about C, always use Labview.
 
Can anybody give me a example ? I tried to use Visa write/read command to send hex in the case structure, it just doesn't work.
 
I probablly can get C code, if so, can anyone help me to combine it into Labview?
 
Thank you very much
 
Scott.F
0 Kudos
Message 1 of 6
(5,395 Views)

Doesn't sound like a RS232 communication..., however you seem to have a cable to plug in the RS232 port Smiley Indifferent

So I assume the device is using the hardware handshaking lines (DTR,CTS,CTR...) to establish a communication with DI,DO&CLK  and some voltage level circuitry is build in the rs232 plug. Correct?

Then the next would be to find out what RS232 line is used for DI,DO&CLK  and use the VISA property node to toggle the lines, resp. to read the line status to send and receive data.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 6
(5,391 Views)

Hi Henrik,

You are right, there is a converter between RS232 to MDIO. I will follow your suggestion. Need to ask my friend about D1, D0 and clock.

Thank you so much

Scott F

0 Kudos
Message 3 of 6
(5,379 Views)

A nice general information on rs232:  http://www.arcelect.com/rs232.htm

or search the NI site.

One way to find out: With a scope compare the flow control lines with the MDIO lines to find out which lines are used.

Dno't be afraid to rate a good answer Smiley Very Happy

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 4 of 6
(5,372 Views)
HI:Scott.F
Can you give the sample vi for me,I have same problem ---how get the mdio with labview?
kevin
0 Kudos
Message 5 of 6
(4,936 Views)

Kevin

This is a 5 year old post.  It's ok to start a new thread


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 6
(4,911 Views)