Announcing beta for enabling raspberry pi direct-connected devices

I don’t see anything in the output of the pinout command that looks like the model numbers you listed above. Here’s what I get:

+------------------| |--| |------+
| ooooooooooooo P1 |C|  |A|      |
| 1oooooooooooo    +-+  +-+      |
|    1ooo                        |
| P5 oooo        +---+          +====
|                |SoC|          | USB
|   |D| Pi Model +---+          +====
|   |S| B  V2.0                  |
|   |I|                  |C|+======
|                        |S||   Net
|                        |I|+======
=pwr             |HDMI|          |
+----------------|    |----------+

Revision           : 000d
SoC                : BCM2835
RAM                : 512Mb
Storage            : SD
USB ports          : 2 (excluding power)
Ethernet ports     : 1
Wi-fi              : False
Bluetooth          : False
Camera ports (CSI) : 1
Display ports (DSI): 1

   3V3  (1) (2)  5V
 GPIO2  (3) (4)  5V
 GPIO3  (5) (6)  GND
 GPIO4  (7) (8)  GPIO14
   GND  (9) (10) GPIO15
GPIO17 (11) (12) GPIO18
GPIO27 (13) (14) GND
GPIO22 (15) (16) GPIO23
   3V3 (17) (18) GPIO24
GPIO10 (19) (20) GND
 GPIO9 (21) (22) GPIO25
GPIO11 (23) (24) GPIO8
   GND (25) (26) GPIO7

    5V (1) (2) 3V3
GPIO28 (3) (4) GPIO29
GPIO30 (5) (6) GPIO31
   GND (7) (8) GND

It’s the 000d identifier (revision). So yes, definitely an older model!

**UPDATE: After posting this, the thought occurred to me that the older Pi’s don’t have integrated wireless, so you may be out of luck. If by chance I’m wrong about yours, then read on…

But before we give up, let’s check something and see if it could work: In a terminal, enter the command:

iw phy0 info

‘phy0’ is the usual name of the physical wireless device. Hopefully yours is the same. That command above will display info regarding your wifi hardware support, but what you are looking for is about 20 lines down from the beginning where you should see Supported interface modes. In that section you are looking for “AP”:

Supported interface modes:
		 * IBSS
		 * managed
		 * AP                       <====
		 * P2P-client
		 * P2P-GO
		 * P2P-device

Let me know if that’s the case, and if so, I’ll update the mastersetup script with your model and we can see if we run into any other issues.

If your wifi doesn’t support AP mode, maybe your SO can buy you new Pi for V-day :grin:

An update to any of you interested in running device applications on your Raspberry Pi that are fully integrated with SmartThings:

As it was originally launched, the ST core SDK supported C language apps only, and my beta package is built around that environment. However, knowing that many would much rather code in Python, I’ve been working on an API wrapper to enable that. I’ve got it working now and will be integrating in to my installation package soon.

You’re right; there is no integrated wireless on this Pi. I have an external wifi device connected to it via USB. It looks like it doesn’t support AP mode; just IBSS, managed, and monitor.

I’ve got a couple of newer Pi’s that I’m using for other purposes. I’ll see if I can rearrange things and free up one of the newer ones for this project. Thanks for all your help.

1 Like

Like Mavrrick I’d be interested in exploring this as an intermediary between ST and Hubitat.

I looked at the setup script and added model d03114 to it for my Raspberry Pi 4 Model B Rev 1.4, and am now working through the ST device setup - should have that in place by the end of the day if I don’t get interrupted.

Edit Update: Looks the Developer Workspace is having issues will have to revisit later.

1 Like

That great!! Let me know how you make out and if you have any suggestions for improvement. I had just updated the Pi models the other day, but I’ll make sure I included yours.

Here is an update:

Some important issues with the core SDK have been resolved that significantly improve the reliability of Raspberry-Pi-based device apps using the direct connection API - both during the onboarding process and with long-running device apps. A number of other fixes and improvements have been made to my package and I’m ready to declare this out of beta.

I can now support Pi Zero W and Raspberry Pi OS Lite environments in addition to Pi Models 3 & 4 with the full OS. There has also been limited testing with 64bit Raspberry Pi OS, although the Python API wrapper is currently limited to 32 bit OS.

If you’ve tried this package before and run into problems I’d encourage you to download the latest package and give it another shot.


I also now have a fully-functioning DSC security system integration application built upon this package using alarmserver. See this post for more information:

1 Like