Instructions for the Bluetooth Module
1. Package contents
2. Modification to the database (New table)
3. Modification to the interrupt messages
4. Resources
Package Contents
a. Bluetooth module with 2 antennas
b. Charger
c. RFID cards
a. Bluetooth module with 2 antennas
Antenna “A”
Antenna “B”
Bluetooth Module
b. Charger
c. RFID cards (Quantity: 3)
Modification to Database
There is a need to include another table to map the RFID code with the product identifier (pr_id).
This table was not included in the earlier design; however we will need to include it now.
Table Name: bltoo_ref
Table Template: RFID and product mapping
Purpose: The unique RFID codes need to be mapped with the unique product identifiers (pr_id). This
will enable the app to correctly identify the product and show its details on the screen.
Column count: 3
Insert: Yes
Update: Yes
Delete: Yes
Upload: No
Sample:
shop_id bl_id pr_id
ABC123 33908 10000019
ABC123 42129 10000071
ABC123 42537 10000004
(Use this table along with the values for implementation. The bl_ids are the RFID codes of the 3 RFID
cards included in the package.)
Flow for Identifying product
Product placed on the antenna
bl_id passed over Bluetooth
Use bltoo_ref table to get the
pr_id
Use pr_id to reference other tables like pdt_map, attr_value,
price_data, rating_data,p_c_data and rating_data to get
product details
Modification to the Interrupt Messages
The format remains unchanged but now we will ignore the first field. We should use the next two
fields to identify the interrupt type. NO product is signified by Zero value i.e. 0. If either of the 2
fields holds a Zero value implies its Interrupt 1. If none of the fields hold Zero value then it is
Interrupt 2 and if both fields hold Zero value then its Interrupt 3.
Message format:
<variable 1>, <variable 2>, <variable 3>
Variable values:
<ignore this field>, <antenna “A” data>, <antenna “B” data>
Antenna “A” data or Antenna “B” data implies the bl_id value.
Interrupt 1 (No products -> 1 product) – one product is placed on either of the stands
Example of interrupt 1message:
1, 33908,0 (when product is kept on Antenna “A”)
or
1, 0, 42129 (when product is kept on Antenna “B”)
Interrupt 2 (1 product -> 2 products) – Two products are placed for comparison
Example of interrupt message:
1, 33908, 42129
Interrupt 3 (2 products or 1 product -> No product)
Example of interrupt message: 0,0,0
Bluetooth Module
Antenna
“A”
Antenna
“B”
Resources
For checking the Bluetooth module you can use SENA Bterm Bluetooth Terminal app for Android. It
is available in the Google Play store.
Download Link: https://play.google.com/store/apps/details?id=com.sena.bterm&hl=en
Documentation: http://www.sena.com/download/manual_bterm/overview.html