Search found 28 matches

by steffven
Tue Mar 31, 2009 10:58 pm
Forum: PSP Development
Topic: Change audio volume
Replies: 4
Views: 2005

Re: Change audio volume

Is is possible to change the audio vollume like when you press one of the vollume buttons? if Yes: How can i do it? PS. I searshed this whole forum but the only solution someone said was by emulating key-presses. If that's possible, can someone say how that works? http://psp.jim.sh/pspsdk-doc/pspau...
by steffven
Fri Dec 05, 2008 10:40 pm
Forum: PSP Development
Topic: Ping network hosts
Replies: 1
Views: 1024

No ideas?
by steffven
Thu Dec 04, 2008 9:09 am
Forum: PSP Development
Topic: Ping network hosts
Replies: 1
Views: 1024

Ping network hosts

Hey, i want to ping an host. I found some codes in the internet ( http://www.google.com/codesearch?hl=de&q=lang:c+ping+show:ENH75Bw0380:GUjtd4QL1fU:hHJyHih4i00&sa=N&cd=2&ct=rc&cs_p=http://gentoo.osuosl.org/distfiles/busybox-0.60.5.tar.bz2&cs_f=busybox-0.60.5/ping.c ) , but al...
by steffven
Sat Nov 29, 2008 9:58 pm
Forum: PSP Development
Topic: [PROBLEM] File browser and kernel mode prx
Replies: 2
Views: 1209

by steffven
Wed Nov 26, 2008 6:39 am
Forum: PSP Development
Topic: Connect Timeout
Replies: 7
Views: 2639

Hmm, tested it but neither of this 2 work: int connectWithTimeout (int sfd, struct sockaddr *addr, int addrlen, u32 *timeo) { struct timeval sv; socklen_t svlen = sizeof sv; int ret; if (!timeo) return connect (sfd, addr, addrlen); if &#40...
by steffven
Tue Nov 25, 2008 9:44 pm
Forum: PSP Development
Topic: Connect Timeout
Replies: 7
Views: 2639

Nobody knows how to set the connect timeout? -.-
by steffven
Mon Nov 24, 2008 10:04 pm
Forum: PSP Development
Topic: Connect Timeout
Replies: 7
Views: 2639

pcip = ... sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); socketaddr.sin_family = AF_INET; socketaddr.sin_addr.s_addr = inet_addr(pcip); socketaddr.sin_port = htons(12345); struct timeval timeout; timeout.tv_sec = 5; timeout.tv_usec = 0; setsockopt...
by steffven
Mon Nov 24, 2008 6:35 am
Forum: PSP Development
Topic: Connect Timeout
Replies: 7
Views: 2639

The same problem with this code: pcip = ... sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); socketaddr.sin_family = AF_INET; socketaddr.sin_addr.s_addr = inet_addr(pcip); socketaddr.sin_port = htons(12345); struct timeval timeout; timeout.tv_sec = 5;...
by steffven
Mon Nov 24, 2008 2:38 am
Forum: PSP Development
Topic: Connect Timeout
Replies: 7
Views: 2639

Connect Timeout

*next post*
by steffven
Sat Sep 13, 2008 7:50 am
Forum: PSP Development
Topic: PSP_CTRL_VOLUP
Replies: 6
Views: 2106

Hmm can't find anything...
Someone knows how to readout and set the psp's volume?
I could save the current volume and reset it after the key press.
by steffven
Sat Sep 13, 2008 1:30 am
Forum: PSP Development
Topic: PSP_CTRL_VOLUP
Replies: 6
Views: 2106

Hmm how can i emulate a key press?
I could press the Volume- button virtually or does someone have another idea?
by steffven
Fri Sep 12, 2008 10:28 pm
Forum: PSP Development
Topic: PSP_CTRL_VOLUP
Replies: 6
Views: 2106

Thanks, it works now, but everytime i press Volume+, the psp's volume gets increased.
How do i block this input so the volume doesn't change?
by steffven
Fri Sep 12, 2008 7:20 am
Forum: PSP Development
Topic: PSP_CTRL_VOLUP
Replies: 6
Views: 2106

PSP_CTRL_VOLUP

Hi, I want to readout the state of the Volume+ Button. I already know that I need a kernel prx and I created one with the following value: #include <pspsdk.h> #include <pspkernel.h> #include <pspdisplay_kernel.h> #include <pspctrl.h> PSP_MODULE_INFO&#40;"testlib", 0x1006, 1, 0&#41;...
by steffven
Fri Sep 05, 2008 8:02 am
Forum: PSP Development
Topic: Write Mutated vowels on the screen
Replies: 5
Views: 2189

Write Mutated vowels on the screen

I want to write mutated vowels (ä,ö & ü) on the screen, but it only shows strange things. How can i fix that?
by steffven
Tue Aug 26, 2008 8:48 am
Forum: PSP Development
Topic: Problem with setting up psptoolchain
Replies: 4
Views: 4947

Thanks man it works now :)
by steffven
Tue Aug 26, 2008 8:01 am
Forum: PSP Development
Topic: Problem with setting up psptoolchain
Replies: 4
Views: 4947

