Difference between revisions of "Funcube Dongle command matrix"

From MyLabWiki
Jump to: navigation, search
(Complete command list)
Line 4: Line 4:
 
! style="background:#D9E5E5;" | ID
 
! style="background:#D9E5E5;" | ID
 
! style="background:#D9E5E5;" | Command
 
! style="background:#D9E5E5;" | Command
! style="background:#D9E5E5;" | Description
 
 
! style="background:#D9E5E5;" | FCD Pro parameters
 
! style="background:#D9E5E5;" | FCD Pro parameters
 
! style="background:#D9E5E5;" | FCD Pro+ parameters
 
! style="background:#D9E5E5;" | FCD Pro+ parameters
Line 11: Line 10:
 
| FCD_CMD_BL_QUERY
 
| FCD_CMD_BL_QUERY
 
| Returns string with "FCDAPP version"
 
| Returns string with "FCDAPP version"
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 17: Line 15:
 
| FCD_CMD_BL_RESET
 
| FCD_CMD_BL_RESET
 
| Reset to application mode
 
| Reset to application mode
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 23: Line 20:
 
| FCD_CMD_BL_ERASE
 
| FCD_CMD_BL_ERASE
 
| Erase firmware from FCD flash
 
| Erase firmware from FCD flash
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 29: Line 25:
 
| FCD_CMD_BL_SET_BYTE_ADDR
 
| FCD_CMD_BL_SET_BYTE_ADDR
 
| ''TBD''
 
| ''TBD''
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 35: Line 30:
 
| FCD_CMD_BL_GET_BYTE_ADDR_RANGE  
 
| FCD_CMD_BL_GET_BYTE_ADDR_RANGE  
 
| Get address range
 
| Get address range
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 41: Line 35:
 
| FCD_CMD_BL_WRITE_FLASH_BLOCK
 
| FCD_CMD_BL_WRITE_FLASH_BLOCK
 
| Write flash block
 
| Write flash block
|
 
 
| ?
 
| ?
 
|-
 
|-
Line 47: Line 40:
 
| FCD_CMD_BL_READ_FLASH_BLOCK
 
| FCD_CMD_BL_READ_FLASH_BLOCK
 
| Read flash block
 
| Read flash block
|
 
 
| ?
 
| ?
 
|-
 
|-
 
| align="right" | 100
 
| align="right" | 100
 
| FCD_CMD_APP_SET_FREQ_KHZ
 
| FCD_CMD_APP_SET_FREQ_KHZ
| Set frequency in kHz
 
 
| 3 byte unsigned LE frequency in kHz
 
| 3 byte unsigned LE frequency in kHz
 
|
 
|
Line 58: Line 49:
 
| align="right" | 101
 
| align="right" | 101
 
| FCD_CMD_APP_SET_FREQ_HZ
 
| FCD_CMD_APP_SET_FREQ_HZ
| Set frequency in Hz
 
 
| 4 byte unsigned LE frequency in Hz, returns actual frequency
 
| 4 byte unsigned LE frequency in Hz, returns actual frequency
 
|
 
|
Line 64: Line 54:
 
| align="right" | 102
 
| align="right" | 102
 
| FCD_CMD_APP_GET_FREQ_HZ
 
| FCD_CMD_APP_GET_FREQ_HZ
| Read frequency in Hz
 
 
| Returns 4 byte unsigned LE in Hz
 
| Returns 4 byte unsigned LE in Hz
 +
|
 +
|-
 +
| align="right" | 104
 +
| FCD_CMD_APP_GET_IF_RSSI
 +
| align="center" colspan="2" | Deprecated
 +
|-
 +
| align="right" | 105
 +
| FCD_CMD_APP_GET_PLL_LOCK
 +
| Returns 1 bit, true if locked
 +
| n/a
 +
|-
 +
| align="right" | 106
 +
| FCD_CMD_APP_SET_DC_CORR
 +
| 2 byte unsigned I correction followed by 2 byte unsigned Q correction
 +
| n/a
 +
|-
 +
| align="right" | 107
 +
| FCD_CMD_APP_GET_DC_CORR
 +
| Returns 2 byte unsigned I correction followed by 2 byte unsigned Q correction
 +
| n/a
 +
|-
 +
| align="right" | 108
 +
| FCD_CMD_APP_SET_IQ_CORR
 +
| Send with 2 byte signed phase correction followed by 2 byte unsigned gain correction
 +
| n/a
 +
|-
 +
| align="right" | 109
 +
