Reverse engeneering a RF remote

Post your cool example code here.
User avatar
Rintin
Posts: 16
Joined: Sat Jan 23, 2016 11:20 am

Re: Reverse engeneering a RF remote

Post by Rintin » Fri Feb 05, 2016 7:52 am

Only the datasheet will know...
(page 28, "FT")
#legalizeawoo

zmemw16
Posts: 1484
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Reverse engeneering a RF remote

Post by zmemw16 » Fri Feb 05, 2016 2:15 pm

for the unaware, this would also be of interest from DocID13587 Rev 16 page 62
FT = Five-volt tolerant. In order to sustain a voltage higher than VDD+0.3 the internal pull-up/pull-down resistors must be disabled.
for exams i was once told 'read the rubrics', i find it applies to a lot of things

stephen

User avatar
RogerClark
Posts: 7460
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Reverse engeneering a RF remote

Post by RogerClark » Fri Feb 05, 2016 8:18 pm

I find the old Maple Mini page on the leaflabs site to be a useful quick reference.

it would be great if someone had time to put this sort of thing into the wiki, but I am afraid I don't have time to do it

User avatar
mrburnette
Posts: 1884
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Reverse engeneering a RF remote

Post by mrburnette » Sat Feb 06, 2016 3:27 am

Source: ST DOC ID 14611, Datasheet for STM32F103xC, STM32F103xD,
STM32F103xE, Table 5, pp. 30--35.

Code: Select all

Some additional peripheral GPIO information is given in the "Other"
section following each bank's main table.

This document was prepared carefully and is believed to be correct,
but the final arbiter of truth is the ST datasheet.

*** NB: UART 4 and 5 are NOT USART (columns are labeled appropriately).

---------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     USART   SPI     DAC     5v?
---------------------------------------------------------------------------
PA0     123in0  2ch1etr -       -       -       2cts    -       -       -
                5ch1
                8etr
PA1     123in1  5ch2    -       -       -       2rts    -       -       -
                2ch2
PA2     123in2  5ch3    -       -       -       2tx     -       -       -
                2ch3
PA3     123in3  5ch4    -       -       -       2rx     -       -       -
                2ch4
---------------------------------------------------------------------------
PA4     12in4   -       -       -       -       2ck     1nss    out1    -
PA5     12in5   -       -       -       -       -       1sck    out2    -
PA6     12in6   8bkin   -       -       -       -       1miso   -       -
                3ch1
PA7     12in7   8ch1n   -       -       -       -       1mosi   -       -
                3ch2
---------------------------------------------------------------------------
PA8     -       1ch1    -       -       -       1ck     -       -       Y
PA9     -       1ch2    -       -       -       1tx     -       -       Y
PA10    -       1ch3    -       -       -       1rx     -       -       Y
PA11    -       1ch4    -       -       -       1cts    -       -       Y
---------------------------------------------------------------------------
PA12    -       1etr    -       -       -       1rts    -       -       Y
PA13    -       -       -       -       -       -       -       -       Y
PA14    -       -       -       -       -       -       -       -       Y
PA15    -       -       -       3ws     -       -       3nss    -       Y
---------------------------------------------------------------------------

Other:

PA0: WKUP
PA8: MCO
PA11: USBDM, CAN_RX
PA12: USBDP, CAN_TX
PA13: JTMS-SWDIO (default)
PA14: JTCK-SWCLK (default)
PA15: JTDI (default)

-------------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     USART   SPI     DAC    5v? SDIO
-------------------------------------------------------------------------------
PB0     12in8   3ch3    -       -       -       -       -       -      -   -
                8ch2n
PB1     12in9   3ch4    -       -       -       -       -       -      -   -
                8ch3n
PB2     -       -       -       -       -       -       -       -      Y   -
PB3     -       -       -       3ck     -       -       3sck    -      Y   -
-------------------------------------------------------------------------------
PB4     -       -       -       -       -       -       3miso   -      Y   -
PB5     -       -       -       3sd     1smba   -       3mosi   -      -   -
PB6     -       4ch1    -       -       1scl    -       -       -      Y   -
PB7     -       4ch2    NADV    -       1sda    -       -       -      Y   -
-------------------------------------------------------------------------------
PB8     -       4ch3    -       -       -       -       -       -      Y   D4
PB9     -       4ch4    -       -       -       -       -       -      Y   D5
PB10    -       -       -       -       2scl    3tx     -       -      Y   -
PB11    -       -       -       -       2sda    3rx     -       -      Y   -
-------------------------------------------------------------------------------
PB12    -       1bkin   -       2ws     2smba   3ck     2nss    -      Y   -
PB13    -       1ch1n   -       2ck     -       3cts    2sck    -      Y   -
PB14    -       1ch2n   -       -       -       3rts    2miso   -      Y   -
PB15    -       1ch3n   -       2sd     -       -       2mosi   -      Y   -
-------------------------------------------------------------------------------

