Flashing binary to Plug & Sense!

Everything about programming the platform and using the Waspmote API
phlindop
Posts: 12
Joined: Mon May 06, 2019 5:42 pm
Company: SmartRural

Flashing binary to Plug & Sense!

Post by phlindop » Mon May 13, 2019 4:59 pm

I am running on Mac. As per PCS Guide I have installed JDK and installed the SmartDevicesApp.

I have the .hex file ready.

However, when I try to open the SmartDevicesApp.sh file it tries to do it through Atom which I have for pycom devices.

How can I get SmartDevicesApp to open?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Flashing binary to Plug & Sense!

Post by libelium-dev » Tue May 14, 2019 10:59 am

Hi,

You need to execute the SmartDevicesApp.sh file, not open it.

Regards

phlindop
Posts: 12
Joined: Mon May 06, 2019 5:42 pm
Company: SmartRural

Re: Flashing binary to Plug & Sense!

Post by phlindop » Tue May 14, 2019 3:00 pm

How do I do that?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Flashing binary to Plug & Sense!

Post by libelium-dev » Wed May 15, 2019 8:43 am

Hi,

Open a terminal in the path and execute ./SmartDevicesApp.sh

Let us know if you get any error.

Regards

phlindop
Posts: 12
Joined: Mon May 06, 2019 5:42 pm
Company: SmartRural

Re: Flashing binary to Plug & Sense!

Post by phlindop » Wed May 15, 2019 9:21 am

Thanks. Did that with following error:

Last login: Tue May 14 22:22:40 on ttys000
Pauls-Air-2:~ paul$ sh /Applications/SmartDeviceApp_v2.7_macosx64/SmartDevicesApp.sh
Error: Unable to access jarfile SmartDevicesApp.jar

The .jar file is in the same subdirectory as the .sh file

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Flashing binary to Plug & Sense!

Post by libelium-dev » Thu May 16, 2019 9:24 am

Hi,

Please unzip the SmartDeviceApp to the /home folder since the /Applications folders need root permissions

Regards

phlindop
Posts: 12
Joined: Mon May 06, 2019 5:42 pm
Company: SmartRural

Re: Flashing binary to Plug & Sense!

Post by phlindop » Thu May 16, 2019 7:08 pm

Apologies, but I don't recognise /home in the Mac file structure.

The highest level I can find is "Paul's MacBook Air" - is this where you mean?

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Flashing binary to Plug & Sense!

Post by libelium-dev » Fri May 17, 2019 9:37 am

Hi,

You can go to the home directory through the terminal using the cd ~ command. Then you can use pwd command to know the directory path.

Regards

phlindop
Posts: 12
Joined: Mon May 06, 2019 5:42 pm
Company: SmartRural

Re: Flashing binary to Plug & Sense!

Post by phlindop » Fri May 17, 2019 9:41 am

Still get error

=======

Last login: Tue May 14 22:25:45 on ttys000
Pauls-Air-2:~ paul$ cd ~
Pauls-Air-2:~ paul$ pwd
/Users/paul
Pauls-Air-2:~ paul$ sh /Users/paul/SmartDeviceApp_v2.7_macosx64/SmartDevicesApp.sh
Error: Unable to access jarfile SmartDevicesApp.jar
Pauls-Air-2:~ paul$

===========

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: Flashing binary to Plug & Sense!

Post by libelium-dev » Fri May 17, 2019 11:44 am

Hi,

Please try to run the following commands

Code: Select all

cd /Users/paul/SmartDeviceApp_v2.7_macosx64/

Code: Select all

sh SmartDevicesApp.sh 
Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest