LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-15-2011, 08:02 AM   #16
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447

Hmm. You could contact the makers of the device and ask. I googled for the device, and found this:

http://www.bluegiga.com/more_229x

Is it the right one? The page says they have an SDK. You could cross compile wput with it and copy the resulting binary to the device, but it's probably easier to look at the example or ask in their forum.

And you never said how you got wput on the device in the first place. You can't just copy it from Ubuntu to the device.
 
Old 02-15-2011, 08:52 AM   #17
thosecars82
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Guttorm View Post
Hmm. You could contact the makers of the device and ask. I googled for the device, and found this:

http://www.bluegiga.com/more_229x

Is it the right one? The page says they have an SDK. You could cross compile wput with it and copy the resulting binary to the device, but it's probably easier to look at the example or ask in their forum.

And you never said how you got wput on the device in the first place. You can't just copy it from Ubuntu to the device.
I installed the wput in the Bluegiga. I downloaded the libraries from the Debian's oficial website for repositories.
As for cross compiling, how could I do this?what steps? is it explained anywhere?
I know cross compiling is compiling in a platform that is not the target platform.

Why I am getting this error when I try to use wget?
wget: bad response to RETR: 501 Syntax error
I thought another solution might be using vsftpd-2.3.3.tar.gz and I was trying to store it in the device, extract it and compile it afterwards.
Thanks

Last edited by thosecars82; 02-15-2011 at 08:56 AM.
 
Old 02-15-2011, 09:23 AM   #18
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

The link I posted mentions an SDK with a cross compiler. You need that SDK.
Quote:
Bluegiga Access Server SDK

Bluegiga Access Server Software Development Kit (SDK) enables application development into Bluegiga's Access Server platform. SDK offers simple and lightweight Linux based development and compiler environment with example applications and documentation.
You need to compile stuff on a computer, and then copy the resulting binary to the device. Small devices like that don't have the memory to compile anything. And I repeat: you cannot simply copy binary programs from whatever distro to the device.
 
Old 02-15-2011, 12:12 PM   #19
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Small devices are often equipped with the busybox utility, rather than a large collection of single-purpose tools. Busybox is a single application that provides the functionality of a shell and a collection of many other standard Unix/Linux tools, all bundled into a single small-footprint package. Evidently, the version you are using did not get built with the file utility.

If your Bluegiga boxes have ssh, then they most likely also have scp (secure copy). If so, you should be able to use it to transfer files in either direction between your boxes and other Linux hosts.

Is there an apt sources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories. The fact that you are getting a legible error message from the application suggests that it is working. What isn't working is the networking part. It seems to be reporting that the server has returned a 501 response code, which means that it was able to talk to a server, but the server isn't able to understand the HTTP request. Look in the error &/or access logs of the HTTP server for more details.

--- rod.
 
Old 02-15-2011, 01:32 PM   #20
orgcandman
Member
 
Registered: May 2002
Location: new hampshire
Distribution: Fedora, RHEL
Posts: 600

Rep: Reputation: 110Reputation: 110
Quote:
Originally Posted by theNbomr View Post
Is there an apt sources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories.
Just a quick comment here - based on the information given, there's absolutely NO evidence that the system in question is using debian. What's worse is if the OP decides that adding debian arm apt repository + the apt utility would be a good idea, there could likely be irreparable damage done the box, including bricking it.

Based on the OPs severe lack of knowledge in this area, I still stand by my recommendation that the first thing to do is not try to break box, but instead acquire as much knowledge as possible on the subject of embedded development (specifically targeted to embedded linux) as possible.
 
Old 02-16-2011, 03:12 AM   #21
thosecars82
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Guttorm View Post
Hi

The link I posted mentions an SDK with a cross compiler. You need that SDK.


You need to compile stuff on a computer, and then copy the resulting binary to the device. Small devices like that don't have the memory to compile anything. And I repeat: you cannot simply copy binary programs from whatever distro to the device.
As for this I might try to do what you said. The device looks like http://www.bluegiga.com/Bluetooth_Access_Servers.

However this device was not bought directly to bluegiga but to one of its distributors.
That is why one of my concerns is whether the distributor might have changed any of the internal software which this device has. And therefore, in the end, I am not sure whether
http://www.bluegiga.com/Bluetooth_Access_Servers
gives the correct information about the software of my device or not even though the picture in the link looks like my device.

Thanks
 
