Go to advanced search

by topguy
Mon Dec 17, 2018 4:03 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 9
Views: 125

Re: Virtual com tcp - how to ?

echo Hello | socat - TCP:raspberrypi.local:11001 Thats the simplest example i can think of how to send some string like "Hello" to a socket, I just used node-red on my Pi to see that it worked. If you want to have a constant connection then its a good idea to create a named pipe and have socat forw...
by topguy
Mon Dec 17, 2018 12:59 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 9
Views: 125

Re: Virtual com tcp - how to ?

That is very different view from what I got from your first post.. what is this "IPtoSerialDevice" ? Is it a real device ?
Now I'm just confused..

The only device that needs to worry about baudrate is the device that the modem is connected to.
by topguy
Mon Dec 17, 2018 12:38 pm
Forum: Beginners
Topic: SSH security
Replies: 3
Views: 81

Re: SSH security

I've never used the lock feature, if that blocks anyone from logging into that user, that should be more than enough.
by topguy
Mon Dec 17, 2018 12:09 pm
Forum: Beginners
Topic: SSH security
Replies: 3
Views: 81

Re: SSH security

You have already done more than most people would consider necessary. - I dont think there is any real value in changing hostname. - Did you delete the "pi" user ? - If your router has a firewall adding an extra one in the Pi only protect against computers on the same LAN, if those are compromised t...
by topguy
Mon Dec 17, 2018 12:06 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 9
Views: 125

Re: Virtual com tcp - how to ?

If I understood you correctly there is not any real serialport involved, you just want to emulate a networked serial port ? So one computer will connect to a socket ( that it thinks is a serialport ) and see what you send it. If you read a bit about "pipes" and this socat example I think you might b...
by topguy
Mon Dec 17, 2018 11:51 am
Forum: Troubleshooting
Topic: ssh/pi zero connection problems-- but please read the whole post before answering
Replies: 2
Views: 50

Re: ssh/pi zero connection problems-- but please read the whole post before answering

So how exactly is the Pi connected to the Laptop ? USB ethernet gadget mode ?

raspberrypi.local is not a name you get via standard DNS lookup, so I think that explains why nslookup dont work.
by topguy
Sun Dec 16, 2018 2:55 pm
Forum: Beginners
Topic: Rpi 2 unable to detect External Hard disk
Replies: 2
Views: 73

Re: Rpi 2 unable to detect External Hard disk

Still sounds like a power problem since using the USB3 port works.
Does the disk have its own power socket ? Or is USB the only possible connection ?
Does it come with a usb-splitter so it can draw power from two ports ?
by topguy
Sun Dec 16, 2018 2:41 pm
Forum: General discussion
Topic: USB SIM card Reader as Smart Card reader ???
Replies: 7
Views: 200

Re: USB SIM card Reader as Smart Card reader ???

That blog link looks like a decent guide. Are you able to follow it down to and including the "pcsc_scan" step ?
by topguy
Sat Dec 15, 2018 11:48 pm
Forum: General discussion
Topic: USB SIM card Reader as Smart Card reader ???
Replies: 7
Views: 200

Re: USB SIM card Reader as Smart Card reader ???

The question is what is on the other side of the PL2303, what kind of documentation do you have ?
If its using serial port then it is not USB-CCID compatible, byt it might still use some know protocol, but you have to figure out which by reading the documentation I guess.
by topguy
Sat Dec 15, 2018 11:46 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 14
Views: 395

Re: Two different standards of programming in effect

To answer the shell question first. When I click on the IDLE python35 Icon the Top the IDLE page says Python 3.5.3 Shell. This where I enter script and test it with run module. IDLE can only be started on the desktop so when you start your program it has X-windows desktop to draw on.. when you star...
by topguy
Fri Dec 14, 2018 5:31 pm
Forum: Troubleshooting
Topic: error when using Node-Red
Replies: 7
Views: 147

Re: error when using Node-Red

But exactly what did you do to get that error ? Did you run a script or command ?

You could just install "xterm" ( sudo apt install xterm ) but as far as I know node-red doesnt really need it.
by topguy
Fri Dec 14, 2018 5:26 pm
Forum: Other projects
Topic: How to make a A.I. using raspberry pi 3 and python
Replies: 2
Views: 73

Re: How to make a A.I. using raspberry pi 3 and python

I think this post probably sets the weekly record for "too little information".

How did you run your program ?
What is your program doing ?
What kind of output did you expect ?
by topguy
Fri Dec 14, 2018 3:36 pm
Forum: Advanced users
Topic: How to export screenshots from mkv format videos?
Replies: 1
Views: 49

Re: How to export screenshots from mkv format videos?

I dont know if mkvtool can do that, I know that ffmpeg/avtool and "mpv" most likely have that feature.. https://github.com/mpv-player/mpv/issues/3735 Not sure if any of them has direct python support so I can suggest that you just learn how to call the commandline commands directly from python. http...
by topguy
Fri Dec 14, 2018 3:27 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 14
Views: 395

