]> sigrok.org Git - sigrok-dumps.git/blame_incremental - uart/panasonic_pan1321/README
spi_mode: cmds: Add a small README.
[sigrok-dumps.git] / uart / panasonic_pan1321 / README
... / ...
CommitLineData
1-------------------------------------------------------------------------------
2Panasonic PAN1321 Bluetooth module
3-------------------------------------------------------------------------------
4
5This is an example capture of the serial (UART) init for the Panasonic
6PAN1321 Bluetooth module.
7
8The firmware sends the init commands at 115200 baud, with 8n1 settings.
9
10Details:
11https://www.panasonic.com/industrial/electronic-components/rf-modules/bluetooth/pan1311-1321.aspx
12https://www.panasonic.com/industrial/includes/pdf/Users_Manual_PAN1321_V22.xx_Rev3.1.pdf
13http://www.datasheets.org.uk/indexdl/Datasheet-098/DSA00161388.pdf
14
15
16Logic analyzer setup
17--------------------
18
19The logic analyzer used was a ChronoVu LA8 (at 500kHz):
20
21 Probe PAN1321
22 -------------------
23 0 (green) TX
24 1 (orange) RX
25
26
27Successful initialization
28-------------------------
29
30The sigrok command line used was:
31
32 sigrok-cli -d 0:samplerate=500khz --samples 8388608 \
33 -p '1=TX,2=RX' -o panasonic_pan1321_init.sr
34
35The data sent (S) to the PAN1321 module and received from it (R) was:
36
37R: ROK\r\n
38S: AT+JSEC=1,1,2,04,7777\r\n
39R: OK\r\n
40S: AT+JDIS=3\r\n
41R: OK\r\n
42S: AT+JRLS=1101,11,Serial port,01,000000\r\n
43R: OK\r\n
44S: AT+JSLN=21,MyCoolBluetoothDevice\r\n
45R: OK\r\n
46S: AT+JAAC=1\r\n
47R: OK\r\n
48S: AT+JSCR\r\n
49R: OK\r\n
50
51
52Successful initialization, triggered
53------------------------------------
54
55The sigrok command line used was:
56
57 sigrok-cli -d 0:samplerate=500khz --samples 8388608 \
58 -p '1=TX,2=RX' --wait-trigger --triggers 2=1 \
59 -o panasonic_pan1321_init_triggered.sr
60
61The data sent/received is the same as in the above example. The difference
62is that we triggered on the first high RX state, which might lead to
63some garbage for the first few decoded characters. This file is intended as
64a test-case for this situation.
65
66
67Invalid command, error code
68---------------------------
69
70The sigrok command line used was:
71
72 sigrok-cli -d 0:samplerate=500khz --samples 8388608 \
73 -p '1=TX,2=RX' -o panasonic_pan1321_error.sr
74
75R: ROK\r\n
76S: AT+JSEC=1,1,2,04,7777\r\n
77R: OK\r\n
78S: AT+JDIS=9\r\n
79R: ERR=-1\r\n
80
81As 9 is an invalid value for the "AT+JDIS=" command, the device returns
82an error code.
83