Go to advanced search

by david_1234
Thu Dec 20, 2018 10:17 am
Forum: Beginners
Topic: how can I install windwos-1255 encoding on PI?
Replies: 6
Views: 775

Re: how can I install windwos-1255 encoding on PI?

My problem is this : I can write in hebrew on the Text Editor and also on the terminal (so the PI can read this) but when I try to read it and save it as string - I get "???????" all I do it this : Encoding encoding = Encoding.GetENcoding(1255); string path = @"/home/pi/test.txt"; string StringMessa...
by david_1234
Wed Dec 19, 2018 5:04 pm
Forum: Beginners
Topic: how can I install windwos-1255 encoding on PI?
Replies: 6
Views: 775

how can I install windwos-1255 encoding on PI?

Hello ,
I have a C# code that read a text file with chars that are eoncoding in windows-1255
is there a way to install the encoding?
or is there a linux\pi encoding for that?

Thanks ,
by david_1234
Tue Dec 18, 2018 2:37 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

After searching all over the net and ask in all kind of linux\pi\ubuntu forums
I understadn that I don't need to create a virtual port at all ,
I can just send the data as is to the server

so thank you for start helping me ,

Thanks !
by david_1234
Tue Dec 18, 2018 7:58 am
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

doen't work
exactly 2 addresses requierd (there are 0)
by david_1234
Mon Dec 17, 2018 3:16 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

I have mange to to this:

Code: Select all

socat -,raw,echo=0,escape=0x1d tcp:10.0.0.100:8888 
and I can see in the moxa I have connection
now how do I send data to this connection ?

Thanks ,
by david_1234
Mon Dec 17, 2018 2:21 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

doesn;t work and I guess it's becaue it's not a a ssh connection it's a serail connection in 10.0.0.100:4001 this is why I need to create a "demo" port maybe there is another way? this is what I have try to do in the PI socat pty,link=/dev/lio0,ignoreof,waitslave tcp10.0.0.100:4001 them open new ter...
by david_1234
Mon Dec 17, 2018 1:07 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

yes it's called Moxa https://www.moxa.com/product/NE-4120S.htm it converte tcp to serial - so when you need to "talk" with a serail device you can connect to it using this device . maybe you can igonre this and jsut show me (please , if you know how) how can I talk with a serial device in IP 10.0.0....
by david_1234
Mon Dec 17, 2018 12:47 pm
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Re: Virtual com tcp - how to ?

but where do I config the rate of the serial? let me expalin my configuration: PI (ehternet = 10.0.0.1/24) -->IPtoSerailDevice(ip=10.0.0.100/24)-->serail Modem 4800,8N1 I want to be able to send command to the modem "at!reset" * in windows I use VSPE , I create serail connector then tell him that co...
by david_1234
Mon Dec 17, 2018 9:04 am
Forum: Beginners
Topic: Virtual com tcp - how to ?
Replies: 12
Views: 1432

Virtual com tcp - how to ?

Hello, I want to open a virtul tcp com on my pi to address 10.0.0.100 with port 4001 how do I do this? I have try to use se2net and also socat - but I don,t think it's working eventually I wat to send to this virtual com this message "1236\test\hello" and the device that connect to 10.0.0.100 will g...
by david_1234
Wed Dec 12, 2018 8:45 am
Forum: Advanced users
Topic: how can I duplicate my PI ?
Replies: 9
Views: 1797

Re: how can I duplicate my PI ?

is there any way to "save" the image and them install it on a new sd card?

becasue with this system - I need to have the PI everytime I want to duplicate it
I want to save a copy in my comuter , and duplicate it as many times as I wnat t( without the PI )

?

Thanks,
by david_1234
Mon Dec 10, 2018 10:07 am
Forum: Beginners
Topic: PI clock doesn't sync
Replies: 9
Views: 784

Re: PI clock doesn't sync

OK , see the problem :oops:
but still the date won't sync ,
And I do have internet connection

what else could cause it?

is it possaible that the ntp-client is turn off?
by david_1234
Tue Dec 04, 2018 8:17 am
Forum: Beginners
Topic: PI clock doesn't sync
Replies: 9
Views: 784

Re: PI clock doesn't sync

sorry for the late response
I don't have this command

Code: Select all

sudo systemctl restart timesyncd
or this one also

Code: Select all

tamedatectl
how could it be ?
by david_1234
Mon Nov 26, 2018 9:34 am
Forum: Beginners
Topic: how to use 2 spi devices using spi1 and spi2 in PI3?
Replies: 0
Views: 339

how to use 2 spi devices using spi1 and spi2 in PI3?

if I understand it correctly , I'm using 2 differents devices with 2 differents clock . so I need to connect the canbus to spi1 pins MOSI 38 20 MISO 35 19 SCLK 40 21 CS0 36 16 and my RFID to spi0 pins MOSI 19 10 MISO 21 9 SCLK 23 11 CS0 24 8 what do I need to do in the config - in order to make this...
by david_1234
Sun Nov 25, 2018 4:38 pm
Forum: Beginners
Topic: runnin g RFID with canbus - problem reading false data
Replies: 0
Views: 305