Re: Two different standards of programming in effect

when run from the run module command in the respective shells. Where it that done exactly ? A "shell" for me is the bash shell that is either run in the console or in a terminal window on the graphical desktop or a login session over network with SSH. Can you specify what "Python shell" you are tal...
by topguy
Fri Dec 14, 2018 9:20 am
Forum: Beginners
Topic: errors at run time under auto start
Replies: 4
Views: 104

Re: errors at run time under auto start

The error "No display name and no $DISPLAY variable set" just confirms what I said in the other thread. TkInter needs a running X-server.
by topguy
Fri Dec 14, 2018 9:15 am
Forum: Python
Topic: Two different standards of programming in effect
Replies: 14
Views: 395

Re: Two different standards of programming in effect

If you had cut&pasted some of those errors in this thread then we would have had some chance to help, but currently we dont really have enough details to be helpful.
I did discover more evidence of mismatched software in the system:
That doesnt provide any helpful information either..
by topguy
Thu Dec 13, 2018 7:14 pm
Forum: Python
Topic: Two different standards of programming in effect
Replies: 14
Views: 395

Re: Two different standards of programming in effect

Both programs run without error in the python shells. Also on systems without a desktop ? I'm very tempted to claim that "tk" is dependant on having a running X-Windows server, but since I have no actuall experience with it (and turtle) I might be totally wrong. So my suggestion would be to auto-bo...
by topguy
Wed Dec 12, 2018 1:50 pm
Forum: Python
Topic: Converting Arduino code to work on R. PI
Replies: 3
Views: 99

Re: Converting Arduino code to work on R. PI

Does it really need to be converted to Python ? Its already C code which is also easy to compile on the Pi. But the main problem is not the language its all the special hardware bits. I see that your code is using a "onewire" library so you would need to find something similar for C or Python. Also ...
by topguy
Wed Dec 12, 2018 12:21 pm
Forum: C/C++
Topic: How to detect if a program is running via c++ code
Replies: 11
Views: 226

Re: How to detect if a program is running via c++ code

Rather than using bash file I would like to use more like c language because according to connection status my already running program should blink a link or not. I dont understand your argumentation. I'm just saying that you can run a bash command from C/C++ to get the information you need. And yo...
by topguy
Wed Dec 12, 2018 9:13 am
Forum: General discussion
Topic: USB SIM card Reader as Smart Card reader ???
Replies: 7
Views: 200

Re: USB SIM card Reader as Smart Card reader ???

Most likely yes.. a SIM card is just a Smartcard after all.

You need a reader compatible with CCID, then installing "pcscd" should add the necessary "drivers"/libraries.

Python for PCSC
https://pyscard.sourceforge.io/
by topguy
Wed Dec 12, 2018 9:08 am
Forum: C/C++
Topic: How to detect if a program is running via c++ code
Replies: 11
Views: 226

Re: How to detect if a program is running via c++ code

ps -ef | grep programname | wc -l This bash command lists all running processes, find all lines with "programname" and count the lines.. if this return 1 or more, your program is running. So one way of solving this is to run this command with system() or popen() and get the result. Another way is t...
by topguy
Tue Dec 11, 2018 11:51 am
Forum: Graphics, sound and multimedia
Topic: Video Player Using Pi B3+
Replies: 2
Views: 94

Re: Video Player Using Pi B3+

guys if you have any idea about this/ how to write the program for this Please Help,
Knowing which programming language(s) you know and/or plan to use would be really helpful for us.

Which 7" screen are you planning to use ?

And what is the format/codec used on the videos you plan to play ?
by topguy
Tue Dec 11, 2018 11:47 am
Forum: Off topic discussion
Topic: How can I find the micro:bit device in Raspbian Wheezy?
Replies: 2
Views: 167

Re: How can I find the micro:bit device in Raspbian Wheezy?

I think the micro:bit should be automatically mounted under "/media/pi" even under Wheezy, but I'm not sure. If you are logged into the desktop that is. You should really consider taking backup of your files and reformat the SD card to newest Raspbian, it will be easier to get help then. - The comma...
by topguy
Mon Dec 10, 2018 2:05 pm
Forum: Beginners
Topic: Message Protocols and Data extraction
Replies: 5
Views: 101

Re: Message Protocols and Data extraction

The end goal of this assignment is use the understanding of an IoT system through Raspberry PI and its HATS to build a secure IoT system. First you should describe what you mean by "secure". Because I'm thinking that what you describe doesn't really exist yet. The raspberry runs Linux so any Blueto...
by topguy
Mon Dec 10, 2018 1:52 pm
Forum: Graphics programming
Topic: Suggestions for GUI Fullscreen Touchscreen Charts Application?
Replies: 2
Views: 126

Re: Suggestions for GUI Fullscreen Touchscreen Charts Application?

However, cross-compiling the projects from my linux computer has been a pain for the past week since I am running Stretch and I am rethinking this option.
Yes, you should probably just skip the cross-compiling part...

Go to advanced search