Other:

PB2: BOOT1
PB3: JTDO (default)
PB4: NJTRST (default)

-------------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     UART    SPI     DAC    5v? SDIO
-------------------------------------------------------------------------------
PC0     123in10 -       -       -       -       -       -       -      -   -
PC1     123in11 -       -       -       -       -       -       -      -   -
PC2     123in12 -       -       -       -       -       -       -      -   -
PC3     123in13 -       -       -       -       -       -       -      -   -
-------------------------------------------------------------------------------
PC4     12in14  -       -       -       -       -       -       -      -   -
PC5     12in15  -       -       -       -       -       -       -      -   -
PC6     -       8ch1    -       2mck    -       -       -       -      Y   D6
PC7     -       8ch2    -       3mck    -       -       -       -      Y   D7
-------------------------------------------------------------------------------
PC8     -       8ch3    -       -       -       -       -       -      Y   D0
PC9     -       8ch4    -       -       -       -       -       -      Y   D1
PC10    -       -       -       -       -       4tx     -       -      Y   D2
PC11    -       -       -       -       -       4rx     -       -      Y   D3
-------------------------------------------------------------------------------
PC12    -       -       -       -       -       5tx     -       -      Y   CK
PC13    -       -       -       -       -       -       -       -      -   -
PC14    -       -       -       -       -       -       -       -      -   -
PC15    -       -       -       -       -       -       -       -      -   -
-------------------------------------------------------------------------------

Other:

PC13: TAMPER_RTC
PC14: OSC32_IN
PC15: OSC32_OUT

-------------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     UART    SPI     DAC    5v? SDIO
-------------------------------------------------------------------------------
PD0     -       -       D2      -       -       -       -       -      Y   -
PD1     -       -       D3      -       -       -       -       -      Y   -
PD2     -       3etr    -       -       -       5rx     -       -      Y   CMD
PD3     -       -       CLK     -       -       -       -       -      Y   -
-------------------------------------------------------------------------------
PD4     -       -       NOE     -       -       -       -       -      Y   -
PD5     -       -       NWE     -       -       -       -       -      Y   -
PD6     -       -       NWAIT   -       -       -       -       -      Y   -
PD7     -       -       NE1     -       -       -       -       -      Y   -
                        NCE2
-------------------------------------------------------------------------------
PD8     -       -       D13     -       -       -       -       -      Y   -
PD9     -       -       D14     -       -       -       -       -      Y   -
PD10    -       -       D15     -       -       -       -       -      Y   -
PD11    -       -       A16     -       -       -       -       -      Y   -
-------------------------------------------------------------------------------
PD12    -       -       A17     -       -       -       -       -      Y   -
PD13    -       -       A18     -       -       -       -       -      Y   -
PD14    -       -       D0      -       -       -       -       -      Y   -
PD15    -       -       D1      -       -       -       -       -      Y   -
-------------------------------------------------------------------------------

Other:

PD0: OSC_IN (default)
PD1: OSC_OUT (default)

---------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     USART   SPI     DAC     5v?
---------------------------------------------------------------------------
PE0     -       4etr    NBL0    -       -       -       -       -       Y
PE1     -       -       NBL1    -       -       -       -       -       Y
PE2     -       -       A23     -       -       -       -       -       Y
PE3     -       -       A19     -       -       -       -       -       Y
---------------------------------------------------------------------------
PE4     -       -       A20     -       -       -       -       -       Y
PE5     -       -       A21     -       -       -       -       -       Y
PE6     -       -       A22     -       -       -       -       -       Y
PE7     -       -       D4      -       -       -       -       -       Y
---------------------------------------------------------------------------
PE8     -       -       D5      -       -       -       -       -       Y
PE9     -       -       D6      -       -       -       -       -       Y
PE10    -       -       D7      -       -       -       -       -       Y
PE11    -       -       D8      -       -       -       -       -       Y
---------------------------------------------------------------------------
PE12    -       -       D9      -       -       -       -       -       Y
PE13    -       -       D10     -       -       -       -       -       Y
PE14    -       -       D11     -       -       -       -       -       Y
PE15    -       -       D12     -       -       -       -       -       Y
---------------------------------------------------------------------------