Problem with setting up psptoolchain

I tried to compile the toolchain, but everytime it says: ***@*** ~/psptoolchain $ ./toolchain.sh ls&#58; cannot access /usr/include/gmp.h&#58; No such file or directory ERROR&#58; Install gmp before continuing. ../depends/check-gmp.sh&#58; Failed. I installed wget and Devel. Last tim...
by steffven
Mon Jun 16, 2008 3:15 am
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

Yeah I got it! void test&#40;&#41; &#123; int sockfd; struct sockaddr_in name; char sendnumber&#91;8&#93; = "pspiprec"; int leng = 8; int broadcast = 1; int abc = 0; name.sin_family = AF_INET; name.sin_port = htons&#40;673&#41;; name.sin_addr.s_addr = inet_addr&...
by steffven
Mon Jun 16, 2008 3:07 am
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

name.sin_family = PF_INET; <= AF_INT ( A for Address) socket(PF_INET, ..) <= correct (P for Protocol) Corrected. void test&#40;&#41; &#123; int sockfd; struct sockaddr_in name; char sendnumber&#91;8&#93; = "pspiprec"; int leng = 8; int broadcast = 1; int abc = 0; name....
by steffven
Sun Jun 15, 2008 9:04 pm
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

void test&#40;&#41; &#123; int sockfd; struct sockaddr_in name; char sendnumber&#91;8&#93; = "pspiprec"; int leng = 8; int broadcast = 1; name.sin_family = PF_INET; name.sin_port = htons&#40;673&#41;; name.sin_addr.s_addr = inet_addr&#40;"255.255.255.2...
by steffven
Sun Jun 15, 2008 3:36 am
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

Ok, i rewrote the code but it still won't work; my psp doesn't hang anymore, but i don't receive anything. My Code: void test&#40;&#41; &#123; int sockfd; struct sockaddr_in name; char sendnumber&#91;10&#93; = "pspiprec"; name.sin_family = AF_INET; name.sin_port = htons...
by steffven
Sat Jun 14, 2008 6:54 am
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

void test&#40;&#41; &#123; int sockfd; struct sockaddr_in their_addr; struct hostent *he; int numbytes; int broadcast = 1; char szMyIPAddr&#91;32&#93;; sockfd = socket&#40;AF_INET, SOCK_DGRAM, 0&#41;; if &#40;setsockopt&#40;sockfd, SOL_SOCKET, SO_BROADCAST, &...
by steffven
Sat Jun 14, 2008 12:40 am
Forum: PSP Development
Topic: Send broadcast message from a server
Replies: 9
Views: 2830

Send broadcast message from a server

I set up a tcp server on my psp.
Now i want to send a broadcast message (192.168.2.255), but how?
It's no problem for me to send messages to registered clients, but i don't know how to send broadcast messages.
Can someone plz help me?
by steffven
Thu May 29, 2008 6:24 am
Forum: PSP Development
Topic: PSP makes faults while rounding?!?
Replies: 3
Views: 1724

PSP makes faults while rounding?!?

temp2 = ceil&#40;&#40;temp / 34&#41;&#41;; printf&#40;"%d | %d", temp2, temp&#41;; It prints out "0 | 13", "1 | 13" would be right. Another time it prints out "1 | 45", "2 | 45" would be right. Does somebody know where my fau...
by steffven
Wed May 28, 2008 5:50 am
Forum: PSP Development
Topic: Ceil() Problem
Replies: 2
Views: 1784

Works thx for helping!
by steffven
Wed May 28, 2008 3:39 am
Forum: PSP Development
Topic: Ceil() Problem
Replies: 2
Views: 1784

Ceil() Problem

Code: Select all

int temp;
int temp2;
...
temp2 = ceil&#40;temp / 34&#41;;
If i try to compile this code, it gives out the following error:

Code: Select all

Undefined reference to ceil
I included math.h and stdio.h.
What's my fault? Help me plz
by steffven
Tue May 20, 2008 12:50 am
Forum: PSP Development
Topic: Send message over wlan on exiting game
Replies: 4
Views: 1816

int exit_callback&#40;int arg1, int arg2, void *common&#41; &#123; write&#40;new, "exiting", strlen&#40;"exiting"&#41;&#41;; sceKernelExitGame&#40;&#41;; return 0; &#125; int CallbackThread&#40;SceSize args, void *argp&#41; &#1...
by steffven
Tue May 20, 2008 12:28 am
Forum: PSP Development
Topic: Send message over wlan on exiting game
Replies: 4
Views: 1816

int exit_callback&#40;int arg1, int arg2, void *common&#41; &#123; write&#40;new, "exiting", strlen&#40;"exiting"&#41;&#41;; sceKernelExitGame&#40;&#41;; return 0; &#125; I already tried exactly that code but it exits without sending anyth...
by steffven
Mon May 19, 2008 7:46 pm
Forum: PSP Development
Topic: Send message over wlan on exiting game
Replies: 4
Views: 1816

Send message over wlan on exiting game

I wrote a wifi application which communicates with my pc.
How can i send a message to my pc when the application is left (HOME --> yes)? I know how to send messages but i dont know how i know that the application is left.