Old 02-16-2011, 05:54 AM   #22
thosecars82
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
Small devices are often equipped with the busybox utility, rather than a large collection of single-purpose tools. Busybox is a single application that provides the functionality of a shell and a collection of many other standard Unix/Linux tools, all bundled into a single small-footprint package. Evidently, the version you are using did not get built with the file utility.

If your Bluegiga boxes have ssh, then they most likely also have scp (secure copy). If so, you should be able to use it to transfer files in either direction between your boxes and other Linux hosts.

Is there an apt sources.list file on your boxes? If so, it probably contains valid pointers to the Debian Arm repositories. The fact that you are getting a legible error message from the application suggests that it is working. What isn't working is the networking part. It seems to be reporting that the server has returned a 501 response code, which means that it was able to talk to a server, but the server isn't able to understand the HTTP request. Look in the error &/or access logs of the HTTP server for more details.

--- rod.
There is no sources.list file.
Actually I searched for it with
find / -name 'sources.list'
but did not get any results so far.

As for the scp, this device does allow using scp like you said, thanks.

I have a doubt now.
The only thing I can think of is using something like
ftp://vsftpd.beasts.org/users/cevans/
But I would need to compile it firstly. The problem is that according to what someone told me there might not be enough RAM memory in the device to compile it in the device itself. So, how can I compile it then? Should I compile it in a Linux PC? In that case, what Linux version should I have to compile it with in order to make it portable into the device?

Well
The other choice would be using the embedded ftp that this device might bring according to http://www.bluegiga.com/Bluetooth_Access_Servers.
However I do not know how to use, what command I should use in order to invoke this ftp program.
Moreover, I do not know for sure whether this device brings this ftp because it was not bought to bluegiga but to a distributor. And even it might not have happened, there's still a chance that the distributor has changed the software of this device.

Thanks

Last edited by thosecars82; 02-16-2011 at 05:59 AM.
 
Old 02-16-2011, 09:56 AM   #23
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by thosecars82 View Post
I have a doubt now.
The only thing I can think of is using something like
ftp://vsftpd.beasts.org/users/cevans/
But I would need to compile it firstly. The problem is that according to what someone told me there might not be enough RAM memory in the device to compile it in the device itself. So, how can I compile it then? Should I compile it in a Linux PC? In that case, what Linux version should I have to compile it with in order to make it portable into the device?
You can cross-compile applications on a build host. It will require first installing a cross toolchain appropriate to the target host. The aforementioned SDK probably includes this.
Not all applications, even though source files are included, build readily in a cross-development environment. Very often, tools like the autotools collection is used to create configure & Makefiles, and these get created based on the environment found on the build host, rather than the target host. The upshot of this is that it may take quite some effort to cross-build your applications, especially if you have no experience in software development.
An alternative may be to run the native compiler on the target host. If RAM is limited, this may not work. If you can find a machine emulation for your box to run under qemu, you may be able to use native tools to build in an emulated environment.

And finally, since you stated initially that you just need to be able to transfer files, and scp seems to be able to do this, what problem is left to solve?

--- rod.
 
Old 02-21-2011, 06:16 AM   #24
thosecars82
LQ Newbie
 
Registered: Feb 2011
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
And finally, since you stated initially that you just need to be able to transfer files, and scp seems to be able to do this, what problem is left to solve?
--- rod.
You are right.

My question now is how I could handle this.
To begin with, I do not know whether the scp installed in the device is a client or a server application. I guess it'll be a client. Moreover, if that is the case, I guess I should install a scp server in the PC's to which the files are gonna be sent from the device.

Is there any freeware scp server that I could install in these PC's either for Windows or Linux?

Can be ssh servers as mobassh be used as scp servers? If that is the case, do you know any reliable freeware ssh server that I could use to manage the scp transfers?

Thanks a lot
 
Old 02-21-2011, 12:02 PM   #25
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Openssh comes as a default part of any Linux distro I've used in the last 10 years. I have no idea about what might be available for Windows. Maybe openssh in Cygwin?
--- rod.
 
  


Reply

Tags
bluegiga, embedded



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Damn Small Linux releases version 3.1 LXer Syndicated Linux News 0 12-01-2006 06:21 AM
ftp in damn small linux Clarence27 Linux - Newbie 1 08-09-2006 04:21 AM
ftp-control "226 File send OK" sent too early spokie99 Linux - General 1 06-29-2005 10:10 AM
cron job to send file via ftp every 1 hour mcalizo Linux - Newbie 1 07-14-2004 03:50 AM
Small linux version tgardner Linux - General 4 03-23-2003 05:00 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration