Welcome to the PHCC Wiki.

Please create an user account and then help us to make this the one-stop for information on PHCC.

 Actions

Difference between revisions of "Communication Protocols"

From PHCC

(Added protocol files)
(Documenting change in PHCC2host protocol (analog all axes dump) in firmware 0.1.8)
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
* [[DOB bus|Digital Output Type B]] bus (using a two-wire syncronous serial interface).
 
* [[DOB bus|Digital Output Type B]] bus (using a two-wire syncronous serial interface).
 
* I<sup>2</sup>C bus.
 
* I<sup>2</sup>C bus.
 +
  
 
The PHCC system and the host PC have their own protocol stacked on top of the RS-232 bus.
 
The PHCC system and the host PC have their own protocol stacked on top of the RS-232 bus.
 
Details of this protocol can be found in the following documents:
 
Details of this protocol can be found in the following documents:
* [http://cockpit.varxec.net/electronics/phcc/docs/files/Host2PHCC_Protocol.xfig.pdf Host to PHCC]
+
* Host to PHCC: [[Media:Host2PHCC_Protocol.xfig.pdf]]
* [http://cockpit.varxec.net/electronics/phcc/docs/files/PHCC2HostProtocol.xfig.pdf PHCC to Host]
+
* PHCC to Host: [[Media:PHCC2HostProtocol.xfig.pdf]]
 +
** The analog all axes dump differ from specification in firmware 0.1.8. The first packet sent by the motherboard only contain the packet type (b10100000). The next packet contains the upper 2 bits from the 10 bits ADC. The following byte contains the rest of the 8 bits from the ADC. These two packet are repeated for each analog input. The ''all-bits-one-byte'' and "all-bits-zero-byte" finally close the transmission. For more information, consult line 899 from [[Media:Firmware18.asm]].

Latest revision as of 22:10, 2 June 2011

PHCC Communication Interfaces, Busses, and Protocols

The following communication protocols are used in the PHCC system:


The PHCC system and the host PC have their own protocol stacked on top of the RS-232 bus. Details of this protocol can be found in the following documents:

  • Host to PHCC: Media:Host2PHCC_Protocol.xfig.pdf
  • PHCC to Host: Media:PHCC2HostProtocol.xfig.pdf
    • The analog all axes dump differ from specification in firmware 0.1.8. The first packet sent by the motherboard only contain the packet type (b10100000). The next packet contains the upper 2 bits from the 10 bits ADC. The following byte contains the rest of the 8 bits from the ADC. These two packet are repeated for each analog input. The all-bits-one-byte and "all-bits-zero-byte" finally close the transmission. For more information, consult line 899 from Media:Firmware18.asm.