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