Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Duplo Train Base #124

Closed
6 tasks done
tthiery opened this issue Nov 15, 2020 · 1 comment · Fixed by #125
Closed
6 tasks done

Add Duplo Train Base #124

tthiery opened this issue Nov 15, 2020 · 1 comment · Fixed by #125

Comments

@tthiery
Copy link
Member

tthiery commented Nov 15, 2020

  • Motor
  • RgbLight
  • Speaker (sounds only, tone is not working)
  • Voltage
  • ColorSensor
  • Speedometer

poweredup device list output:

- Hub: 0x00 / 0
  - Port: 0x00 / 0
    - IOTypeId: DuploTrainBaseMotor / 0x0029 / 41
      Revision: SW: 0.0.0.1, HW: 0.0.0.1
      Capabilities: Output Input
      ModeCombinations: []
    - Mode 0: Name: T MOT, Symbol: pwr, Capability: Output
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Output Mapping: SupportFunctionalMapping20 Absolute
        Raw Min:    -100, Max:     100
        Pct Min:    -100, Max:     100 (pass-through)
        SI  Min:    -100, Max:     100 (pass-through)
    - Mode 1: Name: ONSEC, Symbol: sec, Capability: Input
      - DataSet: 1x Int32, TotalFigures: 4, Decimals: 0
        Input Mapping: Relative
        Raw Min:       0, Max:       1
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:       1 (pass-through)
  - Port: 0x01 / 1
    - IOTypeId: DuploTrainBaseSpeaker / 0x002A / 42
      Revision: SW: 0.0.0.1, HW: 0.0.0.1
      Capabilities: Output
      ModeCombinations: []
    - Mode 0: Name: TONE, Symbol: idx, Capability: Output
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Output Mapping: Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
    - Mode 1: Name: SOUND, Symbol: idx, Capability: Output
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Output Mapping: SupportFunctionalMapping20 Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
    - Mode 2: Name: UI SND, Symbol: idx, Capability: Output
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Output Mapping: Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
  - Port: 0x11 / 17
    - IOTypeId: RgbLight / 0x0017 / 23
      Revision: SW: 0.0.0.1, HW: 0.0.0.1
      Capabilities: Output
      ModeCombinations: []
    - Mode 0: Name: COL O, Symbol: , Capability: Output
      - DataSet: 1x SByte, TotalFigures: 1, Decimals: 0
        Output Mapping: SupportFunctionalMapping20 Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
    - Mode 1: Name: RGB O, Symbol: , Capability: Output
      - DataSet: 3x SByte, TotalFigures: 3, Decimals: 0
        Output Mapping: Absolute
        Raw Min:       0, Max:     255
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:     255 (pass-through)
  - Port: 0x12 / 18
    - IOTypeId: DuploTrainBaseColorSensor / 0x002B / 43
      Revision: SW: 0.1.0.0, HW: 0.1.0.0
      Capabilities: Input LogicalCombinable
      ModeCombinations: [0000000000001111]
    - Mode 0: Name: COLOR, Symbol: idx, Capability: Input
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Input Mapping: SupportsNull Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
    - Mode 1: Name: C TAG, Symbol: idx, Capability: Input
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Input Mapping: SupportsNull SupportFunctionalMapping20 Discrete
        Raw Min:       0, Max:      10
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:      10 (pass-through)
    - Mode 2: Name: REFLT, Symbol: raw, Capability: Input
      - DataSet: 1x SByte, TotalFigures: 3, Decimals: 0
        Input Mapping: Absolute
        Raw Min:       0, Max:     100
        Pct Min:       0, Max:     100 (pass-through)
        SI  Min:       0, Max:     100 (pass-through)
    - Mode 3: Name: RGB I, Symbol: raw, Capability: Input
      - DataSet: 3x Int16, TotalFigures: 5, Decimals: 0
        Input Mapping: Absolute
        Raw Min:       0, Max:    1023
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:    1023 (pass-through)
    - Mode 4: Name: CALIB, Symbol: , Capability: Input
      - DataSet: 3x Int16, TotalFigures: 5, Decimals: 0
        Input Mapping: Absolute
        Raw Min:       0, Max:    8000
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:    8000 (pass-through)
  - Port: 0x13 / 19
    - IOTypeId: DuploTrainBaseSpeedometer / 0x002C / 44
      Revision: SW: 0.0.0.1, HW: 0.0.0.1
      Capabilities: Input LogicalCombinable
      ModeCombinations: [0000000000000011]
    - Mode 0: Name: SPEED, Symbol: spd, Capability: Input
      - DataSet: 1x Int16, TotalFigures: 5, Decimals: 0
        Input Mapping: SupportFunctionalMapping20 Absolute
        Raw Min:    -300, Max:     300
        Pct Min:    -100, Max:     100 (scaling)
        SI  Min:     -10, Max:      10 (scaling)
    - Mode 1: Name: COUNT, Symbol: cnt, Capability: Input
      - DataSet: 1x Int32, TotalFigures: 4, Decimals: 0
        Input Mapping: Relative
        Raw Min:       8, Max:       8
        Pct Min:    -100, Max:     100 (scaling)
        SI  Min:     360, Max:     360 (scaling, translation)
    - Mode 2: Name: CALIB, Symbol: n/a, Capability: Input
      - DataSet: 4x Int16, TotalFigures: 5, Decimals: 0
        Input Mapping: Relative
        Raw Min:       0, Max:    4096
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:    4096 (pass-through)
  - Port: 0x14 / 20
    - IOTypeId: Voltage / 0x0014 / 20
      Revision: SW: 0.0.0.1, HW: 0.0.0.1
      Capabilities: Input
      ModeCombinations: []
    - Mode 0: Name: VLT L, Symbol: mV, Capability: Input
      - DataSet: 1x Int16, TotalFigures: 4, Decimals: 0
        Input Mapping: Absolute
        Raw Min:       0, Max:    3047
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:    6400 (scaling)
    - Mode 1: Name: VLT S, Symbol: mV, Capability: Input
      - DataSet: 1x Int16, TotalFigures: 4, Decimals: 0
        Input Mapping: Absolute
        Raw Min:       0, Max:    3047
        Pct Min:       0, Max:     100 (scaling)
        SI  Min:       0, Max:    6400 (scaling)

Port 0 (poweredup device dump-static-port -p 0 -f)

06-00-01-0B-06-20
0F-00-04-00-01-29-00-01-00-00-00-01-00-00-00
0B-00-43-00-01-03-02-02-00-01-00
05-00-43-00-02
11-00-44-00-00-00-54-20-4D-4F-54-00-00-00-00-00-00
0E-00-44-00-00-01-00-00-C8-C2-00-00-C8-42
0E-00-44-00-00-02-00-00-C8-C2-00-00-C8-42
0E-00-44-00-00-03-00-00-C8-C2-00-00-C8-42
0A-00-44-00-00-04-70-77-72-00
08-00-44-00-00-05-00-50
0A-00-44-00-00-80-01-00-03-00
11-00-44-00-01-00-4F-4E-53-45-43-00-00-00-00-00-00
0E-00-44-00-01-01-00-00-00-00-00-00-80-3F
0E-00-44-00-01-02-00-00-00-00-00-00-C8-42
0E-00-44-00-01-03-00-00-00-00-00-00-80-3F
0A-00-44-00-01-04-73-65-63-00
08-00-44-00-01-05-08-00
0A-00-44-00-01-80-01-02-04-00

Port 1 (poweredup device dump-static-port -p 1 -f)

06-00-01-0B-06-20
0F-00-04-01-01-2A-00-01-00-00-00-01-00-00-00
0B-00-43-01-01-01-03-00-00-07-00
05-00-43-01-02
11-00-44-01-00-00-54-4F-4E-45-00-00-00-00-00-00-00
0E-00-44-01-00-01-00-00-00-00-00-00-20-41
0E-00-44-01-00-02-00-00-00-00-00-00-C8-42
0E-00-44-01-00-03-00-00-00-00-00-00-20-41
0A-00-44-01-00-04-69-64-78-00
08-00-44-01-00-05-00-04
0A-00-44-01-00-80-01-00-03-00
11-00-44-01-01-00-53-4F-55-4E-44-00-00-00-00-00-00
0E-00-44-01-01-01-00-00-00-00-00-00-20-41
0E-00-44-01-01-02-00-00-00-00-00-00-C8-42
0E-00-44-01-01-03-00-00-00-00-00-00-20-41
0A-00-44-01-01-04-69-64-78-00
08-00-44-01-01-05-00-44
0A-00-44-01-01-80-01-00-03-00
11-00-44-01-02-00-55-49-20-53-4E-44-00-00-00-00-00
0E-00-44-01-02-01-00-00-00-00-00-00-20-41
0E-00-44-01-02-02-00-00-00-00-00-00-C8-42
0E-00-44-01-02-03-00-00-00-00-00-00-20-41
0A-00-44-01-02-04-69-64-78-00
08-00-44-01-02-05-00-04
0A-00-44-01-02-80-01-00-03-00