| FCD_CMD_APP_GET_IQ_CORR
 +
| Returns 2 byte signed phase correction followed by 2 byte unsigned gain correction
 +
| n/a
 +
|-
 +
| align="right" | 110
 +
| FCD_CMD_APP_SET_LNA_GAIN
 +
| Send with 1 byte. Range 0-14
 +
|
 +
|-
 +
| align="right" | 111
 +
| FCD_CMD_APP_SET_LNA_ENHANCE
 +
|
 +
|
 +
|-
 +
| align="right" | 112
 +
| FCD_CMD_APP_SET_BAND
 +
|
 +
|
 +
|-
 +
| align="right" | 113
 +
| FCD_CMD_APP_SET_RF_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 114
 +
| FCD_CMD_APP_SET_MIXER_GAIN
 +
|
 +
|
 +
|-
 +
| align="right" | 115
 +
| FCD_CMD_APP_SET_BIAS_CURRENT
 +
|
 +
|
 +
|-
 +
| align="right" | 116
 +
| FCD_CMD_APP_SET_MIXER_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 117
 +
| FCD_CMD_APP_SET_IF_GAIN1
 +
|
 +
|
 +
|-
 +
| align="right" | 118
 +
| FCD_CMD_APP_SET_IF_GAIN_MODE
 +
|
 +
|
 +
|-
 +
| align="right" | 119
 +
| FCD_CMD_APP_SET_IF_RC_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 120
 +
| FCD_CMD_APP_SET_IF_GAIN2
 +
|
 +
|
 +
|-
 +
| align="right" | 121
 +
| FCD_CMD_APP_SET_IF_GAIN3
 +
|
 +
|
 +
|-
 +
| align="right" | 122
 +
| FCD_CMD_APP_SET_IF_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 123
 +
| FCD_CMD_APP_SET_IF_GAIN4
 +
|
 +
|
 +
|-
 +
| align="right" | 124
 +
| FCD_CMD_APP_SET_IF_GAIN5
 +
|
 +
|
 +
|-
 +
| align="right" | 125
 +
| FCD_CMD_APP_SET_IF_GAIN6
 +
|
 +
|
 +
|-
 +
| align="right" | 126
 +
| FCD_CMD_APP_SET_BIAS_TEE
 +
|
 +
|
 +
|-
 +
| align="right" | 150
 +
| FCD_CMD_APP_GET_LNA_GAIN
 +
| Returns 1 byte. Range 0-14
 +
|
 +
|-
 +
| align="right" | 151
 +
| FCD_CMD_APP_GET_LNA_ENHANCE
 +
|
 +
|
 +
|-
 +
| align="right" | 152
 +
| FCD_CMD_APP_GET_BAND
 +
|
 +
|
 +
|-
 +
| align="right" | 153
 +
| FCD_CMD_APP_GET_RF_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 154
 +
| FCD_CMD_APP_GET_MIXER_GAIN
 +
|
 +
|
 +
|-
 +
| align="right" | 155
 +
| FCD_CMD_APP_GET_BIAS_CURRENT
 +
|
 +
|
 +
|-
 +
| align="right" | 156
 +
| FCD_CMD_APP_GET_MIXER_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 157
 +
| FCD_CMD_APP_GET_IF_GAIN1
 +
|
 +
|
 +
|-
 +
| align="right" | 158
 +
| FCD_CMD_APP_GET_IF_GAIN_MODE
 +
|
 +
|
 +
|-
 +
| align="right" | 159
 +
| FCD_CMD_APP_GET_IF_RC_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 160
 +
| FCD_CMD_APP_GET_IF_GAIN2
 +
|
 +
|
 +
|-
 +
| align="right" | 161
 +
| FCD_CMD_APP_GET_IF_GAIN3
 +
|
 +
|
 +
|-
 +
| align="right" | 162
 +
| FCD_CMD_APP_GET_IF_FILTER
 +
|
 +
|
 +
|-
 +
| align="right" | 163
 +
| FCD_CMD_APP_GET_IF_GAIN4
 +
|
 +
|
 +
|-
 +
| align="right" | 164
 +
| FCD_CMD_APP_GET_IF_GAIN5
 +
|
 +
|
 +
|-
 +
| align="right" | 165
 +
| FCD_CMD_APP_GET_IF_GAIN6
 +
|
 +
|
 +
|-
 +
| align="right" | 166
 +
| FCD_CMD_APP_GET_BIAS_TEE
 +
|
 +
|
 +
