From: Uwe Hermann Date: Tue, 3 Jan 2012 16:35:15 +0000 (+0100) Subject: Add Panasonic PAN1321 Bluetooth module dumps (UART). X-Git-Tag: sigrok-dumps-0.1.0~40 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d9f0f1a7725fb4164668255ea9d874fce535f604;p=libsigrokdecode.git Add Panasonic PAN1321 Bluetooth module dumps (UART). --- diff --git a/uart/panasonic_pan1321/README b/uart/panasonic_pan1321/README new file mode 100644 index 0000000..9338ee8 --- /dev/null +++ b/uart/panasonic_pan1321/README @@ -0,0 +1,87 @@ +------------------------------------------------------------------------------- +Panasonic PAN1321 Bluetooth module +------------------------------------------------------------------------------- + +This is an example capture of the serial (UART) init for the Panasonic +PAN1321 Bluetooth module. + +The firmware sends the init commands at 115200 baud, with 8n1 settings. + +Details: +https://www.panasonic.com/industrial/electronic-components/rf-modules/bluetooth/pan1311-1321.aspx +https://www.panasonic.com/industrial/includes/pdf/Users_Manual_PAN1321_V22.xx_Rev3.1.pdf +http://www.datasheets.org.uk/indexdl/Datasheet-098/DSA00161388.pdf + + +Logic analyzer setup +-------------------- + +The logic analyzer used for capturing is a ChronoVu LA8 at a sample rate +of 500kHz. + +The logic analyzer probes were connected like this: + + Probe PAN1321 + ------------------- + 0 (green) TX + 1 (orange) RX + GND GND + + +Successful initialization +------------------------- + +The sigrok command line used was: + + sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ + -p '1=TX,2=RX' -o panasonic_pan1321_init.sr + +The data sent (S) to the PAN1321 module and received from it (R) was: + +R: ROK\r\n +S: AT+JSEC=1,1,2,04,7777\r\n +R: OK\r\n +S: AT+JDIS=3\r\n +R: OK\r\n +S: AT+JRLS=1101,11,Serial port,01,000000\r\n +R: OK\r\n +S: AT+JSLN=21,MyCoolBluetoothDevice\r\n +R: OK\r\n +S: AT+JAAC=1\r\n +R: OK\r\n +S: AT+JSCR\r\n +R: OK\r\n + + +Successful initialization, triggered +------------------------------------ + +The sigrok command line used was: + + sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ + -p '1=TX,2=RX' --wait-trigger --triggers 2=1 \ + -o panasonic_pan1321_init_triggered.sr + +The data sent/received is the same as in the above example. The difference +is that we triggered on the first high RX state, which might lead to +some garbage for the first few decoded characters. This is file intended as +a test-case for this situation. + + +Invalid command, error code +--------------------------- + +The sigrok command line used was: + + sigrok-cli -d 0:samplerate=500khz --samples 8388608 \ + -p '1=TX,2=RX' -o panasonic_pan1321_error.sr + +R: ROK\r\n +S: AT+JSEC=1,1,2,04,7777\r\n +R: OK\r\n +S: AT+JDIS=9\r\n +R: ERR=-1\r\n + +As 9 is an invalid value for the "AT+JDIS=" command, the device returns +an error code. + diff --git a/uart/panasonic_pan1321/panasonic_pan1321_error.sr b/uart/panasonic_pan1321/panasonic_pan1321_error.sr new file mode 100644 index 0000000..055642b Binary files /dev/null and b/uart/panasonic_pan1321/panasonic_pan1321_error.sr differ diff --git a/uart/panasonic_pan1321/panasonic_pan1321_init.sr b/uart/panasonic_pan1321/panasonic_pan1321_init.sr new file mode 100644 index 0000000..7491047 Binary files /dev/null and b/uart/panasonic_pan1321/panasonic_pan1321_init.sr differ diff --git a/uart/panasonic_pan1321/panasonic_pan1321_init_triggered.sr b/uart/panasonic_pan1321/panasonic_pan1321_init_triggered.sr new file mode 100644 index 0000000..c8ecbd4 Binary files /dev/null and b/uart/panasonic_pan1321/panasonic_pan1321_init_triggered.sr differ