runnin g RFID with canbus - problem reading false data

I'm running this code in order to read the RFID data : import java.sql.Timestamp; import java.text.SimpleDateFormat; import java.util.Date; import java.io.*; import java.net.*; import java.util.*; import java.util.Calendar; import java.util.concurrent.TimeUnit; import java.text.SimpleDateFormat; pub...
by david_1234
Wed Nov 14, 2018 12:45 pm
Forum: General discussion
Topic: can I run\debug a c# program in PI?
Replies: 3
Views: 513

Re: can I run\debug a c# program in PI?

I'm trying to use MonoDevelop - but it doesn't work.
when I try to create a new project the software shutdown....
any idea why?
I'm using a fresh installation .
by david_1234
Wed Nov 14, 2018 12:40 pm
Forum: Advanced users
Topic: how can I duplicate my PI ?
Replies: 9
Views: 1797

Re: how can I duplicate my PI ?

this is what I have PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" so...
by david_1234
Wed Nov 14, 2018 12:11 pm
Forum: Beginners
Topic: unable to access jarfile test.jar?
Replies: 2
Views: 1254

Re: unable to access jarfile test.jar?

I have try and it didn't work...

then I have reboot the pi , and created a new jar file - then it work for me (in the same location , Desktop)

Very strange

Thanks ( I guess :-) )
by david_1234
Tue Nov 13, 2018 10:07 am
Forum: Beginners
Topic: unable to access jarfile test.jar?
Replies: 2
Views: 1254

unable to access jarfile test.jar?

Hello , strange problem I 'm using BlueJ to write some java after I complie and export to java , when I try to run the file I get the error pi@raspberrypi:~ $ sudo java -jar /home/pi/Desktop/FinalV2.jar Error: Unable to access jarfile /home/pi/Desktop/FinalV2.jar pi@raspberrypi:~ $ ls /home/pi/Deskt...
by david_1234
Sun Nov 11, 2018 1:46 pm
Forum: Java
Topic: Java SE + Websocket
Replies: 4
Views: 6202

Re: Java SE + Websocket

Spajk
can you say how did you do it?
how did you make it work?
I have install the Java-WebSocket
but can't run it
no matter what I do - I get this error :
packege org.java_websocket.WebSocket does not exist


can you explain how did you make it work?

Thanks ,
by david_1234
Sun Nov 11, 2018 9:03 am
Forum: Beginners
Topic: running websocket with java on PI ?
Replies: 0
Views: 290

running websocket with java on PI ?

Hello , I have a java code that run on the pi and collect data from temp\light sensor , that send me that data once every 10 min to my server. now I want to be able to enter the PI and see the data "live" . to be able to do so - I read and understadn I need to isnstall websocket and edit my code for...
by david_1234
Tue Nov 06, 2018 3:35 pm
Forum: Advanced users
Topic: how can I duplicate my PI ?
Replies: 9
Views: 1797

how can I duplicate my PI ?

Hello ,
I have build a pi with al kind of script\setting
and now I wnat to make 3-4 units the same
is there any whay to create the image from my working pi and then jsut upload\install it to other sd cars
then it will work on the pi?

I hope me question in understanble :-|

Thanks,
by david_1234
Thu Nov 01, 2018 11:46 am
Forum: Beginners
Topic: PI clock doesn't sync
Replies: 9
Views: 784

Re: PI clock doesn't sync

off by 3 months maybe....

I will try
by david_1234
Thu Nov 01, 2018 11:15 am
Forum: Beginners
Topic: PI clock doesn't sync
Replies: 9
Views: 784

Re: PI clock doesn't sync

I did what you told me
and this is what I get

Current default time zone: 'Asia/Jerusalem'
Local time is now: Fri Sep 28 11:21:09 IDT 2018.
Universal Time is now: Fri Sep 28 08:21:09 UTC 2018.
by david_1234
Wed Oct 31, 2018 2:40 pm
Forum: Beginners
Topic: PI clock doesn't sync
Replies: 9
Views: 784

PI clock doesn't sync

Hello ,
a starnge problem
I'm using PI 3 with internet access
(I have ping to google.com)

but my clock show
Image

this was taken today at 31.10.2018 16:40...

never see this problem with other PI I'm working with

what to do ?

Thanks ,
by david_1234
Tue Oct 23, 2018 2:29 pm
Forum: General discussion
Topic: How to read data from DHT11 sensor ?
Replies: 3
Views: 372

How to read data from DHT11 sensor ?

Hello , I saw that in order to read data I can use 1-wire option but how do I use it? I have look here http://www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-the-raspberry-pi/ but it doesn't work I have also look here https://tutorials-raspberrypi.com/raspberry-pi-temperature-sensor...

Go to advanced search