|-
 +
| align="right" |
 +
|
 +
|
 +
|
 +
|-
 +
| align="right" |
 +
|
 +
|
 +
|
 +
|-
 +
| align="right" |
 +
|
 +
|
 
|
 
|
 
|}
 
|}
  
 
[[Category:Funcube Dongle]]
 
[[Category:Funcube Dongle]]

Revision as of 22:09, 12 December 2012

This document gives a summary of the API commands supported by the Funcube Dongle Pro and Pro+ firmwares.

ID Command FCD Pro parameters FCD Pro+ parameters
1 FCD_CMD_BL_QUERY Returns string with "FCDAPP version"  ?
8 FCD_CMD_BL_RESET Reset to application mode  ?
24 FCD_CMD_BL_ERASE Erase firmware from FCD flash  ?
25 FCD_CMD_BL_SET_BYTE_ADDR TBD  ?
26 FCD_CMD_BL_GET_BYTE_ADDR_RANGE Get address range  ?
27 FCD_CMD_BL_WRITE_FLASH_BLOCK Write flash block  ?
28 FCD_CMD_BL_READ_FLASH_BLOCK Read flash block  ?
100 FCD_CMD_APP_SET_FREQ_KHZ 3 byte unsigned LE frequency in kHz
101 FCD_CMD_APP_SET_FREQ_HZ 4 byte unsigned LE frequency in Hz, returns actual frequency
102 FCD_CMD_APP_GET_FREQ_HZ Returns 4 byte unsigned LE in Hz
104 FCD_CMD_APP_GET_IF_RSSI Deprecated
105 FCD_CMD_APP_GET_PLL_LOCK Returns 1 bit, true if locked n/a
106 FCD_CMD_APP_SET_DC_CORR 2 byte unsigned I correction followed by 2 byte unsigned Q correction n/a
107 FCD_CMD_APP_GET_DC_CORR Returns 2 byte unsigned I correction followed by 2 byte unsigned Q correction n/a
108 FCD_CMD_APP_SET_IQ_CORR Send with 2 byte signed phase correction followed by 2 byte unsigned gain correction n/a
109 FCD_CMD_APP_GET_IQ_CORR Returns 2 byte signed phase correction followed by 2 byte unsigned gain correction n/a
110 FCD_CMD_APP_SET_LNA_GAIN Send with 1 byte. Range 0-14
111 FCD_CMD_APP_SET_LNA_ENHANCE
112 FCD_CMD_APP_SET_BAND
113 FCD_CMD_APP_SET_RF_FILTER
114 FCD_CMD_APP_SET_MIXER_GAIN
115 FCD_CMD_APP_SET_BIAS_CURRENT
116 FCD_CMD_APP_SET_MIXER_FILTER
117 FCD_CMD_APP_SET_IF_GAIN1
118 FCD_CMD_APP_SET_IF_GAIN_MODE
119 FCD_CMD_APP_SET_IF_RC_FILTER
120 FCD_CMD_APP_SET_IF_GAIN2
121 FCD_CMD_APP_SET_IF_GAIN3
122 FCD_CMD_APP_SET_IF_FILTER
123 FCD_CMD_APP_SET_IF_GAIN4
124 FCD_CMD_APP_SET_IF_GAIN5
125 FCD_CMD_APP_SET_IF_GAIN6
126 FCD_CMD_APP_SET_BIAS_TEE
150 FCD_CMD_APP_GET_LNA_GAIN Returns 1 byte. Range 0-14
151 FCD_CMD_APP_GET_LNA_ENHANCE
152 FCD_CMD_APP_GET_BAND
153 FCD_CMD_APP_GET_RF_FILTER
154 FCD_CMD_APP_GET_MIXER_GAIN
155 FCD_CMD_APP_GET_BIAS_CURRENT
156 FCD_CMD_APP_GET_MIXER_FILTER
157 FCD_CMD_APP_GET_IF_GAIN1
158 FCD_CMD_APP_GET_IF_GAIN_MODE
159 FCD_CMD_APP_GET_IF_RC_FILTER
160 FCD_CMD_APP_GET_IF_GAIN2
161 FCD_CMD_APP_GET_IF_GAIN3
162 FCD_CMD_APP_GET_IF_FILTER
163 FCD_CMD_APP_GET_IF_GAIN4
164 FCD_CMD_APP_GET_IF_GAIN5
165 FCD_CMD_APP_GET_IF_GAIN6
166 FCD_CMD_APP_GET_BIAS_TEE