宗旨

2016年10月30日 星期日

[紀錄片] COWSPIRACY 畜牧業的陰謀

影片網址:
https://www.youtube.com/watch?v=TtyRHb-WNp8

影片講述畜牧業對環境的影響,一些危害如水源污染、溫室效應等等,片尾提倡吃素救地球。


室內配線 - 網路資源分享

分享目錄
https://drive.google.com/open?id=0B2ZOsqPyz09ZMFZqY1dXZmd6NVk



2016年4月18日 星期一

Ebyte LoRa Module


Spec

Module: E32-TTL-100
Product Link: http://www.cdebyte.com/product/html/?114.html
Power: 100mW
Transmission distance: 3KM
Chip: Semtech SX1278
Band: 410-441MHz
UART: 9600 8N1(default)
Current:
  Receive: 14.5mA(mode 0/1),30uA(mode 2)
  Sleep: 2.0uA(m0m1=11)
  Transmit: 110mA(20dBm)

Mode

0: working, M0M1=00
1: wake up, M0M1=01
2: power-saving, M0M1=10
3: sleep, M0M1=11


Pinout


Schematic

AUX Pin

high
low

Command(under Mode 3)

  C1

    C1 C1 C1: get the current configuration

  C3

    C3 C3 C3: get the module version information

  C4

    C4 C4 C4: perform a reset


C0,C2

Byte Seq.NameBitsDescription
0HEADControl command
C0Hconfiguration keep after reset
C2Hlost after reset
1ADDHaddress high byte(00H-FFH)
2ADDLaddress low byte(00H-FFH)
3SPEDSpeed
Bit 7,6UART mode
008N1(default)
018O1
108E1
118N1
Bit 5,4,3TTL baud rate(bps)
0001200
0012400
0104800
0119600(default)
10019200
10138400
11057600
111115200
Bit 2,1,0Air speed(bps)
0000.3K
0011.2K
0102.4K(default)
0114.8K
1009.6K
101192.2K
11019.2K
11119.2K
4CHANChannel
Bit 7,6,5X
Bit 4,3,2,1,0
00H-1FH(default: 17H, 433Mhz)
corresponding to 410 -441Mhz
5OPTIONOption
Bit 7Transmission Mode
0channel/address from module itself
(transparent)
1channel/address from commands
(point-to-point?)
Bit 6IO drive
0TXD, AUX: open
RXD: open
1TXD, AUX: push-pull
RXD: pull-up
Bit 5,4,3Wake-up time(ms)
000250(default)
001500
010750
0111000
1001250
1011500
1101750
1112000
Bit 2FEC(Forward error correction)
0off
1on(default)
Bit 1,0Power(dBm)
0020(default)
0117
1014
1110

Module Testing

  1. Make sure the UART path work
    1. Pull high for both M0 and M1(sleep, mode 3)
    2. Connect the module to your PC with UART or USB-TTL cable
    3. Configure the UART port as 9600 8N1.
    4. Send "0xC3 0xC3 0xC3" to retrieve the module versions
    5. You should see the module send back data like, 
  2. Set up another module with above instructions, name it host and another for client
  3. Client
    1. Configure with C0 command set
      • C0 12 34 1A 17 44
        • C0: keep configuration after reset
        • 12 34: address
        • 1A: 
          • UART mode: 8N1
          • UART baud rate: 9600 bps
          • Air speed: 2.4K bps
        • 17: Channel 433Mhz
        • 44: 
          • transparent mode 
          • wake-up time: 250ms
          • FEC on
          • power: 20dBm
    2. Set to mode 0 (M0M1=00)
  4. Host 
    1. Configure with C0 command set, C0 12 34 1A 17 44
    2. Set to mode 0 (M0M1=00)
    3. Send any text
    4. Check the client side, if the client receives the same text

Field Test

  My experience here 

Chip Versions

Part NumberFrequency RangeSpreading FactorBandwidthEffective BitrateEst. Sensitivity
SX1276137 - 1020 MHz6-127.8 - 500 kHz.018 - 37.5 kbps-111 to -148 dBm
SX1277137 - 1020 MHz6-97.8 - 500 kHz.011 - 37.5 kbps-111 to -139 dBm
SX1278137 - 525 MHz6-127.8 - 500 kHz.018 - 37.5 kbps-111 to -148 dBm
SX1279137 - 960 MHz6-127.8 - 500 kHz.018 - 37.5 kbps-111 to -148 dBm