Port 17 (poweredup device dump-static-port -p 17 -f)

06-00-01-0B-06-20
0F-00-04-11-01-17-00-01-00-00-00-01-00-00-00
0B-00-43-11-01-01-02-00-00-03-00
05-00-43-11-02
11-00-44-11-00-00-43-4F-4C-20-4F-00-00-00-00-00-00
0E-00-44-11-00-01-00-00-00-00-00-00-20-41
0E-00-44-11-00-02-00-00-00-00-00-00-C8-42
0E-00-44-11-00-03-00-00-00-00-00-00-20-41
0A-00-44-11-00-04-00-00-00-00
08-00-44-11-00-05-00-44
0A-00-44-11-00-80-01-00-01-00
11-00-44-11-01-00-52-47-42-20-4F-00-00-00-00-00-00
0E-00-44-11-01-01-00-00-00-00-00-00-7F-43
0E-00-44-11-01-02-00-00-00-00-00-00-C8-42
0E-00-44-11-01-03-00-00-00-00-00-00-7F-43
0A-00-44-11-01-04-00-00-00-00
08-00-44-11-01-05-00-10
0A-00-44-11-01-80-03-00-03-00

Port 18 (poweredup device dump-static-port -p 18 -f)

06-00-01-0B-06-20
0F-00-04-12-01-2B-00-00-00-00-01-00-00-00-01
0B-00-43-12-01-06-05-1F-00-00-00
07-00-43-12-02-0F-00
11-00-44-12-00-00-43-4F-4C-4F-52-00-00-00-00-00-00
0E-00-44-12-00-01-00-00-00-00-00-00-20-41
0E-00-44-12-00-02-00-00-00-00-00-00-C8-42
0E-00-44-12-00-03-00-00-00-00-00-00-20-41
0A-00-44-12-00-04-69-64-78-00
08-00-44-12-00-05-84-00
0A-00-44-12-00-80-01-00-03-00
11-00-44-12-01-00-43-20-54-41-47-00-00-00-00-00-00
0E-00-44-12-01-01-00-00-00-00-00-00-20-41
0E-00-44-12-01-02-00-00-00-00-00-00-C8-42
0E-00-44-12-01-03-00-00-00-00-00-00-20-41
0A-00-44-12-01-04-69-64-78-00
08-00-44-12-01-05-C4-00
0A-00-44-12-01-80-01-00-03-00
11-00-44-12-02-00-52-45-46-4C-54-00-00-00-00-00-00
0E-00-44-12-02-01-00-00-00-00-00-00-C8-42
0E-00-44-12-02-02-00-00-00-00-00-00-C8-42
0E-00-44-12-02-03-00-00-00-00-00-00-C8-42
0A-00-44-12-02-04-72-61-77-00
08-00-44-12-02-05-10-00
0A-00-44-12-02-80-01-00-03-00
11-00-44-12-03-00-52-47-42-20-49-00-00-00-00-00-00
0E-00-44-12-03-01-00-00-00-00-00-C0-7F-44
0E-00-44-12-03-02-00-00-00-00-00-00-C8-42
0E-00-44-12-03-03-00-00-00-00-00-C0-7F-44
0A-00-44-12-03-04-72-61-77-00
08-00-44-12-03-05-10-00
0A-00-44-12-03-80-03-01-05-00
11-00-44-12-04-00-43-41-4C-49-42-00-00-00-00-00-00
0E-00-44-12-04-01-00-00-00-00-00-00-FA-45
0E-00-44-12-04-02-00-00-00-00-00-00-C8-42
0E-00-44-12-04-03-00-00-00-00-00-00-FA-45
0A-00-44-12-04-04-00-00-00-00
08-00-44-12-04-05-10-00
0A-00-44-12-04-80-03-01-05-00