Other:
PE2: TRACECK
PE3: TRACED0
PE4: TRACED1
PE5: TRACED2
PE6: TRACED3

---------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     USART   SPI     DAC     5v?
---------------------------------------------------------------------------
PF0     -       -       A0      -       -       -       -       -       Y
PF1     -       -       A1      -       -       -       -       -       Y
PF2     -       -       A2      -       -       -       -       -       Y
PF3     -       -       A3      -       -       -       -       -       Y
---------------------------------------------------------------------------
PF4     -       -       A4      -       -       -       -       -       Y
PF5     -       -       A5      -       -       -       -       -       Y
PF6     3in4    -       NIORD   -       -       -       -       -       -
PF7     3in5    -       NREG    -       -       -       -       -       -
---------------------------------------------------------------------------
PF8     3in6    -       NIOWR   -       -       -       -       -       -
PF9     3in7    -       CD      -       -       -       -       -       -
PF10    3in8    -       INTR    -       -       -       -       -       -
PF11    -       -       NIOS16  -       -       -       -       -       Y
---------------------------------------------------------------------------
PF12    -       -       A6      -       -       -       -       -       Y
PF13    -       -       A7      -       -       -       -       -       Y
PF14    -       -       A8      -       -       -       -       -       Y
PF15    -       -       A9      -       -       -       -       -       Y
---------------------------------------------------------------------------

---------------------------------------------------------------------------
GPIO    ADC     Timer   FSMC    I2S     I2C     USART   SPI     DAC     5v?
---------------------------------------------------------------------------
PG0     -       -       A10     -       -       -       -       -       Y
PG1     -       -       A11     -       -       -       -       -       Y
PG2     -       -       A12     -       -       -       -       -       Y
PG3     -       -       A13     -       -       -       -       -       Y
---------------------------------------------------------------------------
PG4     -       -       A14     -       -       -       -       -       Y
PG5     -       -       A15 

User avatar
ahull
Posts: 1650
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Reverse engeneering a RF remote

Post by ahull » Tue Jul 19, 2016 6:14 am

ahull wrote:
At the moment I'm messing around with a very low cost VC921 digital multimeter, that I am trying to coax a serial signal out of. I *think* the chip is capable of it, but I haven't found the correct combination of pins to get it to say anything yet.

I've actually ordered a UNI-T 61B too, with the intention of using an STM32XXX or an ESP8266 as a data logger, pigbacked on to the IR output, to allow remote monitoring. If I get the little VC921 to emit a serial data stream, I will see if I can squeeze an ESP8266 in to its case, that would be a neat hack (although probably a little heavy on AAA batteries). If I make any progress with either of those, I'll probably post something in the "Off topic" thread.
Some progress with the VC921 - It does appear to be based on the DTM0660 see => here <= and I dumped the 24c02 on the board (using a BluePill sketch, naturally :D )

Here is the EEROM dump.

Code: Select all

Scanning…

I2C device found at address 0x50
— : 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00 : FF FF FF FF FF FF FF FF FF 52 00 FA 00 00 BE 03
10 : A0 0F 68 10 7C 01 6E 50 64 4B 3C 3C 0A FF 40 FF
20 : BE 98 14 82 64 00 96 00 00 80 00 80 00 80 00 80
30 : 4E 02 09 C6 06 09 8B FF 0A 19 11 0A 09 FF 09 00
40 : 00 01 00 01 00 07 98 00 64 00 64 00 64 00 00 00
50 : 00 80 00 80 00 80 00 80 00 80 00 80 00 80 00 80
60 : FE 7F 00 83 01 00 A1 2A 00 00 00 00 00 00 00 00
70 : AB 7E 00 80 03 83 E0 7C 18 01 00 00 00 00 00 00
80 : 00 00 06 08 12 0B 05 0C 00 01 10 0E 0A 09 14 13
90 : 00 00 00 00 00 00 00 0D 00 02 11 0F 00 00 00 15
A0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
B0 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
C0 : 0D 00 02 10 0D 00 03 20 20 00 03 20 20 00 03 10
D0 : 41 00 03 08 41 00 03 05 41 00 03 05 0D 00 02 20
E0 : 00 80 00 80 00 80 00 80 00 80 00 80 00 80 00 80
F0 : 00 80 FF FF FF FF FF FF 5A C7 CE 0F 0F 80 00 00

Done
If I get a chance in the next few days, I'll solder on an IR LED and prove it outputs serial data.
- Andy Hull -

Post Reply