AIRcable mini pairing

68 views
Skip to first unread message

Ryuji Konishi

unread,
Aug 8, 2012, 2:54:15 AM8/8/12
to airc...@googlegroups.com
Hi,

I'm starting to use AIRcable mini, and I got a question in the case of power off.

My mini is working fine with other bluetooth devices. Paired successfully, connected successfully and communicates successfully.

But once my mini looses the power, it doesn't re-connect to its counter partner which was just connected successfully. To get the connection back, it needs to do paring again.

My mini is a slave. So the other device initiates pairing.

My mini can re-connect fine in a case that the other device restarts. But if my mini restarts, it doesn't re-connect unless doing paring.

It looks like that my mini looses pairing information when it looses power. Is my guessing correct? And what should I do to get my mini not to loose the pairing information?

Regards,
Ryuji

Juergen Kienhoefer

unread,
Aug 8, 2012, 11:34:42 AM8/8/12
to airc...@googlegroups.com
Hi Ryuji,

The Mini and all our other Bluetooth devices do not lose pairing after
power loss. The side that decides if it goes through authentication again
is the master side. In that Bluetooth software you use there, the pairing
information is not stored. Apparently during the connection attempt from
your master, the Mini requires the other side to provide the correct link
key. If it does not, the Mini rejects a connection.
The Mini even does automatic pairing for a connection if the other end
asks for a PIN code (or authentication procedure). That is handled during
the establishment of a connection.

We have a few more options inside the Mini for other pairing procedures
if you cannot change your master. Let me know if you are interested
in simple secure pairing procedure from BT 3.0 or other.

Hope that helps.

Regards
Juergen
Wireless Cables Inc.
> --
> You received this message because you are subscribed to the Google Groups
> "AIRcable(tm)" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/aircable/-/dwPsY938GqkJ.
> To post to this group, send email to airc...@googlegroups.com.
> To unsubscribe from this group, send email to
> aircable+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/aircable?hl=en.

Ryuji Konishi

unread,
Aug 13, 2012, 2:13:40 AM8/13/12
to airc...@googlegroups.com
Hi Juergen,

I've been trying to connect, but finally I gave up.

Just for your clarity, what I've been doing is:
1. Mini is the slave, the other BT device (connectBlue) is configured as SPP master.
2. Mini is configured with AIRcable.bas which is a sample "Micro Slave" download
    from wiki below:
    (I added LED control to show connection status)
3. Power both them up.
4. Initiate pairing from connectBlue. Enter PIN and paired and connected successfully.
5. While both devices are being connected, turn OFF connectBlue, then it's of course
    disconnected. At this moment, mini is kept powered.
6. Turn ON connectBlue. connectBlue attempts connection automatically and it
    successfully connects.
7. Repeat 5 and 6 many times, all successful.
8. Turn OFF mini. connectBlue is kept powered. Connection lost, of course.
9. Turn ON mini. connectBlue attempts connection, but failed.

I hope mini is connected in the case 9 above. I tried this sequence many times
tinkering, but failed.
I tried with other several units of mini, but the result was the same.
I actually have an Android App which is an SPP utility, and the result was 
exactly the same. To re-connect after power OFF of mini, I needed to re-pair.

As you say, mini is seemingly rejecting a connection from its counterpart which 
was once connected. And from my point of view, mini is doing so because it forgets 
pairing information (link key as you say) after power OFF.

Now I'm very interested in what you mentioned as simple secure pairing. Do you
think that will help me?

Regards,
Ryuji

Juergen Kienhoefer

unread,
Aug 13, 2012, 10:05:08 AM8/13/12
to airc...@googlegroups.com
Connect Blue does probably not store the linkkey and does not repair
automatically.

You should use the AIRcable as a master too and ditch that
not working ConnectBlue.
We have products, such as the AIRcable USB5 that work just fine
reconnecting, even repairing if you change the other end.

All by themselves. Easy with AIRcable.

I'm not sure how I can help you fixing bad devices.
I'll think abou it further....
> https://groups.google.com/d/msg/aircable/-/oKoLkHKhRMQJ.

Ryuji Konishi

unread,
Aug 14, 2012, 12:46:04 AM8/14/12
to airc...@googlegroups.com
Hi again,

It's done!

I changed the BASIC script of mini a little bit, then it's always connected after power OFF.

I added the following code into the script;
  @PIN_CODE 200
  200 $0 = "12345"
  201 RETURN

This snippet of code changed mini's behaviour, and it's successful. The original code, which is from the sample "Micro Slave" as I wrote before here, didn't have this code.

Now I got a question.
There is @0005 tag in config.txt, and I've been defining the PIN code in it. This time, I added the above code which is also defining the PIN code.
Now I have 2 places to define the PIN code. What is the difference of them?

Regards,
Ryuji

Juergen Kienhoefer

unread,
Aug 16, 2012, 12:03:33 PM8/16/12
to airc...@googlegroups.com
the @0005 PIN code is used when BASIC code is not available.
That is the lowest priority.

Hope that helps
Juergen
Wireless Cables Inc.
> https://groups.google.com/d/msg/aircable/-/MMBN6OesY1QJ.
Reply all
Reply to author
Forward
0 new messages