Port 19 (poweredup device dump-static-port -p 19 -f)

06-00-01-0B-06-20
0F-00-04-13-01-2C-00-01-00-00-00-01-00-00-00
0B-00-43-13-01-06-03-07-00-00-00
07-00-43-13-02-03-00
11-00-44-13-00-00-53-50-45-45-44-00-00-00-00-00-00
0E-00-44-13-00-01-00-00-96-C3-00-00-96-43
0E-00-44-13-00-02-00-00-C8-C2-00-00-C8-42
0E-00-44-13-00-03-00-00-20-C1-00-00-20-41
0A-00-44-13-00-04-73-70-64-00
08-00-44-13-00-05-50-00
0A-00-44-13-00-80-01-01-05-00
11-00-44-13-01-00-43-4F-55-4E-54-00-00-00-00-00-00
0E-00-44-13-01-01-00-00-00-41-00-00-00-41
0E-00-44-13-01-02-00-00-C8-C2-00-00-C8-42
0E-00-44-13-01-03-00-00-B4-43-00-00-B4-43
0A-00-44-13-01-04-63-6E-74-00
08-00-44-13-01-05-08-00
0A-00-44-13-01-80-01-02-04-00
11-00-44-13-02-00-43-41-4C-49-42-00-00-00-00-00-00
0E-00-44-13-02-01-00-00-00-00-00-00-80-45
0E-00-44-13-02-02-00-00-00-00-00-00-C8-42
0E-00-44-13-02-03-00-00-00-00-00-00-80-45
0A-00-44-13-02-04-6E-2F-61-00
08-00-44-13-02-05-08-00
0A-00-44-13-02-80-04-01-05-00

Port 20 (poweredup device dump-static-port -p 20 -f)

06-00-01-0B-06-20
0F-00-04-14-01-14-00-01-00-00-00-01-00-00-00
0B-00-43-14-01-02-02-03-00-00-00
05-00-43-14-02
11-00-44-14-00-00-56-4C-54-20-4C-00-00-00-00-00-00
0E-00-44-14-00-01-00-00-00-00-00-70-3E-45
0E-00-44-14-00-02-00-00-00-00-00-00-C8-42
0E-00-44-14-00-03-00-00-00-00-00-00-C8-45
0A-00-44-14-00-04-6D-56-00-00
08-00-44-14-00-05-10-00
0A-00-44-14-00-80-01-01-04-00
11-00-44-14-01-00-56-4C-54-20-53-00-00-00-00-00-00
0E-00-44-14-01-01-00-00-00-00-00-70-3E-45
0E-00-44-14-01-02-00-00-00-00-00-00-C8-42
0E-00-44-14-01-03-00-00-00-00-00-00-C8-45
0A-00-44-14-01-04-6D-56-00-00
08-00-44-14-01-05-10-00
0A-00-44-14-01-80-01-01-04-00
@tthiery tthiery added this to the v3.2 (non-breaking) milestone Nov 15, 2020
@tthiery tthiery changed the title Duplo Train Base Add Duplo Train Base Nov 15, 2020
tthiery added a commit that referenced this issue Nov 15, 2020
- incl. Speaker, Motor, Voltage, RgbLight
- missing Speedometer, ColorSensor

#124 non-breaking
tthiery added a commit that referenced this issue Nov 18, 2020
- Add Device
- Add Example

#124 non-breaking
tthiery added a commit that referenced this issue Nov 18, 2020
- Add Sensor
- Extend Example

#124 non-breaking
tthiery added a commit that referenced this issue Nov 18, 2020
- Adjusted Sample
- Add DuploColorTag Enum
- Disable Scaling for Speedometer Count

#124 non-breaking
@tthiery
Copy link
Member Author

tthiery commented Nov 18, 2020

Added to sharpbrick/docs

tthiery added a commit that referenced this issue Nov 18, 2020
* Add DuploTrainBaseHub

- incl. Speaker, Motor, Voltage, RgbLight
- incl. Speedometer, ColorSensor
- Disable Scaling Support (used for Speedometer Count)

#124 non-breaking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant