Parani-MSP1000 Python Tips - Proximity Marketing

Parani-MSP1000 supports Python script. User can make his own application program using Python script. I’d like to introduce an example of Python script application in this post.

Proximity Marketing based on Bluetooth technology is getting lots of attention these days. For example, fast food restaurants can send their new hamburger ads to any Bluetooth cell phones nearby or people can receive new movie information from a nearby movie theater.

I will show how to implement a simple Proximity marketing system using an MSP1000 and Python script.





MSP1000 and a Bluetooth USB dongle will help my test.

I decided to use this image below – a famous movie Kung Fu Panda - for my test because I like this movie very much.

The image file name is ‘advertisement.jpg’. The purpose of the test is to upload this image file into the MSP1000 and to send it to a Bluetooth cell phone nearby MSP1000.


First, we need to upload this image into MSP1000.
Log in to Parani-MSP1000 web management system, and change configurations.



Set ‘FTP service’ to ‘Enable’ and ‘Base Directory’ to ‘User space’.



In my computer, Toshiba Bluetooth driver is installed. The driver offers following file transfer program. (Application program may differ according to its maker.)

Click 'Bluetooth Information Exchanger' icon.


Then click, (it means ‘File transfer’)



Click (It is one of four antennas of MSP1000),



Then copy the image file to this folder (This folder is actually ‘/usr2’ directory of MSP1000. Later connect to MSP1000 console and find image file in this directory.)



Drag two files into this directory. One is the image file(advertisement.jpg) and the other is a python script file (btsender.py : an example script of Proximity Marketing program.).



Copy process is completed!! (That’s what the diglog box says!)

Access the console management of MSP1000 and execute python script(btsender.py) to distribute ad image file to cell phones nearby MSP1000.


You need to modify the script(btsender.py) a little before executing it. The image file name in the script should be changed to the uploaded image filename. Following image shows the codes of ‘btsender.py’.



Now, connect to the console port of the MSP1000 to access the console.

Here, execute python script, btsender.py.

Once the script is run, MSP1000 will ask all cell phones nearby whether to receive this ad image file or not!


Below is a cell phone around MSP1000 which I borrowed from my co-worker.



I’ve got a message asking whether to receive the file from MSP1000 or not. (MSP1000 has four antennas which are described as MSP1000-0, MSP1000-1, MSP1000-2, MSP1000-3. In the previous files copy example, ‘MSP1000-3’ was used, and this time, ‘MSP1000-0’ is used.)

Of course, press ‘YES’ ( means ‘YES’)


Receiving ad image file is completed. Let’s check the ad image file.



Yes~ there is the ad image file in the cell phone!



Below is the enlarged ad image file. My test succeeded!




[Referernce]

1. The Library used in MSP1000 for python.
http://www.sena.com/newsletter/download/parani_msp1000_python_lib_list.txt

2. The python script used in this test(btsender.py)
http://www.sena.com/newsletter/download/btsender.zip

3. MSP1000 user manual (Including python script example)
http://www.sena.com/download/manual/manual_parani_msp1000-v1.2.0.pdf
>> top
Copyright © 2008 SENA Technologies, Inc. All rights reserved